How was the formula for Ordinary Least Squares Linear Regression arrived at?
Note I am not only looking for the proof, but also the derivation. Where did the formula come from?