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

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

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

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

and<br />

Q =<br />

⎛<br />

⎜<br />

⎝<br />

β =<br />

⎛<br />

⎜<br />

⎝<br />

β1<br />

β2<br />

β3<br />

⎞<br />

1 H1 A1<br />

1 H2 A2<br />

...<br />

1 H1033 A1033<br />

⎟<br />

⎠ (15.28)<br />

⎞<br />

⎟<br />

⎠<br />

(15.29)<br />

Then it can be shown that, after all the partial derivatives are taken and set <strong>to</strong> 0, the solution is<br />

ˆβ = (Q ′ Q) −1 Q ′ V (15.30)<br />

For the general case (15.24) with n observations (n = 1033 in the baseball data), the matrix Q has<br />

n rows and r+1 columns. Column i+1 has the sample data on predic<strong>to</strong>r variable i.<br />

Keep in mind that all <strong>of</strong> this is conditional on the X (i)<br />

j , i.e. conditional on Q. As seen for example<br />

in (15.1), our assumption is that<br />

E(V |Q) = Qβ (15.31)<br />

This is the standard approach, especially since there is the case <strong>of</strong> nonrandom X. Thus we will later<br />

get conditional confidence intervals, which is fine. To avoid clutter, I will sometimes not show the<br />

conditioning explicitly, and thus for instance will write, for example, Cov(V) instead <strong>of</strong> Cov(V|Q).<br />

It turns out that ˆ β is an unbiased estimate <strong>of</strong> β: 7<br />

E ˆ β = E[(Q ′ Q) −1 Q ′ V ] (15.30) (15.32)<br />

= (Q ′ Q) −1 Q ′ EV (linearity <strong>of</strong> E()) (15.33)<br />

= (Q ′ Q) −1 Q ′ · Qβ (15.31) (15.34)<br />

= β (15.35)<br />

In some applications, we assume there is no constant term β0 in (15.24). This means that our Q<br />

matrix no longer has the column <strong>of</strong> 1s on the left end, but everything else above is valid.<br />

7 Note that here we are taking the expected value <strong>of</strong> a vec<strong>to</strong>r. This is covered in Chapter 8.

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

Saved successfully!

Ooh no, something went wrong!