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.
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.
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.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install