A model is fitted to four training examples with three features and no intercept term. The design matrix holds one example per row, and holds the targets:
| Example | Target | |||
|---|---|---|---|---|
| 1 | ||||
| 2 | ||||
| 3 | ||||
| 4 |
Least squares picks the weight vector that makes the predictions as close to as possible:
Geometrically, is the orthogonal projection of onto the column space of — the set of all vectors the model is capable of producing. Whatever is left over is the error no choice of weights can remove.
The columns of are not mutually orthogonal, so you will have to orthogonalise them before projecting. Work carefully: check what each column actually contributes before you use it.
What is , the distance from to the column space of ? Round your answer to 2 decimal places.