23.11.2014 Views

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

Data Structures and Algorithms in Java[1].pdf - Fulvio Frisone

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

E(X + Y) = E(X) + E(Y) <strong>and</strong> E(cX) = cE(X).<br />

Example A.20: Let X be a r<strong>and</strong>om variable that assigns the outcome of the roll of<br />

two fair dice to the sum of the number of dots show<strong>in</strong>g. Then E(X) = 7.<br />

Justification: To justify this claim, let X 1 <strong>and</strong> X 2 be r<strong>and</strong>om variables<br />

correspond<strong>in</strong>g to the number of dots on each die. Thus, X1 = X2 (i.e., they are two<br />

<strong>in</strong>stances of the same function) <strong>and</strong> E(X) = E(X 1 + X 2 ) = E(X 1 ) + E(X 2 ). Each<br />

outcome of the roll of a fair die occurs with probability 1/6. Thus<br />

E(x i ) = 1/6 + 2/6 + 3/6 + 4/6 + 5/6 + 6/6 = 7/2,<br />

for i = 1,2. Therefore, E(X) = 7.<br />

Two r<strong>and</strong>om variables X <strong>and</strong> Y are <strong>in</strong>dependent if<br />

Pr(X = x|Y = y)= Pr(X = x),<br />

for all real numbers x <strong>and</strong> y.<br />

Proposition A.21: If two r<strong>and</strong>om variables X <strong>and</strong> Y are <strong>in</strong>dependent, then<br />

E(XY) = E(X)E(Y).<br />

Example A.22: Let X be a r<strong>and</strong>om variable that assigns the outcome of a roll of two<br />

fair dice to the product of the number of dots show<strong>in</strong>g. Then E(X) = 49/4.<br />

Justification: Let X 1 <strong>and</strong> X 2 be r<strong>and</strong>om variables denot<strong>in</strong>g the number of dots<br />

on each die. The variables X 1 <strong>and</strong> X 2 are clearly <strong>in</strong>dependent; hence<br />

E(X) = E(X 1 X 2 ) = E(X 1 )E(X 2 ) = (7/2) 2 = 49/4.<br />

The follow<strong>in</strong>g bound <strong>and</strong> corollaries that follow from it are known as Chernoff<br />

bounds.<br />

Proposition A.23: Let X be the sum of a f<strong>in</strong>ite number of <strong>in</strong>dependent 0/1 r<strong>and</strong>om<br />

variables <strong>and</strong> let μ > 0 be the expected value of X. Then, for δ > 0,<br />

Useful Mathematical Techniques<br />

.<br />

917

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

Saved successfully!

Ooh no, something went wrong!