09.12.2012 Views

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

Concrete mathematics : a foundation for computer science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

since (EX) is a constant; hence<br />

8.2 MEAN AND VARIANCE 375<br />

VX = E(X’) - (EX)‘. (8.15)<br />

“The variance is the mean of the square minus the square of the mean.”<br />

For example, the mean of (Xl +X2)’ comes to .98(0M)2 + .02( 100M)2 =<br />

200M’ or to .9801 I(OM)2 + .0198( 100M)’ + .OOOl (200M)2 = 202M2 in the<br />

lottery problem. Subtracting 4M2 (the square of the mean) gives the results<br />

we obtained the hard way.<br />

There’s an even easier <strong>for</strong>mula yet, if we want to calculate V(X+ Y) when<br />

X and Y are independent: We have<br />

E((X+Y)‘) = E(X2 +2XY+Yz)<br />

= E(X’) +2(EX)(EY) + E(Y’),<br />

since we know that E(XY) = (EX) (EY) in the independent case. There<strong>for</strong>e<br />

V(X + Y) = E#((X + Y)‘) - (EX + EY)’<br />

= EI:X’) + Z(EX)(EY) + E(Y’)<br />

-- (EX)‘-2(EX)(EY) - (EY)’<br />

= El:X’) - (EX)’ + E(Y’) - (EY)’<br />

= VxtvY. (8.16)<br />

“The variance of a sum of independent random variables is the sum of their<br />

variances.” For example, the variance of the amount we can win with a single<br />

lottery ticket is<br />

E(X:) - (EXl )’ = .99(0M)2 + .Ol(lOOM)’ - (1 M)’ = 99M2 .<br />

There<strong>for</strong>e the variance of the total winnings of two lottery tickets in two<br />

separate (independent) lotteries is 2x 99M2 = 198M2. And the corresponding<br />

variance <strong>for</strong> n independent lottery tickets is n x 99M2.<br />

The variance of the dice-roll sum S drops out of this same <strong>for</strong>mula, since<br />

S = S1 + S2 is the sum of two independent random variables. We have<br />

2<br />

35<br />

6 = ;(12+22+32+42+52+62!- ; = 12<br />

0<br />

when the dice are fair; hence VS = z + g = F. The loaded die has<br />

VSI = ;(2.12+22+32+42+52+2.62)-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!