- #1
AllRelative
- 42
- 2
Homework Statement
We have a coin with probability ##0\leqslant p \leqslant 1## of getting heads. We flip the coin until we get ##7## heads in a row. Let ##N_7## be the number of necessary flips to get the ##7## heads in a row.
What is the expected value ##E(N_7)##?
Homework Equations
The prof suggested using this:
##E(N_7) = E[E(N_7| N_6)]##
I also found online the law of iterated expectation which is: ##\sum_{i=1}^{n} E[X | A_i]P(A_i) = E(X)##
The Attempt at a Solution
We learned about conditional expectation this morning in class. We still haven't done any example. I'm unsure about what this notation really mean.
Does the law of iterated expectation looks like this for this problem?
$$\sum_{i=1}^{6} E[N_7 | N_i]P(N_i) = E(N_7)$$
$$E[N_7 | N_1]P(N_1)+E[N_7 | N_2]P(N_2)+...+ E[N_7 | N_6]P(N_6)$$
And if so, is ##P(N_2) = p ^2 ##?
And how do I evaluate of the ##E[N_7 | N_i]##?
Thanks!