🧪 Mathematics Statistics Simulation
Drag a single data point's position and watch how far it sits from the mean predictor (leverage) and how far it sits from the trend (residual) combine into Cook's distance -- and how much that one point can rotate an entire OLS regression line.
Not every data point has equal say over a regression line. This simulator builds a small scatter dataset, fits an ordinary least-squares line through it, and lets you drag one flagged point along two independent axes: how far it sits from the mean predictor (its leverage) and how far it sits from the trend (its residual). Live readouts compute the point's leverage hii, its Cook's distance, and how much the slope and R² of the fit shift because of it — the same influence diagnostics a statistician runs before trusting a regression on real, messy data.
This simulation introduces users to statistical concepts such as data analysis, hypothesis testing, and regression. Users can analyze datasets and draw conclusions based on statistical evidence.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install