Probability Question - Getting x heads from n coin tosses

  • Context: High School 
  • Thread starter Thread starter rede96
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary

Discussion Overview

The discussion revolves around calculating the probability of obtaining a specific number of heads from a series of coin tosses, specifically using the binomial distribution. Participants explore both the theoretical aspects and practical calculations related to this probability problem.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant seeks help with calculating the probability of getting x heads from n coin tosses using a single coin.
  • Another participant introduces the binomial distribution formula for calculating the probability of exactly x successes in n trials.
  • A participant requests clarification and an example calculation for obtaining 90 heads from 100 tosses, leading to a discussion about factorial notation.
  • Participants discuss the unlikelihood of achieving exactly 90 heads, noting that getting between 40 and 60 heads is more probable.
  • One participant inquires about calculating the probability of getting 90 or more heads, prompting a breakdown of the required summation of probabilities.
  • Another participant suggests substituting values into the formula to find the probability of getting heads within a specific range, such as 40 to 60 times.
  • There is a mention of using Excel's BINOMDIST function for cumulative probability calculations, with one participant noting a discrepancy in their earlier probability estimate.

Areas of Agreement / Disagreement

Participants generally agree on the use of the binomial distribution for these calculations, but there are differing views on specific probability estimates and the interpretation of results, particularly regarding the likelihood of certain outcomes.

Contextual Notes

Some calculations rely on factorial notation and the understanding of binomial coefficients, which may not be clear to all participants. There is also a reliance on computational tools for more complex probability calculations.

Who May Find This Useful

This discussion may be useful for individuals interested in probability theory, particularly in the context of binomial distributions and practical applications of statistical calculations.

rede96
Messages
663
Reaction score
16
Hi I was hoping someone could help me with a simple probability question. I wanted to know how I could work out using just one coin the probability of getting x number of heads from n number of coin tosses.

Thanks
 
Physics news on Phys.org
What you're looking for is called a binomial distribution.

To get exactly x successes (we consider heads as being successes and tails as failures in this case) in n trials, the probability is

[tex]P={n \choose x}p^x(1-p)^{n-x}[/tex]

where p is the probability of success which in this case is 1/2, giving us

[tex]P={n \choose x}\left(\frac{1}{2}\right)^x\left(\frac{1}{2}\right)^{n-x}={n \choose x}\left(\frac{1}{2}\right)^n[/tex]

And if you'll notice, 1/2^n is the probability of getting all heads (or no heads) so what P represents is the probability of getting all heads, multiplied by the number of ways that you can choose x from n.
 
Thank you very much for your help, but just because I am not too great with the notation you have written, can you show me an example.

Say the probability of getting 90 heads from 100 coin tosses?

From your formula is this (100 / 90) x 0.590?
 
rede96 said:
Thank you very much for your help, but just because I am not too great with the notation you have written, can you show me an example.

Say the probability of getting 90 heads from 100 coin tosses?

From your formula is this (100 / 90) x 0.590?

No no, that first part isn't a division.

[tex]{n \choose x}=\frac{n!}{x!(n-x)!}[/tex]

Where the exclamation marks mean factorial. e.g. [itex]5!=1\times 2\times 3\times 4\times 5 = 120[/itex] so

[tex]{100 \choose 90} = \frac{100!}{90!(100-90)!} = \frac{100!}{90!\times10!}[/tex]

and since
90! = 1*2*3*4*...*88*89*90
100! = 1*2*...*89*90*91*...*99*100

(I've highlighted the common factors in blue)

Then in 100! / 90! we can cancel the first 90 factors, leaving us with 100! / 90! = 91*92*...*99*100
So finally,

[tex]\frac{100!}{90!10!} = \frac{91*92*...*99*100}{1*2*3*...*9*10}[/tex]

So to find the chance of 90 heads out of 100 coin tosses, we have

[tex]\frac{91*92*...*99*100}{1*2*3*...*9*10}*\frac{1}{2^{100}}\approx 1.36*10^{-17}[/tex]

or in other words, very, very unlikely. You're more likely to win the next two jackpot lotteries than to have this event occur.

Also keep in mind that what we've calculated is the chance to get exactly 90 heads. Not more, or less. Even getting exactly 50 heads is an unlikely scenario. You're very likely to get between 40 and 60 heads in 100 trials though.

If you want to calculate these results more easily, use a calculator:

http://www.wolframalpha.com/input/?i=(n+choose+x)+/+2^n,+n=100,+x=90

Just change the value of n and x in the calculation prompt to whatever you wish, and then choose approximate value in the substitution result.
 
Ah ok. Thank you! Sorry Math was never my strong subject.

So using the link (thanks!) (binomial(n, x))/2^n~~1.36554×10^-17 =

17310309456440 / 1267650600228229401496703205376 which is appx 1.36 x 10-17

So just out of curiosity, what if I just wanted to ask: what is the probability that I will get 90 or over from a 100 flips? Which would probably be more applicable in my situation.
 
rede96 said:
Ah ok. Thank you! Sorry Math was never my strong subject.

So using the link (thanks!) (binomial(n, x))/2^n~~1.36554×10^-17 =

17310309456440 / 1267650600228229401496703205376 which is appx 1.36 x 10-17

So just out of curiosity, what if I just wanted to ask: what is the probability that I will get 90 or over from a 100 flips? Which would probably be more applicable in my situation.

Well, since we already know how to calculate the probability of getting exactly x heads in 100 tosses (for any x) then the probability of getting 90 or more heads is going to be the sum of all of the singular probabilities.

Chance to get 90 or more heads = chance for 90 heads + chance for 91 heads + ... + chance for 100 heads

In statistics, we denote the probability P to have an event X occur as P(X) and particular events where, say, we want 90 heads are denoted by P(X=90), and events such as 90 or more heads is denoted by [itex]P(90\leq X \leq 100)[/itex].

Anyway, with that math lesson aside, I'll give you a link for wolfram to calculate those events.

For some reason it wouldn't give an approximate solution, so I you'll have to plug the values in for yourself.

http://www.wolframalpha.com/input/?i=(sum(i=90+to+i=100)+(100+choose+i))+/+2^100

Where it should be

(sum(i=x to i=y) (n choose i)) / 2^n, n=100, x=90, y=100

which basically says, in n trials, count the probability of x up until y heads occurs. So in your case, you wanted to calculate 90 or more heads, so it's x=90 to y=100 heads.
 
Thanks very much for your help and I don't mind the Math lesson. Wish I had more time to go back to school!

So I assume that if I wanted to find the probability of say it landing heads in the range of 40 to 60 times, I would just substitute i = 40 to i = 60 in the above formula?

This seems to make sense and I get a high probability of .999 when I work it out. So am guessing that is correct?
 
rede96 said:
Thanks very much for your help and I don't mind the Math lesson. Wish I had more time to go back to school!

So I assume that if I wanted to find the probability of say it landing heads in the range of 40 to 60 times, I would just substitute i = 40 to i = 60 in the above formula?

This seems to make sense and I get a high probability of .999 when I work it out. So am guessing that is correct?

Yes, although .999 is too high. If you use Excel, I found the BINOMDIST function recently, which you might find useful. That gives P(40-60) = 0.965.

=BINOMDIST(60,100, 0.5, TRUE)-BINOMDIST(39,100, 0.5, TRUE)

TRUE means it's cumulative.
 
PeroK said:
Yes, although .999 is too high. If you use Excel, I found the BINOMDIST function recently, which you might find useful. That gives P(40-60) = 0.965.

=BINOMDIST(60,100, 0.5, TRUE)-BINOMDIST(39,100, 0.5, TRUE)

TRUE means it's cumulative.

Yes, I think I did the 0.999 between 30 and 70 and not 40 and 60. But the formula you posted was a great help. Thanks.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 57 ·
2
Replies
57
Views
7K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 14 ·
Replies
14
Views
7K
Replies
3
Views
2K
  • · Replies 45 ·
2
Replies
45
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K