Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 4.3 · SL and HL
Measures of centre and spread
If you could keep only two numbers about a data set, one for where it sits and one for how spread out it is, which should they be, and how do you find them?
What you will learn
- Know how to find the mean, median and mode, including from frequency tables and grouped data
- Understand what the range, IQR, standard deviation and variance measure and which pairs with which average
- Know how adding a constant or multiplying by a constant changes each measure
- Understand why quartiles found by hand and by technology can differ
You must be able to
- Calculate the mean from a frequency table, including finding an unknown frequency from a given mean
- Estimate the mean and standard deviation of grouped data using mid-interval values
- Find the new mean, standard deviation and variance after every value is changed by a constant
- Find the standard deviation and variance with a GDC, choosing σx not sx
- Find the quartiles and IQR of a data set and test for outliers
- Compare two data sets using a suitable average and spread, in context
In the exam. both papers, in nearly every statistics question. Paper 1 (no calculator): a mean, median or mode from a short list or a frequency table, an unknown value or frequency from a given mean, and the effect of adding to or multiplying every value (3 to 6 marks). Paper 2: mean and standard deviation from raw, frequency or grouped data on the GDC, variance, and comparisons (2 to 6 marks). The commonest command terms are find and write down, then state, estimate and calculate. Standard deviation returns in the normal distribution (4.9).
1Mean, median and mode of a list
Example: five test scores .
- The mean is .
- The median is the middle value once the data are in order: .
- There is no mode, since no value repeats. A data set can have two or more modes: has modes and .
- The mean is also the balance point. Put a weight at each value on a ruler, and the ruler balances on the mean.
- The deviations from the mean, , add up to zero. Values below pull left exactly as hard as values above pull right. Figure 1 shows it.
For the median of ordered values, count to position .
- With odd that is a single value.
- With even it lands halfway between two values. The median is their mean.
Sort first.
Example (invented): a bakery sells these numbers of loaves over eight days: .
Two shortcuts earn their keep on Paper 1.
Mean times count gives the total
- Totals can be added and subtracted where means cannot.
- Example: 5 numbers have mean , so their total is . Add a sixth number and the new mean is . The new total is , so the sixth number is .
- The mean of two groups of different sizes comes from their totals.
- Example: 12 students with mean and 28 students with mean give . It is not the halfway value .
2Which average? Outliers and skew
The mean uses every value, for better and worse.
Example (invented): nine employees earn these monthly amounts in euros: . Figure 2 plots them.
The mean is €3256, higher than eight of the nine salaries. The median is €2400 and the mode €2300.
Remove the and the mean drops to €2475. The median barely moves, to €2350. So:
| Average | Use it when | Weakness |
|---|---|---|
| Mean | data are roughly symmetric, no outliers; you want every value to count | dragged by outliers and skew |
| Median | data are skewed or have outliers; you want a typical value | ignores how far the other values are |
| Mode | you want the most common value, or the data are categories or sizes (the shoe size a shop should stock) | may not exist, may not be unique |
In skewed data the mean is dragged towards the tail. Positive skew (a long tail to the right) puts the mean above the median.
A removed value can also be a recording error.
Example: 15 values have mean . One of them, , turns out to be an error. The other 14 have mean (3 s.f.).
3Frequency tables
When values repeat, a frequency table saves writing them out. Each value appears times, so it contributes to the total.
, where · from the formula booklet.
Example (invented): eggs found in 35 nests along a river bank.
| (eggs) | 1 | 2 | 3 | 4 | 5 | Total |
|---|---|---|---|---|---|---|
| 4 | 9 | 12 | 8 | 2 | 35 | |
| 4 | 18 | 36 | 32 | 10 | 100 |
The formula runs backwards too, a Paper 1 favourite.
Example (invented): missed appointments per day at a dental clinic. 0 on 7 days, 1 on days, 2 on 9, 3 on 5 and 4 on 2. The mean is . Find .
A table can hide two unknown frequencies. You then need two equations: one from the total frequency, one from the mean.
Example: with frequencies , a total of and a mean of :
4Grouped data: an estimate of the mean, and the modal class
Grouped data have lost the individual values, so the mean can only be estimated.
- The guide's method: treat every value in a class as if it sat at the mid-interval value. That is the midpoint, .
- Then use with those midpoints as .
Figure 3 shows the idea for the park-run times from 4.2.
| Time (min) | |||||||
|---|---|---|---|---|---|---|---|
| Mid-interval | 17.5 | 22.5 | 27.5 | 32.5 | 37.5 | 42.5 | 47.5 |
| 4 | 11 | 22 | 19 | 13 | 7 | 4 |
- It is an estimate because runners in a class are not all at the midpoint. Those above and below roughly cancel.
- On Paper 2 you enter the midpoints as one list and the frequencies as a second list. The GDC does the sum.
When classes are written as whole numbers, the midpoint still comes from the two ends written.
Example (invented): a typing test records words per minute for 60 people.
| Speed (words per minute) | 30–39 | 40–49 | 50–59 | 60–69 | 70–79 |
|---|---|---|---|---|---|
| Mid-interval | 34.5 | 44.5 | 54.5 | 64.5 | 74.5 |
| 6 | 15 | 24 | 10 | 5 |
The midpoint is , the same as the midpoint of the true boundaries and .
The modal class is the class with the highest frequency: for the park run, – for the typing test. It is a class, not a number. The guide uses it only for equal class intervals.
5Range, quartiles and the interquartile range
- Two data sets can share a mean and look nothing alike, so a second number is needed. The simplest is the range, largest smallest. It depends on the two extremes only, so one outlier can double it.
- The interquartile range, , is the spread of the middle half. It ignores the extremes, so it pairs with the median.
For a short list, most GDCs find quartiles like this:
- Put the data in order and find the median.
- Split the data into a lower half and an upper half, leaving the median out when is odd.
- Take the median of each half.
With even there is no middle value to leave out. The halves are the lower and upper values.
Example (invented): twelve delivery times in minutes show the even case.
By the outlier rule of 4.1, a value above is an outlier. So is one.
The guide asks you to know that different methods exist.
- Another common one keeps the median in both halves when is odd.
- Spreadsheet functions use yet another rule, which interpolates between values.
Figure 4 applies the first two methods to nine values.
Neither is wrong. They are conventions, and the difference shrinks as the data set grows. Use one method consistently within a question. The GDC's answer is accepted.
6Standard deviation and variance
- The standard deviation, , measures the typical distance of the values from the mean. It uses every value, so it pairs with the mean.
- The variance is its square, . It is in squared units, so you interpret the standard deviation.
In Figure 5, sets A and B both have mean , but B's values are far more spread out.
The guide says to find and with technology. One hand calculation shows what the number is.
Example: the test scores of section 1, with mean :
- So . Square each distance from the mean, average the squares, then take the square root to get back to the original units.
- Squaring makes far values count for more. For the sets in Figure 5, for A and for B.
- is never negative. It is only when every value is the same.
- A shortcut uses the GDC's sums. The variance is the mean of the squares minus the square of the mean, . For , , so , as before.
- With a frequency table, each squared deviation is counted times: .
On the GDC, enter the values in a list, with frequencies in a second list. Then run one-variable statistics.
- TI-84: STAT, CALC, 1-Var Stats with the list and any frequency list.
- Casio: the Statistics menu, CALC, 1-VAR, after setting the lists in SET.
The screen gives , , , the quartiles and the median, and two standard deviations:
- divides by . Use this one, because the guide treats the data set as the population unless told otherwise (4.1).
- divides by . It is used when a sample estimates a larger population's spread.
The guide's notation matches. , and are the population mean, standard deviation and variance. is the mean of a set of observations.
- For the GDC shows and . Writing is wrong.
- For the eggs table of section 3, .
- For the grouped typing speeds, with midpoints and frequencies entered, words per minute. It is an estimate for the same reason the mean was.
Interpret in context: "typing speeds are typically about 10.7 words per minute either side of the mean". A larger means less consistency.
7Constant changes to every value
If every value changes in the same way, do not recalculate. Think about the picture, as in Figure 6.
Adding or subtracting a constant
- Slides every value the same distance. Every measure of centre moves by .
- The gaps do not change, so every measure of spread stays the same.
Multiplying by a constant ()
- Stretches the data away from zero. Every value, centre and gap is multiplied by , so the spread is too.
- The variance, a squared quantity, is multiplied by .
| Every value becomes | Mean, median, mode, quartiles | Range, IQR, standard deviation | Variance |
|---|---|---|---|
| add | unchanged | unchanged | |
| multiply by | multiply by | multiply by | |
| multiply by , then add | multiply by | multiply by |
The guide's own two cases:
- Subtract 3 from every value: the mean falls by 3, and the standard deviation is unchanged.
- Double every value: the mean and the standard deviation both double.
Example: parcels at a depot have mean mass kg and standard deviation kg. Each is repacked in a box that adds kg. The masses are then converted to pounds by multiplying by .
The rules also run backwards.
Example: a transformed set has mean and standard deviation . Undo it. The original mean is . The original standard deviation is . The original variance is , which is .
A multiplier can be negative, for example if every value is subtracted from 100 (). The mean becomes . The standard deviation is multiplied by , because a spread cannot be negative.
8Comparing two data sets
Example (invented): two groups of seven apprentices are timed assembling the same part, in seconds. Group A has mean and . Group B has mean and . Both have median .
A comparison needs a measure of centre, a measure of spread and a sentence in context.
Example: "The groups take about the same time (medians both 58 s). A is far more consistent: its standard deviation is about a third of B's."
- Symmetric data: compare means for centre and standard deviations for spread.
- Skewed data or outliers: compare medians and IQRs.
Practice questions
58 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.