Center-of-Mass Seesaw & L1/L2 Loss Minimizer Lab
Drop weights onto a physical balance beam, drag an outlier to watch lever-arm torque shift the mean, and compare L2 squared error vs. L1 absolute error.
See the arithmetic mean as a physical balance fulcrum on a seesaw—and discover why a single extreme outlier drags the mean while leaving the median unmoved.
Why household income, housing prices, and server latency SLAs rely on medians and trimmed means instead of raw arithmetic averages.
Why does a single extreme outlier drag the arithmetic mean sharply down a tail while leaving the sample median completely unmoved?
The mean balances linear torque by minimizing squared error , giving faraway outliers quadratic leverage over every point near the middle.
By contrast, the median minimizes absolute distance : its subgradient counts only how many observations sit left vs. right, giving it a breakdown resistance.
If a billionaire walks into a coffee shop of 20 students, everyone's 'average' net worth jumps into the millions—yet nobody got richer. Why is the mean so vulnerable, while the median stays calm?
Click on the seesaw beam to drop weights, drag the Persimmon outlier across [0, 25], and watch the Mean fulcrum, Median marker, and squared-vs-absolute error curves respond live.
In right-skewed data, the tail pulls Mean > Median > Mode. Yet two neighborhoods can share the exact same Mean and Median while having wildly different spreads—leading directly to Chapter S.1.3.
Picture 11 students sitting in a café, each with roughly \$5,000 in savings. Both their Mean and Median savings sit around \$5,500. Now imagine one billionaire walks through the door. Nobody else's bank account changed by a single cent—yet the arithmetic mean skyrockets, while the median (the person standing in the exact middle of the line) barely moves one spot! In the interactive seesaw below, the Mean is literally a center-of-mass pivot where distance from the pivot multiplies a point's pull.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Just like a seesaw balances when left-side torque equals right-side torque, a single point 10 units to the right pulls as hard as ten points 1 unit to the left. That is also the exact bottom of the smooth parabola!
In absolute loss, moving a point from 15 to 10,000 doesn't change its pull on the slope—it still counts as just one vote on the right! That makes the Median immune to extreme outliers (50% breakdown point).
Take 5 numbers: 2, 4, 5, 5, 24.
One outlier (24) pushed Mean above 4 of the 5 numbers!
Because the Mean chases tails harder than the Median: Right-skewed data gives ; Left-skewed data gives ; symmetric unimodal data keeps .
Select the Two-Peak Split preset above: both Mean and Median land around 11, where not a single observation exists! Never report a center without checking the distribution shape first.
Equating the first derivative of squared error to zero recovers the torque-balance law . Because pulling one point farther away multiplies its squared penalty by , outliers exert huge leverage.
Every observation above pulls with unit force regardless of distance! Equilibrium holds wherever half the counts sit on each side, giving the median a breakdown point vs. for .
A long upper tail in income or latency data pulls above the typical observation. Trimmed means discard the outer tails to bridge median robustness and mean efficiency.
Drop weights onto a physical balance beam, drag an outlier to watch lever-arm torque shift the mean, and compare L2 squared error vs. L1 absolute error.
Slide the Persimmon outlier toward 25: the Mean fulcrum chases it across the beam, while the Median stays locked inside the crowd!
Lever arm from mean: +15.21