Definition
Let be a subspace of
Question
- Does there always exist a minimum?
- Is unique?
One-dimensional case
is a one dimensional subspace in This means: and with We know Hypothesis: with is orthogonal to (See proof below)
Lemma 5.2.2
(see the proof below)
Proof: is orthogonal to
Proof: Lemma 5.2.2 (recall that )
If and , then
General case
Consider Let Let
Lemma 5.2.3
The projection of on is a vector with
- Proof
Since is invertible, according to Lemma 5.2.3,Lemma 5.2.4
Let then is invertible if and only if columns of are linear independent
Proof: invertible columns of are linear independent
Link to original
Theorem 5.2.5
Remark
Least Square (Data Fitting)
When is minimal (OR we can write ) is the least square solution
Application: Linear Regression

Data: where
We want to find Solution:
We can extend this method to cubic, quadratic…