This problem is about the meaning of the coefficient of determination and its connection to variance, a topic that appears in the next section. Throughout this problem, we consider the linear system and the approximate least-squares solution , where . We suppose that is an matrix, and we will denote the -dimensional vector .
Explain why , the mean of the components of , can be found as the dot product
In the examples we have seen in this section, explain why is in .
If we write , explain why and hence why the mean of the components of is zero.
The variance of an -dimensional vector is , where is the vector obtained by demeaning .
Explain why
Explain why and hence
These expressions indicate why it is sometimes said that measures the “fraction of variance explained” by the function we are using to fit the data. As seen in the previous exercise, there may be other features that are not recorded in the dataset that influence the quantity we wish to predict.
Explain why .
Austin, Understanding Linear Algebra, §6.5 Orthogonal least squares, Exercise 12