Home▸AI & Machine Learning▸Influential Points in Least Squares: Leverage and Cook Distance on a Scatter Plot (2D)

Influential Points in Least Squares: Leverage and Cook Distance on a Scatter Plot (2D)

The same least-squares model as the 3D scene as a scatter plot: fitted line with and without the movable point, residual stems, point size scaled by Cook distance, and live leverage, D and slope-shift curves.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Influential Points in Least Squares: Leverage and Cook Distance on a Scatter Plot (2D) ↗ Open standalone

Drag one point around a regression scatter plot and watch the least-squares line react. See leverage from the hat matrix, the residual, Cook distance and the slope shift it causes, and learn why a point far out in x on the trend is harmless while a point off the trend is not. Blender-built board, data spheres and fit lines, with independent numerical checks (hat matrix, leave-one-out refits) built in.

⚙ Under the hood

The same least-squares model as the 3D scene as a scatter plot: fitted line with and without the movable point, residual stems, point size scaled by Cook distance, and live leverage, D and slope-shift curves.

RegressionLeverageCook DistanceHat MatrixOutliers

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

What did you find?

Add reproduction steps (optional)