Correlation and regression are tools for describing relationships between two quantitative variables. Correlation tells how strongly and in what direction the variables move together, while regression gives an equation that predicts one variable from the other. These ideas are used in science, economics, psychology, and engineering to analyze data and make informed decisions.
Understanding both helps students move from simply plotting points to interpreting patterns mathematically.
A scatter plot is usually the starting point because it shows whether a linear pattern is reasonable. The correlation coefficient measures the strength and direction of a linear association, with values from to . A regression line, often written as , estimates the average change in for each one unit increase in .
Good analysis also checks for outliers, nonlinearity, and the important fact that correlation alone does not prove causation.
Understanding Correlation and Regression
The least-squares line is chosen by comparing its predictions with the actual data values. For each point, the residual is the actual y value minus the predicted y value from the line. Points above the line have positive residuals, while points below it have negative residuals.
If ordinary residuals were added, positive and negative values could cancel. Least squares avoids this by squaring every residual, then choosing the line with the smallest total of these squared values. Large errors count much more heavily after squaring, so one distant point can pull the line noticeably toward itself.
The slope has units, which makes it useful in context. If x is hours studied and y is test score points, a slope of three means the model predicts about three more score points for each additional study hour. This is an average pattern in the observed data, not a guarantee for every student.
The intercept can be meaningful only when zero is a realistic x value. A model relating adult height to body mass may produce an intercept at zero height, but that situation has no practical meaning. Students should always state what a slope means using the original units.
The value called r squared comes from comparing the spread of the actual y values with the remaining spread around the regression line. If r squared is close to one, the line accounts for much of the observed variation in y. If it is close to zero, knowing x does little to improve prediction beyond using the mean y value.
A high r squared does not mean every prediction is accurate. The residual plot gives extra evidence. A useful linear model tends to leave residuals scattered randomly around zero, with a fairly similar vertical spread across x values.
A curved pattern suggests that a straight line misses an important feature. A widening fan shape suggests that prediction errors become less consistent.
Regression appears whenever people use one measurement to estimate another. Health researchers may relate dosage to a response. A school may examine attendance and course marks.
A shop may relate advertising spending to sales. In each case, the data must represent the group being studied. A relationship found among one class, season, or location may not hold elsewhere.
Predictions are most reliable within the x values already observed. Extending a line far beyond the data is extrapolation, and it can fail badly when real conditions change. Finally, a strong pattern can arise because of a third factor.
Ice cream sales and sunburn cases may rise together because hot weather affects both. A regression line describes the data pattern. It does not by itself establish a cause.
Key Facts
- Correlation coefficient range:
- If r > 0, the association is positive; if r < 0, the association is negative
- A common linear regression model is
- Slope formula for a regression line:
- The intercept a is the predicted value of y when x = 0
- Coefficient of determination: tells the proportion of variation in explained by the regression model
Vocabulary
- Correlation
- Correlation is a numerical measure of the strength and direction of a linear relationship between two variables.
- Regression line
- A regression line is the line that best fits the data and is used to predict values of one variable from another.
- Slope
- Slope describes how much the predicted y-value changes for each one unit increase in x.
- Intercept
- The intercept is the predicted value of y where the regression line crosses the y-axis, at x = 0.
- Outlier
- An outlier is a data point that lies far from the overall pattern of the other points.
Common Mistakes to Avoid
- Assuming correlation proves causation, which is wrong because two variables can be related without one causing the other. A third variable or coincidence may explain the pattern.
- Using the regression line when the scatter plot is clearly curved, which is wrong because linear regression only models roughly straight-line relationships well. Always inspect the graph before fitting a line.
- Ignoring outliers, which is wrong because one unusual point can strongly change both the correlation and the regression equation. Check whether the point is an error or a meaningful extreme value.
- Interpreting a small negative r as no relationship, which is wrong because a negative value still shows direction. The sign gives direction and the magnitude gives strength.
Practice Questions
- 1 A regression equation is y = 12 + 3x. What is the predicted value of y when x = 5, and what does the slope mean in context?
- 2 A data set has correlation coefficient r = -0.82. State the direction of the relationship and describe whether the linear association is weak, moderate, or strong.
- 3 Two variables have a correlation of 0.91. Explain why this does not automatically mean that changes in one variable cause changes in the other.