<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-1920088135580776574</atom:id><lastBuildDate>Sun, 16 Nov 2025 15:06:07 +0000</lastBuildDate><category>probability</category><category>expected value</category><category>how big is that number</category><category>ca$h money</category><category>gambling</category><category>polling</category><category>Trig Paxton Van Palin</category><category>arithmetic mean</category><category>bees do it</category><category>central limit theorem</category><category>fuel economy</category><category>half a baby</category><category>hexagons</category><category>humonga-balls</category><category>infinite monkey theorem</category><category>law of large numbers</category><category>lottery</category><category>new york effing city</category><category>the expected value when you&#39;re expecting</category><category>Harrison Ford conundrum</category><category>Smoot-Hawley Tariff</category><category>Zac Efron</category><category>base rate fallacy</category><category>boys/girls</category><category>cannonball runs</category><category>deal or no deal</category><category>death and taxes</category><category>epimenides trousers</category><category>euler&#39;s formula</category><category>fallacy of the week</category><category>false positive</category><category>free cocktail strategy</category><category>gas mileage</category><category>geometric mean</category><category>googol</category><category>hanson</category><category>harmonic mean</category><category>lepidoptery</category><category>logic</category><category>march madness</category><category>margin of error</category><category>megashoes</category><category>monty hall problem</category><category>mortality rate</category><category>overlapping circles</category><category>paradox</category><category>polygon party</category><category>president obama</category><category>psychogenic dwarfism</category><category>ruth bader ginsburg</category><category>the dying middle class</category><category>thetans</category><category>toyota prius</category><category>we all use math everyday</category><category>weather</category><title>Ask Doctor Math</title><description>All Things Mathematical</description><link>http://doctormath.blogspot.com/</link><managingEditor>noreply@blogger.com (drmath)</managingEditor><generator>Blogger</generator><openSearch:totalResults>25</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-3006536499302917765</guid><pubDate>Wed, 15 Apr 2009 04:21:00 +0000</pubDate><atom:updated>2009-04-14T23:31:29.244-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ca$h money</category><category domain="http://www.blogger.com/atom/ns#">death and taxes</category><category domain="http://www.blogger.com/atom/ns#">probability</category><title>Nothing is Certain but Death and Logarithms</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;I&#39;ve heard that if I wanted to, ahem, &quot;creatively adjust&quot; some numbers, I should use numbers that start with the digit 1 more often.  Why is that?&lt;br /&gt;Inquiring Re. Statistics&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;Dear IRS,&lt;br /&gt;&lt;br /&gt;How timely of you to bring this up!  Indeed, there is a general pattern in the digits typically found in measured quantities, especially those spanning many orders of magnitude, for example: populations of cities, distances between stars, or, say, ADJUSTED GROSS INCOME.  The pattern is that the digit 1 occurs more often as the leading digit of the number, approximately 30% of the time, followed by the digit 2 about 18% of the time, and so on.  The probability, in fact, of having a leading digit equal to &lt;i&gt;d&lt;/i&gt; is equal to &lt;i&gt;log(1+1/d)&lt;/i&gt;, for any &lt;i&gt;d&lt;/i&gt; =1,2,...,9.  This rule is called &lt;a href=&quot;http://en.wikipedia.org/wiki/Benford%27s_law&quot;&gt;Benford&#39;s Law&lt;/a&gt;, named (as is often the case) for the second person to discover it, when he noticed that the pages of the library&#39;s book of logarithms were much dirtier, hence more used, at the front of the book where the numbers began with 1.  In pictures, the distribution of digits looks like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHPSxAOyoSvgnb2F-2U3rlA_fhbMAS74rX68mi1rHsUJJeZ5xrN60tIZqmEJFlWaGFHy5yYv9PifZcmGGdqs0K1MvVcFN9Ouqh0L25SnnESM1fQj17M7Mcg7jXxNmfwX45MkT4Z1d-HX8/s1600-h/compPlot1a.gif&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 287px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHPSxAOyoSvgnb2F-2U3rlA_fhbMAS74rX68mi1rHsUJJeZ5xrN60tIZqmEJFlWaGFHy5yYv9PifZcmGGdqs0K1MvVcFN9Ouqh0L25SnnESM1fQj17M7Mcg7jXxNmfwX45MkT4Z1d-HX8/s400/compPlot1a.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5324770365489833746&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It seems counterintuitive that any digit should be more likely than any other.  After all, if we pick a number &quot;at random,&quot; shouldn&#39;t it have the same probability of being between 100 and 199 as it does of being between 200 and 299, etc.?  If so, the probability of getting a 1 as the first digit would in fact be the same as getting a 2.  However, this turns out to be impossible, and it has to do with a very common misconception about &quot;randomness.&quot;&lt;br /&gt;&lt;br /&gt;The fact of the matter is that there&#39;s actually &lt;i&gt;no way to pick a number uniformly at random without further restrictions&lt;/i&gt;.  So, for example, if I tell you to &quot;pick a random number,&quot; it must be the case that you&#39;re more likely to select some particular number than some other (which ones, however, are up to you.)  Assume this weren&#39;t true, so all numbers are equally likely.  Just to be clear, let&#39;s focus on the positive integers, the numbers 1,2,3,...  Now let &lt;i&gt;p &lt;/i&gt;be the probability of picking any one of them, say the number 1.  Since they&#39;re all supposedly equally likely, this means &lt;i&gt;p &lt;/i&gt;is also the probability of picking 2, and of picking 3, and so on.  So the chance of picking any number between 1 and 10, say, is 10*&lt;i&gt;p&lt;/i&gt;.   Since probabilities are always less than 1, this means &lt;i&gt;p&lt;/i&gt; &lt; 1/10.  OK, well, by the same reasoning, the probability of picking a number between 1 and 1000 is 1000*&lt;i&gt;p&lt;/i&gt;, so &lt;i&gt;p&lt;/i&gt; &lt; 1/1000.  Similarly, &lt;i&gt;p&lt;/i&gt; &lt; 1/1,000,000, &lt;i&gt;p&lt;/i&gt; &lt; 1/(&lt;a href=&quot;http://doctormath.blogspot.com/2009/02/how-big-is-that-number-episode-1.html&quot;&gt;1 googol&lt;/a&gt;), and so on. In fact, it follows that &lt;i&gt; p &lt; &lt;/i&gt; 1/&lt;i&gt;N&lt;/i&gt; for any &lt;i&gt;N&lt;/i&gt;, and the only (non-negative) number that has that property is &lt;i&gt;p = &lt;/i&gt;0.  Ergo, the chance of getting any particular integer is 0, from which it follows (&lt;a href=&quot;http://en.wikipedia.org/wiki/Countable_additivity&quot;&gt;for reasons I won&#39;t get into here&lt;/a&gt;) that the probability of picking an integer &lt;i&gt;at all&lt;/i&gt; is 0, a &quot;contradiction.&quot;  That&#39;s math-speak for &quot;whoops.&quot;  You can only pick an integer uniformly from a &lt;i&gt;finite&lt;/i&gt; &lt;i&gt;set&lt;/i&gt; &lt;i&gt;of possibilities&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;So, what do we mean when we say that a number is &quot;random&quot;?  Well, there are ways for things to be random without being uniformly random.  For example, if you roll a pair of dice, you might say the outcome is &quot;&lt;a href=&quot;http://doctormath.blogspot.com/2009/02/lets-make-deal-or-no-deal.html&quot;&gt;random&lt;/a&gt;,&quot; but you know that the sum is more likely to be 7 than it is to be 2.  Similarly, if you pick a person (uniformly) randomly from the population of the U.S. (note: the population is finite, so that&#39;s OK), you might model his/her IQ as a random quantity with a &lt;a href=&quot;http://en.wikipedia.org/wiki/Normal_distribution&quot;&gt;normal distribution&lt;/a&gt;, a.k.a. a &quot;bell curve,&quot; centered around 100.  The existence of different distributions besides the uniform distribution is the source of a lot of popular misunderstandings about statistics.&lt;br /&gt;&lt;br /&gt;None of that explains where Benford&#39;s Law comes from, of course, but it&#39;s at least an argument why it&#39;s &lt;i&gt;plausible&lt;/i&gt; that the distribution isn&#39;t uniform.  To explain the appearance of the &lt;i&gt;particular&lt;/i&gt; logarithmic distribution of digits I wrote above, we&#39;d need some kind of model for the quantities we were observing, and it can&#39;t just be &quot;the uniform distribution on the positive integers,&quot; because we already showed that there&#39;s no such thing.&lt;br /&gt;&lt;br /&gt;One reasonable idea is that the thing we&#39;re measuring might be &quot;scale invariant.&quot;  That is, if it has a wide range of possible values, it might not matter what size units we use to measure it--we&#39;ll get roughly the same distribution of numbers.  So if we imagine switching from measuring lengths in feet to measuring them in &quot;half-feet,&quot;* say, then anything that gave us a foot-length starting with 1, say 1.2 feet or 1.8 feet, will now give us a half-foot length starting either with 2 or 3, in this case 2.4 and 3.6 &quot;half-feet.&quot;  If the two distributions are the same, then the occurrence of a first-digit 1 must be the same as the occurrence of a first-digit 2 or 3, combined.  By the same reasoning, any quantity initially beginning with a 5, 6, 7, 8, or 9 would now begin with a 1, when doubled.  Similarly, by tripling the scale, measuring in &quot;third-feet&quot; and assuming the same invariance, we&#39;d get a 1 as often as a 3, 4, or 5 put together.  And so on.  By considering every possible scale, this line of reasoning leads you pretty much straight to Benford&#39;s Law.  This scale invariance kind of makes sense if we&#39;re measuring ADJUSTED GROSS INCOME, since incomes vary by so much (so very, very much), whereas something like height wouldn&#39;t exhibit scale invariance, being more tightly distributed around its mean.&lt;br /&gt;&lt;br /&gt;Another perspective is that when we measure things, we&#39;re frequently observing something in the midst of an &lt;i&gt;exponential growth&lt;/i&gt;.  Exponential growth happens all the time in nature, for example, in the sizes of &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/what-mean-means.html&quot;&gt;populations&lt;/a&gt; or SECRET OFFSHORE BANK ACCOUNTS with a fixed (compound) interest rate.  The key feature of a quantity growing exponentially is that it has a fixed &quot;doubling time.&quot;  That is, the amount of time it takes to grow by a factor of 2 is independent of how big it is currently.  For example, let&#39;s assume your illegal bank account  (well not &lt;i&gt;yours&lt;/i&gt;, but &lt;i&gt;one&#39;s&lt;/i&gt;) doubles in value every year and starts off with a balance of $1000.  At the end of year 1, you&#39;d have $2000, at the end of year 2 you&#39;d have $4000, at the end of year 3 you&#39;d have $8000, and so on.  So for the whole first year, your bank balance would start with the digit 1, but during the second year you would have some balances starting with 2 and some with 3.  During the third year, you would have balances starting with 4, 5, 6, and 7.  If we AUDITED your account at some randomly chosen time, we&#39;d be just as likely to see a balance starting with 1 as a balance starting with 2 or 3, combined, and so on.  In other words, we have the same &quot;scale invariance&quot; conditions as before, which lead us back to Benford&#39;s Law.  The same would be true no matter how quickly the account grew; exponential growth sampled at a random time gives us a logarithmic distribution of digits.&lt;br /&gt;&lt;br /&gt;To give you a concrete example, I went through the first 100 powers of 2--1, 2, 4, 8, 16, ...**--and instructed my computer to keep track of just the first digits.  The results, as you can see, conform pretty nicely to Benford&#39;s Law:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbFxlJtzoeVpvKddA28iJeri3agd2nMI6XpLX1yrQrdY4BGvuvF_6Lt27zDWjSuPcUPk_y1WmFGnB8Zjt7_vzXuZQ93LRKXL0Te-b1Hy3QSnUET-aeFyfmjVuPcBgFvZzx2aSyseb5LTs/s1600-h/powersof2.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbFxlJtzoeVpvKddA28iJeri3agd2nMI6XpLX1yrQrdY4BGvuvF_6Lt27zDWjSuPcUPk_y1WmFGnB8Zjt7_vzXuZQ93LRKXL0Te-b1Hy3QSnUET-aeFyfmjVuPcBgFvZzx2aSyseb5LTs/s400/powersof2.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5324769206978588050&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For whatever reason, it appears that Benford&#39;s Law, like TAX LAW, is the law.&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Sounds vaguely &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/in-hole-in-grou31aadnm-vnatoh424.html&quot;&gt;Tolkienesque&lt;/a&gt;, don&#39;t you think?&lt;br /&gt;&lt;br /&gt;**32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 17179869184, 34359738368, 68719476736, 137438953472, 274877906944, 549755813888, 1099511627776, 2199023255552, 4398046511104, 8796093022208, 17592186044416, 35184372088832, 70368744177664, 140737488355328, 281474976710656, 562949953421312, 1125899906842624, 2251799813685248, 4503599627370496, 9007199254740992, 18014398509481984, 36028797018963968, 72057594037927936, 144115188075855872, 288230376151711744, 576460752303423488, 1152921504606846976, 2305843009213693952, 4611686018427387904, 9223372036854775808, 18446744073709551616, 36893488147419103232, 73786976294838206464, 147573952589676412928, 295147905179352825856, 590295810358705651712, 1180591620717411303424, 2361183241434822606848, 4722366482869645213696, 9444732965739290427392, 18889465931478580854784, 37778931862957161709568, 75557863725914323419136, 151115727451828646838272, 302231454903657293676544, 604462909807314587353088, 1208925819614629174706176, 2417851639229258349412352, 4835703278458516698824704, 9671406556917033397649408, 19342813113834066795298816, 38685626227668133590597632, 77371252455336267181195264, 154742504910672534362390528, 309485009821345068724781056, 618970019642690137449562112, 1237940039285380274899124224, 2475880078570760549798248448, 4951760157141521099596496896, 9903520314283042199192993792, 19807040628566084398385987584, 39614081257132168796771975168, 79228162514264337593543950336, 158456325028528675187087900672, 316912650057057350374175801344, 633825300114114700748351602688</description><link>http://doctormath.blogspot.com/2009/04/nothing-is-certain-but-death-and.html</link><author>noreply@blogger.com (drmath)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHPSxAOyoSvgnb2F-2U3rlA_fhbMAS74rX68mi1rHsUJJeZ5xrN60tIZqmEJFlWaGFHy5yYv9PifZcmGGdqs0K1MvVcFN9Ouqh0L25SnnESM1fQj17M7Mcg7jXxNmfwX45MkT4Z1d-HX8/s72-c/compPlot1a.gif" height="72" width="72"/><thr:total>11</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-8846776979267484639</guid><pubDate>Tue, 31 Mar 2009 21:27:00 +0000</pubDate><atom:updated>2009-03-31T14:47:36.184-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">arithmetic mean</category><category domain="http://www.blogger.com/atom/ns#">expected value</category><category domain="http://www.blogger.com/atom/ns#">gambling</category><category domain="http://www.blogger.com/atom/ns#">new york effing city</category><title>Elevator Action</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;How do I figure out whether to take the elevator or the stairs?  The elevator is faster, when it comes, but sometimes I think I end up waiting longer than it would have taken me to just walk.&lt;br /&gt;Regards,&lt;br /&gt;StairMaster&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Excellent question, SM, but we need to clarify what criteria we&#39;re using to decide between the two options.  Some people might generally prefer the stairs because they enjoy the exercise, or maybe they&#39;re worried about the possibility of &lt;a href=&quot;http://www.youtube.com/watch?v=p_bMhNI_TY8&quot; target=&quot;_blank&quot;&gt;being stuck alone in a metal box for 41 hours&lt;/a&gt;.  Some people like the elevator because it&#39;s more social, and you can do that thing where you jump at the very end and it feels like you&#39;re floating.  But from the way you asked, I&#39;m assuming you&#39;re just trying to minimize time, and that&#39;s all you care about.  By the way, what&#39;s the big hurry?  Take time to enjoy the little things, SM; they&#39;re all we have.&lt;br /&gt;&lt;br /&gt;To actually answer the question, we need a model for all of the relevant quantities that we care about.  To keep it general, I&#39;ll use variable names instead of hard numbers, and then we can take a look at some specific examples, and you can apply the theory to your own needs.&lt;br /&gt;&lt;br /&gt;First, there&#39;s the stair option.  Let&#39;s use &lt;i&gt;S&lt;/i&gt; to denote the time it takes to walk.  Since &lt;i&gt;S&lt;/i&gt; doesn&#39;t really change much from trip to trip, we&#39;ll treat it as a constant.  If you wanted to get more sophisticated, you could account for things like how many other people were trying to take the stairs, whether you were carrying something heavy, whether you could slide down the banister, etc.&lt;br /&gt;&lt;br /&gt;The elevator option is the more interesting one.  Let&#39;s let &lt;i&gt;e&lt;/i&gt; be the shortest possible time the elevator could take, say, if it were already there waiting for you and didn&#39;t make any other stops.  Similarly, there&#39;s a maximum time the elevator could take, if it was the greatest possible number of floors away from you and someone had pushed all the buttons, or something.  Denote that time by &lt;i&gt;E&lt;/i&gt;.  (Upper case for the bigger time; lower case for the smaller one.)  Again, we&#39;re treating &lt;i&gt;e &lt;/i&gt;and &lt;i&gt;E&lt;/i&gt; as known quantities and as constants; I encourage you to measure them sometime.  If &lt;i&gt;S &lt;/i&gt; &lt; &lt;i&gt; e&lt;/i&gt;, it&#39;s always faster to take the stairs, no matter what.  If &lt;i&gt;E &lt;/i&gt; &lt; &lt;i&gt; S&lt;/i&gt;, it&#39;s faster to take the elevator, even in the worst case.  The remaining possibility is that &lt;i&gt; e &lt; S &lt; E &lt;/i&gt;, so sometimes one is better, sometimes the other.  It sounds like that&#39;s the situation with your elevator, SM, so we&#39;ll take it as a given.&lt;br /&gt;&lt;br /&gt;Since we don&#39;t know the &lt;i&gt;actual&lt;/i&gt; length of time the elevator would take, we have to treat it as a &lt;i&gt;random&lt;/i&gt; quantity with a value somewhere between &lt;i&gt;e&lt;/i&gt; and &lt;i&gt;E&lt;/i&gt;.  Let&#39;s call the actual time &lt;i&gt;T&lt;/i&gt;.  Here again, we need to consider what information we might have about &lt;i&gt;T&lt;/i&gt; that could tell us what kind of &lt;i&gt;probability distribution &lt;/i&gt;is reasonable to associate to it.  For example, should we expect it to usually be closer to its minimum possible value, &lt;i&gt;e&lt;/i&gt;?  That would make sense if not many other people used that elevator and it usually hung out on the correct floor--say, if we were trying to go up from the ground floor to the 7th floor in an apartment building.  On the other hand, if we were trying to go down from the top floor of a busy office building, it might be more reasonable to expect &lt;i&gt;T&lt;/i&gt; to be closer to its maximum value, &lt;i&gt;E&lt;/i&gt;, more of the time.&lt;br /&gt;&lt;br /&gt;In the absence of any other information, we&#39;ll assume the distribution of &lt;i&gt;T&lt;/i&gt; is &lt;a href=&quot;http://en.wikipedia.org/wiki/Uniform_distribution_%28continuous%29&quot;&gt;&lt;i&gt;uniform&lt;/i&gt;&lt;/a&gt; on the set of times between &lt;i&gt;e&lt;/i&gt; and &lt;i&gt;E&lt;/i&gt;, meaning it&#39;s just as likely to be any value as any other.  Another way of saying this is to say that the probability that &lt;i&gt;T&lt;/i&gt; is &lt;i&gt;less&lt;/i&gt; than any given value, say &lt;i&gt;x&lt;/i&gt; , is proportional to the difference between &lt;i&gt;x&lt;/i&gt; and &lt;i&gt;e&lt;/i&gt;.  For &lt;i&gt;x&lt;/i&gt; = &lt;i&gt;e&lt;/i&gt;, the probability is 0, since &lt;i&gt;e&lt;/i&gt; is the smallest possible time; for &lt;i&gt;x&lt;/i&gt; = &lt;i&gt;E&lt;/i&gt;, the greatest possible time, the probability is 1; for times in the middle, the probability is between 0 and 1.  In pictures, the distribution looks like this (&lt;span style=&quot;font-style: italic;&quot;&gt;a&lt;/span&gt; = &lt;span style=&quot;font-style: italic;&quot;&gt;e&lt;/span&gt;, &lt;span style=&quot;font-style: italic;&quot;&gt;b&lt;/span&gt; = &lt;span style=&quot;font-style: italic;&quot;&gt;E&lt;/span&gt;):&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhLZVG-tE-ON3VrlYFfo8YqudJgnXdtf313jW2cRqOsF6iYsrc7U3WJghv5wlVwrw6ivRMzu9iTCel5Y0Awm4d04bV3e7eMvC5XqDTqhzo_hqtCwpXqE9nEKZWPTAO4qMTeluTLxh-Fzk/s1600-h/800px-Uniform_distribution_PDF.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 300px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhLZVG-tE-ON3VrlYFfo8YqudJgnXdtf313jW2cRqOsF6iYsrc7U3WJghv5wlVwrw6ivRMzu9iTCel5Y0Awm4d04bV3e7eMvC5XqDTqhzo_hqtCwpXqE9nEKZWPTAO4qMTeluTLxh-Fzk/s400/800px-Uniform_distribution_PDF.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5319467980671614850&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As a result, the &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/unexpected-values-part-1.html&quot;&gt;expected value&lt;/a&gt;, or average, of &lt;i&gt;T&lt;/i&gt; is the number halfway in between its minimum and maximum possible values, that is, (&lt;i&gt;e&lt;/i&gt; + &lt;i&gt;E&lt;/i&gt;)/2.  So, in the sense of minimizing expected values, you should take the stairs only if &lt;i&gt;S&lt;/i&gt; &lt; (&lt;i&gt;e + E&lt;/i&gt;)/2; otherwise, you&#39;re better off waiting for the elevator, on average.  As in my discussion of &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/unexpected-values-part-2.html&quot;&gt;the lottery&lt;/a&gt;, though, the expected value may not be the only consideration.  Since the time to take the stairs is a known quantity, it has a variance of 0, and that security may be worth some trade off in expected value.  On the other hand, maybe you like to gamble, SM (I don&#39;t know you that well), in which case you might prefer the thrill of betting on the higher-risk, higher-reward elevator, even if the average time is slightly greater.  Over many trials, though, you&#39;d save time choosing the option with the smallest expected value.&lt;br /&gt;&lt;br /&gt;Just to see how this would play out with actual numbers, I&#39;ll consider a scenario that I frequently encounter when taking the subway. (And you thought this was just about elevators!)  Here, the role of &quot;stairs&quot; will be played by the #1 downtown &lt;a href=&quot;http://www.mta.info/nyct/maps/submap.htm&quot;&gt;local train&lt;/a&gt;, which makes frequent stops every few blocks, and the &quot;elevator&quot; corresponds to the #2 downtown &lt;a href=&quot;http://www.alaskarails.org/sf/film/runaway-train/rt5.jpg&quot;&gt;express train&lt;/a&gt;, making stops only every few stations.  Let&#39;s assume that I&#39;m already on the local train at the 96th Street station, and I&#39;m trying to get to Times Square as quickly as possible.  My options are 1) stay on the local train, which will get to Times Square after some fixed amount of time, or 2) gamble on the express train, which might get there earlier or might not.&lt;br /&gt;&lt;br /&gt;According to the &lt;a href=&quot;http://www.mta.info/nyct/service/pdf/t1cur.pdf&quot;&gt;schedule&lt;/a&gt;, it takes the local train about 10 minutes to get from 96th Street to Times Square.  And the &lt;a href=&quot;http://www.mta.info/nyct/service/pdf/t2cur.pdf&quot;&gt;express train&lt;/a&gt; takes 6 minutes but only runs every 12 minutes (in the middle of the day).  Therefore, the least possible time it could take is 6 minutes, and the greatest possible time is 18 minutes.  Assuming the distribution of times to be uniform between these extremes gives us an average travel time of (6 + 18)/2 = 12 minutes, which is 2 minutes more than the local train.  Hence, to minimize expected value, I should always stay on the #1.  Here, the randomness of the travel time has more to do with how long I have to wait for the train than how long the trip will actually take, and it&#39;s somewhat reasonable to treat this as being uniformly distributed, since the train runs on a regular schedule (every 12 minutes) but &lt;i&gt;I don&#39;t know what time it is currently&lt;/i&gt; relative to that schedule.&lt;br /&gt;&lt;br /&gt;Of course, in practice the situation is more complicated than that.  For example, there are actually two possible express trains I can take (the #2 or the #3), just as there might be two possible elevators you could take, and I&#39;ll take whichever comes first.  If we treated these both as uniformly random variables, independent of each other, then the distribution of the time until the &lt;i&gt;next &lt;/i&gt;train would &lt;span style=&quot;font-style: italic;&quot;&gt;not&lt;/span&gt; be uniform and would, in fact, have a smaller expected value.&lt;br /&gt;&lt;br /&gt;For the numbers I gave above, it actually works out that the #2/#3 express option has the &lt;i&gt;same&lt;/i&gt; expected value, 10 minutes, as the local train.  So it&#39;s back to personal preference to break the tie.  Another interesting variant is to consider how many people you see waiting for the train, elevator, bus, etc. and use that as a way to estimate the amount of time they&#39;ve already been waiting.  For example, if you see 3 people waiting and you know people tend to show up at the rate of 2 per minute, then you could estimate the time already waited at 1.5 minutes, reducing the maximum possible travel time by that same amount and perhaps tipping the balance.&lt;br /&gt;&lt;br /&gt;Hope that helps some, and let me know whether the time you save turns out to be greater than the time spent thinking about the problem.  I&#39;ve got to go now to catch a (local) train.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/03/elevator-action.html</link><author>noreply@blogger.com (drmath)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhLZVG-tE-ON3VrlYFfo8YqudJgnXdtf313jW2cRqOsF6iYsrc7U3WJghv5wlVwrw6ivRMzu9iTCel5Y0Awm4d04bV3e7eMvC5XqDTqhzo_hqtCwpXqE9nEKZWPTAO4qMTeluTLxh-Fzk/s72-c/800px-Uniform_distribution_PDF.png" height="72" width="72"/><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-2345430976392726706</guid><pubDate>Fri, 27 Mar 2009 04:34:00 +0000</pubDate><atom:updated>2009-03-26T21:44:09.361-07:00</atom:updated><title>An Average Screwball</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;I&#39;ve read that Derek Jeter had a lower batting average than David Justice in both 1995 and 1996, but if you combine the two years together Jeter&#39;s average is higher. How is that possible? I don&#39;t get it.&lt;br /&gt;SoxFan04&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Dear SoxFan,&lt;br /&gt;&lt;br /&gt;No other sport seems to bring out the statistics junkies quite like baseball, what with the ERAs and OBPs and WHIPs.* Where else do you find sports fans casually throwing around ratio approximations computed to &lt;a href=&quot;http://en.wikipedia.org/wiki/Batting_average&quot; target=&quot;_blank&quot;&gt;3-digits of accuracy&lt;/a&gt;? I guess it&#39;s all a holdover from cricket; we in the U.S. should at least count ourselves lucky that we don&#39;t have to learn things like the &lt;a href=&quot;http://en.wikipedia.org/wiki/Duckworth-Lewis_method&quot; target=&quot;_blank&quot;&gt;Duckworth-Lewis method&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;So, what you say is true about Jeter and Justice. In 1995, Jeter had a batting average (that&#39;s ratio of hits to at-bats for the baseball-averse) of .250, and Justice&#39;s average was slightly higher at .253. In 1996, Jeter hit a much more respectable .314 but Justice out-paced him again, hitting .321. However, when the results of both years are pooled together (total hits and total at-bats), Jeter&#39;s combined average is .310, versus Justice&#39;s paltry .270. How could this happen, in the most American of sports?&lt;br /&gt;&lt;br /&gt;It&#39;s a particular case of something called Simpson&#39;s paradox, which generally deals with the weird things that can happen when you try to combine averages over different sets of data. See, the source of the confusion is that Jeter and Justice had &lt;i&gt;different numbers of at-bats&lt;/i&gt; in each of the two years, so the reported &quot;averages&quot; really aren&#39;t measuring their performances by the same standard. In 1995, Jeter only had 48 at-bats, whereas Justice had 411. In the following year, the numbers were almost reversed, with Jeter having a whopping 582 at bats to Justice&#39;s 140.&lt;br /&gt;&lt;br /&gt;To see why this matters, consider the following extreme example: Let&#39;s say that I got to act out my childhood fantasy and somehow got drafted into Major League Baseball in the year 1995, but I only got 1 at-bat. Imagine that by some miracle I managed to get a hit in that at-bat (let&#39;s go ahead and say it was the game-winning home run; it&#39;s my fantasy life, OK?). So my batting average for that season would be 1.000, the highest possible. No matter how good Derek Jeter was, he couldn&#39;t possibly beat that average. In fact, let&#39;s assume he had an otherwise incredible year and got 999 hits out of 1000 at-bats, for an average of .999. Still, though, my average is better. Now, as a result of my awesome performance in 1995, let&#39;s say the manager decided to let me have 100 at-bats the following year, but this time, I only managed to get 1 hit. So my average for the second year would be 1/100 = .010, probably the end of my career. Meanwhile, imagine that Jeter got injured for most of that year and only had 1 at-bat, during which he didn&#39;t get a hit. Thus, his average for the second season would be .000, the worst possible. Again, my average is higher. So on paper, it would appear that I was better. However, when you combine all the hits and at-bats, I only got 2 hits out of 101 attempts, for an average of 0.019, whereas Jeter actually had 999 hits out of 1001 at-bats, for an amazing average of .998. My two better seasons were merely the result of creative bookkeeping. The same thing could happen if we split up our averages against right-handed and left-handed pitchers, or at home and away, etc.&lt;br /&gt;&lt;br /&gt;This is part of the reason that baseball records-keepers require a minimum number of at-bats in a season for player&#39;s average to &quot;count.&quot; Otherwise, some player could start his career with a hit and then promptly &quot;retire&quot; with an average of 1.000.&lt;br /&gt;&lt;br /&gt;The phenomenon isn&#39;t just limited to sports, either. Simpson&#39;s paradox rears its ugly head in all kinds of statistical analyses, like the ones in medical studies, for example. It can happen that treatment 1 appears to be more effective than treatment 2 in each of two subgroups of a population, but when you pool all the results together, treatment 2 is better. (For an example, replace &quot;Major League Baseball,&quot; with &quot;a pharmaceutical company,&quot; &quot;at-bats&quot; with &quot;patients,&quot; &quot;hits&quot; with &quot;successful treatments,&quot; &quot;Derek Jeter&quot; with &quot;a rival drug company,&quot; and &quot;childhood fantasy&quot; with &quot;adult nightmare&quot; above.) Again, the key is that the sizes of the groups receiving each treatment have to be different from each other in order for the phenomenon to manifest. If the group sizes (or number of at-bats, or whatever) are held &lt;i&gt;constant,&lt;/i&gt; the paradox disappears, because the higher averages would actually correspond to greater &lt;i&gt;numbers&lt;/i&gt; &lt;i&gt;of successes&lt;/i&gt; in each trial.&lt;br /&gt;&lt;br /&gt;As I discussed in my previous post about &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/what-mean-means.html&quot;&gt;different kinds of averages&lt;/a&gt;, an average is supposed to represent the quantity that if repeated would have the same overall effect as a set of quantities. However, that doesn&#39;t mean the average is the end of the story. Another essential component is how many times that quantity was repeated. If I told you I&#39;d pay you an average of $100 per hour to do some work for me around the house, you&#39;d probably be fairly disappointed if the &quot;work&quot; consisted of 2 seconds of opening a pickle jar (total cost to me: 5.5¢. look on your face: murderous rage.).&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Not to mention RISPs, DICEs, BABIPs, HBPs, &lt;a href=&quot;http://en.wikipedia.org/wiki/Baseball_statistics&quot;&gt;...&lt;/a&gt;</description><link>http://doctormath.blogspot.com/2009/03/average-screwball.html</link><author>noreply@blogger.com (drmath)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-3822388151802500857</guid><pubDate>Tue, 17 Mar 2009 22:13:00 +0000</pubDate><atom:updated>2009-03-18T04:57:51.316-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">expected value</category><category domain="http://www.blogger.com/atom/ns#">how big is that number</category><category domain="http://www.blogger.com/atom/ns#">lottery</category><category domain="http://www.blogger.com/atom/ns#">march madness</category><category domain="http://www.blogger.com/atom/ns#">probability</category><title>How Big is That Number?  Special &quot;March Madness&quot; Episode 2^63.</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;How many possible NCAA basketball tournament brackets are there?  If I just guessed randomly, what are the odds I&#39;d get it exactly right?&lt;br /&gt;BYOBasketball&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Ah yes.  I love March Madness for many reasons:&lt;br /&gt;&lt;br /&gt;1) the &lt;a href=&quot;http://en.wikipedia.org/wiki/Kansas_State_Wildcats&quot; target=&quot;_blank&quot;&gt;wide&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Northern_Michigan_University&quot; target=&quot;_blank&quot;&gt;assortment&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Weber_State_Wildcats#Athletics&quot; target=&quot;_blank&quot;&gt;of&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Arizona_Wildcats&quot; target=&quot;_blank&quot;&gt;team&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/New_Hampshire_Wildcats&quot; target=&quot;_blank&quot;&gt;names&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Davidson_Wildcats_men%27s_basketball&quot; target=&quot;_blank&quot;&gt;and&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Villanova_Wildcats&quot; target=&quot;_blank&quot;&gt;mascots&lt;/a&gt;,&lt;br /&gt;2) Dick Vitale, and&lt;br /&gt;3) it&#39;s the one time of the year when people care about the number 2^63, because that&#39;s the number of possible ways of filling out a tournament bracket prediction.&lt;br /&gt;&lt;br /&gt;Even &lt;a href=&quot;http://thecaucus.blogs.nytimes.com/2008/03/20/obamas-ncaa-bracket/&quot; target=&quot;_blank&quot;&gt;then-future-President&lt;/a&gt; Barack Obama couldn&#39;t resist giving it a try!  Let&#39;s see how it works, baby!&lt;br /&gt;&lt;br /&gt;To begin with, the NCAA officials select 64 teams to play in the tournament (actually 65--there&#39;s a traditional preliminary game to determine the last team in the field, but we&#39;ll ignore that).  They divide the teams up into 4 groups of 16 and then rank the teams within each group, from 1 to 16.  Each group holds a single elimination tournament, with the high-ranking teams pairing off initially against the low-ranking teams, and the 4 winners (the Final Four) go on to play two more games to determine the national champion.  At some point, the players cut down the nets with scissors for some reason.  Predicting the way the entire tournament will unfold (that is, the &quot;bracket&quot;) has become a popular office tradition; legend has it that no one has ever predicted the entire bracket exactly right, although some websites like Yahoo! have offered &lt;a href=&quot;http://tournament.fantasysports.yahoo.com/t1&quot; target=&quot;_blank&quot;&gt;prizes of up to $1 million&lt;/a&gt; if anyone does it.  But if they charged even a penny to play, I wouldn&#39;t take that bet.  Here&#39;s why:&lt;br /&gt;&lt;br /&gt;Each game played has 2 possibilities for a winner.  Considering just the first round of games, of which there are 32, this means the number of possible ways of predicting the winners is 2^32, or 4,294,967,296.  Assuming you had guessed the first round correctly, there would now be 16 games to determine the winner of, so the number of possible predictions for the second round would be 2^16 = 65,536.  And so on.  In the third round, there would be 2^8 = 256 possibilities; in the fourth round, 2^4 = 16; in the fifth round, 2^2 = 4, and in the final game, you&#39;d still have to guess which of the 2 remaining teams would be the champion.&lt;br /&gt;&lt;br /&gt;Altogether then, the number of possible ways to fill out a bracket is 2^32 * 2^16 * 2^8 * 2^4 * 2^2 * 2 = 2^(32+16+8+4+2+1) = 2^63.  Another way to arrive at this number is to consider the fact that in total, 63 of the 64 teams have to lose a game over the course of the tournament, meaning there are 63 total games played.  So, by the same reasoning as before, the number of outcomes of these games is 2^63 = 9,223,372,036,854,775,808, about 9.2 * 10^18.  In words, that&#39;s 9.2 quintillion, a.k.a. 9.2 million trillion.&lt;br /&gt;&lt;br /&gt;How big is that number?&lt;br /&gt;&lt;br /&gt;Well, if you were to write out each bracket prediction on a sheet of standard paper (thickness = .1mm), you would have a stack of paper (9.2 * 10^18 * .1 * .001) = 9.2 * 10^14 meters tall, which is about 6200 times farther than the distance from the Earth to the Sun.  If you stole 1 paperclip (mass approx. 1 gram) for each sheet, you&#39;d end up with 9.2 * 10^18 * 1 * .001 = 9.2 * 10^14 kilograms of paperclips, which is the equivalent weight of 46 billion &lt;a href=&quot;http://hypertextbook.com/facts/2003/MichaelShmukler.shtml&quot; target=&quot;_blank&quot;&gt;blue whales&lt;/a&gt;.  Every person on Earth could have 7 blue whales&#39; worth of paperclips.  If, instead of working, you filled out 1 bracket per second, 24 hours a day, it would take you (9.2 * 10^18)/(60*60*24*365) = 29 million years.  You&#39;d be so busy filling out brackets that you wouldn&#39;t even notice that the tournament had ended millions of years ago, along with all of human civilization!  (Probably.)&lt;br /&gt;&lt;br /&gt;Now, does that mean your odds of picking a perfect bracket are 9.2 quintillion-to-1?  Hold on just a second there, shooter.  That would only be correct if you were assuming that all possible brackets were equally likely to occur.  However, with a little thought, we can probably improve on that assumption considerably.  For example, in the 24 years since the tournament was expanded to include 64 teams, a #1 ranked team has never lost in the first round to a #16 seed.  So, even if we take the ranking as the only meaningful predictor, we can say that some brackets, namely those in which the high-ranked teams always win, are more likely than others.&lt;br /&gt;&lt;br /&gt;Using data I found on &lt;a href=&quot;http://www.hoopstournament.net/&quot; target=&quot;_blank&quot;&gt;www.hoopstournament.net&lt;/a&gt;, I was able to estimate the probabilities of the higher-ranked team winning each game in the tournament based on the results of past years (remind me sometime to talk about estimating bias, will you?), and my guess at the probability of the &quot;no upsets&quot; bracket is 1.64 * 10^-11, so the odds against the occurrence of this bracket are &quot;only&quot; 1.64*10^11 = 164 billion-to-1.  Since we&#39;re assuming that it&#39;s always more likely for the higher ranked team to win any given game, this bracket is our best hope.  Those odds are still pretty long, though.  For comparison, let&#39;s say your ATM code were reset to a random 4 digit number; you&#39;d be about as likely to win the bracket challenge as you would be to  &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/unexpected-values-part-2.html&quot; target=&quot;_blank&quot;&gt;win the Powerball&lt;/a&gt; and then guess the new PIN on the first try (presumably to deposit your winnings).&lt;br /&gt;&lt;br /&gt;Many of you sports fans out there are no doubt hurling expletives at the screen right about now, because, as you know, there are &lt;i&gt;always&lt;/i&gt; some upsets.  I mean, who could forget &lt;a href=&quot;http://en.wikipedia.org/wiki/Ncaa_tournament_upsets&quot; target=&quot;_blank&quot;&gt;Coppin State over South Carolina in 1997&lt;/a&gt;, right?  There&#39;s a bit of an odd paradox here: even though the &quot;no upsets&quot; tournament prediction is the most likely (based on our assumptions), the &lt;i&gt;number of upsets&lt;/i&gt; is more likely to be greater than 0 than otherwise.  In fact, the most likely number of upsets over the course of the tournament, according to my predictions, is about 18.  (Note: I&#39;m including &quot;upsets&quot; like the #9 seed beating the #8 seed--an event that has happened about as often as it hasn&#39;t over the years.)&lt;br /&gt;&lt;br /&gt;So, the most likely scenario is that there are no upsets, and yet the most likely number of upsets is 18.  How can both statements be true?  The answer lies in the fact that we&#39;re not being asked to predict just the number of upsets, but the actual &lt;i&gt;sequence&lt;/i&gt; of events:&lt;br /&gt;&lt;br /&gt;Consider the simpler example of rolling a 6-sided die.  Let&#39;s assume all faces are equally likely, but let&#39;s say we really don&#39;t want any sixes, and that&#39;s all we care about.  We&#39;ll label the six-side as &quot;L&quot; and the other 5 sides as &quot;W.&quot;  So, the chance of winning any particular roll is 5/6.  Not bad.  Now let&#39;s imagine rolling this die 60 times.  Since the most likely occurrence in each roll is that we&#39;ll win, the most likely sequence of 60 rolls is a sequence of 60 wins, with probability (5/6)^60, about 1.77 * 10^-5, roughly 1 in 57,000.  If we put a loss in the sequence in any location (first, second, third, etc.), the probability would go down to (5/6)^59 * (1/6) = 3.54 * 10^-6, which is 5 times less likely.  However, according to basic probability, the number of losses would follow what&#39;s called a &lt;a href=&quot;http://en.wikipedia.org/wiki/Binomial_distribution&quot; target=&quot;_blank&quot;&gt;binomial distribution&lt;/a&gt;, which has its peak (the most likely number) at the value equal to the number of rolls times the probability of losing each one.  In our setup, that&#39;s 60*(1/6) = 10.  If we repeated this experiment a bunch of times, the most common result would be that we&#39;d lose 10 times out of 60.&lt;br /&gt;&lt;br /&gt;What&#39;s going on here is that although the chance of &lt;i&gt;any particular sequence&lt;/i&gt; of dice-rolls containing a loss is &lt;i&gt;less&lt;/i&gt; than the perfect &quot;all wins&quot; sequence, there are so many more &lt;i&gt;possible sequences&lt;/i&gt; with a loss--in fact, there are 60, versus only the 1 perfect sequence--that their probabilities &lt;i&gt;accumulate&lt;/i&gt; to make the chance of having a loss &lt;i&gt;somewhere&lt;/i&gt; greater than not having one anywhere.  And continuing in this manner, you can see that the number of sequences containing 2 losses is even greater, despite the fact that each one is even less likely, and so on.  Eventually, the two effects balance each other and the combined probability maxes out at 10 losses.&lt;br /&gt;&lt;br /&gt;But that&#39;s not what we&#39;re being asked to predict!  In order to win Yahoo!&#39;s bracket tournament or just your office&#39;s measly little pool with a perfect bracket, you&#39;d have to predict the precise sequence of wins and losses.  People resist picking the most likely bracket because it doesn&#39;t &quot;look random enough,&quot;* but really they&#39;re just reducing their chances by several orders of magnitude.&lt;br /&gt;&lt;br /&gt;In a related experiment, if a person is presented with a flashing light that can be either red or green but is red twice as often, and the subject is asked to predict the color of the next flash, most people will &quot;mix it up,&quot; mostly guessing red but occasionally guessing green, because they feel that their predictions need to match the &quot;pattern&quot; of occasionally being green.  They&#39;re correct to think that it&#39;s likely that the light will sometimes be green; their mistake is assuming that they can improve their odds by guessing any particular realization of that notion.  As a result, they generally do &lt;i&gt;worse&lt;/i&gt; in the experiment than lab rats, who will, reasonably enough, just keep betting on red and winning 2/3 of the time.&lt;br /&gt;&lt;br /&gt;And that&#39;s why I&#39;m going with the rat strategy: Louisville, Connecticut, Pittsburgh, and North Carolina in the Final Four, baby!**&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*Or perhaps they feel that they have more information about a given game than the rankings would indicate.  For example, a star player could have been recently injured, or a particular team&#39;s playing style might be well-suited to beating an otherwise better team.  That being said, I think it&#39;s more common for people to just pick the teams they &lt;i&gt;want&lt;/i&gt; to win and find some way to justify that prediction.&lt;br /&gt;&lt;br /&gt;**Personal note: Once, as a nerdy kid who knew nothing about basketball, I employed this strategy in a middle school bracket challenge, picking all four #1 seeds to advance.  And as it happened, I got 3 out of 4 right, more than any of my classmates, because they were all clinging to their inferior human-brained approaches.  Take that, millions of years of evolution!</description><link>http://doctormath.blogspot.com/2009/03/how-big-is-that-number-special-march.html</link><author>noreply@blogger.com (drmath)</author><thr:total>8</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-7889861848234193494</guid><pubDate>Fri, 13 Mar 2009 21:34:00 +0000</pubDate><atom:updated>2009-03-17T20:42:59.256-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">epimenides trousers</category><category domain="http://www.blogger.com/atom/ns#">logic</category><category domain="http://www.blogger.com/atom/ns#">paradox</category><title>You Can&#39;t Handle the Lack of Falsehood!</title><description>Short Round is &lt;a href=&quot;http://www.alt85.com/2009/03/words-words-words.html&quot;&gt;at it again&lt;/a&gt;, calling me out to challenge me to a good old-fashioned Math-Off.*  He&#39;s laid down his best moves, throwing out verbal accusations about his old grandpappy and comparing me to Joaquin Phoenix (?), and now it&#39;s time for me to step up and put him in his place.  The subject at hand was the word &quot;autological&quot;:&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;&lt;i&gt;Q. What does &lt;/i&gt;&lt;i&gt;autological mean?&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;A. Huh, that&#39;s sort of a random question. A word is autological if it has the property it denotes.  For example, &lt;/i&gt;&lt;i&gt;polysyllabic, being itself polysyllabic, is autological because it can be used to describe itself.  &lt;a href=&quot;http://www.segerman.org/autological.html&quot; target=&quot;_blank&quot;&gt;Other examples&lt;/a&gt; include, &lt;/i&gt;&lt;i&gt;unhyphenated, &lt;/i&gt;&lt;i&gt;pronounceable, &lt;/i&gt;&lt;i&gt;abstract, &lt;/i&gt;&lt;i&gt;nonpalindromic, and &lt;/i&gt;&lt;i&gt;adjectival.  The opposite is &lt;/i&gt;&lt;i&gt;heterological: the word &lt;/i&gt;&lt;i&gt;monosyllabic is polysyllabic and therefore not autological, but/therefore it is heterological. (Most words are going to be heterological: like &lt;/i&gt;&lt;i&gt;hairy and &lt;/i&gt;&lt;i&gt;well-dressed.)  Got it?&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;i&gt;Q. Yeah, actually I knew that.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;A.  What, are you testing me?&lt;/i&gt;&lt;/div&gt; &lt;i&gt;Q. No, I have a question about the word and wanted to sort of, you know, set it up first.&lt;/i&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;A. Is the question whether &lt;/i&gt;&lt;i&gt;autological is autological?&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;Q. Why, yes!  That&#39;s exactly what I was going to ask.&lt;/i&gt;&lt;/div&gt; &lt;div&gt;&lt;i&gt;A. Well, let&#39;s take a look.  First let&#39;s see whether &lt;/i&gt;&lt;i&gt;heterological is heterological.  That question is basically a restatement of &lt;a href=&quot;http://en.wikipedia.org/wiki/Russell%27s_paradox&quot; target=&quot;_blank&quot;&gt;Russell&#39;s Paradox&lt;/a&gt; and therefore maybe more the domain of Dr. Math, but as my old grandpappy used to say, &quot;F__k Dr. Math!&quot;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;We&#39;ll see about that!**&lt;br /&gt;&lt;br /&gt;So, Shorty, you&#39;re right about the connection to Russell&#39;s Paradox.  In fact, it&#39;s this very kind of question that almost brought all of math tumbling down in the early part of the 20th century, although it seems to have mostly recovered now.  The real issue at stake here is the idea of &lt;i&gt;sets&lt;/i&gt;, and what possible sets you&#39;re allowed to construct.  When you get down to it, math is really built on a foundation of sets; numbers themselves are just sets in disguise--for example, 0 is actually the empty set, 1 is the set containing the empty set as an element, and so on.  But the word &quot;set&quot; is never formally defined, and can&#39;t be.  If you think about it, this is the only possible way to avoid any circular logic; if &quot;set&quot; were defined in terms of some other words, then those words would themselves need definitions, etc., until we eventually either had an infinite number of words or something was defined in terms of &quot;sets&quot; again.  In English this is OK, because we can eventually just point to things and say &quot;I mean &lt;i&gt;that&lt;/i&gt;!&quot; but in math we don&#39;t have that luxury.  You just try pointing to a set sometime.&lt;br /&gt;&lt;br /&gt;Many people used to take the point of view that you could always construct a set by specifying the &lt;i&gt;properties&lt;/i&gt; of its elements.  So, for example, I could say, &quot;Let &lt;i&gt;A&lt;/i&gt; be the set of all whole numbers between 1 and 10,&quot; or &quot;Let &lt;i&gt;B&lt;/i&gt; be the set of all people with moustaches,&quot; and those sets would make sense.  However, the problem occurs when you start trying to construct sets with &lt;i&gt;self-referential &lt;/i&gt;properties; for example, you might like the set &lt;i&gt;itself&lt;/i&gt; to be a member of itself.  Some sets, like the sets &lt;i&gt;A&lt;/i&gt; and &lt;i&gt;B&lt;/i&gt; above, are clearly not members of themselves (a set can&#39;t grow a moustache), but maybe there are sets that could be, like the &quot;set of all things that aren&#39;t made of glass.&quot;  Unless sets are made of glass (which they aren&#39;t), that set would be a member of itself.  So far, there&#39;s no real paradox, just some weird-looking sets.  However, if you now construct &quot;the set of all sets that are not members of themselves,&quot; we have an honest-to-Gödel paradox on our hands:  Suppose the set exists, and call the set &lt;i&gt;S&lt;/i&gt;.  The question is, Is &lt;i&gt;S&lt;/i&gt; is a member of itself?  If it is, then it cannot be, because it fails the test for membership; therefore, it&#39;s not, so it is.  And it goes on like this, &lt;i&gt;ad infinitum&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;If all of this seems like abstract nonsense to you (you&#39;re probably right, but) consider the following alternate formulations of the paradox and similar paradoxes:&lt;br /&gt;&lt;br /&gt;--Imagine that all the librarians in the country are asked to compile lists of the books in their respective libraries.  Since these lists are written in book-form and are kept in the library, some librarians include the catalogue among their lists of books; others don&#39;t.  Now, imagine that all the librarians send the catalogues to a central library in Washington, where the head librarian makes a master catalogue of all those catalogues which don&#39;t include themselves.  Should the master catalogue include itself?&lt;br /&gt;--For each number, we can write out statements describing the number and find the statement that uses the fewest syllables.  Now, let &lt;i&gt;n&lt;/i&gt; be the number described by the statement, &quot;the least number not describable using fewer than twenty syllables.&quot;  Since this description only contains 19 syllables, &lt;i&gt;n &lt;/i&gt;is describable by fewer than twenty syllables, and thus can&#39;t be equal to &lt;i&gt;n&lt;/i&gt;.&lt;br /&gt;--The barber of Seville, who is a man and is shaven, shaves all men in town who do not shave themselves, and only those men.  Who shaves the barber?  It can&#39;t be someone else, because then he wouldn&#39;t shave himself, so he would have to shave himself, but it can&#39;t be him, either.&lt;br /&gt;--Groucho Marx once said he wouldn&#39;t want to join any club that would have him as a member.  Fine.  But what if he joined &lt;i&gt;every&lt;/i&gt; club that &lt;i&gt;wouldn&#39;t&lt;/i&gt; have him?  Would he be a member of Texarkana Country Club?  If yes, then no; if no, then yes.&lt;br /&gt;--Your question about whether the word &quot;heterological&quot; is heterological, meaning not possessing the quality it denotes, can be rephrased in terms of sets as follows: Let &lt;i&gt;W &lt;/i&gt;be the set of all words which do not possess the quality they denote; a word is heterological if it is a member of &lt;i&gt;W&lt;/i&gt;.  So the question is, then, does &lt;i&gt;W&lt;/i&gt; contain the word meaning &quot;is a member of &lt;i&gt;W&lt;/i&gt;&quot;?  If so, then that word doesn&#39;t belong in &lt;i&gt;W&lt;/i&gt;, therefore it does belong, etc.&lt;br /&gt;&lt;br /&gt;In any event, &quot;Uh-oh&quot; is the correct answer.&lt;br /&gt;&lt;br /&gt;A related paradox is the so-called &quot;liar&#39;s paradox,&quot; also called the &lt;a href=&quot;http://en.wikipedia.org/wiki/Epimenides_paradox&quot; target=&quot;_blank&quot;&gt;Epimenides paradox&lt;/a&gt;, after the famous stand-up comedian who popularized it around 600 B.C.  The joke goes like this: A Cretan walks into a bar and says &quot;All Cretans are liars!&quot;  Rim-shot.  If the guy&#39;s telling the truth, then he&#39;s lying, and &lt;span style=&quot;font-style: italic;&quot;&gt;vice versa&lt;/span&gt;.  A fun variant that I like to use at parties (courtesy of Raymond Smullyan) is this: Put a dollar bill in one of two envelopes.  On the first envelope, write&lt;br /&gt;&lt;br /&gt;1)  &quot;The sentences on both envelopes are false.&quot;&lt;br /&gt;&lt;br /&gt;On the second envelope, write&lt;br /&gt;&lt;br /&gt;2) &quot;The dollar bill is in the other envelope.&quot;&lt;br /&gt;&lt;br /&gt;The first claim can&#39;t be true, by the same reasoning as the liar&#39;s paradox (if it were true, then it would be false, etc.). So therefore, it must be false, right? That means that one of the two statements is true, but, again, it can&#39;t be the first one, so it must be the second. Thus, the dollar bill is in the first envelope.  Imagine your guests&#39; surprise when they open the first envelope and find it empty (because you put the money in the other envelope!)!  Oh, they laugh and laugh.&lt;br /&gt;&lt;br /&gt;Another related paradox is called &quot;Newcomb&#39;s paradox,&quot; which goes like this: Suppose you&#39;re going on a gameshow, and you&#39;ll be presented with 2 boxes, box A and box B.  Your choices are:&lt;br /&gt;&lt;br /&gt;1) take box A and box B&lt;br /&gt;2) take box B only&lt;br /&gt;&lt;br /&gt;You are told that box A contains $1000, and that box B either contains $0 or $1 million.  Seems like an obvious choice, right?  Either way, you stand to gain by taking both boxes.  Here&#39;s the catch, though: the host tells you that somehow (either by clairvoyance, psychological observation, or computer simulation) the producers of the show knew &lt;i&gt;ahead of time&lt;/i&gt; what decision you were going to make, and changed the contents of box B as a result.  If you were going to just take B, they put the million inside; if you were going to take A and B, they put nothing inside B, so you&#39;ll just get $1000.  So, now what?  Assuming you believe their claim, how do you act?&lt;br /&gt;&lt;br /&gt;Now, I wouldn&#39;t be writing all this if there weren&#39;t a way out of this mess.  I&#39;m not ready to give up on math just yet.  Just to warn you, though, the resolution can be scarier than the paradoxes.  Ready, then?  Here goes: the essential answer to all of these puzzles is &quot;You CAN&#39;T!&quot;&lt;br /&gt;&lt;br /&gt;That is, the mathematical wisdom that we now hold to, according to the hallowed &lt;a href=&quot;http://en.wikipedia.org/wiki/Zermelo-Fraenkel_set_theory&quot;&gt;Zermelo-Fraenkel&lt;/a&gt; axioms (sort of the owner&#39;s manual of math), is that there are some sets you just &lt;i&gt;can&#39;t construct&lt;/i&gt;.  So, for example, the set of all sets which don&#39;t contain themselves just isn&#39;t a set.  It&#39;s nothing.  Even though it&#39;s described in language &lt;i&gt;reminiscent&lt;/i&gt; of sets, it does not exist.  The librarian &lt;i&gt;can&#39;t&lt;/i&gt; make a list of all catalogues not referencing themselves; there&#39;s &lt;i&gt;no such thing&lt;/i&gt; as the least number not describable in fewer than twenty syllables; the barber &lt;i&gt;can&#39;t&lt;/i&gt; shave everyone who doesn&#39;t shave himself; Groucho &lt;i&gt;can&#39;t&lt;/i&gt; join every club that won&#39;t allow him; and it&#39;s &lt;i&gt;impossible&lt;/i&gt; to consider all words which don&#39;t refer to themselves.  The producers of The Newcomb&#39;s Paradox Show &lt;i&gt;can&#39;t&lt;/i&gt; (reliably) claim to have predicted your actions, because whatever simulation they had of your brain could not have included the fact that you &lt;i&gt;knew &lt;/i&gt;that they had simulated it!  Or if it did, then it didn&#39;t include the fact that you knew that it knew that you knew...  Again, to put things in the language of set theory, the set of things they claim to know about you &lt;span style=&quot;font-style: italic;&quot;&gt;cannot contain&lt;/span&gt; &lt;i&gt;itself&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;A consequence of all of this is that there are some logical statements that are &lt;i&gt;neither true nor false&lt;/i&gt;.  For example, the statement &quot;the word &#39;heterological&#39; is heterological&quot; is neither true nor false, because assigning it either &lt;a href=&quot;http://en.wikipedia.org/wiki/Truth_value&quot;&gt;truth value&lt;/a&gt; (True or False) would be inconsistent.  Similarly, the statement &quot;the word &#39;autological&#39; is autological&quot; is neither true nor false, because &lt;i&gt;either&lt;/i&gt; truth value would make it consistent with the axioms.  If it were true, then it would be true; if it were false, then it would be false.  Starting from the axioms of set theory, we could never hope to prove either statement.  So in any logical sense, they are meaningless.  And this, by the way, resolves the envelope problem as well, since the flaw in our deduction above was the assumption that statement 1 had to be either true or false.&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;This seems to fly in the face of everything we&#39;ve been taught about truth and falsehood--namely, that &lt;a href=&quot;http://en.wikipedia.org/wiki/Principle_of_bivalence&quot;&gt;statements are always either true or false&lt;/a&gt;.  But consider for a moment, What if &lt;i&gt;that&lt;/i&gt; statement is neither true nor false?  Whoa.  &lt;/div&gt;&lt;br /&gt;In fact, we&#39;re not out of the woods yet, because, as Gödel showed in 1931, the consistency of the axioms &lt;span style=&quot;font-style: italic;&quot;&gt;themselves&lt;/span&gt; is not provable from the axioms.  So it might happen that two perfectly logical deductions could lead to inconsistent conclusions--we can&#39;t prove that it&#39;s impossible.  Later, he died of starvation because he was convinced that someone was trying to poison him.  So, perhaps the best advice I can give is just not to think about these things too much.&lt;br /&gt;&lt;br /&gt;As Tom Cruise said in &lt;i&gt;&lt;a href=&quot;http://www.imdb.com/title/tt0104257/quotes&quot;&gt;A Few Good Men&lt;/a&gt;&lt;/i&gt;, &quot;It doesn&#39;t matter what I &lt;i&gt;believe&lt;/i&gt; [to be consistent with the Zermelo-Fraenkel axioms], it only matters what I can &lt;i&gt;prove&lt;/i&gt; [as a consequence of the Zermelo-Fraenkel axioms]!&quot;&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*A tradition dating back to ancient Greece, when Plato used to take on all challengers with his legendary &lt;a href=&quot;http://plato-dialogues.org/faq/faq009.htm&quot;&gt;taunt&lt;/a&gt;, &quot;αγεωμετρητος μηδεις εισιτω.&quot;&lt;br /&gt;&lt;br /&gt;**Listen, what happened between me and your grandfather (and grandmother) happened a long time ago and is really none of your business.</description><link>http://doctormath.blogspot.com/2009/03/you-cant-handle-lack-of-falsehood.html</link><author>noreply@blogger.com (drmath)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-3864168124519309002</guid><pubDate>Mon, 09 Mar 2009 05:29:00 +0000</pubDate><atom:updated>2009-03-10T11:45:04.625-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">law of large numbers</category><category domain="http://www.blogger.com/atom/ns#">lepidoptery</category><category domain="http://www.blogger.com/atom/ns#">probability</category><category domain="http://www.blogger.com/atom/ns#">weather</category><title>Prob(Rain and not(Pour))=0</title><description>&lt;i&gt;Dear Doctor Math,&lt;br /&gt;What does 40% chance of precipitation mean?&lt;br /&gt;Dr. Anonymous, Ph.D., J.D.&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;Dear Dr. Anonymous,&lt;br /&gt;&lt;br /&gt;This is a tricky one, and it confuses a lot of people.  First, some wrong answers, courtesy of the Internet:&lt;br /&gt;&lt;br /&gt;1) &quot;It will be expected to rain, but the significant chance of rain occurs in only 40 percent of the studied geographical area.&quot;&lt;br /&gt;&lt;br /&gt;2) &quot;It will definitely rain, but only for 40% of the day.&quot;&lt;br /&gt;&lt;br /&gt;3) &quot;4 out of 10 meteorologists think it will rain.&quot;&lt;br /&gt;&lt;br /&gt;4) &quot;40% or below means it won&#39;t rain; 70% and above means it will.&quot;&lt;br /&gt;&lt;br /&gt;5) &quot;There is a 40% chance of precipitation somewhere in the forecast area at some point during the day.&quot;&lt;br /&gt;&lt;br /&gt;Nope; nope; nope; definitely not; almost, but no.  Who would have thought there could be so many different incorrect ways to interpret such a simple statement?  We can dismiss numbers 3 and 4 right away--meteorologists aren&#39;t generally in the business of taking surveys of each other, and they wouldn&#39;t bother with the whole percentage thing if they had a definite opinion either way.  The others are tempting, but none get it exactly right.  Don&#39;t fret if you found yourself agreeing with one of them, though; according to &lt;a href=&quot;http://www.mpib-berlin.mpg.de/en/mitarbeiter/gigerenzer/pdfs/RainFinal.pdf&quot;&gt;this study&lt;/a&gt; in the journal &lt;i&gt;Risk Analysis&lt;/i&gt;, respondents from five major cities all over the world overwhelmingly preferred numbers 1, 2  and 5 to the correct answer, which, according to &lt;a href=&quot;http://www.srh.noaa.gov/ffc/html/pop.shtml&quot;&gt;The National Weather Service&lt;/a&gt; and the &lt;a href=&quot;http://www.weatheroffice.gc.ca/mainmenu/faq_e.html#weather8&quot;&gt;Canadian Weather Office&lt;/a&gt;, is this:&lt;br /&gt;&lt;br /&gt;&quot;The probability of precipitation (POP) is the chance that measurable precipitation (0.2 mm of rain or 0.2 cm of snow) will fall &lt;span class=&quot;bold&quot;&gt;on any point&lt;/span&gt; of the forecast region during the forecast period.&quot;&lt;br /&gt;&lt;br /&gt;In your example, a 40% chance of rain means the forecaster has determined that the probability is 40% that you will get rained on at some point during the forecast period, usually a day in length (some forecasts include hour-to-hour predictions, but the same idea applies--either way, interpretation 2 is out).  But even that&#39;s kind of a circular definition--a 40% chance means the chance is 40%--and it doesn&#39;t explain where the numbers come from in the first place.  To unpack things a little more, we should talk about how weather prediction works and why uncertainty is necessarily involved.&lt;br /&gt;&lt;br /&gt;To begin with, meteorologists are always collecting data, tons and tons of it, using extremely sensitive instruments both on the ground and in the upper atmosphere, via weather balloons.  These instruments measure a whole array of weather conditions including temperature, humidity, wind speed and direction, pressure, dew point (whatever that is), and others.  Then, the meteorologists feed all of that information into huge computer simulations, which use a combination of historical data and physical models (for example, equations of fluid dynamics) to predict the course of events over the next few days.  Presumably, the models include the movements of butterflies, because, as I understand it, they are the source of basically all weather phenomena.  Why the uncertainty, then?  Will all that super technology, why can&#39;t they just predict the future?&lt;br /&gt;&lt;br /&gt;Well, as I discussed in my &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/lets-make-deal-or-no-deal.html&quot;&gt;previous post&lt;/a&gt; about the Monty Hall problem, there are many complex systems in the world which perhaps &lt;i&gt;could&lt;/i&gt; be described exactly by massive systems of equations but which we as humans lack the computational &lt;i&gt;power&lt;/i&gt; to fully comprehend.  And weather is right up there with the most complex systems around.  Part of what makes it so difficult to predict is its susceptibility to &lt;i&gt;non-linear feedback&lt;/i&gt;, meaning the evolution of the system depends very sensitively on its current state.  As a result, even minuscule differences in initial conditions will, with enough time, accumulate into larger differences and eventually produce radically big differences in the outcome.  To give you some perspective, scientists have &lt;a href=&quot;http://www.aip.org/history/climate/chaos.htm#M_10_&quot;&gt;known&lt;/a&gt; since the 1960s that even a difference of 0.000001 in initial measurements could lead to vastly different weather conditions after a period of only a week.  After a few weeks, you can basically forget about it--in order to predict the weather in any meaningful way, you&#39;d need a complete understanding of the position of every atom in the universe.  In the lingo of the 1990s, weather systems are a classic example of &lt;i&gt;chaos&lt;/i&gt;, due to their sensitive dependence on initial conditions.  Jeff Goldblum explained it all before almost being eaten by a T-Rex.&lt;br /&gt;&lt;br /&gt;What makes this sensitive-dependence business such a bummer is that even the most expensive weather-measurement instruments necessarily have some amount of &lt;i&gt;error&lt;/i&gt;.  For example, a device that measures humidity might detect the presence of water, maybe even down to the last molecule, but that doesn&#39;t mean that other patches of nearby air have that same water content.  The instrument is kind of like a &lt;a href=&quot;http://doctormath.blogspot.com/2008/10/poll-to-poll.html&quot;&gt;pollster&lt;/a&gt;, asking the air how it&#39;s planning to &quot;vote&quot; in the upcoming &quot;election,&quot; but it can&#39;t &quot;poll&quot; everyone, because there are something like &lt;a href=&quot;http://en.wikipedia.org/wiki/Ideal_gas_equation&quot;&gt;10^24&lt;/a&gt; &quot;registered voters&quot; in every cubic foot of air.  And let&#39;s face it, some of them are just &quot;crazy.&quot;  Failing to account for even a small number of these leads to enough initial uncertainty that prediction becomes more or less impossible.  One of the more disturbing things I came across in the course of researching this post was the &lt;a href=&quot;http://www.theweatherprediction.com/issues/6/&quot;&gt;advice to meteorologists&lt;/a&gt; that they should speak in certainties, because &quot;People need to plan for what they need to do. People do not like to be unsure of what will happen.&quot;  Well, I&#39;m sorry, people, but that&#39;s just life.&lt;br /&gt;&lt;br /&gt;The output of all these models, then, is just an estimate of the &lt;i&gt;plausibility&lt;/i&gt; of the occurrence of rain, just as the statement &quot;the chance of rolling a fair die and getting a 3 is 1/6&quot; is an estimate of that event&#39;s plausibility.  With enough identical trials, one could perhaps judge whether the estimate had been correct, since the frequency of occurrence should converge to its probability (according to the &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/unexpected-values-part-1.html&quot;&gt;Law of Large Numbers&lt;/a&gt;).  However, that whole idea is kind of inapplicable here, because it&#39;s impossible to observe multiple independent instances of the same exact weather conditions for the same place at the same time.  What would it even mean to say, &quot;Out of 100 instances when conditions were exactly like this in New York on March 8, 2009, it rained in about 40&quot;?*  One of the persistent fallacies regarding weather prediction is that it is frequently &quot;wrong.&quot;  But how can an estimate of uncertainty be wrong?  Even unlikely events do occasionally occur--consider 10 flips of a coin; any 10-flip sequence has probability 1/1024 of occurrence, but one of them has to happen.  It doesn&#39;t mean the probability estimate was wrong.   Bottom line, I&#39;ll take the National Weather Service over my uncle&#39;s &quot;trick knee&quot; any day.&lt;br /&gt;&lt;br /&gt;So, the complexity of weather and the imprecision of measurement is one source of uncertainty, but there&#39;s actually another one: the weatherman/weatherwoman doesn&#39;t know &lt;i&gt;where&lt;/i&gt; &lt;i&gt;you are &lt;/i&gt;in his/her forecast area.  See, the weather forecast covers a fairly large area (like a whole zipcode), and inside that area there are lots of measurement stations, each of which could detect precipitation during the day.  Even &lt;i&gt;if &lt;/i&gt;a meteorologist knew &lt;i&gt;for a fact&lt;/i&gt; that it was going to rain in exactly 40% of the area (and even knew where, too), he/she &lt;i&gt;still&lt;/i&gt; would tell you the chance of it raining on &lt;i&gt;you&lt;/i&gt; was 40%, since as far as he/she knows, you could be anywhere in town.  In a way, interpretation 1 above is a &lt;i&gt;possibility&lt;/i&gt;, although it&#39;s not by any means the only one.  For example, on the other extreme, it could be that the weatherperson thinks that there&#39;s a 40% chance it&#39;s going to rain &lt;i&gt;everywhere&lt;/i&gt; and a 60% chance it&#39;s not going to rain &lt;i&gt;anywhere&lt;/i&gt;, in which case it doesn&#39;t matter at all where you are--your chance of getting rained on is 40%.  I can&#39;t climb inside Al Roker&#39;s head (unfortunately) nor do I have access to his computer models, but most likely, I think the truth is some mixture of these ideas--the 40% figure accounts for both the probability of rain at all &lt;i&gt;and&lt;/i&gt; the distribution of rain if it occurs.&lt;br /&gt;&lt;br /&gt;This, by the way, is what&#39;s wrong with interpretation 5 above, in case you were wondering; there&#39;s a subtle difference between saying &quot;the probability of rain at any given point&quot; versus &quot;the probability of rain at some point,&quot; assuming that it&#39;s possible that it could rain in some places and not rain in others.  Think of it this way: if I randomly chose to send an Applebee&#39;s gift card to one of my parents for Purim, the probability of any &lt;i&gt;given&lt;/i&gt; parent (either Mom Math or Dad Math) getting the card would be 50%, but the probability of &lt;i&gt;some&lt;/i&gt; parent getting the card would be 100% (I&#39;m definitely sending it to someone).  Another way to phrase it would be to say that if I picked a parent at random after giving out the card, the chance that I would pick the person with the card would be 50%.&lt;br /&gt;&lt;br /&gt;In the end then, a more precise definition of what it means to say, &quot;There&#39;s a 40% chance of rain&quot; would be something like:&lt;br /&gt;&lt;br /&gt;&quot;Given all available meteorological/&lt;a href=&quot;http://en.wikipedia.org/wiki/Lepidoptery&quot;&gt;lepidopteric&lt;/a&gt; information, subject to measurement error and uncertainty, I estimate the chance of a location selected uniformly at random from the forecast area receiving any measurable precipitation during the day at 40%.&quot;&lt;br /&gt;&lt;br /&gt;Maybe a little too wordy for morning drive-time, though.&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;*Side note: it did actually rain today, and Dr. Math chose not to bring an umbrella despite a forecast of &quot;80% chance of rain.&quot;  Sometime you have to roll &lt;a href=&quot;http://en.wikipedia.org/wiki/Craps#Multi_roll_bets&quot;&gt;the hard 6&lt;/a&gt;.</description><link>http://doctormath.blogspot.com/2009/03/probrain-and-notpour0.html</link><author>noreply@blogger.com (drmath)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-4493109933266643584</guid><pubDate>Wed, 04 Mar 2009 02:44:00 +0000</pubDate><atom:updated>2009-03-08T19:46:46.198-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">bees do it</category><category domain="http://www.blogger.com/atom/ns#">euler&#39;s formula</category><category domain="http://www.blogger.com/atom/ns#">hexagons</category><category domain="http://www.blogger.com/atom/ns#">polygon party</category><title>Wholly Whexagons, continued</title><description>&lt;a href=&quot;http://doctormath.blogspot.com/2009/02/wholly-whexagons.html&quot;&gt;Last time&lt;/a&gt;, on Ask Doctor Math:&lt;br /&gt;&lt;br /&gt;&quot;... it&#39;s true that hexagons do make an appearance in a large variety of different contexts.&quot;&lt;br /&gt;&lt;br /&gt;&quot;Primarily, I&#39;m referring to &lt;i&gt;regular&lt;/i&gt; hexagons--hexagons with 6 equal sides...&quot;&lt;br /&gt;&lt;br /&gt;&quot;... by putting a bunch of identical hexagons together as tiles, we can cover an entire plane surface.&quot;&lt;br /&gt;&lt;br /&gt;&quot;... this way of packing circles has the property of being &lt;i&gt;optimal&lt;/i&gt;...&quot;&lt;br /&gt;&lt;br /&gt;&quot;... hexagon madness...&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And now, the conclusion!&lt;br /&gt;&lt;br /&gt;While regular hexagons have all those great qualities that make them perfect for the needs of bees and frat-boys alike, it happens that irregular (that is, not necessarily equal-sided) hexagons have a somewhat amazing property, too.  That is, in some sense they&#39;re the &lt;i&gt;average&lt;/i&gt; &lt;i&gt;random&lt;/i&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;polygon&lt;/span&gt;. What I mean here is that if we generate a random sectioning of a flat surface into a large number of polygonal shapes, the average number of sides per polygon will be about 6.  (Side note: this, &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/unexpected-values-part-3.html&quot;&gt;of course&lt;/a&gt;, doesn&#39;t mean that there actually &lt;span style=&quot;font-style: italic;&quot;&gt;are&lt;/span&gt; any hexagons; it could be that the shapes are composed of equal parts squares and octagons, say, but in practice, this is unlikely.)&lt;br /&gt;&lt;br /&gt;First, we should be clear on some terminology: a &quot;polygon,&quot; from the Greek &quot;poly&quot; = &quot;many&quot; and &quot;gon&quot; = &quot;side,&quot; is a collection of points connected together by line segments that enclose an area of the plane. The points are called &quot;vertices&quot; (singular &quot;vertex,&quot; not &quot;vertice&quot;!), and the segments are called &quot;sides&quot; of the polygon. Notice that it&#39;s always true that polygons have the same number of sides as vertices. When we put some polygons together in the plane, their sides are now called &quot;edges,&quot; except if two sides overlap each other, we only count that as one edge. Also, when vertices overlap each other, we only count that as one vertex.  For example:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9YntJ5OYkgYG7_cWz2x2-v6B4K9QaG4tA8TZl24qxwyExEyFnsPRmpsBo2bDysMhu4OxnJ1U6aEe59fIugEQz3i0DFdNgyGY518rMCwFUexXb7aRKK6m1MFFQCleZ6Ln59VX4dpOxzD4/s1600-h/polys1.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 360px; height: 329px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9YntJ5OYkgYG7_cWz2x2-v6B4K9QaG4tA8TZl24qxwyExEyFnsPRmpsBo2bDysMhu4OxnJ1U6aEe59fIugEQz3i0DFdNgyGY518rMCwFUexXb7aRKK6m1MFFQCleZ6Ln59VX4dpOxzD4/s400/polys1.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309916278764174690&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Now, before I demonstrate that hexagons are the average, I&#39;ll need to lay out a couple of house rules for generating these random polygons:&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;br /&gt;Rule 1.&lt;/span&gt;  All the vertices of the shapes line up with each other, so no brick-patterns, like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHU7QR_CLx5MaA_UeZ8CPxBhslJro552izmYjgLgwDF3XKAdwoSrjCWfPq3249UmQ7Eq7b2_w_GcieUREn7qGbY9Bt1Rt-Shs3sXOAeYkXUNtinWMVmZsy2Rl8iSB19s8tzY2ELd4R34s/s1600-h/Wallpaper_group-cmm-1.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 272px; height: 272px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHU7QR_CLx5MaA_UeZ8CPxBhslJro552izmYjgLgwDF3XKAdwoSrjCWfPq3249UmQ7Eq7b2_w_GcieUREn7qGbY9Bt1Rt-Shs3sXOAeYkXUNtinWMVmZsy2Rl8iSB19s8tzY2ELd4R34s/s320/Wallpaper_group-cmm-1.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307716318818653122&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is disallowed because it has a vertex of one brick in the middle of the side of another brick.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Rule 2.&lt;/span&gt;  Every vertex is the junction of exactly 3 polygons (except for a few on the boundary, which we&#39;ll ignore).&lt;br /&gt;&lt;br /&gt;Now, why are these reasonable?  Well, the most common setting for this kind of random polygon-generation is the formation of cracks in some surface, like mud or peanut brittle:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjikY9p0UqgRbgk7Qhqq_f8eL18MkicFFwQfs8mgCYqRHdxueJtfIj-dl4XZhdPUocxfJKzjdazgSW5qiwL79sz5pXVonfj5qeQMsomUYYWqPVxwT5K5XSlQVqKLq357d8-_P_exYUtMPg/s1600-h/Giants_causeway_closeup.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 256px; height: 192px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjikY9p0UqgRbgk7Qhqq_f8eL18MkicFFwQfs8mgCYqRHdxueJtfIj-dl4XZhdPUocxfJKzjdazgSW5qiwL79sz5pXVonfj5qeQMsomUYYWqPVxwT5K5XSlQVqKLq357d8-_P_exYUtMPg/s400/Giants_causeway_closeup.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309917348810247602&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;(Note: we&#39;re approximating a crack here as a straight line, which takes some imagination.)&lt;br /&gt;&lt;br /&gt;Rule 1 essentially states that no cracks spontaneously form in the middle of already existing sides; instead, they emanate from junctions between existing cracks.  This is reasonable because a junction between cracks is likely to be a weaker point in the surface than any point along an existing crack.  Another way to think about it is that cracks occasionally &lt;span style=&quot;font-style: italic;&quot;&gt;split&lt;/span&gt; into more than one crack, but when they do, both cracks generally change direction, instead of one continuing on like nothing had happened.  In pictures, this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH4DKj5KRy22s3Ny891pg6xKhdkTo22hml_rXjgEe6Jo8v9QQ-TPmCK4Bnoh_61Xr8u9SHU-p-Rj8fDDGHTirsskbE9tlkTcUJyZ2AJny5Zcu-Xa1aNriG2HBhGEE7FnaeIbGaqXGfrPk/s1600-h/polys2.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 261px; height: 193px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH4DKj5KRy22s3Ny891pg6xKhdkTo22hml_rXjgEe6Jo8v9QQ-TPmCK4Bnoh_61Xr8u9SHU-p-Rj8fDDGHTirsskbE9tlkTcUJyZ2AJny5Zcu-Xa1aNriG2HBhGEE7FnaeIbGaqXGfrPk/s400/polys2.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309919128307085666&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;is much more likely than this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhevNei6XRsF5FamJ18hCdOmNad4fXdOWeD6CCPgFEZfV5BAVtoXdhcB6f6NLCBdWS5YHeisLQ1W9ZNJoywj4TkYmwHDYZF-qtiEjrncjLg2zx7MUJ-Gs6qWHylCp9OLQ15i3cDKPBL9iU/s1600-h/polys3.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 334px; height: 161px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhevNei6XRsF5FamJ18hCdOmNad4fXdOWeD6CCPgFEZfV5BAVtoXdhcB6f6NLCBdWS5YHeisLQ1W9ZNJoywj4TkYmwHDYZF-qtiEjrncjLg2zx7MUJ-Gs6qWHylCp9OLQ15i3cDKPBL9iU/s400/polys3.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309919271086952274&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Similarly, rule 2 states that cracks tend to only split off into pairs.  To see why that&#39;s reasonable, imagine if a crack were trying to split into 3 cracks.  If any one of the three were just the slightest bit late to form, it would end up splitting off from one of the already existing 2 cracks, instead of the original one.  In pictures, again, this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQahTmwjCM19xgyvHvWEKCDFhyphenhyphenG9zeqsI1X8xBwB3FwTBxHqG5AItr5MnOj2Q4SI2mDhE843tCeYX6JfMGLYbHrbh6mJ77QCNmlz9rG7XR3_RTWQaRFt3ZQFjM5EZpyvvtq7YWoerzjbY/s1600-h/polys4.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 237px; height: 168px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQahTmwjCM19xgyvHvWEKCDFhyphenhyphenG9zeqsI1X8xBwB3FwTBxHqG5AItr5MnOj2Q4SI2mDhE843tCeYX6JfMGLYbHrbh6mJ77QCNmlz9rG7XR3_RTWQaRFt3ZQFjM5EZpyvvtq7YWoerzjbY/s400/polys4.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309920674907488210&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;is much more likely to occur naturally than this:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihF6vfdLs-rQZgIrtnlIG0fsnQRoJJvlkAlAV0jiNH96PolYhVXL9ZMxOBOl4oyg1IMsY6DJ4upBLTbU1KJgMPBXGzwbhYAzI3uK4kG26lHETmVUgVYYrikqkpzlox0pk6wz3ht2w4Yi0/s1600-h/polys5.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 246px; height: 171px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihF6vfdLs-rQZgIrtnlIG0fsnQRoJJvlkAlAV0jiNH96PolYhVXL9ZMxOBOl4oyg1IMsY6DJ4upBLTbU1KJgMPBXGzwbhYAzI3uK4kG26lHETmVUgVYYrikqkpzlox0pk6wz3ht2w4Yi0/s400/polys5.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309920727037523346&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There is actually physics that could back me up here, but for now we&#39;ll just take these as givens.&lt;br /&gt;&lt;br /&gt;It turns out that these same rules make sense in other settings, as well--for example(s), the formation of soap bubbles:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFFlO98odRkF4RtAAycTV7X_ZNn1OWxXhhC7lEczsZHMMImoLLpCGMml-YR1dCofI5tsf56i2JzzYzXcdUANfeO48BzJ4WNt2a5vONEp8jSrv-U3i9t0hHZW9rZAzkDxGB18G7OSdhPP8/s1600-h/Soapbubbles1b.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 245px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFFlO98odRkF4RtAAycTV7X_ZNn1OWxXhhC7lEczsZHMMImoLLpCGMml-YR1dCofI5tsf56i2JzzYzXcdUANfeO48BzJ4WNt2a5vONEp8jSrv-U3i9t0hHZW9rZAzkDxGB18G7OSdhPP8/s400/Soapbubbles1b.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309926976806159570&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;the shape of storm clouds, like this one on Saturn:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh253YDtwZL1BP5pGFTsMaYirM28ZKtFww4U01afXtSQRnNSyJSOfUc4lfQb3fnV95vB20avHC6fmHwyjJiJ2d5Vz3XBEOfQWVY4WYXN_jCFSoKBnnc938WEV3czOam0wBiVnq0qv7hvkc/s1600-h/688px-Saturn_hexagonal_north_pole_feature.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 348px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh253YDtwZL1BP5pGFTsMaYirM28ZKtFww4U01afXtSQRnNSyJSOfUc4lfQb3fnV95vB20avHC6fmHwyjJiJ2d5Vz3XBEOfQWVY4WYXN_jCFSoKBnnc938WEV3czOam0wBiVnq0qv7hvkc/s400/688px-Saturn_hexagonal_north_pole_feature.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309927300709207682&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;the sections on a tortoise shell:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPt60PNYkcyFQF2M2nh6iDor3dmExVVe2T1oKHH1dbLvmBxvoDPIi07hW-2PWxwC8QdS2te0wHsZSFqEoNrH8ZVKCDUNXcPEJsXlCUQm490PskrVfyRHwAR-6iu48sUOGdpaAl7LkS9qU/s1600-h/400px-Carapax.svg.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 357px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPt60PNYkcyFQF2M2nh6iDor3dmExVVe2T1oKHH1dbLvmBxvoDPIi07hW-2PWxwC8QdS2te0wHsZSFqEoNrH8ZVKCDUNXcPEJsXlCUQm490PskrVfyRHwAR-6iu48sUOGdpaAl7LkS9qU/s400/400px-Carapax.svg.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309927404463255970&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;and even France!&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJB1CTRlmHNgUa4JlCTPzijTm2CH0VBHhXXujTReayd43CGQIRBC2IbPxUxp6hhja39sF9Sb-fgq2B7mwy1vSuXMD13s_Y_c7v1-pzYKGYGVSzdy4PB7b9aRNxmCRIpjeMUCPwAgXI2TU/s1600-h/France.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 380px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjJB1CTRlmHNgUa4JlCTPzijTm2CH0VBHhXXujTReayd43CGQIRBC2IbPxUxp6hhja39sF9Sb-fgq2B7mwy1vSuXMD13s_Y_c7v1-pzYKGYGVSzdy4PB7b9aRNxmCRIpjeMUCPwAgXI2TU/s400/France.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309933194405994322&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Can you spot the hexagons?&lt;br /&gt;&lt;br /&gt;OK, before we get to crack apart soapy French turtles on Saturn, we need to take a little side trip to talk about a fundamental fact about polygons in the plane, called &lt;a href=&quot;http://en.wikipedia.org/wiki/Euler_characteristic&quot; target=&quot;_blank&quot;&gt;Euler&#39;s formula&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Euler&#39;s formula says that, subject to the rules above, no matter how we arrange a collection of polygons in the plane, the number of &lt;i&gt;vertices&lt;/i&gt; minus the number of &lt;i&gt;edges&lt;/i&gt; plus the number of &lt;span style=&quot;font-style: italic;&quot;&gt;polygons&lt;/span&gt; (also called &lt;span style=&quot;font-style: italic;&quot;&gt;faces&lt;/span&gt;) is a constant.  For our purposes, the constant is 1.*  In equation form,&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;V&lt;/span&gt; - &lt;span style=&quot;font-style: italic;&quot;&gt;E&lt;/span&gt; + &lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; = 1&lt;br /&gt;&lt;br /&gt;It actually makes quite a lot of sense if you think about it for a second. Imagine we only had one shape, a lonely little triangle all alone in the plane. So, &lt;span style=&quot;font-style: italic;&quot;&gt;V&lt;/span&gt;, the number of vertices, would be 3, as would the number of edges, &lt;span style=&quot;font-style: italic;&quot;&gt;E&lt;/span&gt;.  And &lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt;, the number of faces, in this case a frowny face, would be 1:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJISi0q1iTn7CW9GgarJMUv-HlcwrqNwTiI2bJwUdBfIpdhun_vO6BT4zXqLk3PcwAs5jIM49avQdeQvD2kROne7wqZs3ZWmpB_9EbJvkRwmACx9v7mDQ_GRnqGK4-DDjQqPRKwGxlw-M/s1600-h/polys6.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 188px; height: 212px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJISi0q1iTn7CW9GgarJMUv-HlcwrqNwTiI2bJwUdBfIpdhun_vO6BT4zXqLk3PcwAs5jIM49avQdeQvD2kROne7wqZs3ZWmpB_9EbJvkRwmACx9v7mDQ_GRnqGK4-DDjQqPRKwGxlw-M/s400/polys6.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309924047886770082&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Hence,&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;V&lt;/span&gt; - &lt;span style=&quot;font-style: italic;&quot;&gt;E&lt;/span&gt; + &lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; = 3 - 3 + 1 = 1&lt;br /&gt;&lt;br /&gt;Now, if we tacked on a friend for the triangle, for example a square, the resultant shape would have 5 total vertices, 6 total edges, and 2 (now smiley) faces:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgazeRtVLeGpsWctCdEjOi7d5_E3IEuXkBPLgswA4uugJFq1C-WdNYckNmXyuzvorY3yL-Bzuwzx0gRzNAezLKDJjtNBI7cgp940oCzjPlEwOybl2CDenkwPz2f3iWlxi5rNnUAgwy50Yo/s1600-h/polys7.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 333px; height: 264px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgazeRtVLeGpsWctCdEjOi7d5_E3IEuXkBPLgswA4uugJFq1C-WdNYckNmXyuzvorY3yL-Bzuwzx0gRzNAezLKDJjtNBI7cgp940oCzjPlEwOybl2CDenkwPz2f3iWlxi5rNnUAgwy50Yo/s400/polys7.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5309924090366012914&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;So again, &lt;span style=&quot;font-style: italic;&quot;&gt;V&lt;/span&gt; - &lt;span style=&quot;font-style: italic;&quot;&gt;E&lt;/span&gt; + &lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; = 5 - 6 + 2 = 1.  Essentially, the square gobbled up 2 of the triangle&#39;s vertices and 1 of its edges, while adding 4 of both edges and vertices and 1 extra face.  As a result, the quantity &lt;span style=&quot;font-style: italic;&quot;&gt;V - E + F&lt;/span&gt; stayed constant.  By similar reasoning, you could convince yourself that the same would happen no matter what shape we tacked on.  And we can now repeat the process by adding a third polygon, and a fourth, and so on, until we have a whole polygon party on our hands.&lt;br /&gt;&lt;br /&gt;OK now, at long last, we come back to random shapes.  In our random polygonal mix, let&#39;s call &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt; the total number of &lt;i&gt;sides&lt;/i&gt; the polygons have altogether (different from &lt;i&gt;E&lt;/i&gt; because 2 sides overlap to form 1 edge). Polygons individually always have the same number of vertices and sides, and since each vertex is shared by 3 polygons, the net total number of vertices is &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/3. Also, each edge is shared by 2 sides (except for a small number of boundary edges), so &lt;span style=&quot;font-style: italic;&quot;&gt;E&lt;/span&gt;, the total number of edges, is the same as &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/2. Putting these into Euler&#39;s formula gives us:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/3 - &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/2 + &lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; = 1&lt;br /&gt;&lt;br /&gt;Equivalently, &lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; = 1 + &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/2 - &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/3.&lt;br /&gt;&lt;br /&gt;We can combine the &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/2 - &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/3 to get &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/6, so we have:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; = 1 + &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/6&lt;br /&gt;&lt;br /&gt;Multiplying by 6 and dividing by F gives us:&lt;br /&gt;&lt;br /&gt;6 = 1/&lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; + &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/&lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now if we imagine the number of faces being very large, this tells us that 1/&lt;span style=&quot;font-style: italic;&quot;&gt;F &lt;/span&gt;is very small, so &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt;/&lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt; is very close to 6. In other words, the ratio of sides to polygons is about 6, so the average polygon is a hexagon!&lt;br /&gt;&lt;br /&gt;Next time you&#39;re out, keep your compound eyes peeled for hexagons, regular and otherwise, and someday you too can catch the hexagon madness!&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNCsJdWavKJjv9hs_83RNfpO3U_YO89poNeW-bi26gAiQm6syw83-fQyEr2ItFqM8p_qVQlTv_X9rpI6yfnNO8xloDsEm4G7ChyphenhyphenNoDnYrQSOf1dnKOC7jDxqgMBIiSI4l_y5nP9kxyfZg/s1600-h/01240601500852.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 266px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNCsJdWavKJjv9hs_83RNfpO3U_YO89poNeW-bi26gAiQm6syw83-fQyEr2ItFqM8p_qVQlTv_X9rpI6yfnNO8xloDsEm4G7ChyphenhyphenNoDnYrQSOf1dnKOC7jDxqgMBIiSI4l_y5nP9kxyfZg/s400/01240601500852.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5310941744183969138&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;*Those in the know, take note: the reason the constant is 1 and not 2 is that I&#39;m not counting the unbounded component as a face.  However, it doesn&#39;t matter in the end, because the constant gets divided by &lt;span style=&quot;font-style: italic;&quot;&gt;F&lt;/span&gt;, so this same property would be true in a topological space with any Euler characteristic.</description><link>http://doctormath.blogspot.com/2009/03/wholly-whexagons-continued.html</link><author>noreply@blogger.com (drmath)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9YntJ5OYkgYG7_cWz2x2-v6B4K9QaG4tA8TZl24qxwyExEyFnsPRmpsBo2bDysMhu4OxnJ1U6aEe59fIugEQz3i0DFdNgyGY518rMCwFUexXb7aRKK6m1MFFQCleZ6Ln59VX4dpOxzD4/s72-c/polys1.JPG" height="72" width="72"/><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-6871771812518938813</guid><pubDate>Sat, 28 Feb 2009 04:47:00 +0000</pubDate><atom:updated>2009-03-04T08:07:13.847-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">bees do it</category><category domain="http://www.blogger.com/atom/ns#">hexagons</category><category domain="http://www.blogger.com/atom/ns#">Trig Paxton Van Palin</category><title>Wholly Whexagons!</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;I&#39;ve noticed that hexagons show up in a lot of different places.  Now that I&#39;ve started looking for them, I see them everywhere!  What&#39;s the deal with hexagons?&lt;br /&gt;Jules, Canton OH&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Dear Jules,&lt;br /&gt;&lt;br /&gt;I know I&#39;m not supposed to play favorites with mathematical objects, but I have to confess, the hexagon is probably my favorite shape.  (Sorry, &lt;a href=&quot;http://en.wikipedia.org/wiki/Rhombicuboctahedron&quot; target=&quot;_blank&quot;&gt;rhombicuboctahedron&lt;/a&gt;.)&lt;br /&gt;&lt;br /&gt;While I suspect that you may be experiencing a fair amount of &lt;a href=&quot;http://en.wikipedia.org/wiki/Confirmation_bias&quot; target=&quot;_blank&quot;&gt;confirmation bias&lt;/a&gt;, it&#39;s true that hexagons do make an appearance in a large variety of different contexts.  (It&#39;s also possible that you have the &quot;hexagon madness&quot; and are seeing them when they&#39;re not actually there.  You might want to get that checked out.)&lt;br /&gt;&lt;br /&gt;Part of the reason hexagons are so ubiquitous is that they have so many useful properties, probably even more than &quot;familiar&quot; shapes like squares and trapezoids.  Primarily, I&#39;m referring to &lt;i&gt;regular&lt;/i&gt; hexagons--hexagons with 6 equal sides--like this guy:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGBZKL6gp6fDqaikNWOlqxqUZ8UBIqMBFItg21DxgxXZ24sTTYviDjMcBTsV5J-nzCC99jHNgra2g8ahc9mlJSgyDkc0mQaMWg2lCSTikfm9_dADCI6aaxwEPwqK6RBbIlDs_OnV1-i70/s1600-h/400px-Regular_hexagon.svg.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 220px; height: 220px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGBZKL6gp6fDqaikNWOlqxqUZ8UBIqMBFItg21DxgxXZ24sTTYviDjMcBTsV5J-nzCC99jHNgra2g8ahc9mlJSgyDkc0mQaMWg2lCSTikfm9_dADCI6aaxwEPwqK6RBbIlDs_OnV1-i70/s320/400px-Regular_hexagon.svg.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307713895471730738&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Probably these are the ones you&#39;re seeing, Jules. Next time, I&#39;ll talk a little about the properties of &lt;i&gt;irregular&lt;/i&gt; hexagons and why you might expect to see those, too.&lt;br /&gt;&lt;br /&gt;First of all, a regular hexagon has the property that its opposite sides are parallel to each other, making it an ideal shape for a nut or bolt, because it fits nicely into a wrench:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFIoedMpdD35ymNDOdXmD6vbGvysEoi6VOLSq1F3rRU1cDYKNORXrvNnfwmxU2WJdtSXS9aIZ3qD-shuzl6iq9DzjNX17crCjIsVORfF_99L9gZQr_PFPXhLCeiETZb8e7A4EpUWTvRss/s1600-h/P431.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 213px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFIoedMpdD35ymNDOdXmD6vbGvysEoi6VOLSq1F3rRU1cDYKNORXrvNnfwmxU2WJdtSXS9aIZ3qD-shuzl6iq9DzjNX17crCjIsVORfF_99L9gZQr_PFPXhLCeiETZb8e7A4EpUWTvRss/s320/P431.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307714176207088098&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Squares, octagons, and some other &lt;span style=&quot;font-style: italic;&quot;&gt;n-&lt;/span&gt;gons [those with even &lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt;] have the same property, but with a hexagonal nut or bolt, you can grab it at a variety of different &lt;i&gt;angles&lt;/i&gt;, which is useful if you&#39;re putting together Ikea furniture in a tiny Manhattan apartment, for example.  Also, since the exterior angles of an &lt;span style=&quot;font-style: italic;&quot;&gt;n-&lt;/span&gt;gon add up to 360° and there are &lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt; of them, each one measures 360/&lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt;.  Therefore, more sides aren&#39;t really so good, because as the number of sides gets larger, the sharpness of the corners decreases, allowing for a greater possibility of slippage.  A hexagon seems to be a nice compromise between a 2-gon and an &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinfty&quot; align=&quot;center&quot; /&gt;-gon for these purposes.&lt;br /&gt;&lt;br /&gt;Another important property of regular hexagons (that I&#39;m sure you&#39;re aware of if you&#39;ve ever looked at the floor of a public bathroom) is that they &lt;i&gt;tile&lt;/i&gt; the plane.  In other words, by putting a bunch of identical hexagons together as tiles, we can cover an entire plane surface:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitxN6O-1B22iXL9PHKjubq4Ur_0CXwL8lnp7uzt-kqf9D4mtdqOBgRmr-KH-OmMhTEL6zQTU-SeZTEZ0GXj_pOe8gWcsmUMngikRkvt2IonBJHv7ybe_t-wT_59csGqdDzgE4feJfR2X8/s1600-h/320px-Tile_6,3.svg.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 257px; height: 257px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitxN6O-1B22iXL9PHKjubq4Ur_0CXwL8lnp7uzt-kqf9D4mtdqOBgRmr-KH-OmMhTEL6zQTU-SeZTEZ0GXj_pOe8gWcsmUMngikRkvt2IonBJHv7ybe_t-wT_59csGqdDzgE4feJfR2X8/s320/320px-Tile_6,3.svg.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307714460038327058&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;There are other tilings, of course, with squares or triangles, but this one has some very appealing aspects.  (For one, it&#39;s made of hexagons!)  It turns out that among all possible tilings of the plane of shapes with a fixed &lt;span style=&quot;font-style: italic;&quot;&gt;area&lt;/span&gt;, the hexagonal one has the smallest possible &lt;i&gt;perimeter&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;One way to think about this is that the perimeter:area ratio goes &lt;span style=&quot;font-style: italic;&quot;&gt;down&lt;/span&gt; as a shape gets closer to being a circle.  So, if we&#39;re using &lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt;-gons to tile the plane, we want &lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt; to be as big as possible.  On the other hand, we have to be able to glue them together so that at each point of intersection, the angles add up to 360°.  By the same reasoning as before, we can show that the &lt;span style=&quot;font-style: italic;&quot;&gt;interior&lt;/span&gt;&lt;br /&gt;angles on an &lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt;-gon are each 180 - 360/&lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt;, and since there have to be at least 3 of these angles meeting at each corner, the greatest this angle can be is 120°.  In this case,  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?180%20-%20%5Cfrac%7B360%7D%7Bn%7D%20=%20120&quot; align=&quot;center&quot; /&gt;, so 360/&lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt; = 60; therefore, &lt;span style=&quot;font-style: italic;&quot;&gt;n&lt;/span&gt;=6.  Hexagon!&lt;br /&gt;&lt;br /&gt;Now, why does all of that matter?  Well, say you weren&#39;t cutting these tiles out of a piece of ceramic but instead were building up &lt;i&gt;walls&lt;/i&gt; to section an area into a number of &lt;i&gt;chambers&lt;/i&gt;.  If the material in those walls was really expensive for you to produce, it would &lt;b&gt;bee&lt;/b&gt; in your best interests to make the chambers in the shape of a regular hexagon:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv7huwej8f29i3DulCd113LbtOOCFrJfB-LELE6BRRGGB-tlgiP_e_WO6RCq-p7Bxj98F6UDemqt-LsTxsZ3JL9-8ih7H9CfmD4_lBzzML1WVriZKJ7rn2u45rLlI0bxUIqQmtbuxeKKc/s1600-h/Honey_comb.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv7huwej8f29i3DulCd113LbtOOCFrJfB-LELE6BRRGGB-tlgiP_e_WO6RCq-p7Bxj98F6UDemqt-LsTxsZ3JL9-8ih7H9CfmD4_lBzzML1WVriZKJ7rn2u45rLlI0bxUIqQmtbuxeKKc/s320/Honey_comb.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307714703992900610&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I don&#39;t know how bees managed to figure this out and yet here we are still living in rectangular grids like chumps.&lt;br /&gt;&lt;br /&gt;A slightly different, but related, property of the regular hexagonal tiling is that it shows up if you&#39;re trying to &lt;i&gt;pack&lt;/i&gt; together some circles:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSOr8rEfiFc16FKb8ukL2Mjs-YlxYLCfPgRGi81Nrj-er5UfJ5zTEJRFOpQE6C03m-pN47zmrLFyS-Dut-gY0DtYgNz8xZkLFpzVDqN_YjciTMUpKNiE6qmqNe4nTvFL7021PC2pQHrHI/s1600-h/oranges.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSOr8rEfiFc16FKb8ukL2Mjs-YlxYLCfPgRGi81Nrj-er5UfJ5zTEJRFOpQE6C03m-pN47zmrLFyS-Dut-gY0DtYgNz8xZkLFpzVDqN_YjciTMUpKNiE6qmqNe4nTvFL7021PC2pQHrHI/s320/oranges.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307714975563385538&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;See the hexagons?&lt;br /&gt;&lt;br /&gt;Once again, this way of packing circles has the property of being &lt;i&gt;optimal&lt;/i&gt;, in the sense that it leaves the least amount of empty space between circles.  In fact, using a little &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/trig-or-treat.html&quot; target=&quot;_blank&quot;&gt;trigonometry&lt;/a&gt;, we can even work out the efficiency of this packing:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtVUJfNguVbBMFr0EC1Tyr2f8lkesEVRUn7IT5X2JEyfnt_RNG3-9XhLby8qEZJ5Uvi3dtwh74oDd4MYG-HHFHaGNBD1skctQpqBTwYa7sweMkpekGx0hIJ1A4jtddbKPLCeH6FluHF-g/s1600-h/263px-Empilement_compact_plan.svg.png&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 239px; height: 228px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtVUJfNguVbBMFr0EC1Tyr2f8lkesEVRUn7IT5X2JEyfnt_RNG3-9XhLby8qEZJ5Uvi3dtwh74oDd4MYG-HHFHaGNBD1skctQpqBTwYa7sweMkpekGx0hIJ1A4jtddbKPLCeH6FluHF-g/s320/263px-Empilement_compact_plan.svg.png&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307715837660471858&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The triangle in the picture is equilateral with all sides equal to &lt;span&gt;2&lt;/span&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;*r&lt;/span&gt;, where &lt;span style=&quot;font-style: italic;&quot;&gt;r&lt;/span&gt; is the radius of the circles we&#39;re packing.  If we split one in half (where the two black circles intersect), we&#39;ll get  a right triangle with hypoteneuse 2&lt;i style=&quot;font-style: italic;&quot;&gt;*r&lt;/i&gt; and one leg &lt;i&gt;r&lt;/i&gt;.  Therefore, by the Pythagorean Theorem, if &lt;i&gt;h&lt;/i&gt; is the height, then &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?h%5E2%20+%20r%5E2%20=%20%282r%29%5E2%20=%204r%5E2&quot; align=&quot;center&quot; /&gt;&lt;i&gt;.&lt;/i&gt;   So &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?h%5E2%20=%203r%5E2&quot; align=&quot;center&quot; /&gt;, and therefore, &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?h%20=%20%5Csqrt%7B3r%5E2%7D%20=%20r%5Csqrt%7B3%7D&quot; align=&quot;center&quot; /&gt;.  That means the area of the triangle is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D%20*%5Ctext%7Bbase%7D*%5Ctext%7Bheight%7D&quot; align=&quot;center&quot; /&gt;&lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?=%20%5Cfrac%7B1%7D%7B2%7D%20*%20%282r%29*r%5Csqrt%7B3%7D%20=%20r%5E2%20%5Csqrt%7B3%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Inside each triangle are three pieces of a circle, which together make up half of a circle of radius &lt;span style=&quot;font-style: italic;&quot;&gt;r&lt;/span&gt;.  Thus, the area of the circular pieces is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B%5Cpi%20r%5E2%7D%7B2%7D&quot; align=&quot;center&quot; /&gt;.  This means the ratio of circular area to total area of the triangle is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%28%5Cfrac%7B%5Cpi%20r%5E2%7D%7B2%7D%29/%28r%5E2%20%5Csqrt%7B3%7D%29%20=%20%5Cfrac%7B%5Cpi%7D%7B2%5Csqrt%7B3%7D%7D&quot; align=&quot;center&quot; /&gt;, approximately 0.91.  Since the whole plane is made up of these triangles, the proportion of circle-area to total-area is the same, meaning the circles take up about 91% of the space.  Pretty efficient, and fun at parties, too!&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq9igAIKCXyi4Bm7auNzWflhpME2c8VhqTiLxXk9NIrEh-wxrVcaO4-Uik26PLm8lxupA2HUizaZFwAlsUiCi-FIu6lNQTyoLUN6vKziZ61hrIPDGGIFy45JEhyphenhyphenrFAUJFuJut2KU0pXy0/s1600-h/beer.jpg&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 320px; height: 295px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhq9igAIKCXyi4Bm7auNzWflhpME2c8VhqTiLxXk9NIrEh-wxrVcaO4-Uik26PLm8lxupA2HUizaZFwAlsUiCi-FIu6lNQTyoLUN6vKziZ61hrIPDGGIFy45JEhyphenhyphenrFAUJFuJut2KU0pXy0/s320/beer.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5307716059888895970&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;To Be Continued...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/wholly-whexagons.html</link><author>noreply@blogger.com (drmath)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGBZKL6gp6fDqaikNWOlqxqUZ8UBIqMBFItg21DxgxXZ24sTTYviDjMcBTsV5J-nzCC99jHNgra2g8ahc9mlJSgyDkc0mQaMWg2lCSTikfm9_dADCI6aaxwEPwqK6RBbIlDs_OnV1-i70/s72-c/400px-Regular_hexagon.svg.png" height="72" width="72"/><thr:total>11</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-2400621017961485318</guid><pubDate>Wed, 25 Feb 2009 05:03:00 +0000</pubDate><atom:updated>2009-02-25T07:07:17.239-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">half a baby</category><category domain="http://www.blogger.com/atom/ns#">humonga-balls</category><category domain="http://www.blogger.com/atom/ns#">polling</category><category domain="http://www.blogger.com/atom/ns#">probability</category><category domain="http://www.blogger.com/atom/ns#">the expected value when you&#39;re expecting</category><title>80085</title><description>With Valentine&#39;s Day just passed and Ash Wednesday lurking around the corner, I know the topics of sex and pregnancy are on a lot of people&#39;s filthy guilt-ridden minds these days.  To help people understand their risks, and to show I&#39;m not a prude, I&#39;m hosting a little get-together (an orgy, if you will) of questions all about sex.  So turn the lights down low, put on some soft music, and enjoy this special &quot;adults only&quot; post about what we in the math business call &quot;multiplication.&quot;*&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;br /&gt;Dear Dr. Math,&lt;br /&gt;I read in an article that &quot;Normally fertile couples have a 25 percent chance of getting pregnant each cycle, and a cumulative pregnancy rate of 75 to 85 percent over the course of one year.&quot;  How do you go from 25% to 85?  I don&#39;t see the connection between those two numbers.&lt;br /&gt;Name Withheld&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;As is often the case, Name, the way to understand the probability of getting pregnant over some number of time intervals (I almost wrote &quot;periods&quot; there but then reconsidered) is instead to think about the probability of &lt;i&gt;not&lt;/i&gt; getting pregnant during any of those intervals.  We can use the fact that the chance of something happening is always 1 minus the chance of it &lt;i&gt;not &lt;/i&gt;happening.  This turns out to be a generally useful technique whenever you&#39;re interested in the occurrence of an event over multiple trials.  To take my favorite &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/lets-make-deal-or-no-deal.html&quot;&gt;over-simplified example&lt;/a&gt; of flipping a coin, if we wanted to find the chance of flipping an H (almost wrote &quot;getting heads&quot;--geez, this is har.., er, difficult) in the first 3 flips, we could go through all of the possible 3-flip sequences and count how many of them had at least one H, or we could just observe that only &lt;i&gt;one&lt;/i&gt; sequence &lt;i&gt;doesn&#39;t &lt;/i&gt;contain an H (namely, TTT).  Since the probability of flipping T (&quot;getting tails&quot;) is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D&quot; align=&quot;center&quot; /&gt; on each flip, the chance of &quot;doing it three times&quot; is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%5E3%7D%20=%20%5Cfrac%7B1%7D%7B8%7D&quot; align=&quot;center&quot; /&gt;.  Thus, the probability of at least one H is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?1%20-%20%5Cfrac%7B1%7D%7B8%7D%20=%20%5Cfrac%7B7%7D%7B8%7D&quot; align=&quot;center&quot; /&gt;.  Phew.&lt;br /&gt;&lt;br /&gt;Similarly here, there are lots of different ways to get pregnant over the course of a year (believe me), but only one way to &lt;i&gt;not&lt;/i&gt; get pregnant.  If we take the first statistic as correct, that the chance of a normally fertile couple getting pregnant in each cycle is 25%, then we could assume that the chance of not getting pregnant in each cycle was 75%, or 0.75.  Assuming a &quot;cycle&quot; is 28 days long, there would be 13 cycles per year, so by the same reasoning as above, we could say that the chance of not getting pregnant in a year is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%280.75%29%5E%7B13%7D=0.024&quot; align=&quot;center&quot; /&gt;, about 2.4%.  So, the chance of &quot;being in the family way&quot; at some point during the year would be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?1-0.024%20=%200.976&quot; align=&quot;center&quot; /&gt;, or 97.6%.&lt;br /&gt;&lt;br /&gt;Now, that doesn&#39;t match up with the observed number you quoted, 85%.  In the study, of course, all they do is assemble some group of &quot;normally fertile&quot; couples and count the number of times they get pregnant in a year.  We were trying to solve the problem &quot;top down&quot; whereas the data is observed from the &quot;bottom up.&quot;  What&#39;s going on?  Well, the problem was our assumption that the different cycles were &lt;i&gt;independent&lt;/i&gt; from each other, in the sense that knowing what happened in one cycle doesn&#39;t affect our estimation of what will happen in the next.  For coin-flipping, this is a reasonable assumption, but for copulation, not so much.  It makes sense that there should be some &lt;i&gt;correlation&lt;/i&gt; between the different cycles, because the possible causes for infertility one month might continue to be true the next.  For example, it could be that either or both partners have some kind of medical condition that makes conception less likely.  Or maybe the guy&#39;s underwear is too tight, I don&#39;t know.  But it seems that the assumption of independence probably doesn&#39;t hold.  Also, it&#39;s not entirely clear what&#39;s meant by &quot;normally fertile&quot; here, since (as far as I know) it&#39;s only really possible to know if a couple is &quot;fertile&quot; if they&#39;ve succeeded in having a baby.  So, it&#39;s possible that the data includes some number of couples who were just less fertile and perhaps didn&#39;t know it.&lt;br /&gt;&lt;br /&gt;The correct way to understand these compound probabilities is to consider the probability of not conceiving in one cycle &lt;i&gt;conditional&lt;/i&gt; on the event that you had not conceived the cycles previously.  Unfortunately, I don&#39;t have access to that information from personal experience, nor a good mental model for what numbers would be reasonable.  However, it seems like the probability of &lt;i&gt;not &lt;/i&gt;conceiving should be &lt;i&gt;higher&lt;/i&gt; than ordinary if you know already that you&#39;ve gone some number of months without conceiving.  As a result, the odds of getting pregnant in a year should be &lt;i&gt;lower&lt;/i&gt; than our estimate assuming independence, which does in fact agree with the data.&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i&gt;&lt;br /&gt;Dear Dr. Math,&lt;br /&gt;Planned Parenthood&#39;s web site says, &quot;Each year, 2 out of 100 women whose partners use condoms will become pregnant if they always use condoms correctly.&quot;  Is that the same as saying that condoms are 98% effective?  If so, does that mean that if you have sex 100 times, you&#39;ll likely get somebody pregnant twice?  (I mean, if you&#39;re a man.  If you&#39;re a woman I imagine the rate of impregnating your partner will probably slip in the direction of zero.)  Yours always,&lt;br /&gt;Name Withheld&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Oh, you freaky Name Withheld, you&#39;ve asked the question backwards!  In fact, the statistic you give of 2 women out of 100 becoming pregnant in a year is how the effectiveness of condoms is &lt;i&gt;defined.&lt;/i&gt;  That is, in the birth control industry, specifically, when someone claims that a particular method is &quot;&lt;i&gt;x&lt;/i&gt;% effective,&quot; it &lt;i&gt;means&lt;/i&gt; that if a group of women use that method, over the course of the year about (100-&lt;i&gt;x&lt;/i&gt;)% of them will get pregnant.  Now, there are a number of assumptions being made here, not the least of which is that those women (and their partners) used the method correctly.  Without actually going into people&#39;s bedrooms (or living rooms, or kitchens?) and tallying up on a clipboard whether their condom use was &quot;incorrect&quot;, it&#39;s impossible to know for sure.  Instead, people who do surveys of this kind have to rely almost exclusively on what people &lt;i&gt;say&lt;/i&gt; they did.  And let me ask you something: If you accidentally impregnated someone/got impregnated by someone while nominally using some birth control method, would you say, when asked, that you had been using it &quot;incorrectly&quot;?  Or would you, as all good carpenters do, blame your tools?&lt;br /&gt;&lt;br /&gt;Another implicit assumption is that the respondents reflect  a typical number of sexual encounters in a year.  Again, I don&#39;t know how they decide what participants to include in this kind of study or how they verify the claims they get, but according to &lt;a href=&quot;http://www.ncbi.nlm.nih.gov/pubmed/7738077&quot;&gt;some&lt;/a&gt; &lt;a href=&quot;http://family.jrank.org/pages/1102/Marital-Sex-Sexual-Frequency.html&quot;&gt;studies&lt;/a&gt; I was able to find, the average &quot;coital frequency&quot;, as it&#39;s romantically known, for both married and single people in the U.S. is somewhere around 7 encounters per month.  Therefore, if we treated the experiences as being independent (with the same caveat as in the previous question), we could estimate the probability of unintended pregnancy in a &lt;i&gt;single sexual encounter&lt;/i&gt;:&lt;br /&gt;&lt;br /&gt;Let&#39;s call the probability &lt;i&gt;p&lt;/i&gt;.  So the chance of &lt;span style=&quot;font-style: italic;&quot;&gt;not&lt;/span&gt; getting pregnant during a given sex act is (1-&lt;i&gt;p&lt;/i&gt;).  We&#39;ll accept the 7 times/month figure and assume a total of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?7*12=84&quot; align=&quot;center&quot; /&gt; sexual encounters per year, all including correct condom usage.  As in the coin example, we&#39;ve assumed independence, so the probability of &lt;i&gt;not&lt;/i&gt; getting pregnant over the course of 84 trials is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%281-p%29%5E%7B84%7D&quot; align=&quot;center&quot; /&gt;, which we&#39;re assuming is equal to the stated number of 98%.  Therefore, we have:&lt;br /&gt;&lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%281-p%29%5E%7B84%7D=0.98&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;And so &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%281-p%29%20=%200.98%5E%7B1/84%7D%20=%200.99975&quot; align=&quot;center&quot; /&gt;, meaning that &lt;i&gt;p&lt;/i&gt; is very small, about 0.02%.  Therefore, if you had sex 100 times, as you say (and congrats, btw), you could expect to make an average of 0.02 babies.&lt;br /&gt;&lt;br /&gt;Some important notes:&lt;br /&gt;1) Our assumption of independence here may be more reasonable than in the previous example, because it&#39;s possible that whatever factors contribute to a birth control method failing despite proper use may be due more to chance than any kind of recurring trends.&lt;br /&gt;2) Also, these numbers don&#39;t account for the fact that (as we saw above) the chance of getting pregnant in a year even &lt;span style=&quot;font-style: italic;&quot;&gt;without any protection&lt;/span&gt; is something like 85%.  So, in a sense, condoms &quot;only&quot; reduce the risk of pregnancy from 85% to 2%.&lt;br /&gt;3) We&#39;ve only been talking about pregnancy here, not the risks of other things like STDs or panic attacks.&lt;br /&gt;4) Wear a condom, people!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Dear Dr. Math,&lt;br /&gt;Mathematically speaking, what number makes for the best sexual position?&lt;br /&gt;Name Withheld&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;You seem to be asking a lot of questions, NW.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://xkcd.com/487/&quot;&gt;Personally, I&#39;ve always enjoyed the ln(2π)&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;*Also acceptable:  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cint%20e%5Ex&quot; align=&quot;center&quot; /&gt; or &quot;integration by parts&quot;.</description><link>http://doctormath.blogspot.com/2009/02/80085.html</link><author>noreply@blogger.com (drmath)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-3934773843436006243</guid><pubDate>Mon, 23 Feb 2009 08:39:00 +0000</pubDate><atom:updated>2009-02-24T20:10:47.255-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">expected value</category><category domain="http://www.blogger.com/atom/ns#">hanson</category><category domain="http://www.blogger.com/atom/ns#">how big is that number</category><category domain="http://www.blogger.com/atom/ns#">infinite monkey theorem</category><category domain="http://www.blogger.com/atom/ns#">probability</category><title>The Infinite Monkey Strikes Back</title><description>I&#39;ve gotten some very interesting responses to &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/in-hole-in-grou31aadnm-vnatoh424.html&quot;&gt;my post&lt;/a&gt; about the Infinite Monkey Theorem, concerning the likelihood of a monkey accidentally reproducing &lt;i&gt;The Hobbit&lt;/i&gt; by randomly generating letters.  So I thought I&#39;d write a follow-up to address some of them; also it gives me another chance to imagine a monkey typing on a typewriter.  (I tried letting a monkey type this up for me, but he wrote something much more interesting than I had planned.)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Dear Dr. Math,&lt;br /&gt;I believe the monkey problem makes the simplifying assumption that all the letters in the text are independent, which they&#39;re not in real English (or any other language). How does this affect the results? Real texts are sampled very narrowly from the space of possible letter sequences.&lt;br /&gt;CN&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Excellent question, CN; I&#39;m glad you brought it up.  In fact, the distribution of the letters in the text is irrelevant to the problem.  The important assumption is that the letters &lt;i&gt;being output by the monkey&lt;/i&gt; are equally likely and probabilistically independent of each other.  Under this assumption, it doesn&#39;t matter if the text the monkey&#39;s trying to match is &lt;i&gt;The Hobbit&lt;/i&gt; or the phone book or a sequence of all &quot;7&quot;s--the probability of matching any sequence of 360,000 characters will be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B50%5E%7B360,000%7D%7D&quot; align=&quot;center&quot; /&gt;.  If you need convincing, consider the simpler example of flipping a fair coin 5 times.  Any particular sequence of 5 flips, for example HHTHT, has the same probability, &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%5E5%7D&quot; align=&quot;center&quot; /&gt;, of coming up.  So, if we were trying to match any flip sequence, we&#39;d have the same chance.  The same is true here, just on a much larger scale (and with monkeys).&lt;br /&gt;&lt;br /&gt;Now, many people object to this idea, because they think that a letter sequence like &quot;a;4atg 9hviidp&quot; is somehow more &quot;random&quot; than a sequence like &quot;i heart hanson&quot;.  Therefore, they reason, the first sequence would be more likely to occur by chance.  But actually the two sequences have exactly the same probability of occurrence, under our assumptions.  Really, the only difference between the two is what we could &lt;i&gt;infer&lt;/i&gt; about the message source (beyond musical tastes) based on receiving such an output.  I hope to discuss this in detail someday in the context of &lt;a href=&quot;http://en.wikipedia.org/wiki/Hypothesis_testing&quot;&gt;elementary hypothesis testing&lt;/a&gt;, but if, say, there were some &lt;i&gt;doubt&lt;/i&gt; in our minds as to whether the source of these characters was, in fact, uniformly random, the latter message would give us considerable evidence to help support that doubt.  The reason is that we could provide an &lt;i&gt;alternative&lt;/i&gt; hypothesis that would make the observed data much more likely.  For the monkey problem, however, we were assuming that we knew how the characters were being generated, so there&#39;s no doubt.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Dear Dr. Math,&lt;br /&gt;Along the lines of your previous questions on large numbers and randomly generating the book The Hobbit, I&#39;d like to ask about randomly generating images.  A low res PC display is normally 640 x 480 pixels.  If you randomly generated every combination of color pixels, wouldn&#39;t you have created every image imaginable at that resolution?  That is, one of the screens would be the Mona Lisa, one would be your Ask Doctor Math page, one would be a picture of the Andromeda galaxy from close up, one would be a picture of you!, etc.  If you only wanted to look at black &amp;amp; white images, you&#39;d have a much smaller collection, but once again wouldn&#39;t you generate every B&amp;amp;W screen image possible?  &lt;/i&gt;  &lt;div&gt;&lt;i&gt;With feature recognition software getting better all the time, one could &quot;mine&quot; these images for recognizable features.  Similar to the way the pharmaceutical companies sequence through millions of plants to find new substances, one could sequence through these images to extract unknown info.&lt;br /&gt;Mike&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;Dear Mike,&lt;br /&gt;&lt;br /&gt;Absolutely, we could apply the same techniques to any form of information that can be reduced to a sequence of numbers or letters, like images, CDs, chess games, DNA sequences, etc.  In fact, we needn&#39;t generate them randomly, either.  As in &lt;i&gt;The Library of Babel&lt;/i&gt; example, one could imagine a vast collection of all possible sequences, generated systematically one at a time with no repeats.  Unfortunately, for any &lt;i&gt;interesting&lt;/i&gt; form of information, the number of possibilities is simply too great to make it practical.&lt;br /&gt;&lt;br /&gt;In your example of 640x480 pixel images, even assuming the images were &lt;a href=&quot;http://www.photoshopessentials.com/images/essentials/black-white/channel-mixer/monochrome-image.jpg&quot;&gt;1-bit monochrome&lt;/a&gt;, there would still be 2 possibilities (&quot;on&quot; or &quot;off&quot;) for each of the 640*480 = 307,200 pixels.  Therefore, the number of possible images would be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?2%5E%7B307,200%7D&quot; align=&quot;center&quot; /&gt;, which is about &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B92,476%7D&quot; align=&quot;center&quot; /&gt;.  Remember &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/how-big-is-that-number-episode-1.html&quot;&gt;how big a googol is&lt;/a&gt;?  Well, this number is about &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%281%20%5Ctext%7B%20googol%7D%29%5E%7B1000%7D&quot; align=&quot;center&quot; /&gt;.  So, not even all the crappy low-res monitors in the universe could possibly display them, even at their lousy maximum refresh rate of 60 images/second.  And even worse, we&#39;d have no reason to believe any of the images we &lt;i&gt;did&lt;/i&gt; see, because they&#39;d be indistinguishable from all the many other conflicting images.&lt;br /&gt;&lt;br /&gt;Your comparison to pharmaceutical companies is interesting, but remember those companies are starting with a large (but manageable) collection of plants that &lt;i&gt;actually exist&lt;/i&gt;, not searching through the space of all possible arrangements of plant cells or something.  It&#39;s OK to search for a needle in a haystack sometimes, but not when the haystack is larger than the known universe.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Dear Dr. Math,&lt;br /&gt;Unless I misunderstand (and that&#39;s quite possible), I think you&#39;ve introduced a major flaw here... The &quot;second chunk&quot; begins at character number 2, not character number 360,001. There is no reason why these should be considered discrete chunks and so just because the first character isn&#39;t &quot;I&quot; doesn&#39;t affect the fact that the second and subsequent characters may spell out the work.  Thusly, your monkeys are producing over 17 million &quot;blocks&quot; a day, not just 48...&lt;br /&gt;&lt;/i&gt;&lt;i&gt;A. Nonymous&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Well, A, that all depends on how we set up our assumptions.  The way I had pictured things, the monkey was typing out a whole manuscript of 360,000 characters at a time and then having someone (perhaps J.R.R. Tolkien himself!) check it over and see if it was exactly the same as &lt;i&gt;The Hobbit&lt;/i&gt;.  If not, the monkey tries again and, with very high probability, fails.&lt;br /&gt;&lt;br /&gt;However, your idea is more interesting and perhaps more &quot;realistic&quot;.  That is, we could have Prof. Tolkien just watch over the monkey&#39;s shoulder as it typed and see if &lt;i&gt;any string&lt;/i&gt; of 360,000 consecutive characters were &lt;i&gt;The Hobbit&lt;/i&gt;.  So, if the monkey started by typing a preamble of gibberish and then typed the correct text in its entirety, we&#39;d still count it as correct.  As you say, this means that the possible &quot;chunks&quot; we&#39;d need to consider have a lot of overlap to them--we might find the text in characters 1 through 360,000 or 2 through 360,001, etc.  But unfortunately, it&#39;s not just the number of chunks being produced we need to reconsider; because of the way they overlap, we&#39;ve now introduced &lt;i&gt;relationships&lt;/i&gt; between the chunks that mean our assumption of independence no longer holds.  For example, if we knew the first block of characters was incorrect, we could determine whether it was even possible for the second block to be correct based on the particular &lt;i&gt;way&lt;/i&gt; the first block was wrong.  In fact, we&#39;d know it was impossible unless the first block was something like &quot;xin a hole in the ground there lived a hobbit...&quot;.&lt;br /&gt;&lt;br /&gt;Actually, if we thought about things in this way, then CN&#39;s question above &lt;i&gt;would&lt;/i&gt; be relevant, because the codependency of the overlapping chunks would depend heavily on the &lt;i&gt;particular&lt;/i&gt; text we were trying to match.  Consider the example of coin-flipping again:  assume we were flipping the coin until we got the string TH.  There are 3 possible ways we could fail on the first pair of flips, all equally likely: TT, HT, and HH.  If we got TT or HT, then we could succeed on the third try by flipping an H.  If we started with HH, there&#39;s no way we could get TH on the third flip.  The number of ways of succeeding would be 2, out of a possible 6.  So the probability of succeeding in the second block given that we failed in the first would be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7B6%7D=%5Cfrac%7B1%7D%7B3%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Now, if we were trying to match HH and we knew we failed on the first 2 flips, there would still be 3 equally likely possibilities.  Either we flipped TT, TH, or HT. If we started off with TT or HT, we can&#39;t possibly win on the third flip.  But if we got TH first, we&#39;d have a &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D&quot; align=&quot;center&quot; /&gt; chance of flipping H on the third flip and matching.  Thus, our probability of matching in the second block given that we failed in the first would only be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B6%7D&quot; align=&quot;center&quot; /&gt;.  Here&#39;s a chart showing all of the possibilities:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp3zf4b_rzG_bJKP9BWVrpHBhYbyRWRV-7xmyyo_-kz-ryNvgCQs0t4E_zcl711vHAoGLA3bI0O-GEMSDDZZa2dfkdP3HjFufWZgDKGxg4KSZsJQfGfUqStUs79Tn5mraOgPAiVFYGZr8/s1600-h/matching_coinflips.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 314px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp3zf4b_rzG_bJKP9BWVrpHBhYbyRWRV-7xmyyo_-kz-ryNvgCQs0t4E_zcl711vHAoGLA3bI0O-GEMSDDZZa2dfkdP3HjFufWZgDKGxg4KSZsJQfGfUqStUs79Tn5mraOgPAiVFYGZr8/s400/matching_coinflips.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5305910186602293186&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;  &lt;div&gt;&lt;br /&gt;&lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt; &lt;/div&gt; &lt;div&gt;The two probabilities are different because TH can overlap in more ways with the wrong texts, whereas HH can only overlap with TH.&lt;br /&gt;&lt;/div&gt; &lt;div&gt;&lt;br /&gt;Therefore, our previous strategy of multiplying probabilities, which rested on the assumption of independence, won&#39;t work here.  In order to explain how long it would take the monkey to produce &lt;i&gt;The Hobbit&lt;/i&gt; with high probability under your scheme, I&#39;d have to go into some fairly heavy-duty math involving &lt;a href=&quot;http://en.wikipedia.org/wiki/Markov_chain&quot;&gt;Markov chains&lt;/a&gt; and their transition probabilities.  The relevant probabilities can be found by raising a 360,000 x 360,000 matrix to the &lt;i&gt;n&lt;/i&gt;th power--not generally an easy thing to do.  But it turns out that the &lt;i&gt;expected &lt;/i&gt;(i.e., &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/unexpected-values-part-1.html&quot;&gt;average&lt;/a&gt;) number of characters the monkey would have to type before finishing would still be on the order of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?50%5E%7B360,000%7D&quot; align=&quot;center&quot; /&gt;, similar to the the previous setup.  &lt;/div&gt;  &lt;div&gt; &lt;/div&gt; &lt;div&gt;&lt;br /&gt;Either way, you and J.R.R. would have probably given up by that point.&lt;br /&gt;&lt;/div&gt; &lt;div&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://doctormath.blogspot.com/2009/02/infinite-monkey-strikes-back.html</link><author>noreply@blogger.com (drmath)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp3zf4b_rzG_bJKP9BWVrpHBhYbyRWRV-7xmyyo_-kz-ryNvgCQs0t4E_zcl711vHAoGLA3bI0O-GEMSDDZZa2dfkdP3HjFufWZgDKGxg4KSZsJQfGfUqStUs79Tn5mraOgPAiVFYGZr8/s72-c/matching_coinflips.JPG" height="72" width="72"/><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-2698686557697426423</guid><pubDate>Sat, 21 Feb 2009 22:09:00 +0000</pubDate><atom:updated>2009-02-23T02:00:28.750-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">arithmetic mean</category><category domain="http://www.blogger.com/atom/ns#">fuel economy</category><category domain="http://www.blogger.com/atom/ns#">geometric mean</category><category domain="http://www.blogger.com/atom/ns#">harmonic mean</category><title>What &quot;mean&quot; means</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;My parents live about 200 miles away from me, so I make the drive back and forth a lot, with no stops.  Almost exactly halfway in between the speed limit changes, so instead of driving 55 mph I drive 80 mph.  Since my average speed is 67.5 mph, shouldn&#39;t it take me 200/67.5 = 2&lt;/i&gt;&lt;span style=&quot;white-space: nowrap;&quot;&gt;.96&lt;/span&gt;&lt;i&gt; hours to get there?  I&#39;ve noticed it always takes a little longer, but I don&#39;t get it.  I&#39;ve even set the cruise control and kept the speeds exactly constant.&lt;br /&gt;Chuck&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Dear Chuck,&lt;br /&gt;&lt;br /&gt;I&#39;m going to go ahead and assume that you live in one of those places in &lt;a href=&quot;http://en.wikipedia.org/wiki/Speed_limits_in_the_United_States&quot; target=&quot;_blank&quot;&gt;Utah or west Texas&lt;/a&gt; where the speed limit actually is 80 mph.  Otherwise, you&#39;ve been speeding, and I can&#39;t endorse that kind of behavior.  OK?  OK.  Don&#39;t make me write a post about the correlation between speeding and traffic fatalities.  I swear I will turn this blog around.&lt;br /&gt;&lt;br /&gt;Here&#39;s why your numbers didn&#39;t add up:  while it&#39;s true that the average, in the sense of &lt;a href=&quot;http://en.wikipedia.org/wiki/Arithmetic_mean&quot; target=&quot;_blank&quot;&gt;arithmetic mean&lt;/a&gt;, of 55 and 80 is  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B55+80%7D%7B2%7D=67.5&quot; align=&quot;center&quot; /&gt; mph, that&#39;s actually the wrong kind of average to be using in this circumstance.  &quot;Kinds of averages?&quot;  Oh yes.  Allow me to explain:&lt;br /&gt;&lt;br /&gt;In the course of your trip, you drive half the distance, 100 miles, at 55 mph.  So that leg takes you &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B100%7D%7B55%7D=1.81&quot; align=&quot;center&quot; /&gt; hours.  On the second half, you&#39;re going the&lt;span style=&quot;font-weight: bold;&quot;&gt; legal speed limit&lt;/span&gt; of 80 mph, so that half should take you &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B100%7D%7B80%7D=1.25&quot; align=&quot;center&quot; /&gt; hours.  Altogether, then, your driving time is 1.81 + 1.25 =  3.06 hours, a little more than you expected.&lt;br /&gt;&lt;br /&gt;Rather than the arithmetic mean here, you should have been calculating your &lt;a href=&quot;http://en.wikipedia.org/wiki/Harmonic_mean&quot; target=&quot;_blank&quot;&gt;harmonic mean&lt;/a&gt;, which for two numbers &lt;span style=&quot;font-style: italic;&quot;&gt;A&lt;/span&gt; and &lt;span style=&quot;font-style: italic;&quot;&gt;B&lt;/span&gt; is defined as &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7B%5Cleft%28%5Cfrac%7B1%7D%7BA%7D%20+%20%5Cfrac%7B1%7D%7BB%7D%5Cright%29%7D&quot; align=&quot;center&quot; /&gt;.  To see why that&#39;s the right quantity, let&#39;s denote by &lt;span style=&quot;font-style: italic;&quot;&gt;S&lt;/span&gt; your real average speed for the trip, that is, the total distance you traveled divided by your total time.  If &lt;span style=&quot;font-style: italic;&quot;&gt;T&lt;/span&gt; is the total time you spent driving, then &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?S%20=%20%5Cfrac%7B200%7D%7BT%7D&quot; align=&quot;center&quot; /&gt;; equivalently, &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?T%20=%20%5Cfrac%7B200%7D%7BS%7D&quot; align=&quot;center&quot; /&gt;.  If &lt;span style=&quot;font-style: italic;&quot;&gt;A&lt;/span&gt; is the speed you went for the first half and &lt;span style=&quot;font-style: italic;&quot;&gt;B&lt;/span&gt; is the speed for the second half, then another way you could calculate the total time is as &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?T%20=%20%5Cfrac%7B100%7D%7BA%7D%20+%20%5Cfrac%7B100%7D%7BB%7D&quot; align=&quot;center&quot; /&gt;, just like we did previously.  As usual, in math when we compute the same thing two different ways we end up with an interesting equation.  In this case, since the times are equal, we get:&lt;br /&gt;&lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B200%7D%7BS%7D%20=%20%5Cfrac%7B100%7D%7BA%7D%20+%20%5Cfrac%7B100%7D%7BB%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;Dividing through by 100 on both sides gives us&lt;br /&gt;&lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7BS%7D%20=%20%5Cfrac%7B1%7D%7BA%7D%20+%20%5Cfrac%7B1%7D%7BB%7D&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;which, if you take reciprocals of both sides and multiply by 2, yields the formula for the harmonic mean.  In this particular example, &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?S%20=%20%5Cfrac%7B2%7D%7B%5Cleft%28%5Cfrac%7B1%7D%7B55%7D%20+%20%5Cfrac%7B1%7D%7B80%7D%5Cright%29%7D=65.1&quot; align=&quot;center&quot; /&gt; mph, so your guess of 67.5 mph was only off by a little bit.&lt;br /&gt;&lt;br /&gt;So, when is the arithmetic mean the right one?  If you had gone on a trip and spent an equal amount of &lt;i&gt;time&lt;/i&gt; driving 55 mph and 80 mph, then your average speed &lt;i&gt;would&lt;/i&gt; be the arithmetic mean of the two.  To see that, let&#39;s just assume you drove 1 hour at each speed.  Thus, your total distance traveled would be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?55*1%20+%2080*1%20=%20135&quot; align=&quot;center&quot; /&gt; miles, and your total time is 2 hours, so the average speed is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B135%7D%7B2%7D=67.5&quot; align=&quot;center&quot; /&gt; mph. Voilà!  If you look at that calculation closely, you can pretty clearly see why it should always give you the arithmetic mean--you&#39;re just adding the two speeds together and dividing by 2.  Similarly, another way to see that the arithmetic mean is inappropriate for the equal &lt;i&gt;distance&lt;/i&gt; problem is to notice that by driving the same distance at each speed, you spend &lt;i&gt;more time&lt;/i&gt; at the slower speed and &lt;i&gt;less time&lt;/i&gt; at the faster one.&lt;br /&gt;&lt;br /&gt;There&#39;s actually yet another kind of mean, called the &lt;a href=&quot;http://en.wikipedia.org/wiki/Geometric_mean&quot; target=&quot;_blank&quot;&gt;geometric mean&lt;/a&gt;, which shows up when you&#39;re computing ratios, percents, interest rates, and other things that are typically multiplied together.  For two numbers A and B, it&#39;s defined as &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?G%20=%20%5Csqrt%7BA*B%7D&quot; align=&quot;center&quot; /&gt;. For example, let&#39;s say you were a rabbit farmer and your population of rabbits grew by 50% one year and only 10% the next.  The combined effect at the end of two years would be that the population had increased by a factor of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?1.50*1.10%20=%201.65&quot; align=&quot;center&quot; /&gt;, for an increase of 65%.  To achieve that same growth at a constant rate, say a factor of R &lt;span style=&quot;font-style: italic;&quot;&gt;for each year&lt;/span&gt;, you&#39;d need &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?R%20*%20R%20=%201.65&quot; align=&quot;center&quot; /&gt;, so &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?R%20=%20%5Csqrt%7B1.50*1.10%7D%20=%201.28&quot; align=&quot;center&quot; /&gt;.  So in a sense the &quot;average&quot; growth rate was 28% per year.  Many people in this kind of situation would be tempted to guess that the average was 30%, splitting the difference between 50% and 10%.  You can see that it&#39;s not far off from the truth, but it&#39;s not quite right.  And why be almost right when you can be exactly right?&lt;br /&gt;&lt;br /&gt;The point of all these means is to replace the &lt;i&gt;net effect&lt;/i&gt; of two &lt;i&gt;different&lt;/i&gt; values with the effect of just a &lt;i&gt;single&lt;/i&gt; value repeated.  But you have to be careful to consider exactly how those quantities are &lt;i&gt;interacting&lt;/i&gt; to produce that combined effect.  When they simply add together, the relevant type of mean is the arithmetic one, when they multiply, the correct mean is geometric, and when they do that weird thing of combining via their reciprocals, you use the harmonic mean.  Interestingly enough, for any two numbers, if &lt;span style=&quot;font-style: italic;&quot;&gt;M&lt;/span&gt; is their arithmetic mean, &lt;span style=&quot;font-style: italic;&quot;&gt;G&lt;/span&gt; is the geometric mean,and &lt;span style=&quot;font-style: italic;&quot;&gt;H&lt;/span&gt; is the harmonic mean, it&#39;s always the case that &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?M%20%5Cge%20G%20%5Cge%20H&quot; align=&quot;center&quot; /&gt;.  In fact, there are &lt;a href=&quot;http://en.wikipedia.org/wiki/Quadratic_mean&quot;&gt;other&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Heronian_mean&quot;&gt;means&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Arithmetic-geometric_mean&quot;&gt;too&lt;/a&gt;, but these three are the major players.&lt;br /&gt;&lt;br /&gt;Other situations where the harmonic mean might come up include: calculating average fuel economy of a car given an equal amount of city and highway driving, computing the total length of time it takes two people working together to complete a task, figuring out the net resistance of two electrical resistors in &lt;a href=&quot;http://en.wikipedia.org/wiki/Series_and_parallel_circuits#Parallel_circuits&quot; target=&quot;_blank&quot;&gt;parallel&lt;/a&gt;, finding a pleasant &lt;a href=&quot;http://www.harmonictheory.com/music/&quot; target=&quot;_blank&quot;&gt;harmonic note&lt;/a&gt; (hence the name) between two other musical notes, calculating the height of the intersection between two crossed wires, and answering questions about the uses of the harmonic mean!&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/what-mean-means.html</link><author>noreply@blogger.com (drmath)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-1862447276949011185</guid><pubDate>Fri, 20 Feb 2009 09:29:00 +0000</pubDate><atom:updated>2009-02-25T07:17:27.635-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ca$h money</category><category domain="http://www.blogger.com/atom/ns#">deal or no deal</category><category domain="http://www.blogger.com/atom/ns#">Harrison Ford conundrum</category><category domain="http://www.blogger.com/atom/ns#">monty hall problem</category><category domain="http://www.blogger.com/atom/ns#">probability</category><category domain="http://www.blogger.com/atom/ns#">Smoot-Hawley Tariff</category><title>Let&#39;s Make a Deal or No Deal</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;On the show Deal or No Deal, if the contestant gets to the point of only having two cases left they have the option to switch cases.  Should they switch or not?  Is this the same as the Monty Hall problem?&lt;br /&gt;Daniel G.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;As Scott Bakula would say, &lt;a href=&quot;http://www.imdb.com/title/tt0096684/quotes&quot; target=&quot;_blank&quot;&gt;Oh boy&lt;/a&gt;.  I guess there was no way I was going to get away with writing a math advice blog and not having to explain the Monty Hall Problem at some point.  For those of you out there who may be unfamiliar with the MHP, here&#39;s the way it goes:&lt;br /&gt;&lt;br /&gt;You are presented with three doors and told that behind one door is a car and behind the other two are goats.  (Here we&#39;re assuming you want the car and not the goats, but in these tough economic times maybe they should be reversed.)  You pick a door and then the host, the venerable Monty Hall, always opens one of the other two doors to reveal a goat.  He then offers you the chance to switch to the remaining third door.  It turns out that it&#39;s always in your best interests to switch, given the available information.  Doing so improves your chance of winning from &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B3%7D&quot; align=&quot;center&quot; /&gt; to &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7B3%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Now, I see some of you reaching for that email button, getting ready to fire off an angry letter about how it &lt;i&gt;just can&#39;t&lt;/i&gt; be true that switching is better than not switching.  After all, there are two remaining doors and you don&#39;t know which has the car, so aren&#39;t your odds 50-50?  It&#39;s &lt;i&gt;impossible&lt;/i&gt;!  Believe me, I sympathize, but hold it right there.  Plenty of people, even professional mathematicians, have said the same thing as you.  Whole &lt;a href=&quot;http://www.amazon.com/Monty-Hall-Problem-Remarkable-Contentious/dp/0195367898/ref=pd_bbs_sr_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1235120503&amp;amp;sr=8-1&quot; target=&quot;_blank&quot;&gt;books&lt;/a&gt; and &lt;a href=&quot;http://www.montyhallproblem.com/&quot; target=&quot;_blank&quot;&gt;websites&lt;/a&gt; have been devoted to this topic, people have written &lt;a href=&quot;http://math.ucsd.edu/%7Ecrypto/Monty/monty.html&quot; target=&quot;_blank&quot;&gt;simulators&lt;/a&gt; that you can try out for yourself, the advice columnist &lt;a href=&quot;http://www.marilynvossavant.com/articles/gameshow.html&quot; target=&quot;_blank&quot;&gt;Marilyn vos Savant&lt;/a&gt; essentially made her career by being right about this problem and explaining why.  The MHP is math&#39;s version of an optical illusion--you can stare at it and stare at it, but until you actually get the ruler out and measure, you won&#39;t be convinced.  The sad truth is: Ellen Tigh&#39;s a cylon, Darth Vader built C3PO, and switching doors in the Monty Hall Problem improves your chance of winning from &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B3%7D&quot; align=&quot;center&quot; /&gt; to &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7B3%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Instead of opening up all the old wounds the MHP has inflicted over the years, let me try to offer my own perspective on how &lt;i&gt;I&lt;/i&gt; think about the problem (inflicting all-new wounds!), and then maybe we can take those same ideas and apply them to the &lt;i&gt;Deal or No Deal &lt;/i&gt;question to show why it&#39;s different.&lt;br /&gt;&lt;br /&gt;Let&#39;s back the train up all the way to the station and talk a little about what probability is--what it &lt;i&gt;means&lt;/i&gt;.  &lt;b&gt;Warning: Heavy Philosophy-Type Stuff Ahead&lt;/b&gt;.  As I&#39;ve mentioned previously, my opinion is that probability is a way to quantify the &lt;i&gt;uncertainty&lt;/i&gt; we have about the state of the world.  Therefore, it&#39;s highly dependent on what information we feel that we possess about the things we observe and what consequences the information may have.  For example, everyone&#39;s favorite &quot;random&quot; activity is flipping a coin--assuming it&#39;s a &quot;fair coin&quot;, the probability is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D&quot; align=&quot;center&quot; /&gt; that it will come up heads and &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D&quot; align=&quot;center&quot; /&gt; that it will come up tails.  But what does that really mean?  Physically, we can model all the variables that go into the action of flipping a coin--weight distribution of the coin, air resistance, amount and location of force applied to the coin, the direction the coin is tossed, elasticity of the landing surface, etc.  If somehow we could measure all of these things between the time the coin was tossed and the time it landed, and if we had access to a powerful enough computing device, we could &lt;i&gt;predict&lt;/i&gt; whether the coin would come up heads.  At the very least, we could guess (&quot;calling it in the air&quot;) and improve our chances to more than &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D&quot; align=&quot;center&quot; /&gt;.  Going back a step, the only parts of this system unknown to us ahead of time are the variables due to the tossing itself--the human element of thumb against coin.  If, for example, we knew that the person tossing the coin were an amazingly skilled athlete who could control his hand and arm motions with extreme precision and who had practiced the technique of tossing a coin enough that he could reliably make it come up heads, we again could improve upon our 50-50 guess.  As a third possibility, consider the case where the coin has &lt;i&gt;already&lt;/i&gt; been flipped but we haven&#39;t seen the outcome yet (the referee&#39;s still holding it); if somebody could sneak a peek at part of the coin and tell us what they saw, we could update our information and make a better guess.&lt;br /&gt;&lt;br /&gt;So, what is the &quot;real&quot; probability?  In my view, and this might be hard to swallow at first, the answer is there isn&#39;t one--the question itself is flawed.  &quot;Wait a minute,&quot; I can hear you objecting, &quot;Can&#39;t we just perform experiments and measure the frequency of heads?  Flip a coin a hundred times and about 50 of those will be heads, etc.?&quot; The problem there is that &lt;i&gt;you&#39;re observing a different event each time&lt;/i&gt;.  You can never step in the river twice, nor flip the same coin.  All the repetition does is validate the &lt;i&gt;predictive power&lt;/i&gt; of your mental model that says that the factors that go into flipping coins are beyond your comprehension and result in the heads side and the tails side being equally likely.  As an alternative, say, you could have the mental model (shared by many people) that those hundred coin flips were &lt;i&gt;predestined&lt;/i&gt; to occur the way they did and that through meditation/prayer/drugs/etc. you can actually see into the future and predict the outcome of the next flip.  It happens that the first model tends to be more successful than the second (or any others) in this instance, but we should be careful to separate the things we&#39;re assuming from the things we observe.  As E.T. Jaynes wrote in &lt;a href=&quot;http://www.amazon.com/Probability-Theory-Logic-Science-Vol/dp/0521592712/ref=pd_bbs_sr_1?ie=UTF8&amp;amp;s=books&amp;amp;qid=1235121899&amp;amp;sr=8-1&quot;&gt;&lt;i&gt;Probability Theory: The Logic of Science&lt;/i&gt;&lt;/a&gt;, trying to verify the probability of an event by performing experiments &quot;would be like trying to verify a boy&#39;s love for his dog by performing experiments on the dog.&quot;&lt;br /&gt;&lt;br /&gt;See, part of the problem with the way we humans interpret the world is that the physical laws we rely on--for example, that two colliding objects obey the law of &lt;a href=&quot;http://en.wikipedia.org/wiki/Conservation_of_momentum#Conservation_of_linear_momentum&quot; target=&quot;_blank&quot;&gt;conservation of momentum&lt;/a&gt;--can quickly outpace our abilities to calculate their consequences--say, the motions of every molecule of a balloon-full of air.  We use probability as a way of approximating the behavior of these complex systems instead of having to understand them completely, but that doesn&#39;t mean that the events &quot;are&quot; random.  A more powerful being might see things differently, the way adults see tic-tac-toe differently from the way little kids do.  But we seem to be stuck with this uncertainty about complex systems.  And there&#39;s really no system on Earth more complex than a human, which brings us back to the MHP.&lt;br /&gt;&lt;br /&gt;In the setup to the Monty Hall Problem, we&#39;ve assumed some things, all of which pertain to the actions of other people.  First, there is the assumption that the car is equally likely to be behind any of the three doors (actually, assumption zero is that there even is a car at all).  Presumably, some producer or somebody chose which door to put it behind--it&#39;s possible they might have had a preference for door #1, for example, because it&#39;s closer to the loading dock or looks better on TV.  If we had records of thousands of shows, we might gain some insight into their decision process and detect some bias.  But we&#39;re assuming otherwise.  Secondly, and this is the real key, we have the assumption that &lt;i&gt;Monty Hall knows which door has the car behind it&lt;/i&gt;.  As a consequence, we can deduce that by opening up the remaining door (or one of the two remaining doors, if we initially chose the one with the car), he has &lt;i&gt;added information&lt;/i&gt; to the set of things we know about the game.  Namely, we know that if the car &lt;i&gt;had&lt;/i&gt; been behind one of the other two doors, he would have been &lt;i&gt;forced&lt;/i&gt; to open the door he did--that&#39;s essentially why switching gives us a &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7B3%7D&quot; align=&quot;center&quot; /&gt; chance of winning.  If the other door had opened by &lt;i&gt;chance&lt;/i&gt;, say a gust of wind blew it open and we happened to see the goat, then we&#39;d have no reason to conclude anything about whether we should switch, because &lt;i&gt;we &lt;/i&gt;&lt;i&gt;just as easily could have seen the car&lt;/i&gt;.  So, by knowing what Monty knows, we can improve our chances.  In coin terms, it&#39;s as though we had a prearranged deal with the referee where if the coin is tails, he just tells us half the time and stays quiet the other half, and if the coin is heads he always stays quiet--so if he doesn&#39;t speak, we know there&#39;s a &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7B3%7D&quot; align=&quot;center&quot; /&gt; chance the coin is heads.&lt;br /&gt;&lt;br /&gt;Now, on &lt;i&gt;Deal or No Deal&lt;/i&gt;, hosted by the incomparable Howie Mandel, the situation is somewhat different.  For those who haven&#39;t seen the show, it works like this: a contestant picks one of 26 briefcases, each containing a different dollar amount.  He/she then opens some or all of the remaining briefcases and decides whether to keep going or sell the initial case.  In the extreme situation in which he/she keeps going all the way to the end and there are only two cases left, the contestant has the option to keep the original case or switch.  Let&#39;s you and I pretend that we were on the show.  For simplicity, let&#39;s assume that initially 25 of the 26 cases had $0, and the one remaining case had $1 million.  Also, let&#39;s assume that we opened 24 cases and inside each one was a big fat $0 (we got to say &quot;NO DEAL!&quot; a bunch of times, which was fun; also, they brought out Ellen Degeneres at some point).  What does that mean about our prospects?  Should we switch?  Well, our assumptions, again, were (1) all cases were equally likely to contain the million dollars, and (2) nobody on the show knew which case was which.  Under those assumptions, it doesn&#39;t matter if we switch or not, since the probability is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D&quot; align=&quot;center&quot; /&gt; of each case having the million.  It&#39;s just like the Monty Hall Problem if Monty didn&#39;t know which door had the car behind it--nobody has given us any additional information with which to prefer one case over the other.  If, however, we knew &lt;i&gt;that Howie knew&lt;/i&gt; which case had the winner, and &lt;span style=&quot;font-style: italic;&quot;&gt;he&lt;/span&gt; had started the show by opening all the other cases, then we should absolutely switch in a heartbeat, because it would improve our chance of winning from &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B26%7D&quot; align=&quot;center&quot; /&gt; to &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B25%7D%7B26%7D&quot; align=&quot;center&quot; /&gt;.  It&#39;s all about what &lt;i&gt;information&lt;/i&gt; Howie gives us.  Also, if he could give us Anya&#39;s phone number while he&#39;s at it, that would help us out, too.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/lets-make-deal-or-no-deal.html</link><author>noreply@blogger.com (drmath)</author><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-4019779349960954897</guid><pubDate>Wed, 18 Feb 2009 21:48:00 +0000</pubDate><atom:updated>2009-03-03T19:23:10.409-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">overlapping circles</category><category domain="http://www.blogger.com/atom/ns#">thetans</category><category domain="http://www.blogger.com/atom/ns#">Trig Paxton Van Palin</category><title>Trig or Treat</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;This is a question I thought of while pondering the air intake of a wood stove. The air intake is a series of holes, covered or uncovered by a sliding metal plate with equal sized holes.&lt;br /&gt;Imagine 2 circles with equal radius, R. Slide one circle over the other. Express, in terms of R, how far one circle has to occlude the other such that half of the area is covered.&lt;/i&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Bob H., Ashland, OR&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dear Bob,&lt;br /&gt;&lt;p&gt;&lt;/p&gt;Here&#39;s a picture of the problem, if I understand it correctly:&lt;br /&gt;&lt;p style=&quot;font-family: georgia;&quot; class=&quot;MsoNormal&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjU66bYB5-vtBj2Zc2wYU0LrT8LQbkzg8poZXo2UaoFJFygSIeKV7Sa11c-LHuS8geAV0gmeIt-DTBKR_-Jz5JIS-CteuEAv91dtYjkpzAiMIbAvNt1Y_m_bzZDkf3HzKd7O_YFkPXYtIA/s1600-h/trig-1.JPG&quot;&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGRl3RI3Sw7bE5071-KeWgWb35BdobS53MkrMCWSsrcpONhAIBePZYRTGT1YvwLq_DIqj4Idd-JFecGJStACS5bhj27yuSW-vEx-dns3DFWpZRd23kFv2f4HZrJhrGyGO1OwGlVg7Gz2k/s1600-h/trig-1.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 181px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGRl3RI3Sw7bE5071-KeWgWb35BdobS53MkrMCWSsrcpONhAIBePZYRTGT1YvwLq_DIqj4Idd-JFecGJStACS5bhj27yuSW-vEx-dns3DFWpZRd23kFv2f4HZrJhrGyGO1OwGlVg7Gz2k/s400/trig-1.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5304289074374653346&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For legal reasons, before we get to the solution, I feel I should warn all you readers out there: what follows may involve some high-school level &lt;span style=&quot;font-weight: bold;&quot;&gt;trigonometry&lt;/span&gt;, which I understand many of you have intentionally purged from your brains to make room for &lt;span style=&quot;font-style: italic;&quot;&gt;Grey&#39;s Anatomy &lt;/span&gt;plots.  Part of the reason I like this question so much is that it shows that these concepts may very well have some relevance (outside of the very important pursuit of measuring the heights of buildings using a sextant) despite your high school math teacher&#39;s best attempts to convince you otherwise.  &lt;span style=&quot;font-weight: bold;&quot;&gt;Those readers who are subject to trigonometry-induced seizures should turn back now&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;OK, with that out of the way, let&#39;s blow up part of the picture and label some of the relevant objects.  The goal is to get a handle on this shady part of town:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXcgmdztp0XICq_7daRc3W19cbnolbu_eRqsh4KekDy0YJRlKK_bpar5sdiJQCsGL1Ajm_vz2MCW2Y_vJeep1EPhw-rCcFoEUnL0k2-sTYKi8qTzGjZv_V1PxWk1DRxugE6CBJT6G67PI/s1600-h/trig-2.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 201px; height: 194px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXcgmdztp0XICq_7daRc3W19cbnolbu_eRqsh4KekDy0YJRlKK_bpar5sdiJQCsGL1Ajm_vz2MCW2Y_vJeep1EPhw-rCcFoEUnL0k2-sTYKi8qTzGjZv_V1PxWk1DRxugE6CBJT6G67PI/s400/trig-2.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5304290565018143394&quot; align=&quot;center&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;img src=&quot;file:///C:/Documents%20and%20Settings/AIC/Desktop/trig-2.JPG&quot; alt=&quot;&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;First, there&#39;s the radius, &lt;span style=&quot;font-style: italic;&quot;&gt;R&lt;/span&gt;, which we&#39;ve assumed is the same for the two circles.  Let&#39;s call the angle formed by the center and two points of intersection &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta&quot; align=&quot;center&quot; /&gt;.  Note: this has nothing to do with &lt;a href=&quot;http://en.wikipedia.org/wiki/Thetans&quot;&gt;thetans&lt;/a&gt; (or does it?).  Splitting this angle down the middle forms two right triangles with an angle of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta%20/%202&quot; align=&quot;center&quot; /&gt;.  According to the rules of &lt;b&gt;trigonometry&lt;/b&gt;, the height of each triangle is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?R%20%5Csin%28%5Ctheta%20/%202%29&quot; align=&quot;center&quot; /&gt; and the width is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?R%20%5Ccos%28%5Ctheta%20/%202%29&quot; align=&quot;center&quot; /&gt;, as I&#39;ve labeled here:&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUt30vwu9mjoWeGXnEyhnyrhzJ8LrS4R0TIpEsM36tV_pXc_YHvOcoMBg7jSExbPZANqfS6LwFXRy7J0ouSZNQJeO5OWmiCtzEhlRIBBDN_haJPJS7JZZi1GYK37XLwUV6XQu0okm7bCk/s1600-h/trig-3.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 290px; height: 245px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUt30vwu9mjoWeGXnEyhnyrhzJ8LrS4R0TIpEsM36tV_pXc_YHvOcoMBg7jSExbPZANqfS6LwFXRy7J0ouSZNQJeO5OWmiCtzEhlRIBBDN_haJPJS7JZZi1GYK37XLwUV6XQu0okm7bCk/s400/trig-3.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5304292322646856610&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Now, the strategy I&#39;d like to employ to compute the area of that funny little almond-shaped region, which I&#39;ll call &lt;span style=&quot;font-style: italic;&quot;&gt;C&lt;/span&gt;,  is to think of it as consisting of two pieces, each of which is the difference between a pie-slice of the circle, &lt;span style=&quot;font-style: italic;&quot;&gt;A&lt;/span&gt;, and a triangle, &lt;span style=&quot;font-style: italic;&quot;&gt;B&lt;/span&gt;.  In pictures:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDfo6o8-GTycg0joDSpmZI87BIIpQhGibx1VGxkXAYABoiFT2IIVJ93fJN4PvFsUOhKV1U5yhYdUixWS01_DYKsWHeLZQ4zH_X_VArUnE84SR0-lQkV2ViMuDFzvGTW7OC4dYrJINKy6A/s1600-h/trig-4.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 416px; height: 133px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDfo6o8-GTycg0joDSpmZI87BIIpQhGibx1VGxkXAYABoiFT2IIVJ93fJN4PvFsUOhKV1U5yhYdUixWS01_DYKsWHeLZQ4zH_X_VArUnE84SR0-lQkV2ViMuDFzvGTW7OC4dYrJINKy6A/s400/trig-4.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5304344127912879634&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The reason this helps is that circles and triangles are shapes whose areas we know how to compute.  &quot;Funny little almond shapes,&quot; not so much.&lt;br /&gt;&lt;br /&gt;The area of the circular slice is in proportion to the whole area of the circle as the angle &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta&quot; align=&quot;center&quot; /&gt; is to the whole angle of a circle, 360° (a quarter of a circle takes up 90°, for example).  So in terms of R and &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta&quot; align=&quot;center&quot; /&gt;, that&#39;s &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7BA%7D%7B%5Cpi%20R%5E2%7D%20=%20%5Cfrac%7B%5Ctheta%7D%7B360%7D&quot; align=&quot;center&quot; /&gt; and so &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?A%20=%20%5Cfrac%7B%5Ctheta%7D%7B360%7D%20*%20%5Cpi%20R%5E2&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;Now, the area of the whole triangle is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D%20%28%5Ctext%7Bbase%7D%29*%28%5Ctext%7Bheight%7D%29&quot; align=&quot;center&quot; /&gt;, which in this case is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D%20R%20%5Ccos%28%5Ctheta/2%29%20*%202%20*%20R%20%5Csin%28%5Ctheta/2%29&quot; align=&quot;center&quot; /&gt;. So, &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?B%20=%20R%5E2%20%5Ccos%28%5Ctheta/2%29%20%5Csin%28%5Ctheta/2%29&quot; align=&quot;center&quot; /&gt;.  By a sneaky trick I learned in &lt;span style=&quot;font-weight: bold;&quot;&gt;trigonometry&lt;/span&gt; class, I can rewrite this as &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?B%20=%20%5Cfrac%7B1%7D%7B2%7DR%5E2%5Csin%28%5Ctheta%29&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;If we throw all these things into the hopper, we get that the area of the almond-shaped piece, &lt;span style=&quot;font-style: italic;&quot;&gt;C&lt;/span&gt;, is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?2*%28A-B%29&quot; align=&quot;center&quot; /&gt;, and so &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?C%20=%202*%5Cleft%28%5Cfrac%7B%5Ctheta%7D%7B360%7D*%5Cpi%20R%5E2%20-%20%5Cfrac%7B1%7D%7B2%7D%20R%5E2%20%5Csin%28%5Ctheta%29%20%5Cright%29&quot; align=&quot;center&quot; /&gt;.  I can feel some of you starting to panic out there, but just take a deep breath and try to relax.  Put on some Enya or something--maybe that song she wrote about &lt;span style=&quot;font-weight: bold;&quot;&gt;trigonometry&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;What were we doing?  Oh yeah, right; now we have a formula for computing the area of the overlapping part of the two circles, which only depends on the angle &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta&quot; align=&quot;center&quot; /&gt;.  The question was, When is this area equal to half the area of the circle?, so we need to &lt;span style=&quot;font-style: italic;&quot;&gt;solve&lt;/span&gt; for &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta&quot; align=&quot;center&quot; /&gt;.  Half the area of the circle is  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D%5Cpi%20R%5E2&quot; align=&quot;center&quot; /&gt;; therefore, the equation we need to solve is:&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D%5Cpi%20R%5E2%20=%202*%5Cleft%28%5Cfrac%7B%5Ctheta%7D%7B360%7D*%5Cpi%20R%5E2%20-%20%5Cfrac%7B1%7D%7B2%7D%20R%5E2%20%5Csin%28%5Ctheta%29%5Cright%29&quot; align=&quot;center&quot; /&gt;&lt;br /&gt;&lt;br /&gt;which, after we divide through by &lt;span style=&quot;font-style: italic;&quot;&gt;&lt;/span&gt;&lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?R%5E2&quot; align=&quot;center&quot; /&gt; and clean up a bit leaves us with:&lt;br /&gt;&lt;br /&gt;&lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B%5Cpi%7D%7B2%7D%20=%20%5Cfrac%7B%5Cpi%7D%7B180%7D%20*%5Ctheta%20-%20%5Csin%28%5Ctheta%29&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;It&#39;s interesting to pause here and note that &lt;span style=&quot;font-style: italic;&quot;&gt;R &lt;/span&gt;completely vanished from the equation.  This means whatever configuration we come up with as an answer must have the same angle, independent of the radius.&lt;br /&gt;&lt;br /&gt;OK.  So, how do we solve this equation?&lt;br /&gt;&lt;br /&gt;Actually... we don&#39;t.&lt;br /&gt;&lt;br /&gt;The problem is that we have a  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta&quot; align=&quot;center&quot; /&gt; and a &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Csin%28%5Ctheta%29&quot; align=&quot;center&quot; /&gt;, and the thing about those two is that they&#39;re like Sydney and Cristina on &lt;span style=&quot;font-style: italic;&quot;&gt;Grey&#39;s Anatomy&lt;/span&gt;; they just don&#39;t mix well.  Unfortunately, there&#39;s no way to get any further with this equation using the rules of algebra.  So, here&#39;s where we cheat and approximate the solution with a calculator (in my case, a TI-89).  Maybe someday I&#39;ll tell you all about &lt;a href=&quot;http://en.wikipedia.org/wiki/Newton%27s_method&quot;&gt;what goes on inside a calculator&lt;/a&gt; when it does these approximations, or about how we could use calculus to solve the problem if the shape were something else.  But anyway, for now, the answer is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta%20%5Capprox%20132.4%5E%7B%5Ccirc%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Lastly, we should translate this answer into a more meaningful form, for example by figuring out what the distance is between the two centers of the circles.  Using &lt;span style=&quot;font-weight: bold;&quot;&gt;trigonometry&lt;/span&gt; one last time, we can write this distance as &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?2*R%5Ccos%28%5Ctheta/2%29&quot; align=&quot;center&quot; /&gt;, which for the magic &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Ctheta&quot; align=&quot;center&quot; /&gt; above is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?0.808*R&quot; align=&quot;center&quot; /&gt;.  The final picture, then, is:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqIpBTucDEB5-Ox4XK2G-Gy4N8fdj_WTMV9hjyg9lj3I3OJ7aXT-X4D2eR91G7v9Qq_JKihXH-XXSmDQMDqWBiFhGQFyfKpBrOV3j3X03s0rubAR_2uKnNgNP4tigbxxiDH3f4iVoqj2U/s1600-h/trig-5.JPG&quot;&gt;&lt;img style=&quot;cursor: pointer; width: 400px; height: 178px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqIpBTucDEB5-Ox4XK2G-Gy4N8fdj_WTMV9hjyg9lj3I3OJ7aXT-X4D2eR91G7v9Qq_JKihXH-XXSmDQMDqWBiFhGQFyfKpBrOV3j3X03s0rubAR_2uKnNgNP4tigbxxiDH3f4iVoqj2U/s400/trig-5.JPG&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5304346872789206098&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Put that in your wood stove and smoke it.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/trig-or-treat.html</link><author>noreply@blogger.com (drmath)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGRl3RI3Sw7bE5071-KeWgWb35BdobS53MkrMCWSsrcpONhAIBePZYRTGT1YvwLq_DIqj4Idd-JFecGJStACS5bhj27yuSW-vEx-dns3DFWpZRd23kFv2f4HZrJhrGyGO1OwGlVg7Gz2k/s72-c/trig-1.JPG" height="72" width="72"/><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-1849281796088499379</guid><pubDate>Wed, 18 Feb 2009 00:57:00 +0000</pubDate><atom:updated>2009-02-23T01:24:49.304-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">googol</category><category domain="http://www.blogger.com/atom/ns#">how big is that number</category><category domain="http://www.blogger.com/atom/ns#">humonga-balls</category><category domain="http://www.blogger.com/atom/ns#">megashoes</category><title>How Big is That Number?  Episode 1</title><description>This will be the first installment of a new feature I call &quot;How Big is That Number?&quot; in which I try to explain exactly how big that number is.&lt;br /&gt;&lt;i&gt;&lt;br /&gt;Dear Dr. Math,&lt;br /&gt;How much space would a googol grains of sand take up?&lt;br /&gt;xoxo,&lt;br /&gt;Frequent Googol Searcher&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Dear FreGooSear,&lt;br /&gt;&lt;br /&gt;Let me begin by thanking you for reminding us all of the correct spelling of &quot;googol&quot;.  A lot of people forget that before it inspired the name of &lt;a href=&quot;http://www.google.com/&quot;&gt;an obscure website&lt;/a&gt;, the word &quot;googol&quot;, as coined by a man named Milton Sirotta back in 1938, referred to the number &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B100%7D&quot; align=&quot;center&quot; /&gt;.  I don&#39;t know the whole story here, but I&#39;m guessing that as an infant, he somehow wrote a 1 followed by 100 zeroes (I&#39;m guessing in blue crayon), and when asked by his parents what that was, all he could make were baby sounds.  Hence the name.  Any other explanation seems highly improbable.&lt;br /&gt;&lt;br /&gt;So, how big is this number with the silly name?  Well, first off, if we wanted to address it in the nomenclature of billions and trillions, it would be known as ten thousand trillion trillion trillion trillion trillion trillion trillion trillion.  That&#39;s a ten-thousand followed by 8 trillions.  Or, if you prefer to think of it in terms of current financial events, $1 googol would be about 12,706 trillion trillion trillion trillion trillion trillion trillion &lt;a href=&quot;http://www.washingtonpost.com/wp-dyn/content/article/2009/02/17/AR2009021700221.html?hpid=topnews&quot;&gt;economic stimulus packages&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Now, to answer your question about grains of sand: let&#39;s approximate a grain of sand as a cube 1 millimeter across.  That would mean that 1000 grains of sand in a row would be 1 meter long.  So, one cubic meter would contain 1000*1000*1000, or &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E9&quot; align=&quot;center&quot; /&gt;, grains.  A googol grains, therefore, would take up  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B10%5E%7B100%7D%7D%7B10%5E%7B9%7D%7D=10%5E%7B91%7D&quot; align=&quot;center&quot; /&gt;  cubic meters of space.  And it &lt;i&gt;would&lt;/i&gt; really be &quot;space&quot;, because this is &lt;i&gt;way&lt;/i&gt; bigger than our tiny little planet could accommodate.  For comparison, a sphere the size of the Earth (which has a radius of about 6,371 kilometers, or 6,371,000 meters) has, according to &lt;a href=&quot;http://en.wikipedia.org/wiki/Volume_of_a_sphere&quot;&gt;the formula for the volume of a sphere&lt;/a&gt;, a volume equal to &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B4%7D%7B3%7D%5Cpi%20R%5E3%20=%201.083*10%5E%7B21%7D&quot; align=&quot;center&quot; /&gt; cubic meters, about &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B30%7D&quot; align=&quot;center&quot; /&gt; grains of sand, so it would take about &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B10%5E%7B100%7D%7D%7B10%5E%7B30%7D%7D=10%5E%7B70%7D&quot; align=&quot;center&quot; /&gt;  Earth-sized balls of sand to get a googol grains.  Alternatively, if you lumped all the sand together into one giant ball, you&#39;d need &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B4%7D%7B3%7D%5Cpi%20R%5E3%20=%2010%5E%7B91%7D&quot; align=&quot;center&quot; /&gt;  cubic meters, and solving for &lt;span style=&quot;font-style: italic;&quot;&gt;R&lt;/span&gt; gives us a radius of approximately &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%201.34*10%5E%7B30%7D&quot; align=&quot;center&quot; /&gt; meters, which is about 140 trillion light years, or 10,000 times bigger than the size of the observable universe.  So maybe &lt;i&gt;space itself&lt;/i&gt; wouldn&#39;t even be big enough to handle such a massive sand ball.&lt;br /&gt;&lt;br /&gt;Carrying the sand idea a little further, imagine there was a huge interstellar alien for whom the Earth appeared to be as small as a grain of sand is to us.  Now, suppose this being lived on a giant planet, the planet Gigantica, as big, relative to the alien, as the Earth is to us.  This would imply that the volume of Gigantica was in proportion to the Earth as the Earth is to a grain of sand, about &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B30%7D&quot; align=&quot;center&quot; /&gt; times as big; so Gigantica itself would be about &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B51%7D&quot; align=&quot;center&quot; /&gt; cubic meters in volume.  If, in turn, there were a still &lt;i&gt;larger&lt;/i&gt; alien for whom &lt;i&gt;Gigantica&lt;/i&gt; looked like a grain of sand and who lived on an even &lt;i&gt;larger&lt;/i&gt; planet, the planet Humonga, say, then Humonga would have to be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B30%7D&quot; align=&quot;center&quot; /&gt; times as big as Gigantica, for a volume of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B81%7D&quot; align=&quot;center&quot; /&gt; cubic meters.  Now, if &lt;i&gt;yet an even larger&lt;/i&gt; alien, from the planet Ginormica, looked down on &lt;i&gt;Humonga&lt;/i&gt; as a tiny grain of sand, it would require &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B10%7D&quot; align=&quot;center&quot; /&gt; Humonga-balls to comprise a volume of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B91%7D&quot; align=&quot;center&quot; /&gt; cubic meters, which you&#39;ll recall was the volume of space taken up by a googol grains of our puny Earth-sand.  Back here on Earth, &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%2010%5E%7B10%7D&quot; align=&quot;center&quot; /&gt; grains of sand is 10 cubic meters, about the volume of a nice 10 meter by 10 meter patch of beach (assuming a depth of 10 centimeters).  So on Ginormica, this giant giant giant alien could kick back in a beach chair, sip a giant giant giant beer and build a giant giant giant sand castle out of those googol grains with plenty of sand left over to get in its megashoes.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/how-big-is-that-number-episode-1.html</link><author>noreply@blogger.com (drmath)</author><thr:total>7</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-3137448572002096463</guid><pubDate>Sat, 14 Feb 2009 07:27:00 +0000</pubDate><atom:updated>2009-02-24T22:05:06.706-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">expected value</category><category domain="http://www.blogger.com/atom/ns#">half a baby</category><category domain="http://www.blogger.com/atom/ns#">polling</category><category domain="http://www.blogger.com/atom/ns#">probability</category><category domain="http://www.blogger.com/atom/ns#">the expected value when you&#39;re expecting</category><title>Unexpected Values, part 3</title><description>And now, the exciting conclusion!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Dear Dr. Math,&lt;br /&gt;My college administration says that the student-teacher ratio is 5:1.  But all my classes have like 30 people in them.  What gives?  Are they just lying?&lt;br /&gt;Sincerely,&lt;br /&gt;A Student at a Local College&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Well, ASAALC, that depends on what you mean by &quot;lying.&quot;  If you mean, Are they miscalculating their student-faculty ratio?, then the answer&#39;s probably &quot;no.&quot;  These things are public information, and anyone with a calculator can divide the number of students by the number of teachers.  (Whether they include non-teaching faculty, like that weird guy who lives in the basement and hasn&#39;t taught a class since the 60s, is kind of an ethical gray-area.)  However, if the question is, Are they misleading people by reporting a somewhat meaningless statistic?, then &quot;yes.&quot;  Here&#39;s how the magic trick works:&lt;br /&gt;&lt;br /&gt;It all comes back to the idea of average, and the different things the word &quot;average&quot; means to people.  Many people think of &quot;average&quot; as meaning &quot;typical&quot; or &quot;to be expected,&quot; a misperception that isn&#39;t helped any by the synonym &quot;expected value.&quot;  So, if a college reports that it has a student-teacher ratio of 5:1, or equivalently, that it has an average class size of 5, people leap to the conclusion that the typical class they&#39;ll encounter at the college will have 5 people in it (and how awesome is that?!).  However, that may not be the typical experience, and it may even be impossible.  Let&#39;s take a look at a simple example:&lt;br /&gt;&lt;br /&gt;If I told you that my girlfriend and I were going to flip a coin and decide whether to have a baby based on the result,* the average number of babies we would have, i.e., our expected number of babies, would be 1/2.  But of course, we would be surprised, even shocked, if we actually had half a baby.  In this case, the &quot;expected&quot; value is anything but.  The value 1/2 just represents the &lt;i&gt;plausibility&lt;/i&gt; we associate to the chance of having one baby.  If we repeated the experiment many times, the ratio of babies to attempts would converge to 1/2.&lt;br /&gt;&lt;br /&gt;Similarly, suppose that a tiny school had 10 total students and 2 teachers.  So, the student-teacher ratio is 5:1.  Now, let&#39;s say one of the teachers is that awesome guy who lets you call him by his first name, and the other has really bad dandruff or something, so 9 people register for Class #1 and only 1 person registers for Class #2.  The average class size is the average of 9 and 1, which is 5--equal to the ratio of students to teachers, as it should be.  However, if I picked a random &lt;i&gt;student&lt;/i&gt; and asked him (it&#39;s an all boys&#39; school) how many people were in his class, 9 times out of 10 he would say 9, and 1 time out of 10 he would say 1.  So the average &lt;i&gt;response I would get&lt;/i&gt; would be &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%20%5Cfrac%7B9%7D%7B10%7D*9%20+%20%5Cfrac%7B1%7D%7B10%7D*1%20=%208.2&quot; align=&quot;center&quot; /&gt;, for a difference of 3.2!  In fact, the only way the two numbers can actually be the same is if all the classes are exactly the same size.&lt;br /&gt;&lt;br /&gt;If you think about it, it makes perfect sense that I&#39;d get someone in a larger class more often in a random poll, since the larger classes &lt;i&gt;have more people in them&lt;/i&gt; &lt;span style=&quot;font-style: italic;&quot;&gt;to get polled&lt;/span&gt;.  The question, then, is which of these numbers actually represents the &quot;typical&quot; student experience.  Since the student-teacher ratio is generally smaller, the schools are happy to just report that and hope you don&#39;t notice the difference.  What they really &lt;i&gt;should&lt;/i&gt; be reporting is something more like the &lt;i&gt;distribution&lt;/i&gt; of class sizes.  As it is now, if you want to know what the classes are like, you&#39;ve just got to go see for yourself.&lt;br /&gt;&lt;br /&gt;Also, what&#39;s the deal with the vending machine only having Pepsi?&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;*For the record, that&#39;s not how we do it.  We roll a 20-sided die.</description><link>http://doctormath.blogspot.com/2009/02/unexpected-values-part-3.html</link><author>noreply@blogger.com (drmath)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-4763077540834079816</guid><pubDate>Sat, 14 Feb 2009 06:23:00 +0000</pubDate><atom:updated>2009-02-23T01:28:42.483-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">expected value</category><category domain="http://www.blogger.com/atom/ns#">gambling</category><category domain="http://www.blogger.com/atom/ns#">how big is that number</category><category domain="http://www.blogger.com/atom/ns#">lottery</category><category domain="http://www.blogger.com/atom/ns#">probability</category><title>Unexpected Values, part 2</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;Is it ever a good idea to play the lottery?  My dad says he only buys a ticket when the jackpot is bigger than the odds against winning, but we&#39;re still broke.&lt;br /&gt;Angelica&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Dear Angelica,&lt;br /&gt;&lt;br /&gt;NO!!&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;P.S.--Here&#39;s why:&lt;br /&gt;&lt;br /&gt;Hopefully, by now you&#39;ve read &lt;a href=&quot;http://doctormath.blogspot.com/2009/02/unexpected-values-part-1.html&quot;&gt;my previous post&lt;/a&gt; all about expected values.  (If not, go read it now; I&#39;ll wait here.  OK?  OK.)  Now, the thing your dad is referring to is the fact, which is a fact, that the expected value of the lottery is occasionally greater than $1, the cost of the ticket.  Assuming you play the Powerball, which is the most popular lottery in the U.S., your odds of winning the jackpot are 1 in 195,249,054.  (If you&#39;d like, I&#39;ll show you how to compute that sometime.)  So, considering only the jackpot, if the payoff is higher than $195,249,054, the expected value of the lottery, i.e., the jackpot times the probability of winning, would actually be greater than the cost, so it would seem that math &lt;span style=&quot;font-style: italic;&quot;&gt;is&lt;/span&gt; telling us to play.  However, this is still not a convincing argument, even putting aside other practical concerns involved in winning the lottery.*&lt;br /&gt;&lt;br /&gt;The reason comes back to the idea of variance, which I also talked about last time.  Just so you can follow along at home, the variance of a simple game like this is computed like so: you take the payoff squared times the probability of winning and subtract the expected value squared.  So let&#39;s say, for example, that the jackpot was $200 million one week.  Then the expected value would be the probability of winning times the jackpot, which is  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B195,249,054%7D%20*%20200,000,000&quot; align=&quot;center&quot; /&gt;, about $1.02.  The variance, therefore, is  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?200,000,000%5E2%20*%20%5Cfrac%7B1%7D%7B195,249,054%7D%20-%201.02%5E2%20=%20204,866,549&quot; align=&quot;center&quot; /&gt;.  &lt;i&gt;Mamma mia!  &lt;/i&gt;That&#39;s a lot of variance!&lt;br /&gt;&lt;br /&gt;If you remember from last time, the problem with having too high a variance in a bet is that you typically run out of money before you get to win--the distribution of your winnings/losses is too spread out.  So, in effect, if you had unlimited funds (which I know for a fact you don&#39;t, Angelica) and you could play the lottery with the same odds every week for several billion years, it might actually be a good investment, because on average you would win back $1.02 for every $1 you gambled, a nice healthy 2% return.  However, since you&#39;re only going to play it at most a few hundred more times (and hopefully &lt;i&gt;no&lt;/i&gt; more after today!), the variance is just too high for you to handle.  It&#39;s kind of a paradox, really, that the decision to place a particular bet once depends on your ability/plans to bet many times.  What we see here is an interesting example of the &lt;i&gt;tradeoff&lt;/i&gt; between expected value and variance.  Sometimes, depending on your circumstances, it&#39;s worth sacrificing a little of one to improve the other.  If someone offered you $0.99 for your $1 lottery ticket, for example, I&#39;d recommend you sell, no matter how high the jackpot is.&lt;br /&gt;&lt;br /&gt;Incidentally, in my opinion, this is how the banking industries and insurance industries make money (or, at least, &lt;i&gt;used to&lt;/i&gt; back when they existed).  Let&#39;s say you&#39;re deciding whether to insure your $100,000 house at a cost to you of $1,500.  For argument&#39;s sake, let&#39;s say you have an extra $100,000 in savings that you could use to replace the house if need be, so the only cost is monetary.  And let&#39;s assume that the chance of your house being completely destroyed is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B100%7D&quot; align=&quot;center&quot; /&gt; ; you know it, and the insurance company knows it.  So, you&#39;re trading a bet (no insurance) with an expected loss of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B100%7D*100,000%20=%20%5C$1,000&quot; align=&quot;center&quot; /&gt;   but a fairly high variance for a sure-thing loss of $1,500 (if your house burns down, you don&#39;t lose anything except the time it takes to file an insurance claim and replace your stuff) and no variance at all.  But the extra peace of mind is worth something to you, so maybe you&#39;re willing to pay the $500 premium for it.  Meanwhile, the insurance company (and the bank that underwrites your policy) is buying millions of these bets, and so their distribution of income is turning into a bell curve, narrowing down pretty much to a fine point centered around a $500 profit per policy.  Voilà, everyone wins, but they win more simply by virtue of already being large.  (The problem occurs when they start taking that money and doubling down on risky investments, unless they get bail... oh wait, never mind.)&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;*The diminishing marginal utility of money, the chance of having to split winnings with another person, the amount lost to income tax, and the failure to adjust for inflation, to name a few.</description><link>http://doctormath.blogspot.com/2009/02/unexpected-values-part-2.html</link><author>noreply@blogger.com (drmath)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-6953866077907169183</guid><pubDate>Sat, 14 Feb 2009 05:32:00 +0000</pubDate><atom:updated>2009-02-24T20:11:27.732-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">central limit theorem</category><category domain="http://www.blogger.com/atom/ns#">expected value</category><category domain="http://www.blogger.com/atom/ns#">free cocktail strategy</category><category domain="http://www.blogger.com/atom/ns#">gambling</category><category domain="http://www.blogger.com/atom/ns#">law of large numbers</category><category domain="http://www.blogger.com/atom/ns#">probability</category><title>Unexpected Values, part 1</title><description>I&#39;ve gotten a lot of questions all related to the idea of averages, so I&#39;m going to devote the next 3 posts to discussing different facets of averaging.  It&#39;ll be like a trilogy, but hopefully one more like &lt;span style=&quot;font-style: italic;&quot;&gt;Lord of the Rings&lt;/span&gt; than &lt;span style=&quot;font-style: italic;&quot;&gt;Jurassic Park&lt;/span&gt;.  Stay tuned to find out!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dear Dr. Math,&lt;br /&gt;&lt;i&gt;Is there a difference in roulette between betting on black versus betting on a number, like 6?  What about betting both at the same time?  I usually have more fun betting on black, because my guess is that by betting on black I lose money more slowly, but I&#39;m not sure which is actually better.&lt;br /&gt;Sean&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Dear Sean,&lt;br /&gt;&lt;br /&gt;My first rule of gambling is don&#39;t gamble.  (The second rule of gamb.... OK, you get the idea.)  But I wouldn&#39;t be much of an advice columnist if I told you to do something just because I said so, without helping you understand why.  So, maybe after we dissect this gambling question we can talk about why gambling is generally a bad idea.  Then we&#39;ll talk about why you should sit up straight and why you didn&#39;t call me on my birthday.&lt;br /&gt;&lt;br /&gt;OK, first: why the bets are the fundamentally the same, and second: why they&#39;re different.&lt;br /&gt;&lt;br /&gt;The most rudimentary way of analyzing the quality of a bet is computing what&#39;s called its &lt;i&gt;expected value&lt;/i&gt;.  This is the number you get by multiplying each possible payoff by its probability and adding them all together.  In roulette, and most other casino games, both the payoffs and the probabilities are well-known, so the expected value is easy to compute.  As a convention, we always compute the expected value for a bet of $1 (my kind of bet), but for you high-rollers who bet $&lt;i&gt;n&lt;/i&gt;, you can just multiply the end result by &lt;i&gt;n&lt;/i&gt;.  In the first example, your bet on black, there are 18 ways to win (the 18 black pockets) and 20 ways to lose (the 18 red pockets and the 2 green ones), and we&#39;re assuming that every pocket is equally likely, so the probability of winning is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B18%7D%7B38%7D&quot; align=&quot;center&quot; /&gt;.  If you win, you get $2--your original $1 back plus another one from the house.  If you lose, which happens with probability &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B20%7D%7B38%7D&quot; align=&quot;center&quot; /&gt;, you get nothing but my condolences, which have no cash value.  So altogether your expected value is  &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B18%7D%7B38%7D*2+%5Cfrac%7B20%7D%7B38%7D*0%20=%20%5Cfrac%7B36%7D%7B38%7D&quot; align=&quot;center&quot; /&gt;, or $0.946.  Note that the &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B20%7D%7B38%7D*0&quot; align=&quot;center&quot; /&gt; wasn&#39;t really doing anything in that calculation, so for simplicity we can skip that part from now on.&lt;br /&gt;&lt;br /&gt;Now, the bet on 6 has a lower probability of winning but a higher payoff, and as we&#39;ll see, the two effects cancel each other out exactly.  The payoff for winning a bet on 6 is $36, including your $1 plus $35 of the house&#39;s, and the probability of winning is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B38%7D&quot; align=&quot;center&quot; /&gt;, since there&#39;s only the one 6 on the wheel, as in life.  Hence, the expected value of the bet is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B38%7D*36%20=%20%5Cfrac%7B36%7D%7B38%7D%20=%20%5C$0.946&quot; align=&quot;center&quot; /&gt; again.  Those clever French guys in the 18th century managed to design the game of roulette so that almost every bet has that same expected value of $0.946, or 94.6¢.  Interestingly enough, in America, there &lt;i&gt;is&lt;/i&gt; actually one bet which is worse--the &quot;5 number&quot; bet on 0, 00, 1, 2, and 3, which has a payoff of $7 and a probability of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B5%7D%7B38%7D&quot; align=&quot;center&quot; /&gt;, for an expected value of &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B35%7D%7B38%7D=%5C$0.921&quot; align=&quot;center&quot; /&gt;--but since they don&#39;t use a 00 in other places, we Americans have that unique opportunity of actually making a worse decision when playing roulette than just playing roulette in the first place.&lt;br /&gt;&lt;br /&gt;The reason the expected value matters so much has to do with something I&#39;m sure I&#39;ll be talking a lot about in future entries, The Law of Large Numbers, sometimes mistakenly called the &quot;Law of Averages.&quot;  Essentially (and pay attention to the words I emphasize for clues about how people misuse it), the LLN says that if you keep making the &lt;i&gt;same bet&lt;/i&gt; over and over again, in the &lt;i&gt;long run&lt;/i&gt;, the total payoff &lt;i&gt;divided by the total number of bets&lt;/i&gt; will converge to the expected value of the bet.  So, both your bet on black and your bet on 6 will pay you off $0.946 per bet on average, assuming you have enough chips to hang around and keep betting.  Notice that this is a &lt;i&gt;bad thing&lt;/i&gt; for you and a good thing for the house, because the expected value is less than the price to play the game, $1.  I remember being surprised when I went to Las Vegas that so many casinos advertise things like &quot;99% payoffs guaranteed,&quot; meaning they&#39;re guaranteeing that you lose money?&lt;br /&gt;&lt;br /&gt;Also, it&#39;s worth mentioning that you can&#39;t improve the situation by sneakily combining multiple bets or betting different amounts or any of the other so-called &quot;systems&quot;.  Expected value has the property that you can compute the expected values of each part of an overlapping bet, like 6 &lt;i&gt;and &lt;/i&gt;black, separately and then just add them together.  In the end, a bet of $1 bet gives you back an average of $0.946 until you simply run out of money and go home.&lt;br /&gt;&lt;br /&gt;The difference, then, between the two kinds of bets has to do with something called their &lt;i&gt;variance&lt;/i&gt;, or its square root which goes by the name &lt;i&gt;standard deviation&lt;/i&gt;.  I&#39;ll spare you the formulas (for now), but essentially variance is a measurement of how &quot;spread out&quot; the payoffs of a bet are.  So, among all the bets with the same expected value, the bet with the lowest possible variance, which is 0, is the bet where you just hand over your money.  The variance gets higher as the payoff gets higher (and the probability of winning gets lower, in order to keep the expected value the same).  In the examples above, the bet on black has a variance of about 1.0 and the bet on 6 has a variance of about 33.2, which is substantially larger.&lt;br /&gt;&lt;br /&gt;What&#39;s going on kind of behind-the-curtain is that over time, if you keep placing the same bet over and over, the &lt;i&gt;distribution&lt;/i&gt; of your accumulated winnings takes the shape of a bell curve (by the &lt;a href=&quot;http://en.wikipedia.org/wiki/Central_limit_theorem&quot; target=&quot;_blank&quot;&gt;Central Limit Theorem&lt;/a&gt;).  The mean of that curve is determined by the expected value of each bet (on account of the LLN); how spread out it is depends on the variance.  And if you don&#39;t want a lot of risk (of losing &lt;i&gt;or winning&lt;/i&gt;), you should try to reduce that spread as much as possible.  The casino, for example, would prefer that you just hand over the 5.26 cents you were going to lose on average and repeat.  Since that wouldn&#39;t be much fun for you, they offer a little variance to keep you entertained.  But as you rightly point out, too much variance isn&#39;t fun either, because you don&#39;t get to &quot;win&quot; very often, and so you might not come back to play again.  So it&#39;s a delicate balance.  Personally, I like the strategy of betting the table minimum on black and red simultaneously and drinking as many free cocktails as possible while my chip stack gradually diminishes.  But these are personal decisions.&lt;br /&gt;&lt;br /&gt;Bottom line: you can&#39;t beat the house, all you can do is maybe make it take a little longer for them to beat you.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/unexpected-values-part-1.html</link><author>noreply@blogger.com (drmath)</author><thr:total>4</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-2645858622095814135</guid><pubDate>Wed, 11 Feb 2009 23:34:00 +0000</pubDate><atom:updated>2009-02-18T23:40:31.541-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">how big is that number</category><category domain="http://www.blogger.com/atom/ns#">infinite monkey theorem</category><category domain="http://www.blogger.com/atom/ns#">probability</category><title>&quot;in a hole in the grou31;aadn,m vnatoh424...&quot;</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;Suppose you have a computer randomly generating all the characters making up the text of &lt;/i&gt;The Hobbit&lt;i&gt;. Suppose the computer generates 200 characters per second. Is there a time period after which it becomes probable that the computer has produced the text of &lt;/i&gt;The Hobbit&lt;i&gt;? My gut tells me, &quot;No, it would never happen.&quot;&lt;br /&gt;Consider this. If a sufficiently powerful being wanted to write a 20,000 page history of tea-drinking, it could either&lt;br /&gt;(a) produce the book&lt;br /&gt;(b) produce all possible 20,000 page long sequences of keyboard characters&lt;br /&gt;TolkienFan&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Dear TolkienFan,&lt;br /&gt;&lt;br /&gt;Your question is related to the famous &lt;a href=&quot;http://en.wikipedia.org/wiki/Infinite_monkey_theorem&quot;&gt;Infinite Monkey Theorem&lt;/a&gt;, about a room full of monkeys randomly banging on typewriters for all eternity eventually producing the complete works of Shakespeare.  (Digression #1: an English major I knew once joked that the monkeys could reproduce the complete works of D.H. Lawrence in a surprisingly short time.)  It turns out that the answer is &quot;yes&quot; in some abstract sense, as long as we&#39;re careful about what we mean, but the amount of time it would take is far beyond our comprehension--many many orders of magnitude more than the estimated age of the universe.  Here&#39;s a quick back-of-the-envelope calculation:&lt;br /&gt;&lt;br /&gt;1.) Let&#39;s only consider the characters on a standard typewriter.  Let&#39;s say there are 50 possible characters (including numbers and punctuation, but ignoring capitalization, say), although it turns out not to matter very much whether there are 50 keys or 50,000.&lt;br /&gt;&lt;br /&gt;2.) Approximate the length of &lt;i&gt;The Hobbit&lt;/i&gt; as 360,000 characters--it&#39;s a 320 page book, times a standard 250 words per page, times an average 4.5 letters per word in English.&lt;br /&gt;&lt;br /&gt;3.) Assume all characters are equally likely to be output by the random generator, be it computer or monkey.  (Digression #2: someone actually did this experiment once with real live monkeys and found that the monkeys were extremely overly fond of the letter &quot;s&quot; for some reason.  Also, they [the monkeys] really enjoyed urinating on the keyboard.)  Assume the characters are probabilistically independent of each other, i.e., knowing what one character is doesn&#39;t inform our knowledge of any other one.&lt;br /&gt;&lt;br /&gt;4.) Now, break up the output of the generator into chunks of length 360,000.  For each chunk, the chance of the first character being equal to the first character of &lt;i&gt;The Hobbit&lt;/i&gt;, which is &quot;i&quot;, is &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B50%7D&quot; align=&quot;center&quot; /&gt;.  By the assumption of independence, the chance of the first two characters being correct, &quot;in&quot;, is &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B50%7D%20*%20%5Cfrac%7B1%7D%7B50%7D&quot; align=&quot;center&quot; /&gt;, or &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B50%5E2%7D&quot; align=&quot;center&quot; /&gt;, and so on.  So the chance of the whole block of 360,000 characters reproducing the entire book is &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B50%5E%7B360,000%7D%7D&quot; align=&quot;center&quot; /&gt;, which is about &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B-611629%7D&quot; /&gt;, an astronomically small number.  Let&#39;s call that number &lt;i&gt;p&lt;/i&gt;.  The probability of failing to produce &lt;span style=&quot;font-style: italic;&quot;&gt;The Hobbit&lt;/span&gt; in each chunk is (1-&lt;i&gt;p&lt;/i&gt;).&lt;br /&gt;&lt;br /&gt;5.) If we imagine doing this process a second time, the probability that we&#39;d fail both times is &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%281-p%29%5E2&quot; /&gt;, because of the independence property again. In general if we repeat it &lt;i&gt;n&lt;/i&gt; times, the probability of failing all &lt;i&gt;n&lt;/i&gt; times is &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cinline%20%281-p%29%5En&quot; /&gt;.  Now, and this is the key, (1-&lt;i&gt;p&lt;/i&gt;) is &lt;i&gt;extremely&lt;/i&gt; close to 1 but isn&#39;t actually &lt;i&gt;equal&lt;/i&gt; to 1. So if we take &lt;i&gt;n&lt;/i&gt; large enough, the probability of failure will eventually converge to 0; meaning that &lt;i&gt;with high probability&lt;/i&gt; we will have at some point succeeded in producing &lt;i&gt;The Hobbit&lt;/i&gt;.  It&#39;s not clear what&#39;s meant by an event being &quot;probable,&quot; but if, say, we wanted there to be a 95% probability of success, meaning a 5% chance of failure, we would need &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%281-p%29%5En=1-.95=.05&quot; /&gt;.  So to solve for &lt;i&gt;n&lt;/i&gt;, we can take logarithms of both sides and divide by &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?log%281-p%29&quot; /&gt;, to get that &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?n=%5Cfrac%7Blog%28.05%29%7D%7Blog%281-p%29%7D&quot; align=&quot;center&quot; /&gt;, which is on the order of &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7Bp%7D&quot; align=&quot;center&quot; /&gt;, or about &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B611629%7D&quot; /&gt; blocks of characters.&lt;br /&gt;&lt;br /&gt;6.) To give you a sense of how incredibly large this number is, if we generated 200 characters per second, as you say, then 360,000 characters would take 30 minutes, so we could produce about 48 new blocks every day, or 17650 per year, on the order of &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B4%7D&quot; /&gt;.  This would mean that our &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B611629%7D&quot; /&gt; blocks would take about &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B611625%7D&quot; /&gt; years.  For comparison, the universe is estimated to be around 13 billion years old, approximately &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B10%7D&quot; /&gt;, so you would need &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?10%5E%7B611615%7D&quot; /&gt; ages of the universe to have completed the task with 95% probability.  Even if you had every atom in the universe working in parallel for the lifetime of the universe, you&#39;d barely make a dent.  Surely all our protons would have decayed into nothingness long before you even got to the part in the book where the trolls get turned to stone.&lt;br /&gt;&lt;br /&gt;I suppose the moral of all of this, if you believe in that sort of thing, is that sometimes the mathematical consequences of our assumptions can far outstrip our intuition, especially when it comes to events that are exceedingly rare or numbers that are exceedingly large.  So in a sense your &quot;gut feeling&quot; is right as far as any practical considerations go.  Jorge Luis Borges wrote a story about this called &lt;i&gt;The Library of Babel&lt;/i&gt;, which deals exactly with your scenario of a powerful being producing every possible book of a certain length.  It&#39;s true that among such a vast library, there would be a comprehensive volume of the history of tea-drinking.  However, there would also by necessity be an incredible number of &lt;i&gt;false&lt;/i&gt; histories, every possible one in fact, as well as fraudulent cures for cancer and incorrect predictions for the next 100 World Series winners, and, importantly, there would be &lt;i&gt;no way&lt;/i&gt; to distinguish the fake from the genuine.  So it&#39;s back to option (a) I&#39;m afraid--just write the book.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/in-hole-in-grou31aadnm-vnatoh424.html</link><author>noreply@blogger.com (drmath)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-721846190996799525</guid><pubDate>Tue, 10 Feb 2009 06:56:00 +0000</pubDate><atom:updated>2009-02-18T23:46:30.927-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">ca$h money</category><category domain="http://www.blogger.com/atom/ns#">new york effing city</category><category domain="http://www.blogger.com/atom/ns#">the dying middle class</category><title>In the Big Apple, I prefer Honeycrisp.</title><description>I&#39;ve been called out by Short Round over at &lt;a href=&quot;http://www.alt85.com/&quot;&gt;alt85&lt;/a&gt; again, concerning &lt;a href=&quot;http://www.nytimes.com/2009/02/08/fashion/08halfmill.html?_r=1&quot;&gt;a recent article&lt;/a&gt; in &lt;i&gt;The New York Times&lt;/i&gt;:&lt;br /&gt;&lt;br /&gt;&lt;i&gt;The article included one piece of information with direct relevance to the little people: &quot;a new study from the Center for an Urban Future, a nonprofit research group in Manhattan, estmates that it takes $123,322 to enjoy the same middle-class life as someone earning $50,000 in Houston.&quot;  [Tugs nervously at collar.]  And since the average median* per-capita income in Houston in 1999 (according to houstontx.gov) was $20,101, and since the Urban Future people&#39;s figures would suggest that $20,101 in Houston is worth less than $49,578 in New York (for reasons that the newly returned Dr. Math could surely explain better than I,** unless he disagrees, in which case I challenge him to a duel)...  Well, New York is f**kin&#39; expensive.  Not news.&lt;br /&gt;Short Round&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Sir, I accept!&lt;br /&gt;&lt;br /&gt;So, I&#39;m not generally opposed to the conclusion that New York ¢ity is an expensive place to live.  (God knows I could use an extra $500K a year to spend on all those things that I&#39;ve heard the city is supposedly famous for but that I&#39;m too poor to experience.)  The authors of this article seem to be basically assuming that conclusion from the beginning.  In a sense, all this &quot;news&quot; piece is even claiming to do is put some quantitative weight behind a stereotype that we&#39;ve all pretty much agreed on already.  But since it involves numbers, I can&#39;t resist picking apart their methodology a little.  The Devil, as always, is in the details:&lt;br /&gt;&lt;br /&gt;First off, I had to do some considerable digging to even get to the original source of this email-forward-ready statement that $50,000 Houston dollars is equivalent to $123,322 Dollars New York ($NY).  The &lt;a href=&quot;http://www.nytimes.com/2009/02/08/fashion/08halfmill.html?_r=1&quot;&gt;Times article&lt;/a&gt; cites a &lt;a href=&quot;http://www.nycfuture.org/content/articles/article_view.cfm?article_id=1233&amp;amp;article_type=0&quot;&gt;report&lt;/a&gt; from the oddly-named Center for an Urban Future, which used a &lt;a href=&quot;http://cgi.money.cnn.com/tools/costofliving/costofliving.html&quot;&gt;cost-of-living calculator&lt;/a&gt; from the CNN (yes, CNN) website, which had as &lt;i&gt;its&lt;/i&gt; source material a survey done by the &lt;a href=&quot;http://www.coli.org/compare.asp&quot;&gt;Council for Community and Economic Research (C2ER)&lt;/a&gt;, in which they hired surveyors to sample prices from various cities they wanted to compare (more on that later).  The (Center for an Urban Future) report is a 52 page document entitled &quot;Reviving the City of Aspiration&quot; about ongoing trends in the middle class of America, particularly in New York.  One problem right off the bat is that the authors never precisely define what they mean by &quot;middle class&quot;.  They write, &quot;In this study, we use [&#39;middle class&#39;] to indicate those who own homes or who have the prospect of becoming homeowners, earn at least in the middle quintile of wages and enjoy a modicum of economic stability.&quot;  They then go on to wax poetic for a while about the important contributions middle class Americans make to society (including &quot;providing the customer base for a wide mix of businesses across the city,&quot; adding to New York&#39;s &quot;street life&quot; and, somewhat circularly, owning homes).  But setting aside the logical hiccup for a minute, it&#39;s still not clear from the definition who exactly qualifies as middle class.  Rather, it&#39;s somewhat clear what the &lt;i&gt;minimum&lt;/i&gt; standards are for membership--you have to own a home or have &quot;the prospect&quot; of doing so, earn &quot;at least in the middle quintile of wages,&quot; which is sloppily phrased but I&#39;m guessing means you have to earn more than at least 40% of people in the area, and have &quot;a modicum&quot; of economic stability, which they explain as being able to consistently pay your bills--but there seems to be no clear &lt;i&gt;maximum&lt;/i&gt; standards.  For example, would someone earning $250K per year in the &lt;a href=&quot;http://pubdb3.census.gov/macro/032007/hhinc/new06_000.htm&quot;&gt;98th percentile&lt;/a&gt; be considered middle class, assuming he owned a house and could pay his bills (for monocle cleaning and storage)?  Maybe, by the authors&#39; definition, but certainly not by mine.&lt;br /&gt;&lt;br /&gt;Now, if we trace this comparison-of-cities data all the way back to its source, the C2ER survey, we find an interesting disparity.  The basic idea of the survey was to follow some sample of people around and make a log of the prices of all the things they paid for--clothes, food, entertainment, travel, etc.--to get a measurement of the relative cost of living in different places.  However, in &lt;a href=&quot;http://www.coli.org/surveyforms/colimanual.pdf&quot;&gt;the guidelines&lt;/a&gt; for the survey participants, it says specifically that the authors are not looking for middle class consumers to follow around (they changed their original survey language because &quot;it was too easily confused with &#39;middle class,&#39; which isn&#39;t the same thing at all&quot;); rather, they focus on a population they call &quot;moderately affluent professional and managerial households&quot;, who are characterized as &quot;a household consisting of both spouses and one child (for pricing apartments, it is assumed that the couple is childless or the individual is single)&quot; with the criteria that &quot;both spouses hold college degrees; at least one has an established professional or managerial career,&quot; and, most significantly, &quot;household income is in the &lt;i&gt;top quintile for the area&lt;/i&gt;&quot; (emphasis mine).  For most cities, they say that the household annual income should be &quot;between $70,000 and $100,000;&quot; however, as they say, &quot;the appropriate income range will be higher in traditionally high-cost places like New York...&quot;  So our monocle-polishing Uncle Moneybags the hedge fund manager would be included in the survey.&lt;br /&gt;&lt;br /&gt;What&#39;s the real problem with this?  Apart from the fact that we&#39;ve gotten, &lt;i&gt;explicitly&lt;/i&gt;, pretty far away even from the ill-defined &quot;middle class&quot; of the Urban Future report, upon whose homeowning backs the street life of the city rests, we&#39;ve also gotten into some shaky statistical territory, where I believe we&#39;re not even comparing apples to apples anymore, but rather something like apples to &lt;i&gt;different kinds&lt;/i&gt; of apples (Fuji to Jonagold), to learn all about oranges.  And also the middle class.  I don&#39;t have any hard data to back me up here, but my sense from having lived in New York for a little while now is that, due to the presence of so many ultra rich celebrities and financiers, the shape of the distribution of incomes here is more heavily slanted towards the top (&quot;fat-tailed,&quot; as they say), meaning not only is the average income higher, but the &lt;i&gt;relative&lt;/i&gt; difference between the top 20% and those of us way down in the middle is considerably greater than in other U.S. cities.  In pictures, the graph of incomes in New York is more like this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIrgyJM4FdSJAP6nHZG9WteoOyx_blNYCrdNHmx4fax0OwqISyXBS1eiMaHTOj4p4lSLo68fcTVn89hkGl-4Oc-Mlj84PqZBVNMZxE5MZOpmKtN7BdOhO9nnohW8Mrojke8BEtOu3lv-I/s1600-h/chart104.gif&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 477px; height: 224px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIrgyJM4FdSJAP6nHZG9WteoOyx_blNYCrdNHmx4fax0OwqISyXBS1eiMaHTOj4p4lSLo68fcTVn89hkGl-4Oc-Mlj84PqZBVNMZxE5MZOpmKtN7BdOhO9nnohW8Mrojke8BEtOu3lv-I/s320/chart104.gif&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5301068759561785810&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;than this:&lt;br /&gt;&lt;br /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://www.mathnstuff.com/math/spoken/here/2class/90/statpb.gif&quot;&gt;&lt;img style=&quot;margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 266px; height: 289px;&quot; src=&quot;http://www.mathnstuff.com/math/spoken/here/2class/90/statpb.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the latter case (Houston), it doesn&#39;t take much more income to put you in the top 20%, but in New York, it takes considerably more.  So, the potential gap in luxury lifestyles is exaggerated, and as a result, more especially luxurious opportunities open up for those who can afford them.  There really just isn&#39;t a Houston equivalent of buying a $150 truffle and &lt;i&gt;foie gras&lt;/i&gt; burger at Bistro Moderne or paying $75K per year for a personal driver or all the other outrageous things the &lt;i&gt;Times&lt;/i&gt; article mentions.&lt;br /&gt;&lt;br /&gt;Which all brings me all the way around to the point: that measuring what it costs to uphold a &quot;standard of living&quot; is an extremely difficult and subtle problem, one which requires a great deal of precision and care.  And it may not really be possible when the markers of that standard vary so greatly from place to place.  New York is a pretty special town with no real equivalent anywhere else in the U.S., and in fact, based on the ways we live our lives, renting instead of owning, riding the subway instead of driving, eating fancy burgers made out of goose liver... it may not even make sense to think of it as part of the U.S., despite its importance as a cultural hub.&lt;br /&gt;&lt;br /&gt;Like the old song goes, &quot;New York, New York, it&#39;s a pretty special town with no real equivalent anywhere else in the U.S., and in fact, based on the ways we live our lives, renting instead of owning, riding the subway instead of driving, eating fancy burgers made out of goose liver... it may not even make sense to think of it as part of the U.S., despite its importance as a cultural hub.&quot;&lt;br /&gt;&lt;br /&gt;-DrM&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;P.S.--To Short Round: oddly enough, it seems that &quot;average median&quot; is correct there.  In the report, they averaged together the median incomes of the various ethnic groups in the suburbs of Houston, presumably with some weighting.  Hence, average median income.  Weird.</description><link>http://doctormath.blogspot.com/2009/02/ive-been-called-out-by-short-round-over.html</link><author>noreply@blogger.com (drmath)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIrgyJM4FdSJAP6nHZG9WteoOyx_blNYCrdNHmx4fax0OwqISyXBS1eiMaHTOj4p4lSLo68fcTVn89hkGl-4Oc-Mlj84PqZBVNMZxE5MZOpmKtN7BdOhO9nnohW8Mrojke8BEtOu3lv-I/s72-c/chart104.gif" height="72" width="72"/><thr:total>3</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-3788373036481985664</guid><pubDate>Sun, 08 Feb 2009 05:27:00 +0000</pubDate><atom:updated>2009-02-18T00:05:10.006-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">mortality rate</category><category domain="http://www.blogger.com/atom/ns#">probability</category><category domain="http://www.blogger.com/atom/ns#">ruth bader ginsburg</category><title>The Scales of Justice</title><description>&lt;i&gt;Dear Dr. Math,&lt;br /&gt;I don&#39;t mean to be crass, but what are the chances that Ruth Bader Ginsburg is going to die during Barack Obama&#39;s presidency?  I read that the average lifespan of an American is 78 years, and she&#39;s only 75 but now she has cancer.  Also, some of the other judges are old, too.  How many appointments is he probably going to have to make in the next 4 years?&lt;br /&gt;Sincerely,&lt;br /&gt;ScotusLover728&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Dear ScotusLover,&lt;br /&gt;&lt;br /&gt;With the recent news about Justice Ginsburg being diagnosed with pancreatic cancer, this is a topic on the minds of a lot of people.  Of course, we&#39;re all hoping for the best for her, but the issue of Supreme Court appointments has ramifications far beyond our wishes for her health.  When one vote can make the difference in &lt;a href=&quot;http://en.wikipedia.org/wiki/Bowers_v._Hardwick&quot;&gt;who can stick what in whose what&lt;/a&gt; or &lt;a href=&quot;http://en.wikipedia.org/wiki/Ledbetter_v._Goodyear_Tire_%26_Rubber_Co.&quot;&gt;whether little old ladies deserve equal pay for equal work&lt;/a&gt; or even &lt;a href=&quot;http://en.wikipedia.org/wiki/Bush_vs_Gore&quot;&gt;who the president was for the last 8 years&lt;/a&gt;, the news that one of the justices has a potentially deadly illness gets everyone&#39;s attention.&lt;br /&gt;&lt;br /&gt;First off, we should dispense with the whole &quot;average lifespan&quot; argument, which is largely irrelevant here.  The statistics you&#39;ve probably seen quoted are the expected (in the sense of average, or mean) lifespan of someone born today.  It includes the effect of a fair number of people dying young.  As someone gets older, his/her expected lifespan increases, because we have to incorporate into the calculation the fact that he/she is still alive.  The relevant numbers for these things can be found in what are called &lt;a href=&quot;http://en.wikipedia.org/wiki/Life_table&quot;&gt;life tables&lt;/a&gt;, which are tools that actuaries use to figure out what your grandmother&#39;s life insurance premiums should be, etc.  However, these are still just averages over large swaths of the population and they don&#39;t take into consideration any more particular information we might have about someone.&lt;br /&gt;&lt;br /&gt;So, in Justice Ginsburg&#39;s case, the more relevant number is the &lt;a href=&quot;http://en.wikipedia.org/wiki/Mortality_rate&quot;&gt;mortality rate&lt;/a&gt; for her particular form of pancreatic cancer, given the stage at which it was diagnosed.  And unfortunately, the numbers are not particularly good.  One number that the news media seems to have latched onto is that only 5% of people diagnosed with pancreatic cancer survive for 5 years after the diagnosis.  Again, &lt;a ref=&quot;http://doctormath.blogspot.com/2008/10/we-all-use-math-every-day-or-do-we-yes.html&quot;&gt;I&#39;m not a doctor&lt;/a&gt;, but from Googling around I&#39;ve discovered that a big part of the reason pancreatic cancer is so deadly is that it frequently goes undetected until it&#39;s already in a fairly advanced stage.  So, the fact that her cancer was caught relatively early should work to her favor.  I think the right number to be considering here is the survival rate for pancreatic cancer in its earliest stage, which is &lt;a href=&quot;http://health.usnews.com/articles/health/cancer/2009/02/05/6-things-you-need-to-know-about-pancreatic-cancer.html?s_cid=related-links:TOP&quot;&gt;something like 35% after 5 years&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;It&#39;s important to remember, also, that these statistics just reflect the potential of dying from the disease (assuming they&#39;re measuring &lt;a href=&quot;http://www.cancer.org/docroot/CRI/content/CRI_2_2_4X_How_Is_Pancreatic_Cancer_Treated_34.asp?sitearea=&quot;&gt;relative survival rates&lt;/a&gt;).  That is, the number 35% is supposed to represent the percentage of people diagnosed with cancer who are still alive after 5 years given that they &lt;i&gt;would have been alive anyway&lt;/i&gt;.  Of course, it&#39;s a difficult thing to measure, but it means we should include the fact that Ruth is 75 years old and that just being 75 &lt;i&gt;itself&lt;/i&gt; has a 5 year survival rate of &lt;a href=&quot;http://www.ssa.gov/OACT/STATS/table4c6.html&quot;&gt;83%&lt;/a&gt; (for American females).  To determine that overall survival rate, I took the number of women alive at age 80 and divided by the number alive at age 75.&lt;br /&gt;&lt;br /&gt;In the final tally, then, my best guess for Justice Ginsburg&#39;s chances of living out the next 5 years would be the chance that any 75-year-old woman would live 5 more years times the relative survival rate for someone with an early diagnosis of pancreatic cancer, that is, (.83)*(.35) = .29, or 29%.  There&#39;s no accounting for determination, the will to live, or hatred of Antonin Scalia, however.  The lesson to draw from all of this is that the more information you have about a particular person, the more precisely you can fine-tune the analysis of his/her situation, but also the less data you have to draw conclusions from.  Really, what we&#39;d like to know is the 5 year survival rate for being Ruth Bader Ginsburg, but there&#39;s only been 1 known case in history.&lt;br /&gt;&lt;br /&gt;To answer your other question about likely Supreme Court appointments, I could go through each remaining justice and compile mortality tables for each based on his particular lifestyle and risk factors, but maybe I should leave that as an exercise for the reader.  Personally, I find all this kind of creepy.  I will say that Justice Stevens is 88, and the 5 year survival rate for an 88-year-old American male is &lt;a href=&quot;http://www.ssa.gov/OACT/STATS/table4c6.html&quot;&gt;36%&lt;/a&gt;, or about the same as Justice Ginsburg&#39;s cancer diagnosis.  Of course, there can be many reasons for a justice to leave the court besides death, as well.  Of the 101 Supreme Court justices who have left the court, only 50 have done so by dying.  The remaining 51 resigned or retired, presumably before they died, unless they were pulling a &lt;a href=&quot;http://en.wikipedia.org/wiki/Jeremy_Bentham#Auto-icon&quot;&gt;Jeremy Bentham&lt;/a&gt;.  It appears that having an extremely silly name is not a &lt;a href=&quot;http://en.wikipedia.org/wiki/Lucius_Quintus_Cincinnatus_Lamar_%28II%29&quot;&gt;risk&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Felix_Frankfurter&quot;&gt;factor&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;A rough estimate for the average rate of appointments can be gotten by dividing the total number of appointments, 110, by the age of the Supreme Court, which is 220 years young (happy birthday, Supreme Court!).  So that&#39;s a rate of about half a justice per year, meaning Barack Obama will have to appoint an average of 2 justices for each term he serves as president.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2009/02/scales-of-justice.html</link><author>noreply@blogger.com (drmath)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-8253282490244289999</guid><pubDate>Wed, 08 Oct 2008 06:01:00 +0000</pubDate><atom:updated>2009-02-17T23:59:18.392-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">cannonball runs</category><category domain="http://www.blogger.com/atom/ns#">fuel economy</category><category domain="http://www.blogger.com/atom/ns#">gas mileage</category><category domain="http://www.blogger.com/atom/ns#">toyota prius</category><title>Rods to the Hogshead</title><description>&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;Dear Doctor Math,&lt;br /&gt;Should I buy a Prius or a Honda Civic?  At the Toyota dealership they told me the Prius pays for itself in gas savings, but I don&#39;t trust them.&lt;br /&gt;Thanks,&lt;br /&gt;Deke&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Well, Deke, it&#39;s good to be skeptical.  But let&#39;s see if we can crunch the numbers and settle this for ourselves without having to trust a car salesman to figure it out for us.&lt;br /&gt;&lt;br /&gt;First, we&#39;ll have to make some assumptions about the costs of the various things in question and the ways that you&#39;re planning to use your car, whichever one you get.  All of the numbers I&#39;m about to quote came from the &lt;a href=&quot;http://fueleconomy.gov/&quot;&gt;EPA&#39;s fuel economy website&lt;/a&gt;.   Now, I don&#39;t know anything about you, but I&#39;ll go ahead and assume you drive about 15,000 miles per year, like the average American does.  (Someday I&#39;ll write about the difference between &quot;average&quot; and &quot;typical,&quot; but we&#39;ll table that discussion for now.)  Of that 15,000 miles, I&#39;ll assume that approximately 55% is &quot;city&quot; driving and the other 45% is &quot;highway,&quot; again in keeping with the average.  So that works out to 8,250 miles in the city and 6,750 miles on the highway.  If you&#39;re involved in a lot of cannonball runs, you can adjust accordingly.&lt;br /&gt;&lt;br /&gt;According to the EPA&#39;s latest numbers, the 2009 Honda Civic gets 25 miles per gallon in the city, 36 highway.  So, every year you would use 8,250/25, or 330, gallons of gas in city driving and 6,750/36, or 187.5, gallons on the highway.  You total volume of gas used per year in the Civic would be 330 + 187.5, or 517.5 gallons.&lt;br /&gt;&lt;br /&gt;Due to its greater efficiency in stop-and-go traffic, the Toyota Prius gets 48 miles per gallon in the city and 45 on the highway.  Therefore, the total amount it guzzles per year is 8,250/48 + 6,750/46, or 321.8 gallons.&lt;br /&gt;&lt;br /&gt;Now, gas prices are hard to predict, but let&#39;s guess that over the lifespan of your car, gas will cost an average of $4.00 per gallon (in 2008 dollars).  That seems like a reasonable projection given the way prices have historically risen.  So that works out to 517.5*4, or $2,070, per year for the Civic and 321.8*4, or $1,287, for the Prius.  Every year, that means you save $783 by driving the Prius.&lt;br /&gt;&lt;br /&gt;According to the manufacturers, the suggested retail price for the Civic is $16,205; for the Prius it&#39;s $22,000.  These prices assume a basic package; probably, any extras you might want, like ground effects or those things that make it jump up and down, would cost about as much for either car.  The difference in price, therefore, is $5,795, which would take 5,795/783, or about 7.4, years to pay off in gas savings.  Of course, if gas goes up even more, say to $5 per gallon, that number would come down to as little as 6 years.&lt;br /&gt;&lt;br /&gt;Either way, it seems like a fairly long time, but not outside the realm of possibility.  I couldn&#39;t find any good numbers here, but people I know who own cars seem to get a new one about every 5 years.  Maybe you hold to your cars a little longer, Deke, or maybe there might be other things about driving a Prius that appeal to you, I don&#39;t know.  But strictly in terms of the gas savings, it doesn&#39;t seem to quite be worth it, although it&#39;s close.  The market seems to have done a pretty good job sorting out these relative prices.&lt;br /&gt;&lt;br /&gt;An interesting side-note here is that the &lt;span style=&quot;font-style: italic;&quot;&gt;marginal&lt;/span&gt; gas savings (that is, the money saved per every additional mpg) go down as the cars get more efficient.  For example, doing the same calculation as before, we can see that an SUV that gets 10 miles per gallon costs $1,000 more per year in gas than one that gets 12 miles per gallon.  So, the more important choices may not be between pretty good and very good, but between bad and very-slightly-less-bad.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2008/10/rods-to-hogshead.html</link><author>noreply@blogger.com (drmath)</author><thr:total>5</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-1470740531394122721</guid><pubDate>Sun, 05 Oct 2008 20:55:00 +0000</pubDate><atom:updated>2009-02-18T00:05:44.506-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">central limit theorem</category><category domain="http://www.blogger.com/atom/ns#">margin of error</category><category domain="http://www.blogger.com/atom/ns#">polling</category><category domain="http://www.blogger.com/atom/ns#">president obama</category><category domain="http://www.blogger.com/atom/ns#">probability</category><title>Poll Position</title><description>&lt;i&gt;Dear Doctor Math,&lt;br /&gt;I saw a poll today that said Obama is up 7 percentage points in Ohio with a margin of error of 4%.  So does that mean he could actually be losing there?  Also, how can they come up with these numbers just by asking a few hundred people?&lt;br /&gt;A Concerned Citizen&lt;br /&gt;&lt;br /&gt;&lt;/i&gt;Those are good questions, ACC, and they&#39;re related.  To answer them, I should talk a little about how polling works and what the various numbers mean.  First off, polling is an imperfect attempt at predicting the future.  No one knows for sure what&#39;s going to happen on election day, and sometimes (see Florida in 2000) it&#39;s hard to figure out what &lt;i&gt;did&lt;/i&gt; happen even after the election.  But polls are our best guess, and usually they do a pretty good job.&lt;br /&gt;&lt;br /&gt;To conduct a poll, a news agency like CBS or Reuters or a public opinion firm like Rasmussen gets a staff of questioners to each call a handful of people and ask them their opinion on things, like how they&#39;re planning to vote.  Since it takes time and money to make the calls, the pollsters typically limit themselves to something like a few thousand people.  Of course, a lot of people (like young people who don&#39;t have landlines and probably vote Democratic, but never mind...) don&#39;t answer, so by the time the pollsters compile all their data together, they&#39;ve got maybe 1000 quality responses to go on.  From here they try to figure out what the remaining millions of people in the state or country are thinking, and then they report that information, thereby influencing the way people think, but that&#39;s another story.&lt;br /&gt;&lt;br /&gt;So, the first question is, how do they know they didn&#39;t just ask all the wrong people?  And the answer is they don&#39;t know for sure, of course, but if their methods are sound they can say with a reasonable degree of certainty that their polling numbers reflect the larger population.  Think of Mario Batali tasting a single spoonful out of a pot of marinara sauce to see if it needs more oregano.  Of course, it&#39;s possible he just got the most oreganoed spoonful in the whole pot, but if he&#39;s done a good job of stirring it up beforehand, he can be reasonably sure that his sample was &lt;i&gt;representative&lt;/i&gt; of the distribution of the whole.  But it would still be embarrassing for him to be wrong, so it would be nice to at least have some idea how &lt;i&gt;much&lt;/i&gt; of a risk he was taking or maybe if he should taste it again.&lt;br /&gt;&lt;br /&gt;That&#39;s where the &quot;margin of error&quot; comes in.  The error that pollsters give is an indication of how sure they are that the sample they chose is a reasonable reflection of the population at large.  For reasons I hope to get into someday (involving &lt;a href=&quot;http://en.wikipedia.org/wiki/Central_limit_theorem&quot;&gt;The Central Limit Theorem&lt;/a&gt;), the pollsters assume that the &quot;true&quot; value of the thing they&#39;re estimating follows a bell-shaped curve centered around their estimate.  So, if they&#39;re trying to figure out how many people in Ohio are going to vote for Obama, they take the results from their poll (49% in the latest &lt;i&gt;Columbus Dispatch &lt;/i&gt;poll) and say that the actual percentage of people planning to vote for Obama has a &lt;i&gt;probability distribution&lt;/i&gt; forming a bell-curve centered around 49%.  That means they can actually quantify the probability that their estimate is off by any given amount.  The &lt;i&gt;margin of error&lt;/i&gt; is the amount of deviation it takes before the pollsters can say with 95% probability that the true value is within that much of the estimate.  They pick 95% mostly out of convention and the fact that it&#39;s easy to compute.  Here, the key factor is the number of respondents--a rough formula for the margin of error (at the 95% level) for a sample of N people is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B0.98%7D%7B%5Csqrt%7BN%7D%7D&quot; align=&quot;center&quot; /&gt;, which for 1000 people comes out to be about 0.03, or 3%.  They might occasionally bump it up to 4% just to be extra sure.&lt;br /&gt;&lt;br /&gt;Now, to answer your question, does this mean that McCain could actually be ahead?  After all, the 7 point difference is less than twice the margin of error, so if we add that much to McCain and take it away from Obama, it does put McCain on top.  It&#39;s possible, as I mentioned above, that the pollsters just asked enough of the wrong people to skew the numbers.  In fact, if you&#39;ve been paying close attention to what I said about the true value having a bell-curve distribution, you might have noticed that actually the situation is in some sense &lt;i&gt;worse&lt;/i&gt; than just that.  That 4% number is just the cutoff for the 95% confidence interval; it could be (with about 5% probability) that the poll is off by even &lt;i&gt;more&lt;/i&gt; than 4%.  Should we just throw up our hands and quit?&lt;br /&gt;&lt;br /&gt;The important thing to remember here is that the margin of error isn&#39;t the end of the story.  The bell-shaped curve which gave us the error calculation also shows us that it&#39;s more likely than not that our estimate is close to the truth.  So again, we can quantify the degree of certainty that we have in estimating the difference between Obama&#39;s percentage and McCain&#39;s.  Using a formula (that I admit I had to look up), we can compute that the &lt;i&gt;standard error&lt;/i&gt;, a measure of how spread out the distribution is, in that estimation of the 7% Obama-McCain gap in Ohio is about 0.03.  That means the bell-curve is pretty narrowly distributed around the guess.  According to the bell-curve distribution, this gives a probability of about 99% that Obama is &quot;truly&quot; ahead in Ohio.&lt;br /&gt;&lt;br /&gt;So, yes, even if those polling numbers are correct, it is possible that McCain&#39;s ahead, but I wouldn&#39;t bet on it (unless someone was giving me greater than 100-to-1 odds).&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2008/10/poll-to-poll.html</link><author>noreply@blogger.com (drmath)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-9211009607316149384</guid><pubDate>Sat, 04 Oct 2008 21:55:00 +0000</pubDate><atom:updated>2009-02-18T00:05:25.239-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">base rate fallacy</category><category domain="http://www.blogger.com/atom/ns#">fallacy of the week</category><category domain="http://www.blogger.com/atom/ns#">false positive</category><category domain="http://www.blogger.com/atom/ns#">probability</category><category domain="http://www.blogger.com/atom/ns#">psychogenic dwarfism</category><title>Fallacy of the Week: The Base Rate Fallacy</title><description>&lt;span style=&quot;font-style: italic;&quot;&gt;Dear Doctor Math,&lt;br /&gt;If a doctor tells you that you tested positive for something and that the test is 99% accurate, does that mean you have a 99% chance of having the disease? Just curious.&lt;br /&gt;MTG&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;I should probably begin by reiterating that I&#39;m not actually a doctor, at least not &lt;span style=&quot;font-style: italic;&quot;&gt;that &lt;/span&gt;kind (see earlier post), so please don&#39;t take what I&#39;m about to say as medical advice. But basically the answer is no, or at least you can&#39;t tell without further information. You see, what your doctor may have omitted telling you is the &lt;span style=&quot;font-style: italic;&quot;&gt;base rate&lt;/span&gt; for the disease in question, that is, the general probability of having the disease without the extra information that you tested positive for it. If that base rate is really low, even a very accurate test isn&#39;t a strong indicator of having the disease. Let me illustrate with some numbers:&lt;br /&gt;&lt;br /&gt;Let&#39;s say that, on average, 1 out of every 1 million people suffers from &lt;a href=&quot;http://en.wikipedia.org/wiki/Psychogenic_dwarfism&quot;&gt;psychogenic dwarfism&lt;/a&gt;.  So, for this condition your base rate is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B1,000,000%7D&quot; align=&quot;center&quot; /&gt;, or .0001%.  Now, you go in for a physical and the doctor says that you tested positive for this debilitating condition, and that the test is 99% accurate.  There&#39;s some room for interpretation as to what that means exactly, but let&#39;s take it to mean that (1) if you actually have the condition, you&#39;ll definitely test positive, and (2) if you don&#39;t have the condition, there&#39;s a 99% chance you&#39;ll test negative.  So, what are your odds?  Well, imagine that 100 million people go in for tests.  We know that about 100 of them will actually be psychogenic dwarves.  Of the remaining 99,999,900 people, however, about 1% will test positive even though they don&#39;t have it.  So that means 999,999 &lt;i&gt;false positives&lt;/i&gt; compared to only 100 true positives.  The total number of people testing positive is 100 + 999,999, or 1,000,099, and only 100 of them actually have the disease.  Since all you know is that you tested positive, you don&#39;t know which of these people you are, so your chance of actually being positive is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B100%7D%7B1,000,099%7D&quot; align=&quot;center&quot; /&gt;, about 1 in 10,000, or .01%.  Bottom line: it&#39;s still &lt;i&gt;very&lt;/i&gt; unlikely that you have the condition, even though you tested positive for it and the test is very accurate, so don&#39;t go out and sell all your normal-sized clothes just yet.&lt;br /&gt;&lt;br /&gt;The basic rule here is always to consider the number of true positives relative to the total number of people who &lt;span style=&quot;font-style: italic;&quot;&gt;would&lt;/span&gt; test positive, true or false.  What we&#39;ve seen in this example, and what frequently turns out to be the case, is that even a test that sounds like a sure thing can end up producing &lt;i&gt;way&lt;/i&gt; more false positives than true ones, just because there aren&#39;t that many true positives out there to discover.  (For another example, ask the Department of Homeland Security about their terrorist-detecting techniques.)  I think part of the problem here is that we&#39;re dealing with numbers that we don&#39;t have much intuitive grasp for.  I mean, &quot;one in a million&quot; basically means it won&#39;t ever happen, right?  But &quot;99 percent accurate&quot; means it &lt;i&gt;must&lt;/i&gt; be true.  So how do you decide?  The nice thing about math is that can&#39;t get bullied around by intimidating sounding numbers like these; it just puts them in their relative place.  Remember, probability is ultimately all about information, and it should take a &lt;i&gt;lot&lt;/i&gt; of evidence to convince us of something extremely unlikely.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2008/10/fallacy-of-week-base-rate-fallacy.html</link><author>noreply@blogger.com (drmath)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-6300627089932388484</guid><pubDate>Fri, 03 Oct 2008 04:09:00 +0000</pubDate><atom:updated>2009-02-18T23:42:54.431-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">boys/girls</category><category domain="http://www.blogger.com/atom/ns#">probability</category><category domain="http://www.blogger.com/atom/ns#">Zac Efron</category><title>Boys and/or Girls</title><description>Here&#39;s a classic probability puzzler that&#39;s been floating around in the aether recently.  The particular question came from my good friend Short Round over at &lt;a href=&quot;http://www.alt85.com/&quot;&gt;www.alt85.com&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Dear Doctor Math,&lt;br /&gt;You know that a certain family has two children, and that at least one is a girl. But you can&#39;t recall whether both are girls. What is the probability that the family has two girls?  I stole this question from the infernet.&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;SR&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;First let me give the answer, and then I&#39;ll talk about why it sounds wrong.&lt;br /&gt;&lt;br /&gt;The answer is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B3%7D&quot; align=&quot;center&quot; /&gt;.  Let&#39;s call the two kids Ashley and Whitney (could be boys&#39; or girls&#39; names, get it?); there are initially four possibilities for the genders of (Ashley, Whitney) without the extra restriction that one has to be a girl.  They are: (boy, boy), (boy, girl), (girl, boy), (girl, girl).  Assuming that each kid is a boy or a girl with equal probability and that the genders of the kids are independent from each other, each pairing has probability &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B4%7D&quot; align=&quot;center&quot; /&gt; because we have no information to prefer one over the others.  Now, with the added information that at least one is girl (we saw some moisturizer in the bathroom but we don&#39;t know whose it is), we can eliminate the (boy, boy) possibility.  However, we still have no information to indicate that any one of the remaining three pairings is more likely than any other, and so the probability of each of them is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B3%7D&quot; align=&quot;center&quot; /&gt;, given the new information.  Thus, the chance of there being two girls is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B3%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Now, as I mentioned before, this is a classic brainteaser, which really just demonstrates the weird counterintuitive things that can happen when you ask for the probability of an event given some unusual information.  Most people balk at the idea of there being a &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B2%7D%7B3%7D&quot; align=&quot;center&quot; /&gt; chance of a kid being a boy, because they&#39;re so conditioned to think of the odds always being equal, but since probability is an expression of the &lt;span style=&quot;font-style: italic;&quot;&gt;information&lt;/span&gt; you have about some event and the consequences of said information, it&#39;s entirely possible to construct bizarre examples like this one (it&#39;s hard to contrive a scenario where you would know just that one of the kids is a girl but not know which one).  Strangely, if you know the &lt;span style=&quot;font-style: italic;&quot;&gt;oldest&lt;/span&gt; child is a girl, then the probability of the other being a girl goes back up to &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B2%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;To show what would happen if you took this a few steps further--let&#39;s say you had a whole busload full of 10 people with androgynous names and you didn&#39;t know the genders of any of them.  To help us tell them apart, let&#39;s refer to each by his/her seat number, 1 through 10.  There are two possibilities for each person, and they&#39;re independent of each other, so to start off with, there are &lt;img align=&quot;center&quot; id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?2%5E%7B10%7D&quot; /&gt;, or 1024, possible configurations for the gender line-up, all equally likely.  Now, suppose you find Zac Efron posters in the duffel bags of nine out of the ten people, so you know there are at least nine girls but somehow you don&#39;t know who they are.  Given that information, you can eliminate all but 11 remaining possibilities: either they&#39;re all girls, or there&#39;s one boy, and he&#39;s sitting in one of 10 possible seats.  Again, we have no reason to think one of these outcomes is more likely than any other; thus, the resulting probability that you actually have a bus full of all girls is &lt;img id=&quot;equationview&quot; name=&quot;equationview&quot; onload=&quot;processEquationChange()&quot; title=&quot;This is the rendered form of the equation. You can not edit this directly. Right click will give you the option to save the image, and in most browsers you can drag the image onto your desktop or another program.&quot; src=&quot;http://latex.codecogs.com/gif.latex?%5Cfrac%7B1%7D%7B11%7D&quot; align=&quot;center&quot; /&gt;.&lt;br /&gt;&lt;br /&gt;Like puberty, probability can be scary sometimes, but that&#39;s just life.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2008/10/heres-classic-probability-puzzler-thats.html</link><author>noreply@blogger.com (drmath)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-1920088135580776574.post-5611623093691147303</guid><pubDate>Thu, 02 Oct 2008 18:06:00 +0000</pubDate><atom:updated>2009-02-17T23:55:19.481-08:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">we all use math everyday</category><title>We all use math every day.  Or do we?  Yes.</title><description>Hi and welcome to Ask Doctor Math, the warm cozy corner of the Internet where anyone with a math question can pull up a virtual seat, grab a mug of hot virtual cocoa, and sit by the glowing virtual fire of knowledge as I attempt to answer questions mathematical.  I created this blog as a forum for people young and old to clear up some lingering misconceptions, bring fuzzy notions a little more into focus, and, with luck, add a few more tools to the toolbox of ideas they use to make sense of the world.  I may not be &lt;i&gt;that&lt;/i&gt; kind of doctor, but I&#39;d like you to think of me that way anyway--the friendly old small-town physician you can come to with anything, from questions about birth control or that rash on your back to home remedies for a colicky baby or a toothache; hell, I&#39;ll even help birth a foal, if that&#39;s what you need.  (Note: the preceding was just an extended metaphor.)  I hope to be your guide on a journey of mathematical discovery.  So please, come on in and make yourself at home.  Take off your virtual shoes if you like, or don&#39;t, it&#39;s up to you.&lt;br /&gt;&lt;br /&gt;To kick things off, I thought I&#39;d reply to a question that seems to be on a lot of people&#39;s minds these days regarding the alleged difference between the &quot;mathematical world&quot; and the so-called &quot;real world.&quot;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;Dear Doctor Math,&lt;br /&gt;A guy on TV keeps telling me that &quot;We all use math every day.&quot;  Is that really true?  Give several dozen examples.&lt;br /&gt;Sincerely,&lt;br /&gt;Dr. Math (you)&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;Before even beginning to scratch at the surface of that question, I think we should talk a little about what we mean by &quot;math&quot; exactly.  For a lot of people I&#39;ve talked to, &quot;math&quot; is basically synonymous with &quot;numbers.&quot;  So, in that sense, yes, we probably do all encounter math every day, telling time, riding on a bus, dialing a phone, etc.  If we didn&#39;t have numbers, we&#39;d be forced to use little pictures of things, so it&#39;s convenient to have a shorthand.  But a lot of that could only be superficially described as mathematical.&lt;br /&gt;&lt;br /&gt;Perhaps a little more tangible application of math is in &lt;i&gt;quantitative&lt;/i&gt; &lt;i&gt;reasoning&lt;/i&gt;--the kind of thing we&#39;re forced to do a lot in our capitalistic society (&quot;How much is 30% off $80?&quot;, &quot;How do I split a $32 dinner bill 3 ways?&quot;, &quot;Which is a better value, a 2&#39;x3&#39; rug for $25 or a 4&#39;x6&#39; rug for $60?&quot;, &quot;How long will it take me to go 90 miles if I average 55 miles per hour?&quot;, &quot;How many fluid ounces are in 2.5 liters?&quot;, etc.).  The main tools we generally use here are fractions, percents, ratios, and basic arithmetic--addition, subtraction, multiplication (and its evil stepchild division).  A lot of the time we just ballpark it, though, and our powers of guesstimation are more or less adequate to get us through a typical day.  When it&#39;s really important that we get something right, we outsource the job to a computer, cell phone, calculator, or cash register.  So in that sense, I&#39;d say we use math, but we could probably all stand to be a little better at it.  At any rate, there&#39;s not much genuine thinking involved.&lt;br /&gt;&lt;br /&gt;Probably what the writers of &lt;i&gt;Numb3rs&lt;/i&gt; had in mind, though, is the notion (championed by high school math teachers everywhere), that even when we&#39;re not explicitly dealing with numbers (or numb3rs), we frequently use our powers of &lt;i&gt;analytical reasoning&lt;/i&gt; in a way that could be broadly be considered mathematical.  Our toolkit here includes such things as deductive logic (&quot;Just because I said that dress doesn&#39;t make you look fat doesn&#39;t mean you don&#39;t.&quot;, &quot;Every girl knows someone who likes everyone else more than her.&quot;), elementary hypothesis testing (&quot;My doctor said the test is 90% accurate; how concerned should I be?&quot;, &quot;I guess there could be an innocent explanation for why that guy would be running down the street carrying a TV at 2am.&quot; ), and management of risk (&quot;What does it mean that my birth control method is 99.9% safe?&quot;, &quot;The weather forecast calls for a 30% chance of rain; should I bring an umbrella or not?&quot;).  I would also include in this category some basic optimization problems, like &quot;How do I fit all these boxes in the car?&quot;, &quot;Is this couch too big to fit through my hallway?&quot;, or &quot;Should I park here or look for a better spot?&quot;.  Again, these questions don&#39;t really tap our quantitative skills so much as our rational/logical thinking skills.  A lot of it is intuitive, but a lot can be trained by thinking our way through other rational/logical problems.  At its core, that&#39;s what math is really all about--practice for the kind of problem-solving that&#39;s required of us to navigate a sometimes complex and baffling world.&lt;br /&gt;&lt;br /&gt;And like it or not, we are being subjected to persuasion of an increasingly mathematical bent.  News reports like clockwork regularly tell us what activities or foods might be correlated with cancer or aging.  As we move into political crunch-time, we are barraged almost daily by statistical arguments about the state of the nation and who might be to blame for what, as well as the frequent polling results with their &quot;margins of error&quot; and what this means for the so-called &quot;electoral math.&quot;  The present crisis on Wall Street has, among other things, shown the hazard in trusting all of our quantitative risk-management to a few experts, whom we treat like the high priests who are the only ones allowed into the holy sanctuary.  If we&#39;re afraid to take responsibility for our role in distinguishing mathematical argument from fallacy, we will only get more and more manipulated by those to whom we yield that authority.&lt;br /&gt;&lt;br /&gt;In other words, we may not use math every day, but it sure as hell uses us.&lt;br /&gt;&lt;br /&gt;-DrM</description><link>http://doctormath.blogspot.com/2008/10/we-all-use-math-every-day-or-do-we-yes.html</link><author>noreply@blogger.com (drmath)</author><thr:total>1</thr:total></item></channel></rss>