{"id":500,"date":"2014-01-27T07:30:17","date_gmt":"2014-01-27T13:30:17","guid":{"rendered":"http:\/\/blogs.ams.org\/blogonmathblogs\/?p=500"},"modified":"2014-01-26T23:34:54","modified_gmt":"2014-01-27T05:34:54","slug":"heads-i-win-tails-you-lose","status":"publish","type":"post","link":"https:\/\/blogs.ams.org\/blogonmathblogs\/2014\/01\/27\/heads-i-win-tails-you-lose\/","title":{"rendered":"Heads I Win, Tails You Lose"},"content":{"rendered":"<p>Last semester, my university put on a production of Tom Stoppard&#8217;s play <em>Rosencrantz and Guildenstern Are Dead<\/em> that got me thinking about the likelihood of flipping a lot of heads in a row. I wrote about it on my other blog, <a href=\"http:\/\/blogs.scientificamerican.com\/roots-of-unity\/2014\/01\/27\/rosencrantz-and-guildenstern-flip-coins\/\">Roots of Unity<\/a>.<\/p>\n<div id=\"attachment_546\" style=\"width: 310px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2014\/02\/coins.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-546\" class=\"size-medium wp-image-546\" alt=\"What are the odds? Image: Evelyn Lamb\" src=\"https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2014\/02\/coins.jpg?resize=300%2C225\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2014\/02\/coins.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2014\/02\/coins.jpg?w=500&amp;ssl=1 500w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-546\" class=\"wp-caption-text\">What are the odds? Image: Evelyn Lamb<\/p><\/div>\n<p>Around the time I saw the play, I read two blog posts about long runs of heads. Ben Orlin of <a href=\"http:\/\/mathwithbaddrawings.com\/\">Math with Bad Drawings<\/a> wrote about <a href=\"http:\/\/mathwithbaddrawings.com\/2013\/10\/21\/the-swindlers-coin\/\">The Swindler&#8217;s Coin<\/a>. It is an imaginary dialogue between a teacher and student in which the teacher, who tells the student that he is flipping a fair coin, gets 30 heads in a row. The student, who believed that the coin was fair, finally accuses the teacher of using a swindler&#8217;s coin, and the teacher admits it. The post points out the naivet\u00e9 with which we often teach probability.<\/p>\n<blockquote><p><i>&#8220;<\/i>Some probability texts ask a similar question:\u00a0&#8216;<i>If a fair coin is tossed 50 times, and comes up heads each time, what is the probability that it comes up heads on the 51st toss?&#8217; <\/i>The &#8216;correct&#8217; answer is \u00bd. A fair coin <i>always<\/i> has a probability \u00bd of coming up heads, because that\u2019s how we define &#8216;fair.&#8217;<\/p>\n<p><i>&#8220;But guess what? If a coin comes up heads 50 times in a row\u2014a 1-in-a-quadrillion event\u2014then that ain\u2019t no fair coin. The question could be paraphrased: &#8216;If I tell you a coin is fair, and then overwhelming evidence accumulates to the contrary, would you still believe me?&#8217; And the &#8216;correct&#8217; answer would be: &#8216;Yes, because I never reconsider my assumptions.'&#8221;<\/i><\/p><\/blockquote>\n<p>Later that week, John Cook wrote about different &#8220;<a href=\"http:\/\/www.johndcook.com\/blog\/2013\/10\/23\/levels-of-uncertainty\/\">levels of uncertainty<\/a>&#8221; on his blog <a href=\"http:\/\/www.johndcook.com\/blog\/\">The Endeavour<\/a>.<\/p>\n<blockquote><p>&#8220;The other day I heard someone say something like the following:<\/p>\n<p><i>&#8220;&#8216;I can\u2019t believe how people don\u2019t understand probability. They don\u2019t realize that if a coin comes up heads 20 times, on the next flip there\u2019s still a 50-50 chance of it coming up tails.&#8217;<\/i><\/p>\n<p>&#8220;But if I saw a coin come up heads 20 times, I\u2019d suspect it would come up heads the next time.<\/p>\n<p>&#8220;There are two levels of uncertainty here. <b>If<\/b> the probability of a coin coming up heads is \u03b8 = 1\/2 and the tosses are independent, then yes, the probability of a head is 1\/2 each time, regardless of how many heads have shown before. The parameter \u03b8 models our uncertainty regarding which side will show after a toss of the coin. That\u2019s the first level of uncertainty.<\/p>\n<p>&#8220;But what about our uncertainty in the value of \u03b8? Twenty flips showing the same side up should cause us to question whether \u03b8 really is 1\/2. Maybe it\u2019s a biased coin and \u03b8 is greater than 1\/2. Or maybe it really is a fair coin and we\u2019ve just seen a one-in-a-million event. (Such events do happen, but only one in a million times.) Our uncertainty regarding the value of \u03b8 is a second level of uncertainty.&#8221;<\/p><\/blockquote>\n<p>In\u00a0<em>Rosencrantz and Guildenstern Are Dead,\u00a0<\/em>the title characters flip heads more than 90 times in a row. I think Ben Orlin, John Cook, and I can all agree that they should probably take a second look at those coins!<\/p>\n<p>Whenever I think about long runs of heads or tails, I remind myself that any individual string of <em>n<\/em> flips is exactly as likely (or unlikely) as any other individual one (if the coins are truly just as likely to come up heads as tails). But if someone says she flipped either 10 heads in a row or HTHHTTTTHT, you&#8217;re going to say the second one is more likely. Shecky Riemann wrote a post about a similar idea with <a href=\"http:\/\/math-frolic.blogspot.com\/2013\/11\/probability-oy-vey.html\">rolls of a die<\/a>. One interesting side note is that while any two individual strings of the same length are equally likely, true randomness looks different from human attempts at randomness. Justin Lanier mentioned this in a post on <a href=\"http:\/\/mathmunch.org\/2013\/07\/16\/lincoln-blinkin-and-fraud\/\">Math Munch<\/a>, and\u00a0<a href=\"http:\/\/blog.mischel.com\/2013\/05\/23\/fun-with-coin-flipping\/\">Jim&#8217;s Random Notes<\/a>\u00a0fleshes this idea out a bit.<\/p>\n<blockquote><p>&#8220;Not only are people terrible at perceiving randomness, they\u2019re also terrible at generating randomness. Asked to flip a coin 100 times and write down the results, many college students will &#8216;cheat&#8217; and forego flipping the coin. They\u2019ll just write down what they think is a random sequence. It\u2019s usually easy to catch them because the idea of run of four or five tails just seems &#8216;not random.&#8217; But getting five heads or five tails in a row is very common given 100 flips of a fair coin.&#8221;<\/p><\/blockquote>\n<p>He wrote a program to figure out how common different length runs are if you flip a coin 100 times. &#8220;If you play with the program a bit, you\u2019ll find that runs of six tails happen more than half the time, runs of seven happen about a third of the time, and you\u2019re\u00a0<em>twice<\/em>\u00a0as likely to get a run of 10 than not get a run of four.&#8221; I was definitely surprised about that!<\/p>\n<p>Finally, Ask a Mathematician\/Ask a Physicist explores whether &#8220;<a href=\"http:\/\/www.askamathematician.com\/2014\/01\/q-if-you-flip-a-coin-forever-are-you-guaranteed-to-eventually-flip-an-equal-number-of-heads-and-tails\/\">If you flip a coin forever, are you guaranteed to eventually flip an equal number of heads and tails?<\/a>&#8221; The physicist takes a probabilistic look at the question and concludes that the answer is yes, but I would argue that with a literal interpretation of the question, the answer is no. I can easily invent infinite series of +1&#8217;s and -1&#8217;s such that no partial sum is 0.<\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div>","protected":false},"excerpt":{"rendered":"<p>Last semester, my university put on a production of Tom Stoppard&#8217;s play Rosencrantz and Guildenstern Are Dead that got me thinking about the likelihood of flipping a lot of heads in a row. I wrote about it on my other &hellip; <a href=\"https:\/\/blogs.ams.org\/blogonmathblogs\/2014\/01\/27\/heads-i-win-tails-you-lose\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n<div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" data-url=https:\/\/blogs.ams.org\/blogonmathblogs\/2014\/01\/27\/heads-i-win-tails-you-lose\/><\/div>\n","protected":false},"author":61,"featured_media":546,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,28],"tags":[134,133,135],"class_list":["post-500","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mathematics-and-the-arts","category-statistics","tag-coin-flips","tag-probability","tag-theater"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/blogs.ams.org\/blogonmathblogs\/files\/2014\/02\/coins.jpg?fit=500%2C375&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p3tW3N-84","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":10,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"predecessor-version":[{"id":549,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/posts\/500\/revisions\/549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/media\/546"}],"wp:attachment":[{"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ams.org\/blogonmathblogs\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}