Monty Hall Problem & Birthday Paradox

Similar documents
Section Summary. Finite Probability Probabilities of Complements and Unions of Events Probabilistic Reasoning

Probability Paradoxes

1. The chance of getting a flush in a 5-card poker hand is about 2 in 1000.

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 13

Junior Circle Meeting 5 Probability. May 2, ii. In an actual experiment, can one get a different number of heads when flipping a coin 100 times?

Restricted Choice In Bridge and Other Related Puzzles

Probability and the Monty Hall Problem Rong Huang January 10, 2016

The next several lectures will be concerned with probability theory. We will aim to make sense of statements such as the following:

Math Steven Noble. November 24th. Steven Noble Math 3790

Probability. Dr. Zhang Fordham Univ.

The topic for the third and final major portion of the course is Probability. We will aim to make sense of statements such as the following:

Saturday Morning Math Group October 27, Game Theory and Knowing about Knowledge PACKET A

Mathematics Competition Practice Session 6. Hagerstown Community College: STEM Club November 20, :00 pm - 1:00 pm STC-170

Introduction to Probability

Statistics Intermediate Probability

CS 361: Probability & Statistics

THE PROBLEM OF TWO ACES. Carl E. Mungan Physics Department, U.S. Naval Academy

On the Monty Hall Dilemma and Some Related Variations

Probability with Set Operations. MATH 107: Finite Mathematics University of Louisville. March 17, Complicated Probability, 17th century style

Week 1: Probability models and counting

On The Confusion in Some Popular Probability Problems

Fundamentals of Probability

02. Probability: Intuition - Ambiguity - Absurdity - Puzzles

Expectation Variance Discrete Structures

Three-Prisoners Puzzle. The rest of the course. The Monty Hall Puzzle. The Second-Ace Puzzle

COMPOUND EVENTS. Judo Math Inc.

COUNTING AND PROBABILITY

CSC/MTH 231 Discrete Structures II Spring, Homework 5

The Teachers Circle Mar. 20, 2012 HOW TO GAMBLE IF YOU MUST (I ll bet you $5 that if you give me $10, I ll give you $20.)

Contents of this Document [ntc2]

Design and Analysis of Information Systems Topics in Advanced Theoretical Computer Science. Autumn-Winter 2011

4-8 Bayes Theorem Bayes Theorem The concept of conditional probability is introduced in Elementary Statistics. We noted that the conditional

Problems from 9th edition of Probability and Statistical Inference by Hogg, Tanis and Zimmerman:

Math Steven Noble. November 22nd. Steven Noble Math 3790

7.1 Chance Surprises, 7.2 Predicting the Future in an Uncertain World, 7.4 Down for the Count

STATION 1: ROULETTE. Name of Guesser Tally of Wins Tally of Losses # of Wins #1 #2

PROBLEM SET 2 Due: Friday, September 28. Reading: CLRS Chapter 5 & Appendix C; CLR Sections 6.1, 6.2, 6.3, & 6.6;

3. (8 points) If p, 4p 2 + 1, and 6p are prime numbers, find p. Solution: The answer is p = 5. Analyze the remainders upon division by 5.

or More Events Activities D2.1 Open and Shut Case D2.2 Fruit Machines D2.3 Birthdays Notes for Solutions (1 page)

Counting and Probability Math 2320

Matthew Fox CS229 Final Project Report Beating Daily Fantasy Football. Introduction

SMT 2014 Advanced Topics Test Solutions February 15, 2014

n(s)=the number of ways an event can occur, assuming all ways are equally likely to occur. p(e) = n(e) n(s)

Probability the game show problem

Name: Probability, Part 1 March 4, 2013

CIS 2033 Lecture 6, Spring 2017

MATH 1115, Mathematics for Commerce WINTER 2011 Toby Kenney Homework Sheet 6 Model Solutions

Chapter 2 Brain Teasers

CS1800: Intro to Probability. Professor Kevin Gold

RANDOM EXPERIMENTS AND EVENTS

Counting and Probability

Programming Problems 14 th Annual Computer Science Programming Contest

Random. Bart Massey Portland State University Open Source Bridge Conf. June 2014

4. Praise and Worship (10 Minutes) End with CG:Transition Slide

10/13/2016 QUESTIONS ON THE HOMEWORK, JUST ASK AND YOU WILL BE REWARDED THE ANSWER

The Galaxy. Christopher Gutierrez, Brenda Garcia, Katrina Nieh. August 18, 2012

Olympiad Combinatorics. Pranav A. Sriram

Empirical (or statistical) probability) is based on. The empirical probability of an event E is the frequency of event E.

Chapter 3: Elements of Chance: Probability Methods

Math 10B: Worksheet 4 Solutions

Bridge Theory for the Practitioners. Amit Chakrabarti

Topspin: Oval-Track Puzzle, Taking Apart The Topspin One Tile At A Time

Instructions [CT+PT Treatment]

Theory of Probability - Brett Bernstein

Data Collection Sheet

Math 227 Elementary Statistics. Bluman 5 th edition

The study of probability is concerned with the likelihood of events occurring. Many situations can be analyzed using a simplified model of probability

Predicting the outcome of NFL games using machine learning Babak Hamadani bhamadan-at-stanford.edu cs229 - Stanford University

St Thomas of Canterbury Catholic Primary School Where every child is special

Think Of A Number. Page 1 of 10

Mathematics 3201 Test (Unit 3) Probability FORMULAES

Graph Application in The Strategy of Solving 2048 Tile Game

Craps Wizard App Quick Start Guide

ECON 214 Elements of Statistics for Economists

Section : Combinations and Permutations

MIT 15.S50 LECTURE 5. Friday, January 27 th, 2012

Probabilities Using Counting Techniques

Mathematical Foundations HW 5 By 11:59pm, 12 Dec, 2015

Day 1 Counting Techniques

CSE 312: Foundations of Computing II Quiz Section #2: Inclusion-Exclusion, Pigeonhole, Introduction to Probability (solutions)

Part II: Number Guessing Game Part 2. Lab Guessing Game version 2.0

A Mathematical Analysis of Oregon Lottery Win for Life

Fall 2012 Caltech-Harvey Mudd Math Competition

Combinatorics and Intuitive Probability

November 6, Chapter 8: Probability: The Mathematics of Chance

ECS 20 (Spring 2013) Phillip Rogaway Lecture 1

Combinatorics. Chapter Permutations. Counting Problems

The Mathematics of Game Shows

Analyzing Games: Solutions

Introduction to Counting and Probability

MATH 2420 Discrete Mathematics Lecture notes

Mathematics Explorers Club Fall 2012 Number Theory and Cryptography

Problem Set 10 2 E = 3 F

Overview. The Big Picture... CSC 580 Cryptography and Computer Security. January 25, Math Basics for Cryptography

Monte Carlo based battleship agent

4.2.5 How much can I expect to win?

Game Theory and Randomized Algorithms

Poker: Further Issues in Probability. Poker I 1/29

maxbox Starter 10 Start with Statistic Programming 1.1 Find the Probability

Variations on the Two Envelopes Problem

Transcription:

Monty Hall Problem & Birthday Paradox Hanqiu Peng Abstract There are many situations that our intuitions lead us to the wrong direction, especially when we are solving some probability problems. In this presentation, I ll talk about 2 famous counterintuitive math problem: Monty Hall Problem and Birthday Paradox. I will also expand these problems and discuss some variations of them, as well as illustrate how these math questions are related to other fields. 1. Introduction Monty Hall problem is a probability puzzle, based on the American television game show Let s Make a Deal and named after its celebrated host, Monty Hall. The rules of classical Monty Hall problem are as follows: 1. The number of doors in this game is three. At the beginning of the game, a prize is placed behind each door. Behind one of the doors is a new car. Others two doors are goats. 2. The player will choose one of the doors, if he chooses the door having a car, he wins the car. 3. The host of the game will open one of the two doors that the player didn t select which hiding a goat. 4. After opening one door, the host asks if the player would like to keep his initial selection or switch to the remaining unopened door. 5. The player should decide to either stay or switch. In the different versions of this show that showed up irregularly on TV from 1963 until 2003, diverse solutions to deal with this were presented, with extensions such as adding the fourth doors in 1984. Given the intensive debates regarding the counter-intuitive nature of the solution, the problem s structure and the solution of the Monty Hall problem have been intensively discussed academically. On the other hand, birthday paradox considers a group of n people, and asks the probability that two or more people share the same birthday (same month and day). The purposes of this paper are to explore different ways of solving these two problems and also to elaborate on several variations and applications of them. 2. Methods and Results For Monty Hall problem, most people come to the conclusion that switching does not matter

because there are two unopened doors and one car and that it is a 50/50 choice. This would be true if the host opens a door randomly, but that is not the case; the door opened depends on the player's initial choice, so the assumption of independence does not hold. Here I will describe three ways to solve it. The first method: Car has a 1/3 chance of being behind the player's pick, and a 2/3 chance of being behind one of the other two doors. The host opens a door, the odds for the two sets don't change but the odds become 0 for the open door and 2/3 for the closed door. So the player should change in order to have a bigger chance of winning the car. The following two figures can help understand this approach. The second method: If the player chooses to switch, there are three possible scenarios, each has equal possibility (1/3): 1. The player chooses the door containing car, and the host opens one of the two doors containing a sheep. Then if player switches, he will not win the car. 2. The player chooses the door containing sheep A, and the host must open the door containing sheep B. Then if player switches, he will win the car. 3. The player chooses the door containing sheep B, and the host must open the door containing sheep A. Then if player switches, he will win the car. So the probability that the player win is 2/3 if he chooses to switch. But if he doesn t, the probability does not change, and is still 1/3. Hence the player should switch to get a bigger chance of winning the car. The third method: I wrote a program in python to play this game repeatedly. The program uses choice function from random library. The program was set to generate samples of 100000 games. In ten runs, the average percentage of times the switching strategy proved successful was 66.67%; in a separate set of ten runs, the strategy of always staying with the original choice succeeded 33.32%. The result also proves that if the player switches, he ll have a probability of almost 2/3 to win the car.

Things can be more intuitive if we just change the number of doors from 3 to 1000, and the host need to open 998 doors that don t have goats behind. Keep all the other rules the same as before, the player would definitely switch in order to have higher odds of winning the car. As for Birthday Paradox, it is easy to see that the we need a group of 366 people in order to ensure two or more people share the same birthday. (If we don t consider leap year, there are only 365 possible birthdays). But if we want the probability that two or more people share the same birthday reaches 50%, do we need 366/2 people? The answer is no. The reasons are stated as follows. Let p(n) denote the probability of at least two of the n people sharing a birthday. It is easier to first calculate the probability`p(n) that all n birthdays are different. `p(n) 1 (1-! ) (1- & ) #$% #$% (1-'(!) #$% ( #$% #$* #$# (#$%(-.!) ) #$% 365! / [365 n (365-n)!] p(n) 1 -`p(n) The picture at the bottom left shows p(n)s for different n(s). When n is only 23, p(n) reaches 50%; when n is only 60, p(n) reaches 99%, which is far less than I expected. The picture at the top right shows relation between n and p(n), we can generate it using R.

3. Variations of Monty Hall Problem Rules are revised: 1. There are 3 doors, behind one of the doors is a new car. Others two doors are goats. 2. 3 players each picks one of the doors. 3. The host tells one player that he has chosen the one with goat, and his game is over. 4. For one of the two remaining players, should he exchange boxes with the other s in order to increase his chance of winning the car? The answer is no, because these two players have the same probability of wining the car. Reason: In the Monty Hall problem, it is determined that the host will not announce the player has chosen the door with goat, and end his game, but the host will allow the player to change anyway. However, in the revised problem, for certain player, the host may announce that he has chosen the door with goat, and end his game. So for a player, if he has the chance to exchange, he is lucky. But once such lucky event (coincidence) happens, we need to recalculate the probability of the original events using conditional probability formula. So for the 2 remaining players, mark them as player1 and player2, and let player3 denote the player whose game is over. P (player1 initially select the car player3 didn t select the car) 0(123456! 7'7873224 9:;:< >: <?@ È A;?B:@# CDC- 9:;:< >: <?@) A;?B:@# CDC- 9:;:< >: <?@ (! # & # )/ & #! & P (player2 initially select the car player3 didn t select the car) G(A;?B:@& D-DD?;;B 9:;:< >: <?@ È A;?B:@# CDC- 9:;:< >: <?@) A;?B:@# CDC- 9:;:< >: <?@ (! # & # )/ & #! & So these 2 player both have! & chance of winning the car, either of them needs to switch. We could also expand the question to N doors: There are N doors, two of which have money behind. You and your friend each chose a door. If the door a person choose has money, then the money is given to him. Your friend got the money from the door he chose. At this point, you are told that you can re-choose the door. So should you re-choose?

The case that your friend gets the money does not always happen, once it happens, we need to recalculate the probability of the original events (I choose the door with money). P (your friend gets the money) & H P (your friend and you both get the money) & H! & H(! H(H(!) P (you chose the door with money initially your friend gets the money) G(BIJ@ K@D:-C?-C BIJ LI> M: >: NI-:B) G(BIJ@ K@D:-C M:9 >: NI-:B) & O(O(!) / & O! O(! For the doors which were not selected by your friend, they have equal probabilities of having money behind. Since there are N-1 doors, the probability that each door has money is Because the probabilities are the same (! O(! ), you don t need to re-choose. After our calculation, we do find that the probability changes from! (the probability that you get O the money before you know that your friend gets the money) to! O(!.! O(!. 4. Application of Birthday Paradox The mathematics of birthday paradox is used in the birthday attack, a brute-force cryptographic attack against hash function problems. A hash function is used to convert large amounts of data into a small, single-integer datum, called a hash value, which speeds up the looking up of items in a database. However, since there are limited number of hash values, there can be many collisions of hashes, which mean for two inputs x 1 x 2, f(x 1 ) f(x 2 ). Birthday attack can be used to abuse communication between two or more parties, which depends on the higher likelihood of collisions found between random attack attempts and a fixed degree of permutations. With a birthday attack, it is possible to find a collision of a hash function in 2 n/2, with 2 n being fixed degree of permutations + 1 (366 in our birthday paradox). The good news is birthday attack can be made unfeasible by increasing the hash value output size until it is unfeasible to find a collision. Just as if we want to find the probability that 2 or more people sharing the same birthday (same year, month and day instead of only month and day), we need a group of much more than 23 people to reach 50%. An ideal cryptographic hash function must be easy to compute a hash value for a message, infeasible to create a message with a given hash, infeasible to modify a message without changing the hash, and infeasible to find different messages with the same hash. SHA-256 (Secure Hash Algorithm 256) is the most secure hash algorithm that we have nowadays,

and it is widely used in many areas such as web browser and block chain. 5. Connection and Thought I think my presentation and Charlie Strausser s both apply conditional probability to solve questions. Mine elaborates on the circumstances that people should use condition probability, whereas his expanded Rule of Bayes and talked about Bayesian inference. However, from a broader perspective, Charlie, Joe and I all illustrated using probability methods to uncover, predict, and model real world problems. Before this presentation, I felt it was really challenging to do research in a short period of time and have a 30-40 minutes presentation. But after I completed this task, I feel that my research and expression skills are improved a lot, because I have to search a large amount of information, and extract the essence; besides, I need to organize a long academic English presentation that I never did before, considering the content depth, interaction with audiences, clear explanation, etc. In summary, it is a process of self-improvement. Therefore, I will keep what I did well and show more original ideas for my next presentation. 6. Reference [1] Mazen Alrahili, Simulation of the Monty Hall Problem, October 2016, Clark Atlanta University. [2] Michael Mitzenmacher, The Monty Hall Problem: A Study, 1986, Massachusetts Institute of Technology. [3] Mmile Seitlheko, The Birthday Paradox, August 2011, Stellenbosch University. [4] Shay Gueron, Simon Johnson, Jesse Walker, SHA-512/256, 2010.