document.write( "Question 1024672: A fair coin is tossed until x heads are found in a row. On average how many total flips will it take to get x heads in a row? \n" ); document.write( "
Algebra.Com's Answer #640064 by mathmate(429) You can put this solution on YOUR website! \n" ); document.write( "Question: \n" ); document.write( "A fair coin is tossed until x heads are found in a row. On average how many total flips will it take to get x heads in a row? \n" ); document.write( " \n" ); document.write( "Solution: \n" ); document.write( " \n" ); document.write( "Take the particular case of 10 heads in a row. \n" ); document.write( "For a fair coin, on average, half the flips result in heads. \n" ); document.write( "So over 18 throws, we have 9 heads (on average). To achieve 10 heads, the 19th throws must be a head to fulfill 10 heads, with probability of 0.5. \n" ); document.write( "Generalizing, and on average, we need 2x-1 flips to get x heads. \n" ); document.write( " \n" ); document.write( "Looking at it in a more theoretical way, the problem can be modelled using the negative binomial distribution. \n" ); document.write( "The probability density function is given by \n" ); document.write( "P(a,n)= \n" ); document.write( "where C(a+b-1,a-1)=(a+b-1)!/((a-1)!b!) \n" ); document.write( "and \n" ); document.write( "a=number of successes \n" ); document.write( "b=number of failures \n" ); document.write( "meaning n=a+b=number of flips. \n" ); document.write( "The distribution function is the sum of the probabilities for which k=0 to b, where k is the number of failures. \n" ); document.write( "The average value of flips is such that the distribution function equals 0.5. \n" ); document.write( "For a fair coin with p=0.5, b=a-1, hence n=a+b=2a-1. \n" ); document.write( "For more detailed discussion, Google the subject, or start by reading: \n" ); document.write( "http://mathworld.wolfram.com/NegativeBinomialDistribution.html \n" ); document.write( "https://onlinecourses.science.psu.edu/stat414/node/80 \n" ); document.write( "https://www.me.utexas.edu/~jensen/ORMM/computation/unit/rvadd/discrete_dist/neg_binomial.html \n" ); document.write( " \n" ); document.write( " |