BioCentral IB
BioCentral IB
BioCentral IB

Internal assessment › Statistics

Correlation and trend lines: r and R²

FreeAbout 14 minutesOpen the calculator
Named in the guide: yes, r and R² p. 31, Tool 3 Significance test for r: not named; standard statistics In the data booklet: no formula, no table
01

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

02

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.
03

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.

04

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.

05

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

Percentage change in mass, 3 cylinders per concentration (balance ±0.01 g)
Sucrose / mol dm−3% change in mass (3 cylinders)Mean
0.014.2, 12.8, 15.114.03
0.27.9, 9.3, 8.48.53
0.41.8, 2.9, 0.61.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
  1. Using all 18 points: r = −0.994. A strong negative correlation: mass falls as sucrose concentration rises.
  2. Trend line: % change = −30.47 × concentration + 14.04; R2 = 0.989, so the line accounts for 98.9% of the variation in % change.
  3. 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.
  4. For comparison, r from only the 6 means would be −0.999: averaging hides the scatter between cylinders.

Load this into the calculator

Practical note: use a cork borer and a scalpel on a tile, cutting away from the body. Sucrose solutions are low hazard.

Going further: is r significant? Pro

This section comes with Pro. Open it in the app

06

How to report it: fill in the blanks

Pearson's r was used because both variables and the shape of the scatter. Across n points, r = value and the trend line is equation with R2 = value. If tested: H0, df, critical r, rejected / not rejected.

Write the sentences yourself and name the software you used.

07

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.
08

The graph that goes with it

−20−1001020 % change in mass 0.46 mol dm⁻³ y = −30.47x + 14.04 00.20.40.60.81 Sucrose concentration / mol dm⁻³
A scatter graph of every cylinder, the trend line, and where it crosses zero (the isotonic estimate). Give the equation and R2 on or below the graph. Draw yours in your own software.
09

Common mistakes

  1. Correlating the means instead of every point.
  2. Fitting a straight line to data that clearly curve.
  3. Treating a correlation as proof of cause. p. 7, Nature of science
  4. Mixing up r and R2, or giving R2 a sign.
  5. Extrapolating the line well beyond the data.
10

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.