{"id":784,"date":"2017-06-05T10:44:46","date_gmt":"2017-06-05T14:44:46","guid":{"rendered":"http:\/\/advancedmathyoungstudents.com\/blog\/?p=784"},"modified":"2017-06-05T14:10:03","modified_gmt":"2017-06-05T18:10:03","slug":"james-tanton-is-on-a-roll","status":"publish","type":"post","link":"https:\/\/advancedmathyoungstudents.com\/blog\/?p=784","title":{"rendered":"James Tanton is on a Roll"},"content":{"rendered":"<p>A good puzzle is a torment.\u00a0 And there is something interesting about probability puzzles in particular:\u00a0 you can&#8217;t always tell how tricky they are until you dig into them for a while.\u00a0 Sometimes\u00a0a\u00a0question that\u00a0seems quite tractable ends up eating up more time and more note paper than you were expecting.<\/p>\n<p>James Tanton has been\u00a0dropping puzzle after tormenting puzzle on Twitter over these past weeks.\u00a0 The first one was interesting \u2013 and I think I have it solved.\u00a0 But he was just getting started.<\/p>\n<p><strong><em>I roll\u00a05 dice every day for a\u00a0year, recording my high score\u00a0each day.\u00a0 At the end of the year, I average those high scores.\u00a0 What average should I expect?<\/em><\/strong><\/p>\n<p>What we need here is the expected value of the high scores. So first we need the probability of each high score.\u00a0\u00a0Then we can multiply each of those\u00a0probabilities by its corresponding score.\u00a0 The sum of those products will be our expected average.<\/p>\n<p><strong>What\u00a0is the probability of\u00a0a\u00a0high score of 1?<\/strong><\/p>\n<p>Well, you would have to get a\u00a01 every time.\u00a0 That probability is (1\/6)<sup>5<\/sup>.\u00a0 So we can write:<\/p>\n<p>P(high score is 1) = (1\/6)<sup>5<\/sup>.<\/p>\n<p><strong>What\u00a0is the probability of\u00a0a\u00a0high score of 2?<\/strong><\/p>\n<p>Now you need a 1 or a 2 every time. That probability is (2\/6)<sup>5<\/sup>.\u00a0 But wait!\u00a0 That includes the cases that turn out to be only 1\u2019s.\u00a0 But we can subtract the probability we just calculated above to get the probability we want:<\/p>\n<p>P(high score is 2) = (2\/6)<sup>5 <\/sup>\u00a0&#8211; (1\/6)<sup>5<\/sup>.<\/p>\n<p><strong>What\u00a0is the probability of\u00a0a\u00a0high score of 3?<\/strong><\/p>\n<p>We use the same plan: find the probability of getting a high score of <em>as much as 3<\/em>, subtract the probability of getting a high score of <em>as much as 2<\/em> \u00a0and we will be left with the probability of getting a high score of exactly 3:<\/p>\n<p>P(high score is 3) = (3\/6)<sup>5 <\/sup>\u00a0&#8211; (2\/6)<sup>5<\/sup>.<\/p>\n<p><strong><strong>And now we have a pattern to follow:<\/strong><\/strong><\/p>\n<p>P(high score is 4) = (4\/6)<sup>5 <\/sup>\u00a0&#8211; (3\/6)<sup>5<\/sup>.<\/p>\n<p>P(high score is 5) = (5\/6)<sup>5 <\/sup>\u00a0&#8211; (4\/6)<sup>5<\/sup>.<\/p>\n<p>P(high score is 3) = (6\/6)<sup>5 <\/sup>\u00a0&#8211; (5\/6)<sup>5<\/sup>.<\/p>\n<p>OK, then we go ahead and multiply each probability by its score and add them up!<\/p>\n<p>When we do, we get an expected value of:<\/p>\n<p>6 \u2013 (5\/6)<sup>5<\/sup> \u2013 (4\/6)<sup>5<\/sup> \u2013 (3\/6)<sup>5<\/sup> \u2013 (2\/6)<sup>5<\/sup> \u2013 (1\/6)<sup>5<\/sup> = 5.431<\/p>\n<p>BUT IS THAT RIGHT? Hmm\u2026<\/p>\n<p>I suppose a short computer program could test this. It\u2019s been years since I have written code.\u00a0 But there\u2019s this program called <em>Excel. <\/em>And it has a random-integer-generating function. [I used Randbetween(1,6) ]<\/p>\n<p><a href=\"http:\/\/advancedmathyoungstudents.com\/blog\/2017\/06\/05\/james-tanton-is-on-a-roll\/tanton-dice-excel-1\/\" rel=\"attachment wp-att-786\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-786\" src=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2017\/06\/tanton-dice-excel-1.png\" alt=\"tanton dice excel 1\" width=\"508\" height=\"215\" srcset=\"https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2017\/06\/tanton-dice-excel-1.png 508w, https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2017\/06\/tanton-dice-excel-1-300x127.png 300w, https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2017\/06\/tanton-dice-excel-1-500x212.png 500w\" sizes=\"(max-width: 508px) 100vw, 508px\" \/><\/a><\/p>\n<p>As you can see, I actually simulated 10 years of dice rolls. And then I did it again.\u00a0 And again. And again&#8230;The last 5 times I did this, I got 5.4055, 5.4127, 5.4389, 5.4477 and 5.4211.<\/p>\n<p>So I believe I am on the right track. Flush with success, I see on Twitter that Mr. Tanton has posted again:<\/p>\n<p><strong><em><strong>\u201cIf I roll a die five times, how many distinct values should I expect to see?\u201d<\/strong><\/em><\/strong><\/p>\n<p>Well, how much harder can this be? Ha!\u00a0 Stay tuned\u2026<a href=\"http:\/\/wp.me\/p4uvY7-cJ\">here it is<\/a>!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A good puzzle is a torment.\u00a0 And there is something interesting about probability puzzles in particular:\u00a0 you can&#8217;t always tell how tricky they are until you dig into them for a while.\u00a0 Sometimes\u00a0a\u00a0question that\u00a0seems quite tractable ends up eating up &hellip; <a href=\"https:\/\/advancedmathyoungstudents.com\/blog\/?p=784\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4uvY7-cE","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/784"}],"collection":[{"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=784"}],"version-history":[{"count":4,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/784\/revisions"}],"predecessor-version":[{"id":793,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/784\/revisions\/793"}],"wp:attachment":[{"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}