Pearson Edexcel 9MA0 · Statistics and Mechanics · Chapter 11
Regression, Correlation and Hypothesis Testing
Read the pattern, make a prediction and test the claim.
Interpret a fitted line, calculate a sample correlation, and turn a signed critical-value comparison into a conclusion in context.
Ask what the paired data can tell you
A scatter plot shows pairs of measurements. Each point must use two measurements from the same person, place or object. Put the explanatory variable on the horizontal axis when you are using it to predict the response. Before calculating, describe the direction, how tightly the points cluster, and whether the pattern is roughly straight. Look for unusual points or groups.
Quick check. A scatter plot of seedling height against hours of light rises at first, then levels off. Would a positive correlation coefficient justify using a straight line throughout?
Check the shape
No. A positive coefficient describes the overall linear association. The levelling off means extra light makes less difference at larger values, whereas a straight line predicts the same change for every extra hour.
Predict with a regression line
The regression line of on , written , estimates from a known . The hat marks a prediction. The gradient is the change in predicted for one extra unit of . The intercept is the prediction when . It may have little practical meaning when zero is outside the data or impossible in context.
A residual is observed minus predicted . A point above the line has a positive residual. The least-squares line of on is fitted by minimising the sum of squared vertical residuals. If you need to predict from , use the regression of on . Rearranging the first line does not generally give that fit because it was chosen to minimise errors in .
Worked example. A line predicts drying time minutes from temperature in °C. The fitted data cover . Estimate the time at C, interpret the gradient, and find the residual for a sheet that took 21 minutes at that temperature.
Reveal the working
The prediction is minutes. Each extra C is associated with a decrease of 1.8 minutes in the predicted drying time. The observed sheet took longer than predicted, so its residual is minutes. A prediction at C is extrapolation, since the observed trend could change beyond C.
Interactive graph · reading predictions
Read a prediction inside or outside the data
The dots show example scores after 1 to 8 hours of practice. Pick a practice time to read the prediction from the blue line.
Interpolation. At 5 hours the line predicts 65 marks.
This time falls inside the shaded data range. The line estimates a score and individual results can differ.
Interpolation uses a value inside the observed range. It can still be poor if the plot is very scattered, curved, or has a gap near the prediction. Extrapolation adds a further assumption that the fitted trend continues outside that range.
Link to Pure Maths. If , take logs to get . If the supplied fit is , then and . For a power law , plot against instead. The gradient is and the intercept is . Use positive inputs for any quantities you log.
Measure linear association with the PMCC
The sample product moment correlation coefficient lies between and . Its sign gives direction. Its magnitude tells you how closely the points follow a straight line. A value near zero indicates weak linear association, but a strong curved relationship can also produce a value near zero. If either variable is constant, there is no spread in that variable and is undefined.
Worked example. Enter the following data in your calculator's paired statistics mode and read the linear regression coefficient .
| Practice (hours) | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Score (marks) | 42 | 49 | 46 | 56 | 54 | 63 |
Check the coefficient
The calculator gives to three significant figures. The association is strongly positive in this sample, although the scores do not rise with every individual pair. Converting hours to minutes multiplies one variable by a positive constant, leaving unchanged. Reversing one scale with a negative multiplier flips the sign.
Correlation alone cannot identify a cause. For instance, students who choose to practise longer may also arrive with greater prior knowledge. A single unusual pair can also change considerably, so look at the plot as well as the coefficient. Investigate unusual observations before deciding whether to exclude them.
Turn a research claim into hypotheses
The sample coefficient is an observed statistic. The population coefficient is the unknown parameter the test is about. Write . Choose the alternative from the research claim before looking at the sign of the observed .
| Claim to investigate | Alternative | Reject for |
|---|---|---|
| Positive linear correlation | ||
| Negative linear correlation | ||
| Linear correlation in either direction |
Here is the positive critical value for the sample size and tail probability. If a table gives one-tail probabilities, use the column for a two-tailed test at significance . If it gives two-tail probabilities, use its column directly. Read the headings rather than halving automatically.
Interactive number line · rejection regions
See what changes when the alternative changes
Keep the sample fixed at 20 pairs with r = −0.41. Compare three possible research claims at the 5% level. In a real test, choose the claim before seeing the data.
Reject H₀. With H₁: ρ < 0, reject when r ≤ −0.3783.
The observed coefficient is inside the rejection region for this alternative.
Compare with the critical value or p-value
Under , some samples will have a large positive or negative by chance. The critical region collects results sufficiently extreme for the chosen alternative. A supplied p-value gives the probability, assuming , of a result at least as extreme in the relevant tail or tails. Compare with a critical value, or compare the p-value with the significance level. These are two distinct comparisons.
Worked example. A random sample of 20 days gives between wind speed and cycle hires. Test for negative population correlation at 5%, given a lower critical value of .
Reveal the working
Let be the population correlation between wind speed and cycle hires. Use and . Since , the result is in the lower critical region. Reject . At the 5% level there is evidence of negative linear correlation between wind speed and cycle hires in the population. This does not establish that wind speed caused the change in hires.
Worked example. A two-sided test on hours of sleep and reaction time gives a supplied p-value of . What would you conclude at 5%?
Reveal the working
Since , do not reject in favour of . There is insufficient evidence at the 5% level of linear correlation between hours of sleep and reaction time in the population. This does not prove the coefficient is zero. The p-value is calculated assuming the null model and is not the probability that is true.
Check the claim and the model separately
A significant test addresses whether the population linear correlation could reasonably be zero under the test assumptions. It does not guarantee a useful prediction for an individual. Check whether the paired observations were sampled appropriately, whether a straight line describes the pattern, and whether the prediction lies near the observed data.
Exam routine. State hypotheses with . Quote the correct signed critical value or p-value. Show the comparison and the decision. Finish with a sentence naming both variables and the direction, if the alternative had one. For regression, name both variables and their units when explaining the gradient.
Practise prediction and inference
- Recall. Why is impossible?
- Apply. A regression line is , fitted over . Predict at , then say whether a prediction at is interpolation.
- Transfer. For a two-sided 5% test the given critical values are . With , decide whether there is evidence of linear correlation.
Check the three answers
- A PMCC must lie between and .
- . The input 3 is outside the observed range, so that prediction is extrapolation.
- . Do not reject . There is insufficient evidence at 5% of a population linear correlation.
For written practice, redo a critical-value question with a different research claim while keeping the sample unchanged. Explain how changing the alternative changes the comparison, then check the paper’s table headings before choosing a threshold.