Exploring Two-Variable Data
Least-Squares Regression
Fitting a regression line to bivariate data and interpreting slope and intercept.
Prerequisites
- Scatterplots & Correlation
Fitting a Line to the Car Value Data
The car age/value data from the last lesson showed an extremely strong negative linear relationship (r ≈ −0.998). Before reading on: with a relationship this strong, would a single specific line — one exact equation — be able to predict a car's value from its age fairly reliably?
Definition — Least-Squares Regression Line
Worked Example — Fitting and Interpreting the Regression Line
Worked Example — Checking the Fit
Graph Visualizer
Domain & range
Evaluate a point
- x^2 = 0
Tip
Common Mistakes
Using the regression line to predict a car's value at an age far beyond the observed data, like age 30.
A regression line is only trustworthy within (or very close to) the range of x actually observed — predicting age 30 assumes the same linear pattern continues indefinitely, which the data can't confirm and which isn't realistic for a car's value anyway (it can't go negative).
Key Takeaways
- The least-squares regression line minimizes the sum of squared residuals, and its slope shares the same underlying calculation as the correlation coefficient.
- Slope and intercept have specific, context-based interpretations tied to the variables' actual units.
- Checking residuals at a few points is a quick way to confirm a line's fit matches what the correlation coefficient already suggests.
Summary
This closes the study of two-variable data. The next unit turns to how data should be collected in the first place, so conclusions drawn from it can be trusted.
Sign in to track your progress and mark this lesson complete.
Track your progress