Using the model
Symbols, assumptions and limitations
Ordinary least squares requires at least two distinct x values. Pearson r describes linear association, not causation. Predictions outside the observed x range are extrapolations and may be unreliable.
Worked examples
See the method in practice
Perfect positive relation
Pairs (1,2), (2,4), and (3,6) produce ŷ=2x, r=1, and R²=1.
Imperfect fit
Real observations generally leave nonzero residuals, so R² describes the fraction of y variation explained by the fitted linear relation.
Questions
Frequently asked
What does r measure?
Pearson r measures the direction and strength of linear association on a scale from −1 to 1.
What does R² mean?
In simple linear regression it is the proportion of observed y variation explained by the fitted line.
Does correlation prove causation?
No. Confounding variables, selection effects, and coincidence can create correlation without a causal relationship.
Sources & review
Equations and examples are checked against the references below. Results are educational and should be independently verified for safety-critical work.
NIST/SEMATECH e-Handbook — Linear Least Squares RegressionWritten by the STEM Hub editorial team · Reviewed August 11, 2026 · Review methodology