Solution:
Let X ~ Geom(p), interpreted as the number of failures before the first success in independent Bern(p) trials. Let A be the event that the first trial is a success. E(X) = E(X|A)P(A) + E(X|Ac)P(Ac) = 0p + (1 + E(X))q, where E(X) = q/p.

Copyright © 2011 Stat 110 Harvard.
Website layout by former Stat110'er.