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.19. CASE STUDIES 315<br />

Exercises<br />

Note <strong>to</strong> instruc<strong>to</strong>r: See the Preface for a list <strong>of</strong> sources <strong>of</strong> real data on which exercises can be<br />

assigned <strong>to</strong> complement the theoretical exercises below.<br />

1. In the quartic model in ALOHA simulation example, find an approximate 95% confidence<br />

interval for the true population mean wait if our back<strong>of</strong>f parameter b is set <strong>to</strong> 0.6.<br />

Hint: You will need <strong>to</strong> use the fact that a linear combination <strong>of</strong> the components <strong>of</strong> a multivariate<br />

normal random vec<strong>to</strong>r has a univariate normal distributions as discussed in Section 8.5.2.1.<br />

2. Consider the linear regression model with one predic<strong>to</strong>r, i.e. r = 1. Let Yi and Xi represent the<br />

values <strong>of</strong> the response and predic<strong>to</strong>r variables for the i th observation in our sample.<br />

(a) Assume as in Section 15.12.3 that V ar(Y |X = t) is a constant in t, σ 2 . Find the exact value<br />

<strong>of</strong> Cov( ˆ β0, ˆ β1), as a function <strong>of</strong> the Xi and σ 2 . Your final answer should be in scalar, i.e.<br />

non-matrix form.<br />

(b) Suppose we wish <strong>to</strong> fit the model mY ;X(t) = β1t, i.e. the usual linear model but without the<br />

constant term, β0. Derive a formula for the least-squares estimate <strong>of</strong> β1.<br />

3. Suppose the random pair (X, Y ) has density 8st on 0 < t < s < 1. Find mY ;X(s) and<br />

V ar(Y |X = t), 0 < s < 1.<br />

4. The code below reads in a file, data.txt, with the header record<br />

"age", "weight", "sys<strong>to</strong>lic blood pressure", "height"<br />

and then does the regression analysis.<br />

Suppose we wish <strong>to</strong> estimate β in the model<br />

Fill in the blanks in the code:<br />

mean weight = β0 + β1height + β2age<br />

dt

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

Saved successfully!

Ooh no, something went wrong!