Internal assessment › Statistics
Correlation and trend lines: r and R²
When to use it
Your research question asks whether one variable changes as another changes, both are measured on a scale, and the scatter graph looks roughly like a straight line. Pearson's correlation coefficient r measures how closely the points follow a straight line; the trend line and R2 describe that line and how well it fits.
On the flowchart: as one variable changes → scatter roughly straight. If the points curve steadily, see Spearman's rs; if they rise then fall, correlation is the wrong tool. Open the flowchart
Assumptions, in plain words
- The relationship is roughly a straight line. Plot the scatter graph first; r can be close to 0 for a strong curve.
- Each point is independent: one point per individual or sample.
- Use every point, not the means of the repeats. Averaging hides the scatter and makes r look stronger.
- For the significance test, the points scatter roughly evenly around the line.
What r and R² tell you
- r
- From −1 to +1. The sign gives the direction (positive: both rise together; negative: one falls as the other rises). The closer to −1 or +1, the closer the points lie to a straight line.
- R2
- From 0 to 1: the share of the variation in the y values that the trend line accounts for. For a straight line fitted by least squares, R2 = r2.
Correlation is not causation. Here the experimenter set the sucrose concentration, so a causal link is reasonable; in fieldwork, other variables may change together with both.
How to calculate it
Spreadsheet (Excel or Google Sheets): =CORREL(x range, y range) (or PEARSON) gives r; =RSQ(y range, x range) gives R2; =SLOPE(y range, x range) and =INTERCEPT(y range, x range) give the line y = mx + c. A chart trend line can also display its equation and R2.
The guide asks you to interpret r and to apply R2 to judge the fit of a trend line. It gives no formula for either, and software does the arithmetic.
Worked example
Invented data, checked with SciPy. Plant R is a neutral name for an invented plant with a fleshy root.
Percentage change in mass of cylinders of Plant R root tissue after 60 minutes in sucrose solutions
| Sucrose / mol dm−3 | % change in mass (3 cylinders) | Mean |
|---|---|---|
| 0.0 | 14.2, 12.8, 15.1 | 14.03 |
| 0.2 | 7.9, 9.3, 8.4 | 8.53 |
| 0.4 | 1.8, 2.9, 0.6 | 1.77 |
| 0.6 | −5.1, −3.8, −6.0 | −4.97 |
| 0.8 | −10.9, −12.2, −9.7 | −10.93 |
| 1.0 | −15.8, −14.1, −16.9 | −15.60 |
- Using all 18 points: r = −0.994. A strong negative correlation: mass falls as sucrose concentration rises.
- Trend line: % change = −30.47 × concentration + 14.04; R2 = 0.989, so the line accounts for 98.9% of the variation in % change.
- Where the line crosses zero (no net change in mass): 14.04 ÷ 30.47 = 0.46 mol dm−3. This estimates the sucrose concentration that is isotonic with the tissue.
- For comparison, r from only the 6 means would be −0.999: averaging hides the scatter between cylinders.
Practical note: use a cork borer and a scalpel on a tile, cutting away from the body. Sucrose solutions are low hazard.
How to report it: fill in the blanks
Write the sentences yourself and name the software you used.
How to read the result
- r near −1 or +1 with a high R2: the points lie close to a straight line. Say what the gradient means biologically (here, about 3 percentage points of mass lost for each 0.1 mol dm−3 of sucrose).
- r near 0: no straight-line relationship. There may still be a curve: look at the graph.
- Don't extrapolate far beyond the range you tested: the line is only supported between 0 and 1.0 mol dm−3.
The graph that goes with it
Common mistakes
- Correlating the means instead of every point.
- Fitting a straight line to data that clearly curve.
- Treating a correlation as proof of cause. p. 7, Nature of science
- Mixing up r and R2, or giving R2 a sign.
- Extrapolating the line well beyond the data.
Named in the guide?
Yes for r and R2: Tool 3 asks you to interpret r (positive or negative correlations) and to apply R2 to evaluate the fit of a trend line p. 31, Tool 3. The osmosis practical asks you to deduce the isotonic concentration from data like these p. 95, D2.3.4. The significance test for r is not named.