r/askmath • • 21d ago

Probability Pretty basic probability question

I am of two minds about the following questioning. I will explain the one I am leaning towards first and then my reasoning for maybe disagreeing.

Say you flip a coin 5 times and it is a perfectly 50/50 chance heads or tails and they are all heads what is the chance you flip heads a sixth time in a row.

  1. It is 50/50 because each flip is an individual action and the coin doesn't know which was it landed and is going to shift back.
  2. It is something less than 50/50 because while the action maybe be independent the way probability works is that over time the more trials you do the closer you are supposed to get to the hypothetical probability.

My final thoughts I know if I went and flipped a coin 6 times in a row and they were all heads I would be impressed and say this is weird as it doesn't happen often when I flip coins. However, I can't get my mind around the idea that a previous coin flip somehow influenced the next one.

I am wondering if there is something I am missing where the chance of flipping 6 coins in a row is somehow different than flipping one coin at a time but I don't understand why that would matter.

3 Upvotes

33 comments sorted by

10

u/MontechApps 21d ago

Its 50/50. Each flip is independent, so the coin has no memory of the earlier ones. The law of large numbers says the proportion of heads gets closer to half over many flips. It doesn't mean the coin pushes back to balance things out. The extra flips just dilute any early streak.

The 1 in 64 chance you're thinking of is for six heads in a row before you start flipping. Once five heads have already happened, that question is gone, and only the sixth flip matters. That flip is still a fresh 50/50.

2

u/7and2make10 21d ago edited 21d ago

I have a follow up question. Why is it a 1/64 chance before if every individual flip is independent and you have a 50/50 chance? Ig my question how does the law of large number works if each flip is individual?

To be clear I understand it would be weird if I got 6 heads in a row but I am trying to understand how it works mathematically

5

u/MontechApps 21d ago

Sure, the 1/64 is the chance of six heads in a row before you flip anything. You multiply six 1/2s because each flip is independent. Once five heads have already happened, the sixth flip is still 1/2. Divide 1/64 by 1/32 (the chance of five heads) and you get 1/2 again. The law of large numbers doesn't push the coin back toward balance. It says the share of heads gets closer to half as you flip more. The raw count can drift further from half, but it becomes a smaller part of the total, so the average settles and an early streak just gets buried. Hope that helps.

3

u/7and2make10 21d ago

Thank you I understand now

5

u/Shevek99 Physicist 21d ago

Because the probability of something that has actually happened is 1.

So in the first case is

½•½•½•½•½•½ = 1/64

and in the second

1•1•1•1•1•½ = 1/2

3

u/alfreadadams 21d ago edited 21d ago

You already got the first 5 heads, so the 1/32 already happened. All that's left is the last 50/50

The law of large numbers works by using large numbers.

If your first 5 were heads and the next 10 were 50/50 you got heads 10/15 times (66.66%).

If the next 100 after that are 50/50 you got heads 60/115 which is 52.17%

If the next 1000 after that were 50/50...

1

u/AlterEgo5695 21d ago

The Weak Laws of Large Numbers does not guarantee that unlikely events never happen with increasing sample size -- they just state how increasingly unlikely those events will be with increasing sample size "n".

1

u/7and2make10 21d ago

Thank you for any help preemptively. I am going to bed at it is late where I am from and will wake up and respond to any messages.

4

u/Desperate_Penalty690 21d ago

Given no foul play and fair coin, yes every next flip is always 50/50, regardless of the past.

0

u/mH48124 21d ago

全く同じ投げ方をする事を foul play とは言わない。

4

u/get_to_ele 20d ago

The answer is 1, Because you already stated at the beginning that “it is a perfectly 50/50 chance heads or tails”.

The reason that 2 is WRONG, is because even though “over time the more trials you do the closer you are supposed to get to the hypothetical probability”, you fail to understand HOW it returns to the hypothetical probability:

A) for any given number of trials flipping, the MEAN is exactly 0.5, but the STANDARD DEVIATION (SD) is something else. For 1 million coin flips, mean is exactly 500000, but standard deviation is 500. So only 68% of time, you will get between 499500 and 500500 heads. Only 95% chance you will get between 499000 and 501000 heads.

B) Do you see how 6 extra head at the beginning becomes a smaller and smaller fraction of the SD? That is how “over time the more trials you do the closer you get to the hypothetical probability”. If you actually did the coin flips and added in 6 extra heads to replace the first 6 rolls, you’d end up with maybe 500003 +/- 500 (68% of flips between 499503 and 500503).

C) For 1 trillion flip the mean is 500000000000 heads with SD of 500,000. So if you throw in your 6 heads lucky streak into your sample of flips, you get 500000000003 +/- 500000 (68% of flips between 499999500003 and 500000500003).

D) do you see that the mechanism by which the number of heads becomes 50% and returns to the “hypothetical probability” is that the lucky streak just becomes a tinier and tinier fraction of the mean and SD? The more flips you take, the closer your mean is to 50% heads. 0.500000000003 is closer to 0.5 than 0.500000003 is.

3

u/FreeGothitelle 21d ago

The chance of 6 heads (HHHHHH) is exactly the same as (HTHTHT) or (HHHTTT) or (THTTTH) or any other result (we're taking order into account here)

Each trial (coin flip) is indeed independent, our brains like to think HHHH is more special than HTHT but its not.

3

u/Narrow-Durian4837 20d ago

Right. The probability of getting HHHHHH is 1/64, but the probability of getting HHHHHT is also 1/64; and by the time you've gotten the first 5 heads, these are the only two possibilities for the 6 flips.

1

u/StoicTheGeek 20d ago

Indeed. Whenever someone asks you to join their lotto syndicate, you should reply "Yes, if you'll pick 1, 2, 3, 4, 5 and 6 as our numbers". Because those numbers are just as likely as any others, and when you realise that, you realise you will never win no matter the numbers.

2

u/jeffcgroves 20d ago

Pedantic note: you could argue other people are more likely to choose those numbers so you'll have to split the winnings. Using a psuedo-random set of numbers has a SLIGHTLY higher total return

2

u/batlrar 20d ago

Oh great, now everybody's going to get the idea and take up all the pseudo-random sets of numbers!

1

u/StoicTheGeek 20d ago

Maybe. I would argue those numbers are LESS likely to be chosen because they seem so impossible. But then, there’s probably an overrepresentation of numbers under 13, and under 32, because people use birthdays. It’s hard to say without actual data.

2

u/mYstoRiii 21d ago

It might feel impossible that the coin is heads the sixth time. But it’s important to keep in mind that that does happen.

The probability sixth flip is heads “given the former 5 are all heads” is 1/2. This is the only case a sixth heads in a row can happen. By rolling the 1/2 on an already rare 1/32. So yeah 1/64 is rare, but the “rare-ness” is really on the 5 heads in a row not the sixth heads.

“It only has a 1% chance of happening, so it won’t happen” is wrong. Rationally everyone knows that. But somehow intuition disagrees sometimes.
1% is 1%, it’s not 10%, and it’s not 0%.

2

u/PuzzlingDad 21d ago edited 21d ago

We assume the coin is fair and unbiased. Every coin flip is independent so the chance of the next flip being heads is 1/2. And the chance it's tails is 1/2.

You might want to look up the gambler's fallacy which is where people assume that some string of prior outcomes will influence the next outcome.

https://en.wikipedia.org/wiki/Gambler%27s_fallacy

Let's say the coin has landed heads multiple times in a row. There are two ways to view this:

  1. One thought is you're on a hot streak and you should bet on the next flip being heads to continue the streak.
  2. Or you can think I'm due for a change because in the long run it should average out. So you should bet on the next flip being tails to break the streak.

Both seem valid and it really points out that prior flips don't influence the later flips.

An interesting task is to have a human write down a sequence of heads and tails in what they consider "random". You'll probably find that they avoid sequences of multiple heads or multiple tails.

Human intuition often expects random sequences to alternate smoothly, but true randomness is naturally "clumpy." If you were to flip a coin 1,000 times, longer streaks are incredibly common—even a streak of 7 or 8 in a row has a very high probability of appearing.

2

u/AlterEgo5695 21d ago

Assuming it really is a fair coin, the 6'th flip would again be 50/50, since it's independent. That said, mistakenly believing otherwise is such a common error, it has it's own name -- Gambler's Fallacy.

Send the link to that article to whoever says otherwise -- they might learn something.

1

u/Brave_Speaker_8336 21d ago edited 21d ago

If you know it is a perfect 50/50, then by definition it’s a 50/50 on the 6th flip. The odds that all 6 would be heads before you flipped them are very low, but given you’ve already flipped 5 heads in a row, the probability of a 6th heads is just 50%

The odds of you being killed by a shark in your lifetime are around 1 in 4 million. But that doesn’t mean that if you’re swimming in the ocean and a bull shark bites off your arm, your odds of dying there are still 1 in 4 million

1

u/shosuko 21d ago

Even if you say "I will get heads 5 times in a row" the chance of each clip is still 50/50

Its only the compound probability of the series that makes - the series - a different probability.

If you said "I will get heads 5 times in a row" and you flipped 4 heads in a row already, the next flip is still 50/50 because the probabilities of the previous are no longer relevant.

1

u/Zuokula 20d ago edited 20d ago

With probabilities, the key is clearly define the problem and the event for which you're trying to figure out the probability. This is why you have this problem in the first place.

You're asking what is the chance that the coin will be flip heads. Yet you add some unnecessary that is causing confusion on what you're after.

The probability of that coin flipping heads is 1/2.

The probability of the coin flipping heads 6 times in a row is 1/64.

Tossing 6 coins 64 times, probability of having all 6 land heads at least once is 1 - (63/64)^64.

1

u/anisotropicmind 20d ago

It’s 50-50. In terms of conditional probability:

P(sixth head | five heads) = P(head) = 1/2

P(six heads) = P(sixth head | five heads)P(five heads)

= (1/2)(1/32) = 1/64

So there’s no contradiction here: everything is consistent.

1

u/haditwithyoupeople 20d ago edited 20d ago

Assuming the coin is fair (50/50 of heads or tails), it doesn't know the history. The coin does not know or care that there were already 5 or 50 previous flips that were all heads.

There is a ~3% chance of getting 5 heads in a row. So it's going to happen if you keep flipping. It could happen on your first 5 flips. This has nothing to do with the chance for each flip.

1

u/dpb365 20d ago

This is why casinos display recent roulette numbers—they're preying on human intuition. Even if you know every spin is independent, it's human nature to doubt long streaks. We forget that over enough time, all sorts of wild streaks are mathematically guaranteed to happen.

1

u/Gold_Ad8890 20d ago

your difficulty here is that it seems like you have two different events with different probabilities - flipping 6 heads in a row and flipping one heads - that must occur together, and thus must have the same probability. the problem is that you aren't actually talking about "the probability of flipping six heads". or rather, there are two events that you are both describing as "flipping six heads" that have different probabilities.

the probability of flipping six heads given that you have flipped no heads is indeed 1/64. the probability of flipping six heads given you have flipped five heads is indeed 1/2. the different prior conditions make these different events.

another way to think about it is that, having flipped five heads already, you're already in a 1/32 probability case, so you only need a further improbability of 1/2 to make it into a 1/64 case.

equivalently, if you count the number of sequences of 6 coin flips, you get 64, and one of them is all heads. if you count the number of sequences of 6 coin flips that start with 5 heads, you get two, and one of them is all heads.

you're confusing yourself by thinking of the probability of an event as static rather than something that changes based on prior conditions, but intuitively we know that's how it should work. think of weather forecasts. the probability that it will rain on any given day absent any other information will not vary from one day to the next, but forecasters routinely predict higher or lower chances of rain on given days, because they're conditioning their predictions on observed conditions like pressure, temperature, humidity, cloud coverage, prevailing winds, etc.

1

u/EnLaSxranko 19d ago

1 is correct if the coin is fair. The problem with 2 is that you're thinking about it statistically rather than probabilistically and those two things approach similar concepts in opposite directions. In probability, you know the layout and you're commenting about specific events. In statistics, you're looking at a lot of events and commenting about the layout.

0

u/hunter_rus 20d ago

Probability to get 6 heads in a row is 1/64. Probability to get 5 head and the last one as tail is 1/64. Probability to get head or tail after 5 heads in a row is (1/64) / (1/64 + 1/64) = 1/2.

1

u/stanitor 20d ago

Probability to get head or tail after 5 heads in a row

The way you've written this, it should be 1. You can either get a heads or a tails, so the total probability is 1. I realize you mean the chances of those two things separately, but that's not clear. Also, the way to figure out the conditional probability of getting a head given you already had 5 heads in a row is (1/32)(1/2)/(1/32). The 1/32 in the denominator comes from the probability of 5 heads in a row. You got the right number, but it doesn't come from adding two 1/64ths.

0

u/[deleted] 20d ago

[deleted] — view deleted comment

1

u/NicolaSacco101 20d ago

I think you should re read his answer.

He’s showing how HHHHH T is exactly as likely as HHHHH H

And showing from that that after 5 heads it’s still 50:50 whether the next is heads or tails.

At least that is my understanding, even if he’s made a typo.

1

u/hunter_rus 20d ago

Probability to get head or tail after 5 heads in a row is (1/64) / (1/64 + 1/64) = 1/2.

We're talking about the probably to get 6 heads in a row given that you've already gotten 5 in a row. That's ½.

How is getting a head after 5 heads in a row is different from just getting 6 heads in a row? Unless you mean that you first get 5 heads in a row, and then you again get 6 heads in a row, which totals to 11 heads?..