Best Linear Predictor
Let $Y$ and the $p \times 1$ vector $\mathbf{X}$ be jointly distributed, and suppose you are trying to predict $Y$ based on a linear function of $\mathbf{X}$. For the predictor
the mean squared error of prediction is
In this section we will identify the linear predictor that minimizes the mean squared error. We will also find the variance of the error made by this best predictor.
A Linear Predictor
In the case of simple regression, we found the best linear predictor by using calculus to minimize the mean squared error over all slopes and intercepts. We could do the multivariable version of that calculation here. But because of the work we did in the case of one predictor, we will take a different approach.
We will guess the answer based on the answer in the case of simple regression, and then establish that our guess is correct.
In the case of simple regression, we wrote the regression equation in the form
Now define
where
is the $p \times 1$ vector of the coefficients of the linear function.
Clearly $\hat{Y}_\mathbf{b}$ is a linear predictor of $Y$ based on $\mathbf{X}$. We will show that it is the least squares linear predictor. The steps will follow those that we used to show that conditional expectation is the least squares predictor among all predictors.
Projection
Notice that $E(\hat{Y}_\mathbf{b}) ~ = ~ \mu_Y$. The predictor has the same mean as the variable being predicted.
Define the error in the prediction to be
Then
We will now show that $W$ is uncorrelated with all linear combinations of elements of $\mathbf{X}$.
Because $E(W) = 0$, we also have $E(W\mathbf{a}^T\mathbf{X}) = Cov(W, \mathbf{a}^T\mathbf{X}) = 0$ for all $\mathbf{a}$.
Least Squares
To show that $\hat{Y}_\mathbf{b}$ minimizes the mean squared error, start with an exercise: show that the best linear predictor must have the same mean as the variable being predicted. That is, show that the best linear predictor must have mean $\mu_Y$.
Once you have done that, you can restrict the search for the best linear predictor to all unbiased linear predictors. Define the generic one of these by
where $\mathbf{h}$ is some $p \times 1$ vector of coefficients. Then
Regression Equation and Predicted Values
The least squares linear predictor is given by
This is the same as $\hat{Y}_\mathbf{b}$. We are just dropping the subscript for convenience, now that we have established that it is the best linear predictor.
As we have seen above, the predictor is unbiased:
The variance of the predicted values is
Error Variance
The error in the prediction is $W = Y - \hat{Y}$. Because $\hat{Y}$ is a linear function of $\mathbf{X}$, we have
Therefore
The variance of the error is
In the case of simple regression under the bivariate normal model, we saw that the error variance was
This is a special case of the more general formula that we have established here. The bivariate normal assumption isn’t needed.
As in the case of simple regression, we have made no assumption about the joint distribution of $Y$ and $\mathbf{X}$ other than to say that $\boldsymbol{\Sigma}_\mathbf{X}$ is positive definite. Regardless, there is a unique best linear predictor of $Y$ based on $\mathbf{X}$.