Hands-on Data Science
My learning DE

Data set5 min

Let's Make a Deal: 100 games with three doors

Where was the car, which door did the contestant pick, which did the host open, and did the contestant stay or switch? A small, clean data set for the first steps with vectors and tibbles.

Topics:Getting and tidying dataProgramming with R

What you will learn

With this small, clean data set you practise your first steps with vectors and tibbles on the game with three doors, and with it you can:

  • describe which steps of a game the columns prize_door, contestant_choice, monty_opens and decision record
  • work out from prize_door, contestant_choice and decision whether a game was won
  • compare across the 100 games how often staying and how often switching leads to the car
  • take into account that some contestants play more than once and that the games were generated rather than recorded on the show
Download CSV

lets_make_a_deal.csv100 rows5 columns2 kB

Put the file into the folder of your project and load it in R or Python:

R

library(readr)

lets_make_a_deal <- read_csv("lets_make_a_deal.csv")

Python

import pandas as pd

lets_make_a_deal = pd.read_csv("lets_make_a_deal.csv", low_memory=False)

Each row is a game played by the rules of the game show "Let's Make a Deal": a car stands behind one of three doors, the contestant picks a door, the host opens another one that does not hide the car, and the contestant stays with the first pick or switches to the last closed door. The games were generated for the exercise and are not a record of the show. They belong to the project The Monty Hall Problem.

Column Content
contestant a made-up first name; some play more than once
prize_door the door with the car behind it, 1 to 3
contestant_choice the door the contestant picks first
monty_opens the door the host opens
decision stay or switch

Whether a game was won is not in the table. It follows from the other columns, and working it out is one of the first tasks in the project.

Back
More on this
Details
Level
Beginner
Modules
Empirical Research
Code
3742
Updated
3 November 2026
Status
published

    A four-digit code takes you straight to the item.