Correlation and regression
Scatter diagrams
A scatter diagram plots pairs of values for two variables. Correlation describes the pattern.
- Positive correlation: tends to increase as increases.
- Negative correlation: tends to decrease as increases.
- No correlation: no pattern.
The nearer the points are to a straight line, the stronger the correlation.
Explanatory and response variables
The explanatory (independent) variable is the one that is controlled, or is used to explain the other. The response (dependent) variable is the one that is measured or predicted. On a scatter diagram the explanatory variable goes on the horizontal axis.
Hours of revision is the explanatory variable , and the score is the response variable .
Summary values
For pairs of values, the regression and correlation formulae use
The regression line
The least squares regression line of on is the straight line that makes the sum of the squares of the vertical distances from the points as small as possible.
The line always passes through .
The line is .
Interpreting the line
- The gradient is the change in for each increase of 1 in .
- The intercept is the predicted value of when . It may have no meaning if is outside the data.
The score is predicted to rise by 1 mark for each extra hour of revision. With no revision the predicted score is 7.
Using the line to predict
Substitute a value of to predict .
- Interpolation predicts inside the range of the data and is usually reliable.
- Extrapolation predicts outside the range and is less reliable, because the pattern may not continue.
Product moment correlation coefficient
The product moment correlation coefficient measures how close the points are to a straight line:
It always lies between and .
| Value of | Meaning |
|---|---|
| All points on a straight line with positive gradient | |
| near | Strong positive linear correlation |
| near | Little or no linear correlation |
| near | Strong negative linear correlation |
| All points on a straight line with negative gradient |
This shows moderate positive linear correlation.
Limitations
- only measures linear correlation. A curved pattern can have near 0.
- A single unusual point (an outlier) can change and the line a great deal.
- A high does not show that causes .
- A prediction beyond the data may not hold.
These notes are AI generated and may contain mistakes. Check them against your syllabus.

