Let
Find such that is minimized.
Givne any matrix , we know
is the set of all possible . Let . The projection is the unique point on with the shortest distance to . Thus, we may solve instead. By the projection formula, we have
so we may choose .
The projection of onto the column space is . Since has no solution, we solve instead, which means .
The rest is the computation. Now we have
We could try that
and , which seems to be a promising answer.
This note can be found at Course website > Learning resources.