Skip to main content

Flipping coins!

Thanks to Peet Morris for this excellent example of probability running counter to common sense.

Imagine I have a huge stack of coins and flip them one after another. These are fair coins, with a 50:50 chance of coming up heads or tails.

First of all I flip the coins one after another (leaving the flipped coins on the table) until the sequence H T H comes up. At that point I stop and count the coins. Then I repeat this experiment many times.

For the second part I again flip the coins, leaving them on the table, until the sequence H T T comes up. At that point I stop and count the coins. Then I repeat the experiment many times.

On average would you expect it to take more flips to produce H T H, more flips to produce H T T or the same number of flips?

Common sense says this is pretty obvious. It's the same number of flips. And certainly if I take three coins and flip them, there's the same chance of H T H or H T T coming up. But, remarkably, things are different in the experiment above. On average you will take fewer flips to produce H T T than you would to to produce H T H.

Just take a moment to think how that might be possible.

Here's the sneaky probabalistic component that isn't obvious: in both cases, you need the sequence H T to come up first. Now imagine that you then get the wrong face on the next flip. So if you were looking for H T H you actually get H T T and vice versa. With this starting point, H T T has an advantage. If you were looking for H T T, and actually got H T H, then the last coin in the sequence is H. So you only need T T to complete your sequence. If you were looking for H T H and actually got H T T, then the last coin the sequence is T, so you need all three of H T H to complete the sequence.

The reason H T T does better is that the sequence of faces that isn't correct ends in the face that starts your sequence. For H T H, the wrong result produces a bad starting point, so you have to run the exercise that bit longer.

Comments

Popular posts from this blog

Why I hate opera

If I'm honest, the title of this post is an exaggeration to make a point. I don't really hate opera. There are a couple of operas - notably Monteverdi's Incoranazione di Poppea and Purcell's Dido & Aeneas - that I quite like. But what I do find truly sickening is the reverence with which opera is treated, as if it were some particularly great art form. Nowhere was this more obvious than in ITV's 2010 gut-wrenchingly awful series Pop Star to Opera Star , where the likes of Alan Tichmarsh treated the real opera singers as if they were fragile pieces on Antiques Roadshow, and the music as if it were a gift of the gods. In my opinion - and I know not everyone agrees - opera is: Mediocre music Melodramatic plots Amateurishly hammy acting A forced and unpleasant singing style Ridiculously over-supported by public funds I won't even bother to go into any detail on the plots and the acting - this is just self-evident. But the other aspects need some exp...

Murder by Candlelight - Ed. Cecily Gayford ***

Nothing seems to suit Christmas reading better than either ghost stories or Christmas-set novels. For some this means a fluffy romance in the snow, but for those of us with darker preferences, it's hard to beat a good Christmas murder. An annual event for me over the last few years has been getting the excellent series of classic murderous Christmas short stories pulled together by Cecily Gayford, starting with the 2016 Murder under the Christmas Tree . This featured seasonal output from the likes of Margery Allingham, Arthur Conan Doyle, Ellis Peters and Dorothy L. Sayers, laced with a few more modern authors such as Ian Rankin and Val McDermid, in some shiny Christmassy twisty tales. I actually thought while purchasing this year's addition 'Surely she is going to run out of classic stories soon' - and sadly, to a degree, Gayford has. The first half of Murder by Candlelight is up to the usual standard with some good seasonal tales from the likes of Catherine Aird, Car...

Is 5x3 the same as 3x5?

The Internet has gone mildly bonkers over a child in America who was marked down in a test because when asked to work out 5x3 by repeated addition he/she used 5+5+5 instead of 3+3+3+3+3. Those who support the teacher say that 5x3 means 'five lots of 3' where the complainants say that 'times' is commutative (reversible) so the distinction is meaningless as 5x3 and 3x5 are indistinguishable. It's certainly true that not all mathematical operations are commutative. I think we are all comfortable that 5-3 is not the same as 3-5.  However. This not true of multiplication (of numbers). And so if there is to be any distinction, it has to be in the use of English to interpret the 'x' sign. Unfortunately, even here there is no logical way of coming up with a definitive answer. I suspect most primary school teachers would expands 'times' as 'lots of' as mentioned above. So we get 5 x 3 as '5 lots of 3'. Unfortunately that only wor...