Econ 425T Homework 2

Due Feb 3, 2023 @ 11:59PM

Author

YOUR NAME and UID

Published

February 2, 2023

1 Least squares is MLE (10pts)

Show that in the case of linear model with Gaussian errors, maximum likelihood and least squares are the same thing, and Cp and AIC are equivalent.

2 ISL Exercise 6.6.1 (10pts)

3 ISL Exercise 6.6.3 (10pts)

4 ISL Exercise 6.6.4 (10pts)

5 ISL Exercise 6.6.5 (10pts)

6 ISL Exercise 6.6.11 (30pts)

You must follow the typical machine learning paradigm to compare at least 3 methods: least squares, lasso, and ridge. Report final results as

Method CV RMSE Test RMSE
LS
Ridge
Lasso

7 ISL Exercise 5.4.2 (10pts)

8 ISL Exercise 5.4.9 (20pts)

9 Bonus question (20pts)

Consider a linear regression, fit by least squares to a set of training data (x1,y1),,(xN,yN) drawn at random from a population. Let β^ be the least squares estimate. Suppose we have some test data (x~1,y~1),,(x~M,y~M) drawn at random from the same population as the training data. If Rtrain(β)=1Ni=1N(yiβTxi)2 and Rtest(β)=1Mi=1M(y~iβTx~i)2. Show that E[Rtrain(β^)]<E[Rtest(β^)].