One for those with greater maths knowledge than me. What are the chances/percentage odds of a consecutive sequence of 4 heads (or tails) occuring in 100 coin tosses-
Well its 1 in 4 for it to happen at any time, so 4/1
Then 100 flips means 100/4 = 25
So you should get four in a row 25 times every 100 flips
Hope this helps
Well its 1 in 4 for it to happen at any time, so 4/1Then 100 flips means 100/4 = 25So you should get four in a row 25 times every 100 flipsHope this helps
Yes you can mugs are always welcome ....... 100 balls in a tub .. all with numbers .. 1 to a 100 the true odds of anyone picking the named number is 99/1 .. you ok with that ...... so lets say the guy said number 56 and it was 56 .. so he has another pick ..... its still 99/1 ....... if he picked 10 on the bounce ( lucky mug ) its still 99/1 on the 11th pick ...
Yes you can mugs are always welcome ....... 100 balls in a tub .. all with numbers .. 1 to a 100 the true odds of anyone picking the named number is 99/1 .. you ok with that ...... so lets say
Anyone backing 99/1 shots needs to find another job .. but in this case the odds are true .... toss of a coin heads or tails its evens ......... it dont matter if you tossed 50 heads on the bounce .. the next toss is evens.......... heads or tails .
Anyone backing 99/1 shots needs to find another job .. but in this case the odds are true .... toss of a coin heads or tails its evens ......... it dont matter if you tossed 50 heads on the bounce
What are the chances/percentage odds of a consecutive sequence of 4 heads (or tails) occuring in 100 coin tosses-
About 99.9999999999999%. Give or take a couple of niners at the end.
What are the chances/percentage odds of a consecutive sequence of 4 heads (or tails) occuring in 100 coin tosses-About 99.9999999999999%. Give or take a couple of niners at the end.
Ok, first one was a guess. Pocket calculator says: a) 99.8% if you choose heads or tails before the experiment b) 99.9998% if you want want a sequence of 4 in a row, regardless if heads or tails.
Ok, first one was a guess.Pocket calculator says:a) 99.8% if you choose heads or tails before the experimentb) 99.9998% if you want want a sequence of 4 in a row, regardless if heads or tails.
If you want the number of such sequences, it is about six.
You have 97 sequeces of 4 a piece with 100 flips. Start 1 to 4. Ending 97 to 100.
Chances for any sequence being 4 heads are 1/16. Dividing 97 by 16 does the rest.
If you want any sequence, heads or tails, double the number. So 12 times within 100 flips you will have 4 in a row.
(Remark: Wenn flipping 5 heads in a row, you actually have 4 in row twice. Flip 1 to 4 and flip 2 to 5.)
If you want the number of such sequences, it is about six.You have 97 sequeces of 4 a piece with 100 flips.Start 1 to 4. Ending 97 to 100.Chances for any sequence being 4 heads are 1/16. Dividing 97 by 16 does the rest.If you want any sequence, heads
no idea what the odds of that happening 5 times in a row would be though.
Surely it's
1-(1/16)^97.
100 tosses gives you 97 chances to get 4. No?
1) 1-(1/16)^1002) 1-(2/16)^1003) 1-(3/16)^1004) 1-(4/16)^100no idea what the odds of that happening 5 times in a row would be though.Surely it's 1-(1/16)^97.100 tosses gives you 97 chances to get 4. No?
any 4 tosses gives a 1/16 probability of 4 heads, therefore 1-(1/16) of no heads.
In a sequence of 100 tosses you get 97 sequeces of 4 results, so the chances of NONE of them being 4 consecutive heads are 1-(1/16)^97.
That works out as .0019 (ish).
There is therefore a 99.8% (ish) chance that you will get at least one sequence of 4 heads.
Full explaination:any 4 tosses gives a 1/16 probability of 4 heads, therefore 1-(1/16) of no heads. In a sequence of 100 tosses you get 97 sequeces of 4 results, so the chances of NONE of them being 4 consecutive heads are 1-(1/16)^97.That works out
Sorry- I meant that there's a 1-(1/16) probability that the sequence wont be 4 consecuticve heads- not NO heads).
Hope that clears it up.
therefore 1-(1/16) of no headsSorry- I meant that there's a 1-(1/16) probability that the sequence wont be 4 consecuticve heads- not NO heads).Hope that clears it up.
Although there is a 99.9% chance that you'll get at least one sequecnce of 4 consecutive heads there is only a 51% chance that you'll get 7 in a row. Such is the power of 2.
And consider this:Although there is a 99.9% chance that you'll get at least one sequecnce of 4 consecutive heads there is only a 51% chance that you'll get 7 in a row. Such is the power of 2.
no, they're not independent trials, and this assumption of independence is implicit in aye robot's approach
as soon as you have a non head you reset the problem back to the start, but you waste a flip in the process, so you don't get 97 attempts at all
it's a tricky problem imo, not easy to just write the solution down - i don't agree with aye robot's answer
no, they're not independent trials, and this assumption of independence is implicit in aye robot's approachas soon as you have a non head you reset the problem back to the start, but you waste a flip in the process, so you don't get 97 attempts at al
something not stated clearly in the question, does "HHHHH" count as two overlapping sequences of "HHHH" or are we just counting strings of at least four H in a row?
something not stated clearly in the question, does "HHHHH" count as two overlapping sequences of "HHHH" or are we just counting strings of at least four H in a row?
a very dirty, approximate solution along similar lines, expected number of tosses until first tail is 2 - so an average trial (going for HHHH) costs 2 tosses, so on average you get 97/2 attempts at it
then prob 0 sequence of HHHH is (1-1/16)^48.5 = 4.37%
a very dirty, approximate solution along similar lines, expected number of tosses until first tail is 2 - so an average trial (going for HHHH) costs 2 tosses, so on average you get 97/2 attempts at itthen prob 0 sequence of HHHH is (1-1/16)^48.5 = 4.
The probability is affected by the energy of he who tosses the coin, as all energy is constantly changing and he projects onto it a vibrational alignment based on his own perceptions and belief and expectations. Quantum physics. That which is like unto itself is drawn. he sees a reflection of his own inner core beliefs shown to him.
A negative or positive energy within he who puts his energy to the coin will affect his choice making in how to toss the coin and when. That determines his alignment with his expectation and belief, which in turn manifests into his life experience.
In other words, there is no exact answer and there never can be as every individual is unique and energy constantly changes and expands.
The probability is affected by the energy of he who tosses the coin, as all energy is constantly changing and he projects onto it a vibrational alignment based on his own perceptions and belief and expectations. Quantum physics. That which is like un
i dont like my dirty solution now either, it allows for four flip sequences which are not HHHH but which still end with H for each mini trial
you could set up a markov chain to describe this, then diagonalise the matrix describing the jump probs, that would work
i dont like my dirty solution now either, it allows for four flip sequences which are not HHHH but which still end with H for each mini trialyou could set up a markov chain to describe this, then diagonalise the matrix describing the jump probs, that
you don't have to monte carlo it, but an analytic solution is not easy, the markov chain diagonalisation approach is degree level maths
some further maths boards would do simpler cases at a level 10+ years ago, they probably don't go further than simultaneous equations for special papers these days
there might be a smarter way to find an analytic solution, but this is a tough problem to find a neat solution imo
you don't have to monte carlo it, but an analytic solution is not easy, the markov chain diagonalisation approach is degree level maths some further maths boards would do simpler cases at a level 10+ years ago, they probably don't go further than sim
Eldrick is spot on. The neatest solution involves using a diagonalised Markov chain.
I've just coded it, and the answer (probability of getting at least 4 heads in a row is:
0.9727.
Eldrick is spot on. The neatest solution involves using a diagonalised Markov chain.I've just coded it, and the answer (probability of getting at least 4 heads in a row is:0.9727.
If you want to know how to work this out in Excel, say, it's quite easy. Just set up a grid of 100 rows (one for each trial) and 5 columns. The first row is where you've already tossed the coin 100 times, and columns 1 - 5 are where you've scored (so far) 0, 1, 2, 3 and 4 heads in a row, and the cells are filled with the probabilities of achieving the result (4 in a row) from that point in the game.
The first row is easy to fill in. Obviously, if you've already flipped 100 times and you've scored 0 so far, the prob of success is 0 (cell 1). And similarly for 1, 2, and 3. In cell 5, though, the prob is obviously 1 (because you've already succeeded.
Then do the next row. This corresponds to the state of the game after 99 tosses. Obviously the prob is zero for the 1st 2nd and 3rd cells, and 1 for the last. For the 4th, you can succeed if you flip a head, so the prob is obviously 0.5.
In general, the game is such that if you throw a head (prob 0.5), you have one less throw to go, but you have one less head to get (score increases by one), and if you throw a tail (prob 0.5), you have one less throw to go, but your score goes back to zero. You can use this information to get a general recursive principle to fill in the whole of the Excel sheet:
The prob of winning from score S with n flips left = 0.5 * (prob of winning from score S + 1 with n-1 flips left) + 0.5 * (prob of winning from score 0 with n-1 flips left).
If you want to know how to work this out in Excel, say, it's quite easy. Just set up a grid of 100 rows (one for each trial) and 5 columns. The first row is where you've already tossed the coin 100 times, and columns 1 - 5 are where you've scored (so
"I've just coded it, and the answer (probability of getting at least 4 heads in a row is:
0.9727."
Snap. Unfortunately I think we have drifted a little from the initial question.
"I've just coded it, and the answer (probability of getting at least 4 heads in a row is:0.9727."Snap. Unfortunately I think we have drifted a little from the initial question.
Thanks for the considered replies chaps. Eldrick, I was meaning separate chains of 4 so HHHHH would count as only 1 (assuming a T at each end) not 2. Before asking this my basic maths assumed the answer would be something around 4 which is what i wanted to hear. But I will try and read up on some of the theories explained here.
Thanks for the considered replies chaps. Eldrick, I was meaning separate chains of 4 so HHHHH would count as only 1 (assuming a T at each end) not 2. Before asking this my basic maths assumed the answer would be something around 4 which is what i wan
I'm sorry not to be involved in this- I've been out for the day. Anyhow, in what way is my approach flawed, each coin toss is independent and there are 97 sequences of 4 coins- each of which starts with a possible head.
A genuine question- why is this wrong?
I'm sorry not to be involved in this- I've been out for the day. Anyhow, in what way is my approach flawed, each coin toss is independent and there are 97 sequences of 4 coins- each of which starts with a possible head. A genuine question- why is thi
Eldrick - why not? In this approach you effectively start again at each toss whether you have thrown a head or not.
"so you don't get 97 attempts at all"Eldrick - why not? In this approach you effectively start again at each toss whether you have thrown a head or not.
Looking at it another way: Each time you set out to throw a coin four times you have a 1/16 chance of throwing four heads and therefore a 15/16 chance that you won't throw four heads. In a sequence of 100 throws you start again 97 times- so the chances that you won't throw a sequence of four within that must be (15/16)^97.
Looking at it another way: Each time you set out to throw a coin four times you have a 1/16 chance of throwing four heads and therefore a 15/16 chance that you won't throw four heads. In a sequence of 100 throws you start again 97 times- so the chanc
Of course you do- each throw represents the beginning of a new attemt regardless of the prior esquence. Each attemt is therefore independent.
so you don't get 97 attempts at allOf course you do- each throw represents the beginning of a new attemt regardless of the prior esquence. Each attemt is therefore independent.
That's pretty uncanny. I was going to suggest something very similar.
By Aye Robot's logic, the probability of not getting 2 heads in a row in 3 tosses is:
(1 - 0.25) ^ 2 = 0.5625
whereas, of course, the true answer is 5/8.
Tigertiger,That's pretty uncanny. I was going to suggest something very similar.By Aye Robot's logic, the probability of not getting 2 heads in a row in 3 tosses is:(1 - 0.25) ^ 2 = 0.5625whereas, of course, the true answer is 5/8.
I think (and im on the edge of my maths here so dont shout too loud if i**k it up ) that it's easier to see if you take it to "chance of getting two heads in three attempts)
You would assume you have two 25% shots However as you prepare to flip the third coin (your second 25% shot) you know you're currently on one of the following sequences
TT HT TH (HH would have declared a winner)
so you have a 33%*50% chance of winning the second one, not a 50%*50% one.
I think (and im on the edge of my maths here so dont shout too loud if i**k it up ) that it's easier to see if you take it to "chance of getting two heads in three attempts)You would assume you have two 25% shotsHowever as you prepare to flip the thi
Try solving the problem for a total of 5 tosses... by hand and via your formula.
O.k- I see the problem. Give me a minute though because I'm sure there's a clean solution to this.
Try solving the problem for a total of 5 tosses... by hand and via your formula.O.k- I see the problem. Give me a minute though because I'm sure there's a clean solution to this.
The problem with your approach is that it ignores the fact that a partial success in an uncompleted nth attempt (3 out of 3 heads) partially contributes to the probability of the success of the n + 1th attempt. If I've got 3 in a row in my attempt that started 3 flips ago, then obviously the probability of my attempt that started 2 flips ago is much higher than it would be if I were starting from scratch.
Aye robot,The problem with your approach is that it ignores the fact that a partial success in an uncompleted nth attempt (3 out of 3 heads) partially contributes to the probability of the success of the n + 1th attempt. If I've got 3 in a row in my