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.

15.12. PARAMETRIC ESTIMATION OF LINEAR REGRESSION FUNCTIONS 301<br />

Cov( ˆ β) = Cov(BQ ′ V ) ((15.30)) (15.38)<br />

= BQ ′ Cov(V )(BQ ′ ) ′ (7.50) (15.39)<br />

= BQ ′ σ 2 I(BQ ′ ) ′ (15.37) (15.40)<br />

= σ 2 BQ ′ QB (lin. alg.) (15.41)<br />

= σ 2 (Q ′ Q) −1 (def. <strong>of</strong> B) (15.42)<br />

Whew! That’s a lot <strong>of</strong> work for you, if your linear algebra is rusty. But it’s worth it, because<br />

(15.42) now gives us what we need for confidence intervals. Here’s how:<br />

First, we need <strong>to</strong> estimate σ 2 . Recall first that for any random variable U, V ar(U) = E[(U −EU) 2 ],<br />

we have<br />

σ 2 = V ar(Y |X = t) (15.43)<br />

= V ar(Y |X (1) = t1, ..., X (r) = tr) (15.44)<br />

= E {Y − mY ;X(t)} 2<br />

(15.45)<br />

= E (Y − β0 − β1t1 − ... − βrtr) 2<br />

(15.46)<br />

Thus, a natural estimate for σ 2 would be the sample analog, where we replace E() by averaging<br />

over our sample, and replace population quantities by sample estimates:<br />

s 2 = 1<br />

n<br />

n<br />

i=1<br />

(Yi − ˆ β0 − ˆ β1X (1)<br />

i − ... − ˆ βrX (r)<br />

i ) 2<br />

(15.47)<br />

As in Chapter 12, this estimate <strong>of</strong> σ 2 is biased, and classicly one divides by n-(r+1) instead <strong>of</strong> n.<br />

But again, it’s not an issue unless r+1 is a substantial fraction <strong>of</strong> n, in which case you are overfitting<br />

and shouldn’t be using a model with so large a value <strong>of</strong> r.<br />

So, the estimated covariance matrix for ˆ β is<br />

Cov( ˆ β) = s 2 (Q ′ Q) −1<br />

(15.48)<br />

The diagonal elements here are the squared standard errors (recall that the standard error <strong>of</strong> an<br />

estima<strong>to</strong>r is its estimated standard deviation) <strong>of</strong> the βi. (And the <strong>of</strong>f-diagonal elements are the<br />

estimated covariances between the βi.) Since the first standard errors you ever saw, in Section 10.5,<br />

included fac<strong>to</strong>rs like 1/ √ n, you might wonder why you don’t see such a fac<strong>to</strong>r in (15.48).

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

Saved successfully!

Ooh no, something went wrong!