{"id":6618,"date":"2021-04-06T11:43:09","date_gmt":"2021-04-06T19:43:09","guid":{"rendered":"https:\/\/www.rknibbe.com\/Wordpress\/?p=6618"},"modified":"2021-07-13T10:32:37","modified_gmt":"2021-07-13T18:32:37","slug":"mvs-was-right-hope-i-am-too","status":"publish","type":"post","link":"https:\/\/www.rknibbe.com\/Wordpress\/archives\/6618","title":{"rendered":"MvS Was Right, Hope I Am Too"},"content":{"rendered":"<p style=\"text-align: justify;\"><a href=\"\/blog\/images\/2021\/April\/FBX.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"\/blog\/images\/2021\/April\/FBX.jpg\" width=\"1000\" height=\"750\"><\/a><span style=\"font-family: verdana, geneva, sans-serif;\"><span style=\"font-size: 18pt;\"><strong>W<\/strong><\/span>ith Covid defeated (we&#8217;ve been vaxed) we tripped up to Fairbanks (aka <em>Squarebanks<\/em>) recently for a long overdue visit with family. The flights to and from were uneventful and Alaska Air even upgraded us to first class both ways. That&#8217;s Happy Wife&#8217;s brother on the right, his bride rear center with the peace sign flanked by their two daughters. They live in a cavernous log home brother Mike chinked himself way back when. We ate lots, drank too much, played board games and walked the trails around the property. They experienced epic snowfall up there this year so you had to be careful not to step off the trail lest you sank in up to your waist.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Their daughters are a delight to hang with. One is off to the U of Montana come Fall, the other is still in high school. They&#8217;re both smart as a whip. The younger daughter does math <a href=\"https:\/\/www.mathcounts.org\/our-story\" target=\"_blank\" rel=\"noopener noreferrer\"><em>for fun<\/em><\/a>. Being reminded of that we got off on the topic of the Monty Hall problem. Actually, I think it was one of the girls who brought it up. A long time ago in a magazine a reader posed a question to Marilyn vos Savant, aka MvS (smart as a whip herself):<\/span><\/p>\n<p style=\"padding-left: 40px;\"><span style=\"font-family: verdana, geneva, sans-serif;\"><em>Suppose you&#8217;re on a game show, and you&#8217;re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what&#8217;s behind the doors, opens another door, say No. 3, which has a goat. He then says to you, &#8220;Do you want to pick door No. 2?&#8221; Is it to your advantage to switch your choice?<\/em><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Marilyn replied the contestant should always switch because doing so gives the contestant a 2\/3rds chance of winning. Most people, even <em>really<\/em> smart people, loudly disagreed with her. Duh, they said, obviously with only two doors left there&#8217;s a 50\/50 chance of being right, i.e. picking the door with the car.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Showoff Marilyn stood her ground, calmly explained why she was correct in a follow-up comment, but still many people couldn&#8217;t bring themselves to accept the truth. In fact, pose this same question to people today and many will insist the answer is 50\/50.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Back to our conversation&#8230; turns out the girls were also in disbelief, though being smart as whips were interested to hear my take on it. I admitted to being among the disbelievers when I first heard this problem. Then, after doing my homework, came to understand why MvS was correct. I diagrammed the problem for the girls on paper, assigned the initial probabilities to the car being behind each door (trivial), randomly picked a door to start a game, then revealed one of the goat doors as Monty Hall always did. I then showed them why the probability of the car being behind the remaining un-chosen door is 2\/3rds, not 50\/50. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Monty_Hall_problem#Simple_solutions\" target=\"_blank\" rel=\"noopener noreferrer\">Good diagram here<\/a>.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">You could see on their faces the light go on! Notice that switching doesn&#8217;t mean the contestant is sure to win, only that on average, over repeated games, doing so wins the car 2\/3rds of the time. The only way you lose with this strategy, of course, is if the car is behind the door you initially selected.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">When we got back home I wrote a simulation to once again prove to myself MvS was right. Here&#8217;s the code (Java)<\/span><\/p>\n<pre class=\"wp-block-preformatted\">import java.util.concurrent.ThreadLocalRandom;\n\npublic class MontyHallSim {\n\t\n\tprivate int goats[] = new int[2];\n\tprivate int prizedoor ;\n\tprivate int guessdoor ;\n\tprivate int goatdoor;\n\tprivate int revealdoor;\n\t\n\tprivate int Rand(int min, int max) {\n\t  return ThreadLocalRandom.current().nextInt(min, max + 1);\n\t}\n\tprivate void Guess() {\n\t  guessdoor = Rand(1,3);\n\t}\n\tprivate void Seed() {\n\t  prizedoor = Rand(1,3);\n\t  if(prizedoor == 1) {\n           goats[0] = 2;\n\t   goats[1] = 3 ;\n\t  } else if (prizedoor == 2) {\n\t   goats[0] = 1;\n           goats[1] = 3 ;\n\t  } else {\n\t    goats[0] = 1;\n\t    goats[1] = 2 ;\n\t  }\n\t}\n\tprivate void Reveal() {\n\t  int goat = Rand(0,1); \/\/ random index into goats array \n\t  revealdoor = goats[goat] ;\n\t  if(revealdoor == guessdoor) {\n\t    revealdoor = goat == 0 ? goats[1] : goats[0] ;\n\t  }\n\t  goatdoor = revealdoor == goats[0] ? goats[1] : goats[0] ;\n\t}\n\tprivate double Run(long games) {\n\t  long wins = 0 ;\n\t  for(int i=0;i&lt;games;i++) {\n            Seed() ; \/\/ randomize goats and prize behind doors\n\t    Guess(); \/\/ randomize contestant's guess\n\t    Reveal(); \/\/ Monty reveals a goat door\n\t    wins += guessdoor == goatdoor ? 1 : 0; \/\/ switch &amp; win!\n\t  }\n\t    return (double)wins\/(double)games ;\n\t}\n\tpublic static void main(String[] args) {\n\t  long ngames = 300000000 ;\n\t  double prob = (new MontyHallSim()).Run(ngames) ; \n\t  System.out.println(\"Probability of winning if you switch       \n          (n=\" + ngames +\"): \" + prob*100.0 + \"%\") ;\n\t}\n}<\/pre>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Compile that and let &#8216;er rip on your computer, say three hundred million times (see <em>ngames <\/em>value). Guess what the output is? <\/span><\/p>\n<p><span style=\"font-family: verdana, geneva, sans-serif;\">Why, it&#8217;s precisely what MvS said it would be<br \/><\/span><\/p>\n<p style=\"text-align: justify; padding-left: 40px;\"><em><span style=\"font-family: verdana, geneva, sans-serif;\">Probability of winning if you switch (n=300000000): 66.665%<\/span><\/em><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Moral of the story: Never bet against MvS.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">What fascinates me is how counterintuitive the right answer is. Way back when I first encountered the problem I was like no way.<\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"font-size: 18pt;\"><strong>&#8230;<\/strong><\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Late last week then we hosted our first dinner party in over a year<\/span><\/p>\n<p style=\"text-align: justify;\"><a href=\"\/blog\/images\/2021\/April\/YouLoseCovid.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium\" src=\"\/blog\/images\/2021\/April\/YouLoseCovid.jpg\" width=\"1200\" height=\"900\"><\/a><span style=\"font-family: verdana, geneva, sans-serif;\">HW spent all day and part of the night before making a truly delicious <a href=\"https:\/\/www.foodnetwork.com\/recipes\/ina-garten\/coq-au-vin-recipe4-2011654\" target=\"_blank\" rel=\"noopener noreferrer\">Coq au Vin<\/a>, served over Polenta with a side of grilled bread. That last was the only part I was directly involved with, except I did have the forethought to de-cellar what turned out to be a sumptuous 2007 Amarone from one of my favorite producers.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Those are our dear friends we did that crazy <a href=\"https:\/\/www.rknibbe.com\/Wordpress\/archives\/6084\" target=\"_blank\" rel=\"noopener noreferrer\">Pittsburgh &#8211;&gt; DC bike ride<\/a> with a couple years ago. All of them are retired. Being we&#8217;re next in line to reach that milestone (ever so close) I pick their brains all the time. I&#8217;ve been working tirelessly pulling together a spreadsheet of information I need to do predictive financial planning for the next thirty years of life (fingers crossed). Because, as our financial advisor says, &#8220;<em>Rod, a goal without a plan is merely a wish.<\/em>&#8221; She&#8217;s right of course. So, god willin&#8217; and the creek don&#8217;t rise it looks like we&#8217;re all set to go. I spend at least a half-day each weekend spinning <em>what-if<\/em> analyses in the spreadsheet. Even with conservative estimates of all the relevant variables (SS, ROI, etc.), and a very generous annual spending budget, we will likely leave money on the table when we exit this life. I don&#8217;t yet know how I feel about that prospect, compared to the <a href=\"https:\/\/www.amazon.com\/Die-Broke-Radical-Four-Part-Financial\/dp\/0887309429\" target=\"_blank\" rel=\"noopener noreferrer\">alternative<\/a> that is. Though I&#8217;m sure our beneficiaries will be thrilled! <\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-family: verdana, geneva, sans-serif;\">Too bad MvS isn&#8217;t still with us, I&#8217;d ask her opinion.<br \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With Covid defeated (we&#8217;ve been vaxed) we tripped up to Fairbanks (aka Squarebanks) recently for a long overdue visit with family. The flights to and from were uneventful and Alaska Air even upgraded us to first class both ways. That&#8217;s Happy Wife&#8217;s brother on the right, his bride rear center with the peace sign flanked [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wikipediapreview_detectlinks":true,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6618","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/posts\/6618","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/comments?post=6618"}],"version-history":[{"count":24,"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/posts\/6618\/revisions"}],"predecessor-version":[{"id":6714,"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/posts\/6618\/revisions\/6714"}],"wp:attachment":[{"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/media?parent=6618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/categories?post=6618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rknibbe.com\/Wordpress\/wp-json\/wp\/v2\/tags?post=6618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}