Two-Variable Statistics
Senior 6 · Basic Mathematics
Two-Variable Statistics
Lesson 4 of 4
25 min
A potato cooperative near Musanze tested how much compost to apply. On eight plots of equal size it applied different masses of compost and weighed the harvest (illustrative data):
| Compost, (kg) | 0 | 10 | 20 | 30 | 40 | 50 | 60 | 70 |
|---|---|---|---|---|---|---|---|---|
| Yield, (kg) | 62 | 75 | 83 | 98 | 104 | 118 | 121 | 135 |
Summary values: , , , , , .
All the tools of this unit now come together. The task in this lesson is to judge what the numbers do and do not allow us to say.
Worked example 1: a full analysis
Means. , .
Spread and covariance.
Correlation. : a very strong positive linear correlation.
Regression of on . ; , so .
Meaning. The gradient says each extra kilogram of compost went with about 1.01 kg more potatoes. The intercept, 64 kg, estimates the yield of a plot with no compost (the real plot gave 62 kg).
Definition
Interpolation is predicting inside the range of the observed -values. Extrapolation is predicting outside that range.
Interpolation from a strongly correlated data set is usually reliable. Extrapolation assumes the straight-line pattern continues where no data were collected, so it can be badly wrong.
Example: the cooperative's data run from 0 to 70 kg. A prediction at 45 kg is interpolation; at 200 kg it is extrapolation.
Worked example 2: two predictions
At : kg. This lies inside the data and close to the neighbouring plots (104 kg at 40 and 118 kg at 50), so it is a reasonable estimate.
At : kg. This is extrapolation far beyond 70 kg. Crops do not respond to compost without limit: past some amount, yield levels off, and other limits (water, light, space) take over. The value should not be trusted.
An outlier is a point far from the pattern of the others. Because and the regression line are built from means, one outlier can change them a lot.
| Data used | (calculator) |
|---|---|
| the six points | |
| the same six points plus |
One point turned a strong positive correlation into a weak negative one. When you find an outlier, check whether it is a recording error. If it is genuine, report the analysis with and without it, and say why it is unusual.
A high shows that two variables move together. It does not prove that one causes the other. There are three other explanations to rule out:
The compost study is stronger evidence of cause than most, because the cooperative chose how much compost each plot received and kept the plots alike in other ways: a controlled experiment, not just observation.
Crash Course Statistics #8: why correlation does not equal causation, with examples of third variables and of chance correlations. Watch for the difference between an experiment and an observational study.
Worked example
Worked example 3: evaluating a claim. A report finds between the number of mobile-money agents in a sector and the average household income there, and concludes: "Opening more agents will make households richer." Evaluate this.
Answer. The correlation is strong and positive, so the two do tend to rise together. But the conclusion claims a cause. Agents set up where people already have more money to move (reverse direction), and towns have both more agents and higher incomes (third variable: urbanisation). The data support "richer sectors have more agents", not "agents make sectors richer". A test would need, for example, agents opened in some comparable sectors but not others.
Warning
Read with its sample size. With 4 or 5 points, a large can arise by chance. And near 0 does not mean "no relationship": look at the scatter diagram for a curve before you conclude.
Tip
An exam answer that interprets data does four things: states the direction and strength from ; explains the gradient in the units of the problem; says whether a prediction is interpolation or extrapolation; and refuses to claim a cause unless the data come from a controlled experiment.
Practice
Important
Interpolate, do not extrapolate. Look for outliers. A strong correlation is evidence of association, and only a controlled experiment is good evidence of cause.
Further reading
Sources and credits
Text, data, diagrams, worked examples and exercises: Written by Ganzaa. All data are illustrative, including the compost trial and the mobile-money example.
Video: Correlation Doesn't Equal Causation: Crash Course Statistics #8, CrashCourse, embedded from YouTube.