HomeStatisticsRegression Diagnostics: Leverage & Cook's Distance (2D)

Regression Diagnostics: Leverage & Cook's Distance (2D)

Drag data points on a 2D regression scatter and watch leverage, standardized residuals and Cook's distance update live in three linked panels — see exactly which points are quietly steering the fitted line.

Statistics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-ds-topic-17 ↗ Open standalone

A regression line's coefficients are averages, but they aren't democratic — a single point far from the center of the data can steer the fit far more than the rest of the cloud combined. This simulator renders an ordinary-least-squares scatter across three linked 2D panels: the fitted line itself, a live bar chart of each point's Cook's distance, and a leverage-vs-standardized-residual diagnostic with iso-Cook's-distance contours. Drag points around or inject a deliberately extreme outlier and watch all three panels update together, so you can see exactly why a point is or isn't influential, not just that it is.

⚙ Under the hood

Drag points on a linked 2D scatter, Cook's-distance bar chart and leverage/residual diagnostic panel and watch all three update live, revealing which observations are quietly steering the fitted OLS line.

regressionstatisticscooks-distanceleverageoutliersdata-science

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

What did you find?

Add reproduction steps (optional)