Linear regression fits the straight line that stays as close as possible to your points. The output looks intimidating for about a minute, then turns out to be four numbers: a slope, an intercept, a p-value and R².
What the numbers mean
| Output | Meaning in one sentence |
|---|---|
| Slope | When X increases by 1, Y changes by this much on average — the direction and size of the relationship. |
| Intercept | The predicted Y when X = 0. Often meaningful (calibration), sometimes just a mathematical anchor. |
| P value | How surprising it would be to see a slope this large if there were no relationship at all. Small p = the slope is unlikely to be a fluke. |
| R² | The fraction of the variation in Y that the line explains — 0.81 means 81%. |
Reading R² honestly
R² is best read as "how much of the scatter has disappeared". An R² of 0.9 means the points hug the line; 0.1 means the line barely improves on guessing the mean of Y. It is a measure of fit, not of importance, and certainly not of causality.
What R² does not tell you:
- Whether the relationship is real. A tiny R² can still have a highly significant slope — and a big R² can come from a handful of points.
- Whether the line is the right shape. Data that curves can still produce a fine-looking straight line with a respectable R². Plot it.
- Cause and effect. Chocolate sales correlate with Nobel prizes per country. The line exists; the causal story does not.
Report the slope with its uncertainty
A slope without a confidence interval is incomplete. "Each extra hour of study is associated with 3.2 more points (95% CI: 1.8 to 4.6, p < 0.001, n = 45, R² = 0.42)" says everything a reader needs: direction, size, precision, significance and fit. StatFlo's regression report includes all of these — slope ± SE, the 95% CI, the intercept, R², Pearson r, the p-value, n, and Sy.x (the typical distance of points from the line).
A quick sanity checklist
- Plot first. A scatter plot costs nothing and catches curved relationships, clusters and outliers before any number does.
- Look at the residuals if something feels off. Systematic curvature in the residuals means a straight line is the wrong model.
- Do not extrapolate. The line describes the range of X you measured. Predictions beyond that range are guesses dressed as equations.
- Beware one-point conclusions. If removing a single point changes the slope dramatically, report that honestly.
In StatFlo: choose the Scatter Plot, pick X and Y from the dropdowns, and the tool fits the line, draws it on the chart, and reports the full regression table with an automatic interpretation.