Flipping a Biased Coin

There is a biased coin which has a probability 3 8 \frac{3}{8} of being heads and probability 5 8 \frac{5}{8} of being tails.

What is the number of times n n where n 2 n≥2 that it should be flipped such that the probability of getting two heads is equal to the probability of getting three heads?


The answer is 7.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Nick Turtle
Oct 29, 2017

The probability of getting 2 2 heads and n 2 n-2 tails, in that order, is ( 3 8 ) 2 ( 5 8 ) n 2 {(\frac{3}{8})}^2{(\frac{5}{8})}^{n-2} . There are n ! 2 ! ( n 2 ) ! \frac{n!}{2!(n-2)!} way of ordering it. So, the probability of getting 2 2 heads and n 2 n-2 tails, in any order, is n ! 2 ! ( n 2 ) ! ( 3 8 ) 2 ( 5 8 ) n 2 \frac{n!}{2!(n-2)!}{(\frac{3}{8})}^2{(\frac{5}{8})}^{n-2} .

Do the same for 3 3 heads and n 3 n-3 tails, which results to n ! 3 ! ( n 3 ) ! ( 3 8 ) 3 ( 5 8 ) n 3 \frac{n!}{3!(n-3)!}{(\frac{3}{8})}^3{(\frac{5}{8})}^{n-3} .

These two values are equal, so we solve for n n in n ! 2 ! ( n 2 ) ! ( 3 8 ) 2 ( 5 8 ) n 2 = n ! 3 ! ( n 3 ) ! ( 3 8 ) 3 ( 5 8 ) n 3 \frac{n!}{2!(n-2)!}{(\frac{3}{8})}^2{(\frac{5}{8})}^{n-2}=\frac{n!}{3!(n-3)!}{(\frac{3}{8})}^3{(\frac{5}{8})}^{n-3} .

Many terms cancel out, and we are left with 3 5 8 = 3 8 ( n 2 ) 3\cdot\frac{5}{8}=\frac{3}{8}(n-2) . Thus, we have n = 7 n=7 .

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# There is a biased coin which has a probability 3/8 of being heads and probability 
# 5/8 of being tails.
# What is the number of times n where n >= 2  that it should be flipped such 
# that the probability of getting two heads is equal to the probability of getting three heads?

p_heads = float(3/8.)
p_tails = 1-p_heads

heads_1 = 2
heads_2 = 3
num_of_flips = ((heads_2*p_tails)/p_heads)+heads_1
print num_of_flips

Michael Fitzgerald - 3 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...