Probability of L Consecutive Heads in N Coin Tosses

  • Context: Undergrad 
  • Thread starter Thread starter grad
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary

Discussion Overview

The discussion revolves around the probability of obtaining a run of exactly L consecutive heads (or tails) in N independent coin tosses. Participants explore various approaches to derive a general formula for this probability.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant asks for the probability P(L,N) of getting exactly L consecutive heads in N tosses, indicating difficulty in finding a general answer.
  • Another participant suggests a probability of 2^{-n}, which is challenged by a subsequent post that provides a specific example with N=3 and L=2, calculating P(2,3) as 1/4.
  • Several participants express misunderstandings regarding the original question, with one admitting to confusing it with the probability of N consecutive heads.
  • References to probability texts and a link to MathWorld are provided for further exploration of "runs" in probability theory.
  • A participant proposes a formula involving combinations, C^{l}_{n}, but later corrects the notation to clarify its meaning.
  • Another participant presents a more complex formula for P(N,L) with different cases based on the relationship between N and L, but is met with skepticism regarding its correctness.
  • There is a request for clarification on the proposed formulas and whether a definitive formula exists for the problem at hand.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correct probability formula, with multiple competing views and formulas presented, and some participants expressing doubt about the validity of proposed solutions.

Contextual Notes

Several participants acknowledge misunderstandings and corrections regarding the definitions and calculations involved in determining the probability of consecutive heads, indicating a need for clarity in mathematical notation and assumptions.

grad
Messages
12
Reaction score
0
What is the probability that a run of exactly L consecutive heads (or tails) appears in N independent tosses of a coin?

Please help me with this one... I 've searched everywhere but I can't find a general answer, for example P(L,N) = ...
 
Physics news on Phys.org
[tex]2^{-n}[/tex]
 
fatra2 said:
[tex]2^{-n}[/tex]

That's not correct.

Let's suppose we toss a coin 3 times (N = 3) and we want a run of exactly 2 heads (L = 2). Then the combinations that include runs of HH are only two: THH and HHT
The total combinations are 2N=3=8

So, P(2,3) = 2/8 = 1/4

Your answer gives 2-N= 1/8
 
Hi there,

I am sorry. I misunderstood your question. I thought you asked what is the probably of having N consecutive heads, on N toss.

I'll look into it a bit deeper, and give you a more precise answer.

Cheers
 
fatra2 said:
Hi there,

I am sorry. I misunderstood your question. I thought you asked what is the probably of having N consecutive heads, on N toss.

I'll look into it a bit deeper, and give you a more precise answer.

Cheers

Thank you
 
You can look in probability texts for discussions of "runs". There is other information here

http://mathworld.wolfram.com/Run.html

- with a "formula" that gives probabilities as coefficients from a particular generating function.
 
statdad said:
You can look in probability texts for discussions of "runs". There is other information here

http://mathworld.wolfram.com/Run.html

- with a "formula" that gives probabilities as coefficients from a particular generating function.

Well, I 've already seen that but I don't understand how these formulas work. Could you explain a little bit more if you can understand them?
 
Hi , i think this is the answer P(n,l) = C[tex]^{l}_{n}[/tex] / 2[tex]^{n}[/tex]
 
vlad1234 said:
Hi , i think this is the answer P(n,l) = C[tex]^{l}_{n}[/tex] / 2[tex]^{n}[/tex]


Thank you for your answer but what exactly is C?
 
  • #10
Oh , i made a mistake , sorry. Let me fix it . C[tex]^{l}_{n}[/tex] = [tex]\left(^{l}_{n}\right)[/tex]
 
  • #11
HOpe I'm not wrong this time .

P ( N , L ) =
[tex]\left\{2/2^{N} , if N = L + 1[/tex]

[tex]\left\{( 2^{ N-L+1} + 2^{N-L-2} + 2 ) / 2^{N} , if N = L + 2[/tex]

[tex]\left\{( 2^{N-L-1} + 2^{N-L-2} + \Sigma^{N-L-2}_{K=1}( 2^{N-L-2-K} * 2^{K} ) + 2^{N-L-1} ) / 2^{N}[/tex]
 
  • #12
vlad1234 said:
HOpe I'm not wrong this time .

P ( N , L ) =
[tex]\left\{2/2^{N} , if N = L + 1[/tex]

[tex]\left\{( 2^{ N-L+1} + 2^{N-L-2} + 2 ) / 2^{N} , if N = L + 2[/tex]

[tex]\left\{( 2^{N-L-1} + 2^{N-L-2} + \Sigma^{N-L-2}_{K=1}( 2^{N-L-2-K} * 2^{K} ) + 2^{N-L-1} ) / 2^{N}[/tex]

Sorry mate but both your solutions are wrong. You can easily prove this if you try to find P(2,5) or P(1,5) or whatever you want...

Does anybody know if such a formula even exists?
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 14 ·
Replies
14
Views
7K
  • · Replies 57 ·
2
Replies
57
Views
7K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 41 ·
2
Replies
41
Views
9K
  • · Replies 4 ·
Replies
4
Views
3K