Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suppose n identical fair coins are tossed. Those that show Heads are tossed again, and the number of Heads obtained on the second set of tosses defines a discrete random variable X. Assuming that all tosses are independent, find the probability mass function of X.

Answer: $$ f_X(x) = \binom nx \left(\frac 14\right)^x\left(1-\frac 14\right)^{n-x}. $$ (original imege:

I understand that the probability of flipping two heads is $1/4$ and the range of $X$ is $0$ up to $n$, so does this just come straight from the definition of a binomial distribution? Because the number of trials involved is not likely to be equal to $n$.

share|cite|improve this question
up vote 5 down vote accepted

Hint: Modify the game slightly, so that whatever you get on the first toss of a coin, you toss the coin again. Then the number of heads in the original game is precisely the same as the number of coins that gave two heads in a row in the modified game. And the probability that a coin gives two heads in a row in the modified game is $1/4$.

share|cite|improve this answer

Look at the tosses for each coin. For coin $i$, consider "success" to be the event that the coin was tossed twice and that the second toss yielded heads. If the first toss was tails, then the outcome for that coin is already failure. You could equivalently think of this has the probability of tossing two heads in a row for coin $i$, where each coin is always tossed twice, but then counting how many coins showed heads both times.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.