Determine the expected value and variance.

64 Views Asked by At

Suppose you throw a die until you obtain a 6, then throw a coin as many times as you threw the die. What's the expected value of and variance of the number of heads, tails, and heads and tails obtained?

My thinking is like this:

The throw of the die is first success distribution. Throw of the the coin is a Bernoulli distribution of the probability of getting heads. That is let $N \sim F_s(1/6)$ and $X_i \sim \mathrm{Ber}(1/2)$.

Then the sum of: $$ S_N= X_1+ \dots +X_N $$ The expected value of the number of heads should be $E(S_N)=E(N)E(X)=3$ and the variance $\mathrm{Var}(S_N) = E(N)\mathrm{Var}(X) + E(X)^2 \mathrm{Var}(N)=9$. The result should be the same for tails.

But what about the number of heads and tails obtained?

Thanks in advance!