Add points or load an example to describe the trend.
Setup
Build and test a regression model
Dataset playground
Choose a classroom-ready example or click in the graph to make your own dataset.
Prediction lab
Enter an x-value, make a prediction, and compare it to the current line.
Add at least two points to unlock predictions.
Graph layers
Turn on visual supports that help students see what least squares is doing.
Learning flow
Use this talk track to keep the tool instructional instead of just interactive.
Start with a strong trend, then drag the line away from the cloud and compare the residual plot.
- Describe the direction of the pattern before reading the numbers.
- Interpret slope as “for each +1 in x, predicted y changes by...”
- Drag the line away from best fit and compare how the residual plot changes.
- Use the fan-shape examples to discuss non-constant variance.
Visualization
Data cloud, model line, and residuals
Click without dragging to add points. Drag the graph to pan, use the wheel or zoom buttons to scale, and drag the line or endpoints to test non-optimal fits.
ANOVA table
This table updates for the current draggable line. When the line is not at least squares, treat it as a teaching comparison rather than a formal inference table.
| Source | SS | df | MS | F | p-value |
|---|
Add at least three points with different x-values to compute the regression ANOVA table.
Residual plot
A well-matched linear model tends to leave residuals scattered around zero. Curves or fan shapes suggest trouble.
A Breusch-Pagan-style signal check will appear here once the app can evaluate residual spread.
Live readout
The app translates the regression into language students can explain.
A line needs at least two points with different x-values.
R-squared and MSE appear once the app can fit a line.
Use the line to tell a story about how y changes as x increases.