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

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

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

372 DISCRETE PROBABILITY<br />

The mean of a random variable turns out to be more meaningful in [get it:<br />

applications than the other kinds of averages, so we shall largely <strong>for</strong>get about On average, “aver-<br />

age” means “mean.”<br />

medians and modes from now on. We will use the terms “expected value,”<br />

“mean,” and “average” almost interchangeably in the rest of this chapter.<br />

If X and Y are any two random variables defined on the same probability<br />

space, then X + Y is also a random variable on that space. By <strong>for</strong>mula (8.g),<br />

the average of their sum is the sum of their averages:<br />

E(X+Y) = x (X(w) +Y(cu)) Pr(cu) = EX+ EY.<br />

WEfl<br />

Similarly, if OL is any constant we have the simple rule<br />

(8.10)<br />

E(oLX) = REX. (8.11)<br />

But the corresponding rule <strong>for</strong> multiplication of random variables is more<br />

complicated in general; the expected value is defined as a sum over elementary<br />

events, and sums of products don’t often have a simple <strong>for</strong>m. In spite of this<br />

difficulty, there is a very nice <strong>for</strong>mula <strong>for</strong> the mean of a product in the special<br />

case that the random variables are independent:<br />

E(XY) = (EX)(EY), if X and Y are independent. (8.12)<br />

We can prove this by the distributive law <strong>for</strong> products,<br />

E(XY) = x X(w)Y(cu).Pr(w)<br />

WEfl<br />

=t<br />

xcx(n)<br />

YEY(fl)<br />

xy.Pr(X=x and Y=y)<br />

= t<br />

xy.Pr(X=x) Pr(Y=y)<br />

?&X(n)<br />

YEY(fl)<br />

= x xPr(X=x) . x yPr(Y=y) = (EX)(EY).<br />

XEX(cll Y EY(n)<br />

For example, we know that S = Sr +Sl and P = Sr SZ, when Sr and Sz are<br />

the numbers of spots on the first and second of a pair of random dice. We have<br />

ES, = ES2 = 5, hence ES = 7; furthermore Sr and Sz are independent, so<br />

EP = G.G = y, as claimedearlier. We also have E(S+P) = ES+EP = 7+7.<br />

But S and P are not independent, so we cannot assert that E(SP) = 7.y = y.<br />

In fact, the expected value of SP turns out to equal y in distribution Prco,<br />

112 (exactly) in distribution Prlr .

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

Saved successfully!

Ooh no, something went wrong!