Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: July 25, 2025, 10:21 pm

Poll: On average, which pattern takes fewer coin tosses?
This poll is closed.
They'll happen equally fast, on average.
78.57%
11 78.57%
Tails, Heads, Tails takes fewer tosses.
0%
0 0%
Tails, Heads, Heads takes fewer tosses.
14.29%
2 14.29%
I can't figure it out.
7.14%
1 7.14%
Total 14 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Coin Flipping Poll
#13
RE: Coin Flipping Poll
Well, 14 of you voted. 11 got it wrong, and only 2 got it right (with 1 person not wanting to guess).

The answer is actually that Tails, Heads, Heads comes up with fewer tosses on average. The reasoning is quite easy, but first you need to understand what the question is asking. The question wasn't "Which result requires fewer tosses if you only have 3 tosses" as some people seem to have thought. In that case, the 11 would be correct. If you have only 3 tosses, then all combinations of the 3 tosses (HHH, HHT, HTH, HTT, THH, THT, TTH, TTT) are equally likely of coming up, so THH and THT both have an equal chance (1/8th) of coming up.

However, the question was asking on average, which pattern took the fewest tosses to appear. That means, that if you toss three coins and get HTH, you haven't got either pattern yet and must continue flipping. The same goes for the other 5 patterns that don't equal either THH or THT.

Since we are moving from left to right, we should be able to deduce that both patterns start with TH. This is the common factor between them, and it turns out to be very important. To answer the question, it is necessary to see what happens when each pattern is struck with failure.

If we assume that the first and second coins flipped were T and H respectively, then both patterns have 2/3 completion. Something statistically significant happens on the next flip though:

If the third flip is a H, then the THH pattern has been found, and we have to flip at least 3 more times to get a THT pattern.
If the third flip is a T, then the THT pattern has been found, and we have to flip at least 2 more times to get a THH pattern.

The THH pattern has a better chance of coming up because it doesn't overlap itself. A failure for the THT pattern means you have to start all over again, whilst a failure for the THH pattern means you already have the first T and so only need two more flips.

In order to show this in an objective way, I wrote a piece of code: http://pastebin.com/cjkeMnhg

It plays the game 10,000 times (to get a nice sample size), each time flipping 3 coins to start, and then continually flipping until both patterns are found. The average for each pattern is averaged and displayed as the result:

Program Output Wrote:THH found after an average of 8.0015 (~8) flips.
THT found after an average of 10.0362 (~10) flips.

It doesn't stop there though. You can try it with other patterns, and it doesn't matter how big your patterns get, a T followed by a string of H will always come up with fewer tosses on average than the same length alternating pattern:

Program Output Wrote:THHH found after an average of 16.035 (~16) flips.
THTH found after an average of 20.0729 (~20) flips.

THHHH found after an average of 31.6734 (~32) flips.
THTHT found after an average of 41.9732 (~42) flips.

THHHHH found after an average of 62.9272 (~63) flips.
THTHTH found after an average of 82.5089 (~83) flips.

THHHHHH found after an average of 129.6385 (~130) flips.
THTHTHT found after an average of 169.5909 (~170) flips.

Statistics is fun! Points go to Paul the Human for the correct answer, and double points go to Zhalentine for posting a solution Big Grin

Better luck next time everyone else!
Reply



Messages In This Thread
Coin Flipping Poll - by Tiberius - April 16, 2010 at 8:05 pm
RE: Coin Flipping Poll - by pack3tg0st - April 16, 2010 at 8:19 pm
RE: Coin Flipping Poll - by padraic - April 17, 2010 at 1:12 am
RE: Coin Flipping Poll - by Rev. Rye - April 16, 2010 at 10:33 pm
RE: Coin Flipping Poll - by Eilonnwy - April 17, 2010 at 12:03 am
RE: Coin Flipping Poll - by The_Flying_Skeptic - April 17, 2010 at 12:26 am
RE: Coin Flipping Poll - by Tiberius - April 17, 2010 at 12:27 am
RE: Coin Flipping Poll - by Paul the Human - April 17, 2010 at 12:33 am
RE: Coin Flipping Poll - by theVOID - April 17, 2010 at 12:47 am
RE: Coin Flipping Poll - by Tiberius - April 17, 2010 at 12:53 am
RE: Coin Flipping Poll - by Zhalentine - April 17, 2010 at 1:03 am
RE: Coin Flipping Poll - by Violet - April 17, 2010 at 3:53 am
RE: Coin Flipping Poll - by Tiberius - April 17, 2010 at 10:55 am
RE: Coin Flipping Poll - by Paul the Human - April 17, 2010 at 11:03 am
RE: Coin Flipping Poll - by fr0d0 - April 17, 2010 at 11:18 am
RE: Coin Flipping Poll - by Violet - April 19, 2010 at 1:00 pm

Possibly Related Threads...
Thread Author Replies Views Last Post
  Poll: You're in the Prisoner's Dilemma. shadow 35 6915 November 25, 2017 at 5:13 pm
Last Post: vorlon13
  Unfair Coin Flip Tiberius 103 16375 September 30, 2017 at 6:56 pm
Last Post: Brian37
  Bit flipping SteelCurtain 41 12821 April 26, 2016 at 9:55 am
Last Post: pocaracas
  The "classic" counterfiet coin puzzle jvwert 18 10166 December 7, 2010 at 12:08 am
Last Post: Rhizomorph13



Users browsing this thread: 1 Guest(s)