Statistics

Least squares: the best line sits at the bottom of a bowl

The loss is the sum of squared errors \(L(\beta_0, \beta_1) = \sum_i (y_i - \beta_0 - \beta_1 x_i)^2\) over eight hand-picked points. Every square keeps its area on its way into the stack, so the stack's height is \(L\) to scale. The first guess is \((\beta_0, \beta_1) = (2, 0.15)\); the exact minimum is \(\hat\beta = (X^\top X)^{-1} X^\top y\), computed in the page.

Helios · more films →