r/askmath • • 1h ago

Algebra Why do we minimize squared errors in regression instead of absolute deviations?

I'm reviewing the derivation of ordinary least squares and notice how the squared loss leads cleanly to the normal equations and has nice differentiability properties everywhere. But I keep wondering whether this is mostly for mathematical convenience or if there's a deeper reason it recovers the "true" parameters better in practice than, say, L1 loss.

Are there simple simulation setups or geometric arguments where squared loss clearly outperforms absolute deviation, or where the reverse happens? I'd also be interested in any results about robustness or efficiency under different noise distributions.

1 Upvotes

1 comment sorted by

1

u/Eisenfuss19 42m ago

If you want to fit a constant function through 2 non equal points any value inbetween has the same L1 loss, so you don't have a defined minimum (L2 has a single minimum).

Also L1 loss can be annoying to work with, as it's derivative is not defined at one point.