Exercises week 37#
September 9-13, 2024
Date: Deadline is Friday September 13 at midnight
Overarching aims of the exercises this week#
This exercise deals with various mean values and variances in linear regression method (here it may be useful to look up chapter 3, equation (3.8) of Trevor Hastie, Robert Tibshirani, Jerome H. Friedman, The Elements of Statistical Learning, Springer). The exercise is also a part of project 1 and can be reused in the theory part of the project.
For more discussions on Ridge regression and calculation of expectation values, Wessel van Wieringen’s article is highly recommended.
The assumption we have made is that there exists a continuous function
We then approximate this function
The matrix
Exercise 1: Expectation values for ordinary least squares expressions#
Show that the expectation value of
and that its variance is
Hence,
With the OLS expressions for the optimal parameters
Show finally that the variance of
We can use the last expression when we define a so-called confidence interval for the parameters
Exercise 2: Expectation values for Ridge regression#
Show that
We see clearly that
Show also that the variance is
and it is easy to see that if the parameter