Chapter 18 Random Variables768
We can use equation (18.14) to answer some concrete questions. For example,
the expected number of die rolls required to see every number from 1 to 6 is:
6H 6 D14:7::::And the expected number of people you must poll to find at least one person with
each possible birthday is:
365H 365 D2364:6::::18.5.5 Infinite Sums
Linearity of expectation also works for an infinite number of random variables
provided that the variables satisfy an absolute convergence criterion.
Theorem 18.5.5(Linearity of Expectation).LetR 0 ,R 1 ,... , be random variables
such that 1
X
iD 0ExŒjRijçconverges. Then
Ex" 1
X
iD 0RiD
X^1
iD 0ExŒRiç:Proof. LetTWWD
P 1
iD 0 Ri.
We leave it to the reader to verify that, under the given convergence hypothesis,
all the sums in the following derivation are absolutely convergent, which justifies
rearranging them as follows:
X^1iD 0ExŒRiçDX^1
iD 0X
s 2 SRi.s/PrŒsç (Def. 18.4.1)D
X
s 2 SX^1
iD 0Ri.s/PrŒsç (exchanging order of summation)D
X
s 2 S" 1
X
iD 0Ri.s/PrŒsç (factoring out PrŒsç)D
X
s 2 ST.s/PrŒsç (Def. ofT)DExŒTç (Def. 18.4.1)DEx" 1
X
iD 0Ri: (Def. ofT):