20.03.2013 Views

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

From Algorithms to Z-Scores - matloff - University of California, Davis

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

52 CHAPTER 3. DISCRETE RANDOM VARIABLES<br />

constants, we have<br />

so the minimizing c is c = EX!<br />

In other words, the minimum value <strong>of</strong> E[(X − c) 2 ] occurs at c = EX.<br />

0 = −2EX + 2c (3.64)<br />

Moreover: Plugging c = EX in<strong>to</strong> (3.63) shows that the minimum value <strong>of</strong> g(c) is E(X − EX) 2 ] ,<br />

which is Var(X)!<br />

3.9 Covariance<br />

This is a <strong>to</strong>pic we’ll cover fully in Chapter 8, but at least introduce here.<br />

A measure <strong>of</strong> the degree <strong>to</strong> which U and V vary <strong>to</strong>gether is their covariance,<br />

Cov(U, V ) = E[(U − EU)(V − EV )] (3.65)<br />

Except for a divisor, this is essentially correlation. If U is usually large (relative <strong>to</strong> its expectation)<br />

at the same time V is small (relative <strong>to</strong> its expectation), for instance, then you can see that the<br />

covariance between them will be negative. On the other hand, if they are usually large <strong>to</strong>gether or<br />

small <strong>to</strong>gether, the covariance will be positive.<br />

Again, one can use the properties <strong>of</strong> E() <strong>to</strong> show that<br />

Also<br />

Cov(U, V ) = E(UV ) − EU · EV (3.66)<br />

V ar(U + V ) = V ar(U) + V ar(V ) + 2Cov(U, V ) (3.67)<br />

Suppose U and V are independent. Then (3.17) and (3.66) imply that Cov(U,V) = 0. In that case,<br />

V ar(U + V ) = V ar(U) + V ar(V ) (3.68)<br />

By the way, (3.68) is actually the Pythagorean Theorem in a certain esoteric, infinite-dimesional<br />

vec<strong>to</strong>r space (related <strong>to</strong> a similar remark made earlier). This is pursued in Section 19.7 for the<br />

mathematically inclined.

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

Saved successfully!

Ooh no, something went wrong!