Expectation of Sums of Random Variables
That is, Xi represents the number of additional trials required, after the
(i-1)st success, until a total of i successes are amassed. A little thought
reveals that each of the random variables Xi is a geometric random variable
with parameter p. Hence,
;
and thus
We could also have obtained the above result by using the alternative
representation
where