◆ THE BLUEPRINT
What You're Looking At
A regression line positioned by your sliders. The vertical segments are residuals: the error between each data point and your line. The loss function decides how much each error costs.
Key Equations
How to Interact
Drag the intercept and slope sliders to reposition your line. Watch the total loss numbers update. Try to minimize each loss manually, then toggle "Show Optimal Lines" to see the true minimizer.
Click "Add Outlier" and compare how L2 and L1 respond. L2 will spike; L1 increases proportionally.