{"id":399,"date":"2021-03-12T19:37:14","date_gmt":"2021-03-12T19:37:14","guid":{"rendered":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/?p=399"},"modified":"2022-01-31T14:37:14","modified_gmt":"2022-01-31T14:37:14","slug":"the-monty-hall-problem","status":"publish","type":"post","link":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/2021\/03\/12\/the-monty-hall-problem\/","title":{"rendered":"The Monty Hall Problem"},"content":{"rendered":"\n<p>The Monty Hall problem came up briefly in a research talk my MRes cohort attended in January. This apparently paradoxical problem causes debate and confusion, even with mathematicians and is widely misunderstood. Even with a statistical background, it&#8217;s sometimes a difficult task to intuitively solve the problem. During the research talk, the speaker asked us (a group of MRes students in a statistical discipline) &#8220;which is the better strategy, switch or stay?&#8221; and even though, most (if not all) of us would have come across the problem before, none of us were able to give a definite answer with proper reasoning behind it. A few of us gave the correct answer (switch) from memory but the intuition as to why this is the correct solution was still lacking. So, following that talk, I decided to go on a little search for intuition in the hope that the next time this problem comes up, there&#8217;s no confusion in my mind. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Problem<\/h2>\n\n\n\n<p>The Monty Hall problem is based on a scenario from the show Let\u2019s Make a Deal where the host (Monty) shows you three doors and tells you that behind two of the doors await hungry goats, while behind the third door sits a brand new car. If you choose correctly, you go home with a brand new car, and otherwise, you get stuck with a goat. Monty asks you to choose a door. After you make your choice, Monty opens a different door and shows you a goat. Now, with only two doors left, you&#8217;re given the chance to switch. What should you do?<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-4-1024x438.png\" alt=\"\" class=\"wp-image-410\" width=\"405\" height=\"174\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-4-1024x438.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-4-300x128.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-4-768x328.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-4.png 1169w\" sizes=\"auto, (max-width: 405px) 100vw, 405px\" \/><figcaption>Figure 1: Three doors, which do you choose?<\/figcaption><\/figure><\/div>\n\n\n\n<p>For someone who hasn&#8217;t seen the problem before, a common response, even among mathematicians, is to say that there is no difference between switching and not switching. Two doors left, each has a probability of <span class=\"wp-katex-eq\" data-display=\"false\"> 1\/2 <\/span> of having the car, right? This response is understandable as we knew there was a goat behind one of the other two doors anyway so we don&#8217;t have any new information, right? Thus, intuitively, it&#8217;s easy to see why someone might argue that each remaining door has a <span class=\"wp-katex-eq\" data-display=\"false\">50\\%<\/span> chance. This is incorrect. The correct choice is actually to switch, and with this strategy, the odds of finding the car double! Let me explain why.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Explanation<\/h2>\n\n\n\n<p>A common misunderstanding here is that, after you&#8217;ve made your initial choice, Monty opens up a door at random. However, what actually happens is: Monty, knowing what&#8217;s behind every door, opens up a door to show you a goat. Now, there&#8217;s a couple of ways of looking at the problem once you take this into account. First, let&#8217;s start by assuming we play this game a large number of times and we now want to choose the best strategy to use throughout all of the games. Clearly, staying with your initial choice will work <span class=\"wp-katex-eq\" data-display=\"false\">1\/3<\/span> of the time since the probability of the car being behind that door is unaffected by the new information. There&#8217;s only two strategies to use so if staying will only work <span class=\"wp-katex-eq\" data-display=\"false\">1\/3<\/span> of the time, then switching must work <span class=\"wp-katex-eq\" data-display=\"false\">2\/3<\/span> of the time.<\/p>\n\n\n\n<p>Now, this may seem like weak logic and you may still argue each of the doors left has an equal chance of having the car behind it. But the key here is that Monty knows what&#8217;s behind all of the doors!<\/p>\n\n\n\n<p>So let&#8217;s look at this again. Once you&#8217;ve made your initial choice, say door 1, there is a <span class=\"wp-katex-eq\" data-display=\"false\">1\/3<\/span> chance that the car lies behind door 1 and a <span class=\"wp-katex-eq\" data-display=\"false\">2\/3<\/span> chance that it lies behind either of the other two doors. Now, Monty opens, for example, door 2 and shows you a goat. At this stage, door 1 still has a <span class=\"wp-katex-eq\" data-display=\"false\">1\/3<\/span> chance but with door 2 having been opened, door 3 now holds the <span class=\"wp-katex-eq\" data-display=\"false\">2\/3<\/span> probability of having the car. So, we might say that the probability has now been &#8220;concentrated&#8221; on the only other door left leaving it with double the probability of having the car! So, clearly, we should always switch as this will allow us to win two thirds of the time.<\/p>\n\n\n\n<p>      <\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Probs_full.png\" alt=\"\" class=\"wp-image-431\" width=\"701\" height=\"207\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Probs_full.png 1015w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Probs_full-300x89.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Probs_full-768x227.png 768w\" sizes=\"auto, (max-width: 701px) 100vw, 701px\" \/><figcaption>Figure 2: Stay or Switch?<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Larger Scale<\/h2>\n\n\n\n<p>To make this a bit clearer, let&#8217;s imagine we, instead, have one hundred doors from which to choose:<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"325\" height=\"500\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-5.png\" alt=\"\" class=\"wp-image-413\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-5.png 325w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/Asset-5-195x300.png 195w\" sizes=\"auto, (max-width: 325px) 100vw, 325px\" \/><figcaption>Figure 3: 100 doors, which do you choose?<\/figcaption><\/figure><\/div>\n\n\n\n<p>Suppose you still make the same choice of door 1. Now, there&#8217;s a probability of <span class=\"wp-katex-eq\" data-display=\"false\">99\/100<\/span> that the car lies behind one of the other doors.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"331\" height=\"500\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/100doors_probs2.png\" alt=\"\" class=\"wp-image-438\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/100doors_probs2.png 331w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/100doors_probs2-199x300.png 199w\" sizes=\"auto, (max-width: 331px) 100vw, 331px\" \/><\/figure><\/div>\n\n\n\n<p>Following this, Monty shows you 98 doors with goats behind them. So, what would you do in this scenario? Immediately, this makes more intuitive sense. Since Monty knows which door holds the car and has shown you 98 doors without it, you, of course, should switch to the one door he avoided opening. Following the same process, door 1 which you initially chose has a <span class=\"wp-katex-eq\" data-display=\"false\">1\/100<\/span> chance of having the car while the one other door that&#8217;s left unopened, say door 97, has a <span class=\"wp-katex-eq\" data-display=\"false\">99\/100<\/span> chance! <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"325\" height=\"500\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/GoatsGoatsGoats.png\" alt=\"\" class=\"wp-image-441\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/GoatsGoatsGoats.png 325w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-content\/uploads\/sites\/20\/2021\/03\/GoatsGoatsGoats-195x300.png 195w\" sizes=\"auto, (max-width: 325px) 100vw, 325px\" \/><figcaption>Figure 4: Goats everywhere!!!<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The conclusion from this post is simply, ALWAYS SWITCH. <\/p>\n\n\n\n<p>Switching is clearly the better strategy. As demonstrated above, if you played the game a large number of times, the switching strategy would win approximately <span class=\"wp-katex-eq\" data-display=\"false\">67\\%<\/span> of the time whereas sticking with your initial choice would win only <span class=\"wp-katex-eq\" data-display=\"false\">33\\%<\/span> of the time. So, the former strategy doubles your chances of winning a nice new car! <\/p>\n\n\n\n<p>Hopefully, this post has cleared up this debate-inducing problem. Feel free to leave a comment or reach out to me through the contact form <a href=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/contact\/\">here<\/a> if you&#8217;d like to discuss it.<\/p>\n\n\n\n<p>Thanks for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Monty Hall problem came up briefly in a research talk my MRes cohort attended in January. This apparently paradoxical problem causes debate and confusion, even&#46;&#46;&#46;<\/p>\n","protected":false},"author":23,"featured_media":402,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":34,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/posts\/399\/revisions\/452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/media\/402"}],"wp:attachment":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/media?parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/categories?post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/conor-murphy\/wp-json\/wp\/v2\/tags?post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}