A fun little probability puzzle for you.

But you missed the hedge opportunity. I would make more money than you.

You don’t understand statistics if you think an infinite number of heads is possible with an even coin.

Right, that’s my point. The previous repetitions matter.

50 blue and 48 blue plus 2 red is not the same as 2 blue and 2 red.

If this were not true, then the odds on the first flip would not be 50-50.

What 50-50 literally means is 50 times yes and 50 times no in 100 repetitions.

But then the math gets weird because, get this, if you get the same result twice in a given 50-50 repetition, the odds of the third result also being the same are greater than 50-50.

Okay, here’s the software promised.

jsfiddle.net/rp6e8f7v/1/

Flips a coin a million times, and keeps track of how many times in a row it was flipped. Every time it flips 3 in a row, it records the subsequent flip as a “headsAfter3” or a “tailsAfter3”.

Press “run” in the top left to give a run of 1,000,000

But that’s incorrectly written. Those are one million repetitions, not 250000 instances of 4 repetitions.

I have no idea what that means. I don’t remember ever specifying that, because I don’t even know what the hell it could possibly mean. Why is it incorrect because it doesn’t achieve some previously unspecified criteria that I never heard of?

It’s incorrect because we are talking about the odds of the 4th flip after three given flips.

If there were, say 44539 arbitrary flips, that is already a different scenario.

aaab is not the same as aabbababbababababaabaaab

I think I get what you’re asking for, right, okay.

I’ll do it that way. I don’t think it will make a difference, but I’ll do it that way.

When you flip a normal coin, it’s probably a coin that’s been flipped before. So if you flip 3 in a row, it’s not the first 3 flips that coin has ever experienced in its life, it’s part of a really long sequence of flips. It’s very silly that you think this matters.

But I’ll humour you anyway, I like programming.

You need to write one that repeats 250000 times a scenario where 3 heads have been flipped.

And nothing in between.

I will humour your misguided intuitions, no problem.

aaaxaaaxaaax and so on infinitely. Or up to 250000 repetitions.

jsfiddle.net/rp6e8f7v/2/

There you go, 4 separate flips every time. I only count the heads/tails of the 4th flip, only when it was preceded by 3 heads.

I said nothing in between homie.

The odds that you are going to eventually get a tails are different than those for whether you are going to get tails on the next bet. The odds for the next bet are identical to the odds for the last bet.

Just common sense tells you that if you had better odds after 3 heads - all you have to do is go to a casino - wait to see 3 blacks on roulette - then place a big bet - more often than not you would win and the casino would go out of business (because everyone would be doing that same thing).

I have no idea what that means homie. I think there’s a good chance that what you’re asking for doesn’t even make sense.

I once had a boss that was telling me how to design something. He said “give me a rectangle”, so I did. And he said “make it as tall as it is wide”, and so I did.

And then he said “Wait a minute, that’s a square!”

You’re giving me those vibes right now origami.