Home▸Statistics▸Regression Leverage and Cook's Distance: How One Point Drags the Least-Squares Line (2D)

📏 Regression Leverage and Cook's Distance: How One Point Drags the Least-Squares Line (2D)

Hang a bar on one spring per data point and watch it settle on the least-squares line, then move a single suspect point: leverage, standardised residual and Cook's distance show why a far-away point can dominate a regression even when its residual is small.

Statistics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
Regression Leverage and Cook's Distance: How One Point Drags the Least-Squares Line (2D) ↗ Open standalone
⚙ Under the hood

Hang a bar on one spring per data point and watch it settle on the least-squares line, then move a single suspect point: leverage, standardised residual and Cook's distance show why a far-away point can dominate a regression even when its residual is small.

regression diagnosticsleverageCook's distanceinfluential pointsleast squareshat matrixresidualsstatistics

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)