{"id":577,"date":"2015-12-24T20:33:56","date_gmt":"2015-12-25T00:33:56","guid":{"rendered":"http:\/\/advancedmathyoungstudents.com\/blog\/?p=577"},"modified":"2016-01-01T11:03:31","modified_gmt":"2016-01-01T15:03:31","slug":"3d-visualization-geometric-probability-and-538s-riddler-2","status":"publish","type":"post","link":"https:\/\/advancedmathyoungstudents.com\/blog\/?p=577","title":{"rendered":"3D visualization, Geometric Probability and 538&#8217;s Riddler #2"},"content":{"rendered":"<p>Hello all&#8230;sorry the posts are coming at such long intervals.\u00a0 I am teaching a new class this year &#8212; multivariable calculus! &#8212; and it is taking up lots of time as I try to remember\/recreate\/invent some level of understanding, having last taken the course 30 years ago.\u00a0 But I am having a lot of fun with it, teaching a\u00a0small group of fine (and patient)\u00a0students, learning a lot.<\/p>\n<p>And speaking of things that come at long intervals&#8230;here is a puzzle that was posted on 538.com in their new feature: &#8220;The Riddler&#8221;.\u00a0 This was from week #2:<\/p>\n<p><strong>You arrive at the beautiful Three Geysers National Park. You read a placard explaining that the three eponymous geysers \u2014 creatively named A, B and C \u2014 erupt at intervals of precisely two hours, four hours and six hours, respectively. However, you just got there, so you have no idea how the three eruptions are staggered. Assuming they each started erupting at some independently random point in history, <i>what are the probabilities<\/i> that A, B and C, respectively, will be the first to erupt after your arrival?<\/strong><\/p>\n<p>The full post is at:\u00a0 <a href=\"http:\/\/fivethirtyeight.com\/features\/which-geyser-gushes-first\/\" target=\"_blank\">http:\/\/fivethirtyeight.com\/features\/which-geyser-gushes-first\/<\/a><\/p>\n<p>and a complete solution is in the next week&#8217;s post:<\/p>\n<p><a href=\"http:\/\/fivethirtyeight.com\/features\/how-long-will-your-smartphone-distract-you-from-family-dinner\/\" target=\"_blank\">http:\/\/fivethirtyeight.com\/features\/how-long-will-your-smartphone-distract-you-from-family-dinner\/<\/a><\/p>\n<p>But what I want to discuss is a different way of thinking about the solution than the one posted at 538.\u00a0 I want to use geometric probability.\u00a0 [If you want to solve this on your own, spoilers ahead.]<\/p>\n<p><em><strong>Let&#8217;s start with an easier version of the question&#8230;<\/strong><\/em><\/p>\n<p>Suppose the only geysers were A and B.<\/p>\n<p>If you have just arrived, Geyser A will erupt in x hours, where x is between 0 and 2. And Geyser B will erupt in y hours, where y is between 0 and 4.\u00a0 Intuitively, it seems likely that y will be greater than x.\u00a0 One way to see this is to use geometric probability.\u00a0 Think of every possible outcome as an ordered pair.\u00a0 Then, all possible outcomes can be represented as an area on the coordinate plane.\u00a0 I used Desmos.com to graph the region and also the line y=x, or more precisely, the shaded half-plane y&gt;x.<\/p>\n<p><a href=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/2d-geyser.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-579\" alt=\"2d geyser\" src=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/2d-geyser.png\" width=\"293\" height=\"512\" srcset=\"https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/2d-geyser.png 293w, https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/2d-geyser-171x300.png 171w\" sizes=\"(max-width: 293px) 100vw, 293px\" \/><\/a><\/p>\n<p>Geyser A will erupt first whenever y&gt;x.\u00a0So the probability\u00a0we seek is the area of the part of the box above the x=y line divided by the total area of the box. \u00a0You can just about count boxes to determine that this occurs 6\/8 (or 3\/4)\u00a0of the time.<\/p>\n<p><em><strong>OK then.\u00a0 Now let&#8217;s bring Geyser C back into the problem&#8230;<\/strong><\/em><\/p>\n<p>From the moment you arrive, you know that Geyser C will erupt in z hours, where 0&lt;z&lt;6.\u00a0 But you can still use geometric probability.\u00a0 Each outcome can be thought of as an ordered triple (x,y,z).\u00a0 The space of all outcomes is now a 2 x 4 x 6 rectangular solid.\u00a0 And if you are looking for the probability\u00a0that Geyser A erupts first, you want to slice that solid up with the planes x=y and x=z.<\/p>\n<p>I don&#8217;t know if Desmos can do this kind of thing.\u00a0 But fortunately, Paul Seeburger&#8217;s Multivariable Calculus Exploration applet\u00a0can be used to visualize this problem.\u00a0 You can find the applet here:<\/p>\n<p><a href=\"http:\/\/web.monroecc.edu\/manila\/webfiles\/calcNSF\/JavaCode\/CalcPlot3D.htm\" target=\"_blank\">http:\/\/web.monroecc.edu\/manila\/webfiles\/calcNSF\/JavaCode\/CalcPlot3D.htm<\/a><\/p>\n<p>Note: on my computer, I can only open this page in Firefox.\u00a0 YMMV.<\/p>\n<p>Here is the solid that represents the set of all possible outcomes: <a href=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-581\" alt=\"3d geyser full space\" src=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space.png\" width=\"680\" height=\"705\" srcset=\"https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space.png 680w, https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-289x300.png 289w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><\/p>\n<p>And here is that same solid, cut by the planes x=y and x=z:<a href=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-583\" alt=\"3d geyser full space sliced\" src=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced.png\" width=\"571\" height=\"638\" srcset=\"https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced.png 571w, https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced-268x300.png 268w\" sizes=\"(max-width: 571px) 100vw, 571px\" \/><\/a><\/p>\n<p>We need to find the volume of the part of this box &#8220;to the right&#8221; of the\u00a0x=y plane and &#8220;above&#8221; the x=z plane. It&#8217;s easier to see what we are looking for if you rotate the diagram to\u00a0view it &#8220;from behind&#8221;:<\/p>\n<p><a href=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced-21.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-584\" alt=\"3d geyser full space sliced 2\" src=\"http:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced-21.png\" width=\"526\" height=\"620\" srcset=\"https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced-21.png 526w, https:\/\/advancedmathyoungstudents.com\/blog\/wp-content\/uploads\/2015\/12\/3d-geyser-full-space-sliced-21-254x300.png 254w\" sizes=\"(max-width: 526px) 100vw, 526px\" \/><\/a><\/p>\n<p>In this diagram, the volume defined by points where y&gt;x and z&gt;x can be broken into\u00a0four chunks.\u00a0 I&#8217;ve added the x=2 plane and the z=2 plane to help you see them.<\/p>\n<p>The rectangular solid on the upper left: V = 2x2x4=16<\/p>\n<p>The triangular prism in the front on the lower left: V = (1\/2)x2x2x2=4<\/p>\n<p>The triangular prism in the front on the upper right: V = (1\/2)x2x2x4 = 8<\/p>\n<p>The\u00a0front half of the pyramid on the bottom right: V = (1\/3)(2)(2)(2) = 8\/3<\/p>\n<p>(If you are having trouble seeing the pyramid: in this view, we are looking through its 2&#215;2 base, looking toward its vertex which is 2 units away.)<\/p>\n<p>The probability of Geyser A erupting first is the sum of these volumes divided by the total volume of the box, or:<\/p>\n<p>(16 + 4+ 8 + 8\/3)\/(2x4x6) which reduces to 23\/36.<\/p>\n<p><em><strong>Using a similar method but with different cutting planes, you can find the pictures that will give you the probabilities of Geyser B or Geyser C erupting first.\u00a0 And you do get the same answer that is posted on the Riddler&#8217;s webpage.<\/strong><\/em><\/p>\n<p>You can post questions (or ask\u00a0me in class) if you\u00a0need help with those last two&#8230;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello all&#8230;sorry the posts are coming at such long intervals.\u00a0 I am teaching a new class this year &#8212; multivariable calculus! &#8212; and it is taking up lots of time as I try to remember\/recreate\/invent some level of understanding, having &hellip; <a href=\"https:\/\/advancedmathyoungstudents.com\/blog\/?p=577\">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-9j","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/577"}],"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=577"}],"version-history":[{"count":8,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/577\/revisions"}],"predecessor-version":[{"id":595,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/577\/revisions\/595"}],"wp:attachment":[{"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=577"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=577"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/advancedmathyoungstudents.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=577"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}