复旦大学:《概率论》精品课程教学资源(习题答案)抽奖和玛丽莲问题 The Monty Hall Problem

The monty hall problem Afra Zomorodian January 20, 1998 Introduction This is a short report about the infamous"Monty Hall Problem. The report contains two solutions to the problem: an analytic and a numerical one. The analytic solution will use probability theory and corresponds to a mathematician's point of view in solving problems. The numerical solution simulates the problem on a large scale to arrive at the solution and therefore corresponds to computer scientist's point of view The monty hall Problem The Monty Hall Problem's origin is from the TV show, "Lets Make A Deal"hosted by Monty Hall. The statement of the problem is as follows [LR94 You are a contestant in a game show in which a prize is hidden behind one of three curtains you will win the prize if you select the correct curtain. After you have picked one curtain but before the curtain is lifted, the emcee lifts one of the other curtains, revealing an empty stage, and asks if you would like to switch from your current selection to the remaining curtain. How will your chances change if you switch? The question was originally proposed by a reader of"Ask Marilyn, a column by Marilyn vos Savant in Parade Magazine in 1990 and her solution caused an uproar among Mathematicians, as the answer to the problem is unintuitive: while most people would respond that switching should not matter, the contestant's chances for winning in fact double if she switches curtains. Part of the controversy, however, was caused by the lack of agreement on the statement of the problem itself We will use the above version. For accounts of the controversy as well as solutions and interactive applets, see Don98 Proof by Probability Theory without loss of generality, let us call the curtain picked by the contestant curtain a, the curtain opened by Monty Hall curtain b, and the third curtain c. We will define the following events A, B, and C are the events that the prize is behind curtains a, b, and c respectively .O is the event that Monty Hall opens curtain b The Monty Hall Problem can be restated as follows: Is Pr()= Prclo?
The Monty Hall Problem Afra Zomorodian January 20, 1998 Introduction This is a short report about the infamous “Monty Hall Problem.” The report contains two solutions to the problem: an analytic and a numerical one. The analytic solution will use probability theory and corresponds to a mathematician’s point of view in solving problems. The numerical solution simulates the problem on a large scale to arrive at the solution and therefore corresponds to a computer scientist’s point of view. The Monty Hall Problem The Monty Hall Problem’s origin is from the TV show, “Let’s Make A Deal” hosted by Monty Hall. The statement of the problem is as follows [LR94]: “You are a contestant in a game show in which a prize is hidden behind one of three curtains. you will win the prize if you select the correct curtain. After you have picked one curtain but before the curtain is lifted, the emcee lifts one of the other curtains, revealing an empty stage, and asks if you would like to switch from your current selection to the remaining curtain. How will your chances change if you switch?” The question was originally proposed by a reader of “Ask Marilyn”, a column by Marilyn vos Savant in Parade Magazine in 1990 and her solution caused an uproar among Mathematicians, as the answer to the problem is unintuitive: while most people would respond that switching should not matter, the contestant’s chances for winning in fact double if she switches curtains. Part of the controversy, however, was caused by the lack of agreement on the statement of the problem itself. We will use the above version. For accounts of the controversy as well as solutions and interactive applets, see [Don98]. Proof by Probability Theory Without loss of generality, let us call the curtain picked by the contestant curtain a, the curtain opened by Monty Hall curtain b, and the third curtain c. We will define the following events: • A, B, and C are the events that the prize is behind curtains a, b, and c respectively. • O is the event that Monty Hall opens curtain b. The Monty Hall Problem can be restated as follows: Is P r{A | O} = P r{C | O}? 1

By Bayes's Theorem, we have PrOoF APRon Proy PrOOF rICProl cy PrOf We assume that the prize is randomly placed behind the curtains We compute all of the conditional probabilities for event O, as we'll need them to compute PrO PrO A)= 1/2, if the prize is behind a, Monty Hall can open either b or c PrOB 0, if the prize is behind b, Monty Hall cannot open curtain b Prole) 1, if the prize is behind c, Monty Hall can only open curtain b To compute Prof, we note that O=On A)U(On B)U(OnC) and A,OnB, and OnC are mutually exclusive events as the prize can be behind one curtain only. So, Prof= PronA+PronBPrloncy PrlAPr(| A)+ Pr( B+PrICPrlolCy /3)·(1/2)+(1/3)·0+(1/3)·1 Therefore. we have Pr(AJO- PriA)PrIoJA 1/3)·(1/2) /2 Furthermore, we have. PrIolo)= Pr PrICProlcy PrOf (1/3)·1 In other words, if we switch we double our chances of winning. We could have also arrived at this answer by noting PrBlo)=0 and therefore PrCO=1-Pr(Alof=1-1/3=2/3 Generalized Monty Hall Problem With the same analysis, we can show that if there are n curtains and the emcee opens n-2 of them after the contestant's initial choice, the contestant's chances of winning will be 1/n if she decides to stay with the initial choice and(n-1)/n if she switches. In other words, the contestant's chance of winning goes up by a factor of n-1 in case of switchin
By Bayes’s Theorem, we have: P r{A | O} = P r{A}P r{O | A} P r{O} P r{C | O} = P r{C}P r{O | C} P r{O} We assume that the prize is randomly placed behind the curtains: P r{A} = P r{B} = P r{C} = 1/3 We compute all of the conditional probabilities for event O, as we’ll need them to compute P r{O}: P r{O | A} = 1/2, if the prize is behind a, Monty Hall can open either b or c P r{O | B} = 0, if the prize is behind b, Monty Hall cannot open curtain b P r{O | C} = 1, if the prize is behind c, Monty Hall can only open curtain b To compute P r{O}, we note that O = (O ∩ A) ∪ (O ∩ B) ∪ (O ∩ C) and O ∩ A, O ∩ B, and O ∩ C are mutually exclusive events as the prize can be behind one curtain only. So, P r{O} = P r{O ∩ A} + P r{O ∩ B}P r{O ∩ C} = P r{A}P r{O | A} + P r{B}P r{O | B} + P r{C}P r{O | C} = (1/3) · (1/2) + (1/3) · 0 + (1/3) · 1 = 1/2. Therefore, we have: P r{A | O} = P r{A}P r{O | A} P r{O} = (1/3) · (1/2) 1/2 = 1/3. Furthermore, we have: P r{C | O} = P r{C}P r{O | C} P r{O} = (1/3) · 1 1/2 = 2/3. In other words, if we switch we double our chances of winning. We could have also arrived at this answer by noting P r{B | O} = 0 and therefore P r{C | O} = 1 − P r{A | O} = 1 − 1/3 = 2/3. Generalized Monty Hall Problem With the same analysis, we can show that if there are n curtains and the emcee opens n−2 of them after the contestant’s initial choice, the contestant’s chances of winning will be 1/n if she decides to stay with the initial choice and (n−1)/n if she switches. In other words, the contestant’s chance of winning goes up by a factor of n − 1 in case of switching. 2

Solution by simulatio The Monty Hall Problem Theoretical for Staying 33 1/30%-- Theoretical for Switching 66.7 时中M lumber of ga A program monty. c for simulating the generalized Monty Hall Problem was implemented in ANSI-C and is included. Using the program, data was generated for the two following graphs The graph above shows the convergence of the probabilities to the theoretical values for 3 curtains(each set of game was independently run. The graph plots the percentage of winning if the contestant always chooses to stay with the original door versus if the contestant chooses to switch. The graph clearly reaffirms the theoretical result The graph on the next page shows what happens when we increase the number of curtains from 3 to 100. For each value of curtains, 100,000 games were played. The graph also plots the theoretical values as above. The numerical and theoretical values match extremely well Conclusion In conclusion, I'd like to note that the Monty Hall Problem is unintuitive because it is hard to see when information is brought into the problem, i.e. Monty Hall's opening of the curtain causes the conditional probabilities to change. A related problem, the Prisoner's Problem, has the same structure but asks a different question and may be found in [LR94
Solution by Simulation 0 20 40 60 80 100 0 100 200 300 400 500 600 700 800 900 1000 Percentage Won Number of Games The Monty Hall Problem Staying Switching Theoretical for Staying 33 1/3% Theoretical for Switching 66.7 % A program monty.c for simulating the generalized Monty Hall Problem was implemented in ANSI-C and is included. Using the program, data was generated for the two following graphs. The graph above shows the convergence of the probabilities to the theoretical values for 3 curtains (each set of game was independently run.) The graph plots the percentage of winning if the contestant always chooses to stay with the original door versus if the contestant chooses to switch. The graph clearly reaffirms the theoretical result. The graph on the next page shows what happens when we increase the number of curtains from 3 to 100. For each value of curtains, 100,000 games were played. The graph also plots the theoretical values as above. The numerical and theoretical values match extremely well. Conclusion In conclusion, I’d like to note that the Monty Hall Problem is unintuitive because it is hard to see when information is brought into the problem, i.e. Monty Hall’s opening of the curtain causes the conditional probabilities to change. A related problem, the Prisoner’s Problem, has the same structure but asks a different question and may be found in [LR94]. 3

Generalized Monty Hall Problem(100,000 Games) 100 Theoretical for Staying(1/n)--. Theoretical for Switching(n-1Vn 50 Number of doors References Don98 Dennis Donovan. The Www Tackles The Monty Hall Problem, 1998 http://math.rice.edu/ddonovan/montyurl.html. LR94 Thomas H. Cormen, Charles E Leiserson, and Ronald L. Rivest. Introduction to Algo- rithms. The MIT Press, Cambridge, Massachusetts, 1994
0 20 40 60 80 100 10 20 30 40 50 60 70 80 90 100 Percentage Won Number of Doors Generalized Monty Hall Problem (100,000 Games) Staying Switching Theoretical for Staying (1/n) Theoretical for Switching (n-1)/n References [Don98] Dennis Donovan. The WWW Tackles The Monty Hall Problem, 1998. http://math.rice.edu/˜ddonovan/montyurl.html. [LR94] Thomas H. Cormen, Charles E. Leiserson, and Ronald L. Rivest. Introduction to Algorithms. The MIT Press, Cambridge, Massachusetts, 1994. 4
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《概率论》精品课程教学资源(习题答案)统计学中的三大分布 SOME SPECIFIC PROBABILITY DISTRIBUTIONS.pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)概率论的简单历史 short history of Probability.pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)2007年期末考试试卷(B卷).pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)2007年期末考试试卷(A卷).pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)概率中的50个反例.pdf
- 清华大学:《概率统计》课程教学资源(PDF电子讲义课件,制作:李东风,共九章).pdf
- 高等学校教材:《SPSS统计分析基础教程》PDF电子书(第一、二、三、四、五章).pdf
- 中国科学技术大学:统计与矩阵分析——统计是什么(张卫明).ppt
- 华中科技大学社会学系:《多元统计分析》PPT讲义_社会统计学导论.ppt
- 复旦大学:《卫生统计学》课程教学资源(PPT课件讲稿)绪论.ppt
- 山东大学物理学院:《实验数据处理方法》课程教学资源(PPT讲稿)第一章 引言(王永刚).ppt
- 河海中医药大学:《统计学》课程PPT课件_第1章 导论、统计学与统计数据(刘俊娟).ppt
- 云南大学:《人口统计学原理与方法》课程教学资源(PPT课件讲稿)第一讲 人口规模及其变化统计、人口性别年龄构成统计.ppt
- 云南大学:《人口统计学原理与方法》课程教学资源(PPT课件讲稿)第二讲 生育统计与分析.ppt
- 云南大学:《人口统计学原理与方法》课程教学资源(PPT课件讲稿)第四讲 其它人口统计.ppt
- 云南大学:《人口统计学原理与方法》课程教学资源(PPT课件讲稿)第五讲 人口预测 Population Projection.ppt
- 云南大学:《人口统计学原理与方法》课程教学资源(PPT课件讲稿)第三讲 死亡统计与分析.ppt
- 河南中医药大学:《应用统计学》课程教学资源(电子教案)01教学设计 第1章 导论(刘俊娟).docx
- 河南中医药大学:《应用统计学》课程教学资源(PPT课件讲稿)第1章 导论、统计学与统计数据(刘俊娟).ppt
- 《医学统计学》课程教学课件(PPT讲稿)第十一章 秩和检验.ppt
- 复旦大学:《概率论》精品课程教学资源(习题答案)扑克牌和概率 Probability and Poker.pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)听贝叶斯介绍贝叶斯方法 essay.pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)购物券中的问题 coupon.pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)布丰投针问题 Buffon’s needle problem.pdf
- 复旦大学:《概率论》精品课程教学资源(习题答案)林德贝格-费勒中心极限定理的概率证明 A Probabilistic Proof of the Lindeberg-Feller.pdf
- 复旦大学:《概率论》精品课程教学资源(电子教案)第一章 概率论基础知识.pdf
- 复旦大学:《概率论》精品课程教学资源(电子教案)第二章 条件概率与统计独立.pdf
- 复旦大学:《概率论》精品课程教学资源(电子教案)第三章 随机变量与分布函数.pdf
- 复旦大学:《概率论》精品课程教学资源(电子教案)第四章 数字特征和特征函数.pdf
- 复旦大学:《概率论》精品课程教学资源(补充习题)习题讲解.pdf
- 复旦大学:《概率论》精品课程教学资源(补充习题)第一章 事件与概率.pdf
- 复旦大学:《概率论》精品课程教学资源(电子教案)(第一、二、三、四、五章 极限定理).pdf
- 复旦大学:《概率论》精品课程教学资源(补充习题)第三章 随机变量与分布函数.pdf
- 复旦大学:《概率论》精品课程教学资源(补充习题)第二章 条件概率与统计独立性.pdf
- 复旦大学:《概率论》精品课程教学资源(补充习题)第五章 极限定理.pdf
- 复旦大学:《概率论》精品课程教学资源(补充习题)第四章 数字特征和特征函数.pdf
- 复旦大学:《卫生统计学》理论课教学资源_教学大纲.pdf
- 复旦大学:《卫生统计学》课程教学资源(习题)卫生统计学Stata实现说明.doc
- 复旦大学:《卫生统计学》课程教学资源(习题)第二章 统计描述Stata实现.doc
- 复旦大学:《卫生统计学》课程教学资源(习题)第五章 参数估计和假设检验Stata实现.doc