A fair coin is flipped repeatedly. Let X be the number of flips up to…
Question
A fair coin is flipped repeatedly. Let X be the number of flips up to and including the flip on which heads appears for the third time. Given that the third head occurs on an even-numbered flip (X is even), the conditional expectation E[X | X even] equals m/n in lowest terms. Find m+n.
Step-by-step solution
X follows a negative binomial law: P(X = k) = C(k-1, 2) (1/2)^k for k >= 3 (the last flip is the 3rd head; among the first k-1 flips exactly 2 are heads).
Use generating functions.
evaluate.
The signed first moment S = sum_k k C(k-1,2)(-1/2)^k: differentiating x^3/(1-x)^3 gives x(3x^2(1-x)^3 + x^3*3(1-x)^2)/(1-x)^6 = x*3x^2(1-x+x)/(1-x)^4 = 3x^3/(1-x)^4; multiply by the extra x from x d/dx so first moment generator = 3x^3/(1-x)^4.
Final answer93
Stuck on a problem like this?
Paste any JEE or NEET question — verified working, a confidence %, and an honest “not sure” instead of a bluff.
Solve my doubt →More Probability solutions