Everything covered in this lesson, in one place - useful for revision or printing.
\[ \hat{y} = a + bx \qquad -1 \le r \le 1 \]
Grade 12 Statistics is about bivariate data — two variables measured on the same individuals — and whether one can be used to predict the other.
In this lesson you will learn to:
\[ \bar{x} = \frac{\sum x}{n} \]
| Measure | What it is | When to use it |
|---|---|---|
| Mean \(\bar{x}\) | The arithmetic average | Data is roughly symmetric with no outliers |
| Median | The middle value once ordered | Data is skewed or has outliers |
| Mode | The most frequent value | Categorical data, or the most common item |
\[ \text{min} \;\; Q_1 \;\; Q_2 \;\; Q_3 \;\; \text{max} \]
For the ordered data \(12;\ 15;\ 17;\ 20;\ 22;\ 25;\ 30\):
\[ Q_1 \text{ at } \tfrac{1}{4}(n+1) \qquad Q_2 \text{ at } \tfrac{1}{2}(n+1) \qquad Q_3 \text{ at } \tfrac{3}{4}(n+1) \]
With \(n=7\) values:
\[ \text{order the data FIRST — always} \]
Key idea: every quartile calculation assumes the data is in ascending order. Sorting first is not optional.
\[ \text{same mean} \;\ne\; \text{same data} \]
Two classes can both average 60% while one is tightly bunched and the other is all over the place. Dispersion measures that spread.
| Measure | Formula | Resistant to outliers? |
|---|---|---|
| Range | \(\text{max} - \text{min}\) | No — it uses only the extremes |
| IQR | \(Q_3 - Q_1\) | Yes — it uses the middle half |
| Standard deviation | \(\sigma=\sqrt{\dfrac{\sum(x-\bar{x})^2}{n}}\) | No — it uses every value |
\[ \sigma = \sqrt{\frac{\sum (x-\bar{x})^{2}}{n}} \]
For the data \(4;\ 8;\ 10;\ 12;\ 16\):
| \(x\) | \(x-\bar{x}\) | \((x-\bar{x})^2\) |
|---|---|---|
| 4 | \(-6\) | 36 |
| 8 | \(-2\) | 4 |
| 10 | 0 | 0 |
| 12 | 2 | 4 |
| 16 | 6 | 36 |
| \(\bar{x}=10\) | \(\sum = 80\) |
\[ \bar{x} \pm \sigma \;=\; 10 \pm 4 \]
The standard deviation is roughly the typical distance of a value from the mean.
\[ \text{centre} + \text{spread} = \text{a complete description} \]
Key idea: never report a mean without a measure of spread. Two data sets with the same mean can tell completely different stories.
\[ \text{min} \;\rule[2pt]{18pt}{1pt}\; Q_1 \;\blacksquare\; Q_2 \;\blacksquare\; Q_3 \;\rule[2pt]{18pt}{1pt}\; \text{max} \]
A box-and-whisker diagram is the five-number summary drawn to scale.
\[ \text{long tail} \;\Rightarrow\; \text{skewed in that direction} \]
| Shape | Meaning |
|---|---|
| Median in the middle, whiskers equal | Symmetric |
| Median nearer \(Q_1\), long right whisker | Skewed to the RIGHT (positively skewed) |
| Median nearer \(Q_3\), long left whisker | Skewed to the LEFT (negatively skewed) |
\[ \text{outlier if } x Q_3 + 1{,}5\,\text{IQR} \]
For the data \(21;\ 23;\ 24;\ 25;\ 26;\ 28;\ 45\) with \(Q_1=23\) and \(Q_3=28\):
\[ 1{,}5 \times \text{IQR} \text{ is the test} \]
Key idea: an outlier is not simply “a big number”. Use the \(1{,}5\times\text{IQR}\) rule and show the fence calculation — that is where the marks are.
\[ \text{cumulative frequency} = \text{a running total} \]
An ogive is a cumulative frequency curve. Build the table by adding as you go:
| Interval | Frequency | Cumulative frequency |
|---|---|---|
| \(0 \le x < 20\) | 4 | 4 |
| \(20 \le x < 40\) | 9 | 13 |
| \(40 \le x < 60\) | 14 | 27 |
| \(60 \le x < 80\) | 8 | 35 |
| \(80 \le x \le 100\) | 5 | 40 |
| Total | 40 |
\[ \text{plot at the UPPER boundary of each interval} \]
This is the detail most learners lose marks on.
\[ Q_1 \text{ at } \tfrac{n}{4} \qquad Q_2 \text{ at } \tfrac{n}{2} \qquad Q_3 \text{ at } \tfrac{3n}{4} \]
With \(n=40\):
\[ \text{cumulative frequency} \;\rightarrow\; \text{quartiles and percentiles} \]
Key idea: an ogive turns grouped data back into quartiles, percentiles and “how many scored more than…” questions.
2 4 6 8 10 12 14 20 40 60 80 100 Hours studied Test mark (%)
Bivariate data records TWO variables for each individual. Here, eight learners' hours studied and test mark:
| Hours \(x\) | 2 | 3 | 5 | 6 | 8 | 9 | 11 | 12 |
|---|---|---|---|---|---|---|---|---|
| Mark \(y\) | 30 | 41 | 45 | 58 | 60 | 72 | 75 | 85 |
\[ \text{direction} \;+\; \text{form} \;+\; \text{strength} \]
A full description needs all three:
| Feature | Options |
|---|---|
| Direction | Positive (rises) / negative (falls) / none |
| Form | Linear / quadratic / exponential / no pattern |
| Strength | Strong / moderate / weak — how tightly the points hug the pattern |
\[ \text{always plot the data before calculating anything} \]
Key idea: the scatter plot tells you whether a straight line is even appropriate. A regression line fitted to curved data is meaningless.
\[ -1 \;\le\; r \;\le\; 1 \]
The correlation coefficient \(r\) puts a number on the direction and strength of a linear relationship.
| Value of \(r\) | Interpretation |
|---|---|
| \(r = 1\) | Perfect positive linear |
| \(0{,}9 \le r < 1\) | Very strong positive |
| \(0{,}7 \le r < 0{,}9\) | Strong positive |
| \(0{,}4 \le r < 0{,}7\) | Moderate positive |
| \(0 < r < 0{,}4\) | Weak positive |
| \(r = 0\) | No linear relationship |
\[ r \approx 0{,}98 \]
For the hours-versus-mark data, the calculator gives \(r = 0{,}98\).
\[ \text{correlation} \;\ne\; \text{causation} \]
A strong \(r\) does not prove that one variable causes the other.
\[ r \text{ measures LINEAR strength only} \]
Key idea: \(r\) close to 0 means no linear relationship — there could still be a strong curved one. That is why you plot first.
\[ \hat{y} = a + bx \]
The least-squares regression line is the single straight line that makes the total of the squared vertical distances from the points to the line as small as possible.
\(x\) \(y\) \(x-\bar{x}\) \(y-\bar{y}\) \((x-\bar{x})(y-\bar{y})\) \((x-\bar{x})^2\) 2 30 \(-5\) \(-28{,}25\) 141,25 25 3 41 \(-4\) \(-17{,}25\) 69,00 16 5 45 \(-2\) \(-13{,}25\) 26,50 4 6 58 \(-1\) \(-0{,}25\) 0,25 1 8 60 1 1,75 1,75 1 9 72 2 13,75 27,50 4 11 75 4 16,75 67,00 16 12 85 5 26,75 133,75 25 \(\bar{x}=7\) \(\bar{y}=58{,}25\) \(\sum = 467\) \(\sum = 92\)
Every regression calculation reduces to these two column totals.
\[ b = \frac{467}{92} = 5{,}08 \qquad a = 58{,}25 - 5{,}08(7) = 22{,}72 \]
2 4 6 8 10 12 14 20 40 60 80 100 Hours studied Test mark (%)
\[ \hat{y} = 22{,}72 + 5{,}08x \]
Key idea: \(b\) is the rate of change and \(a\) is the starting value. Interpreting them in context is worth as many marks as calculating them.
\[ \hat{y} = 22{,}72 + 5{,}08(10) = 73{,}5 \]
To predict, substitute the \(x\)-value into the equation.
\[ 2 \le x \le 12 \;\Rightarrow\; \text{reliable} \]
| Term | Meaning | Reliable? |
|---|---|---|
| Interpolation | Predicting INSIDE the range of the data (\(2 \le x \le 12\)) | Yes |
| Extrapolation | Predicting OUTSIDE the range | No — use with great caution |
\[ \text{one stray point can tilt the whole line} \]
Because least squares minimises squared distances, a single far-away point has an outsized effect.
\[ \text{number} + \text{variable names} + \text{context} \]
Exam answers must be sentences. Compare:
\[ \text{predict inside the data, explain in context} \]
Key idea: the calculation earns some marks; the interpretation earns the rest. Always answer in a full sentence naming both variables.
\[ \sigma=\sqrt{\frac{\sum(x-\bar{x})^{2}}{n}} \qquad \hat{y}=a+bx \qquad b=\frac{\sum(x-\bar{x})(y-\bar{y})}{\sum(x-\bar{x})^{2}} \]
You can now: