layout | title | date | categories | permalink | use_math |
---|---|---|---|---|---|
post |
Of coins and dice (and Infinite Jest) |
2021-04-19 |
writing |
/blog/coins-dice.html |
true |
Consider this maths problem:
My friend and I each toss $n$ fair coins. What is the probability we each get the same number of heads?
Here's one way to solve this. First lets look at my friend's coin tosses. There are
But the question is asking for the probability we match on any number of heads. So we have to sum this probability over all possible values of
That's all very well, but it's not a particularly helpful answer -- it's quite a messy formula and it's not clear how big that number is for large
Here's a second way to solve the problem, which elegantly uses some of the symmetry of the situation to its benefit.
The question asks: What's the probability that the number of heads my friend gets is equal to the number of heads I get? But I'm just as likely to get
Well, that one's easy: it's
which might not look the same as the previous answer, but actually is.
Not only is this a simpler formula, but it's easier to work out the behaviour for large
so our answer is roughly
So if we each toss 100 coins, the probability we get the same number of heads as each other is exactly 5.63% (or 5.64% under our approximation).
Now, that previous answer seems to me definitely the "best" way to solve the problem. But I do have another method to get the approximation at least, which will prove useful later.
Strictly speaking, the number of heads my friend gets, call it
We get the same number of heads if
Now, that integrand will be roughly constant between
We recover the same approximate answer we had before.
Over on Michael Lugo's blog, Nick Berry raises the dice version of the problem:
My friend and I each toss $n$ regular 6-sided dice. What is the probability we each get the same total?
Berry says that simulations suggest the answer might be
Can we solve this using the same techniques we used for the coin? Now, I guess one could try to get the exact answer directly, like our first method, but it looks horrible and I don't want to do that.
Can we use the symmetry technique from answer 2? If we say that the opposite of
But our normal approximation method will still work fine. The score of one dice roll has variance
Approximating the probability in the same way as before gives the answer
And that's our answer! (Approximately, for large
The coin tossing problem above is related to an curious probability error in David Foster Wallace's mega-novel Infinite Jest. (I should credit Olly as the world's premier the-probability-error-in-Inifnite-Jest-grouser; I've now forgotten whether he first told me about this, I first told him, or if we found out independently.)
In the section "6 November, Year of the Depend Adult Undergarment", Wallace -- or, rather, the narrator -- writes about a tennis meet:
But so a normal meet between two junior teams is the best out of nine matches, whereas this mammoth annual early-November thing between E.T.A. and P.W.T.A. will try to be the best out of 108. A 54-match-all conclusion is extremely unlikely -- odds being 1 in
$2^{27}$ -- and has never happened in nine years.
Now, by the arguments we've seen above, we know that the probability of a 54-match-all conclusion is in fact
This is roughly 1 in 13 -- a small-ish, but not super-rare, probability -- not 1 in
It's not clear how Wallace (or his narrator) made this error: we can see that the probability given is
Postscript to the postscript: David Foster Wallace also wrote a nonfiction book about mathematics, called Everything and More: A History of ∞. I haven't read it, but I enjoyed the review of it by Jim Holt. You can read the entire review here, if you have a New Yorker subscription, or there's an only-slightly-shortened version at LitHub.