Please enable JavaScript to use CodeHS

  • Autograded

Monty Hall Simulator

In this project, students will recreate the classic paradox from Let's Make A Deal. They start off recreating the final pick-a-door option and then extend this with a simulator to simulate thousands of iterations as they examine this mathematical puzzle.

Medium

3 Hours

High School

Project Description

Background

The Monty Hall Problem (or Paradox) is a mathematical brain teaser that is based on the classic game show Let’s Make a Deal. On the show where Monty Hall is the host, the final deal asks the contestant to pick one of three doors. Behind one door is the grand prize.

After contestants pick a door, Month Hall reveals one of the two doors that was not picked. He then asks the contestant if they want to stick with their original choice or switch to the other door.

A majority of contestants choose to stick to their original choice. On the surface, it seems like the question of switching is a personal choice, however, when you switch, you actually double your odds of winning the grand prize!

Your Task

In this project, you are going to simulate this activity over a large number of iterations to demonstrate the results. There are a few details that you need to follow, but how you implement the solution will be up to you.

Project Demo

Explore this program before assigning it!

Project Overview

Here is an outline of the project activities: