Comment by ska
4 years ago
Yes, you are wrong, but your confusion is very common. It's so common it even has a name "The Gamblers Fallacy".
Over the long run, you expect 40% tails, but if you run the experiment an infinite amount of time there will be sequences of all-heads or all-tails.
Because the events are independent, the previous flips don't change anything about what happens next.
https://dilbert.com/strip/2001-10-25
So the probablity of 60% assumes infinite flips. Whereas I'm only flipping 10 times, so I won't necesssarily get 60% heads. I'd also need to know the probability that I'm in one of the cases where I get 60% of heads. Is that right?
This gets into interesting stuff!
So the situation described in that paper is that you are given the true odds of the coin, 60% heads. In this case it's just as I described - knowing previous results doesn't tell you anything useful.
> Whereas I'm only flipping 10 times, so I won't necesssarily get 60% heads.
This is true. In fact there is only about 25% chance of getting exactly 6 of the 10 to be heads (but nearly 70% chance of >= 6 heads). You can work this out with something called the binomial distribution. Chance of getting 10 heads in a row is .6%
A more interesting aspect is when you don't know the odds (or don't trust what you've been told). In this case it's definitely important what the history is. So given your 10 flips, we can ask questions like "how likely is it that this coin is fair (50/50) given the 10 flips I just saw".
It turns out the best estimation of the true probability is, pretty intuitively, (h+t)/h; this will jump aroudn for small N . In practice you are more often looking at something like P(0.55 < p < 0.65 | samples) , i.e. the probability that the true value lies between 0.55 and 0.65 heads, given the 10 flips I've seen).
Obviously in these cases, the more samples you have seen the tighter the estimate get. You can also ask questions like how many flips do I need to see to be confident at a certain the coin is really 0.6 heads.
With a 60%-heads coin you can still get 10 straight heads. It’s just that over many many flips, the average will gradually tend towards 60%.
You can still have streaks of hundreds, thousands, millions of either heads or tails in a row.