Dispersion
Statistics is the branch of mathematics concerned with the collection, organisation, analysis, and Interpretation of data. In the DSE compulsory syllabus, we focus on descriptive ./4-statistics-and-probability/2_statistics — Summarising a dataset through measures of central tendency and measures of dispersion. This page Also covers grouped data techniques and graphical representations such as box-and-whisker plots. These tools are frequently combined with probability concepts in exam questions.
Measures of Central Tendency
A measure of central tendency identifies a single value that is representative of an entire dataset.
Mean
The mean (arithmetic average) of a dataset is defined as:
The mean uses every data value, making it sensitive to outliers. It is the only measure of central Tendency that lends itself to algebraic manipulation (e.g., combining datasets).
Examples
- The scores of $5$ students are $72, 85, 90, 68, 80$. The mean is $\bar{x} = \frac{72+85+90+68+80}{5} = \frac{395}{5} = 79$. - If every score is increased by $5$ bonus marks, the new mean is $79 + 5 = 84$.Median
The median is the middle value of an ordered dataset. For data values sorted in ascending Order:
- If is odd, the median is the value at position .
- If is even, the median is the average of the values at positions and .
The median is robust to outliers since only on the position of data points, not their Magnitude.
Mode
The mode is the value that occurs most frequently in a dataset. A dataset may be unimodal (one Mode), bimodal (two modes), multimodal, or have no mode at all.
The mode is the only measure of central tendency applicable to nominal (categorical) data.
Examples
- $\{4, 2, 7, 4, 3, 4, 8\}$: mode = $4$ (appears $3$ times). - $\{5, 5, 8, 8, 10\}$: bimodal, modes are $5$ and $8$. - $\{1, 2, 3, 4, 5\}$: no mode.Comparison of the Three Measures
| Measure | Uses all values | Affected by outliers | Applicable to categorical data | Unique value |
|---|---|---|---|---|
| Mean | Yes | Yes | No | Yes |
| Median | No | No | No | Yes |
| Mode | No | No | Yes | No |
Measures of Dispersion
Measures of dispersion (spread) quantify how far individual data values deviate from the centre. Two Datasets can share the same mean yet have very different spreads.
Range
The range is simple to compute but uses only two data points, making it highly sensitive to Outliers.
Interquartile Range (IQR)
The quartiles divide an ordered dataset into four equal parts:
- (lower quartile): the median of the lower half.
- (median): the middle value.
- (upper quartile): the median of the upper half.
The IQR is resistant to outliers since it ignores the most extreme of data.
Examples
- Dataset: $\{3, 5, 7, 8, 12, 14, 18, 20, 25\}$ ($n=9$Odd). - Lower half: $\{3, 5, 7, 8\}$, $Q_1 = \frac{5+7}{2} = 6$. - $Q_2 = 12$. - Upper half: $\{14, 18, 20, 25\}$, $Q_3 = \frac{18+20}{2} = 19$. - IQR $= 19 - 6 = 13$.Variance
Variance measures the average squared deviation from the mean. There are two versions depending on Whether the data represents the entire population or a sample drawn from a larger Population.
Population variance (divides by ):
Sample variance (divides by ):
An equivalent computational formula is:
Why vs ? Dividing by (Bessel”s correction) provides an unbiased estimator of The population variance when working with a sample. Using only data points, the sample mean is closer to the data points than the true population mean So the squared Deviations tend to underestimate the true spread. Dividing by compensates for this. In the DSE Syllabus, unless the problem explicitly identifies the data as a sample, the population formula (dividing by ) is expected.
Standard Deviation
The standard deviation is the positive square root of the variance, restoring the units to match The original data:
Since the standard deviation is in the same units as the data, it is more interpretable than the Variance for comparing spread.
Examples
- Following the previous example: $\sigma = \sqrt{4} = 2$, $s = \sqrt{\frac{32}{7}} \approx 2.14$. - Two machines produce rods of length $10$ cm. Machine A has $\sigma = 0.1$ cm, Machine B has $\sigma = 0.5$ cm. Machine A is more precise.Grouped Data
When data is presented in a grouped frequency distribution, individual values are not available. We work with class intervals instead.
Key Definitions
- Class boundaries: The endpoints of each class interval, with no gaps between consecutive classes. For example, if raw intervals are — and —The class boundaries are — and —.
- Class width: The difference between the upper and lower class boundaries.
- Class mark (midpoint): used as the representative value for all data in the class.
Mean of Grouped Data
Where is the number of classes, is the frequency of class And is the class Mark.
Assumed Mean Method (Coding Method)
When class marks are equally spaced, let be the common class width and be the class mark of A convenient class (the assumed mean). Define . Then:
This method simplifies calculation by working with small integer values of .
| Class interval | Class mark | |||
|---|---|---|---|---|
| 30 — 39 | 4 | 34.5 | ||
| 40 — 49 | 8 | 44.5 | ||
| 50 — 59 | 14 | 54.5 | ||
| 60 — 69 | 10 | 64.5 | ||
| 70 — 79 | 4 | 74.5 |
Here , .
Variance of Grouped Data
For grouped data, the population variance is:
Or equivalently:
Histogram Estimation
In a histogram, the area of each bar represents the frequency of the corresponding class. If class Widths are unequal, the height of each bar is the frequency density:
The median, quartiles, and other percentiles can be estimated from a cumulative frequency curve (ogive) by linear interpolation within the relevant class.
Properties of Variance
Linear Transformation
For a dataset and constants :
Adding a constant shifts all values equally and does not affect spread. Multiplying by Scales the spread by .
For the mean: .
Examples
- If $\bar{x} = 50$ and $\sigma^2 = 16$Then for $Y = 3X - 4$: $\bar{y} = 3(50)-4 = 146$ and $\mathrm{Var}(Y) = 9 \times 16 = 144$. - Temperatures recorded in Celsius have mean $25$ and standard deviation $3$. In Fahrenheit ($F = 1.8C + 32$): mean $= 1.8(25)+32 = 77$Standard deviation $= 1.8 \times 3 = 5.4$.Combined Variance
Given two datasets and with sizes and Means and And Variances and The combined variance of the pooled dataset is:
Where the combined mean is:
The additional terms and account for The between-group variation caused by the difference in means.
Combined mean: .
Applications
Coefficient of Variation
The coefficient of variation (CV) allows comparison of variability between datasets measured in Different units or with vastly different means:
A larger CV indicates greater relative dispersion.
Examples
- Investment A: mean return $= 8\%$Standard deviation $= 2\%$. CV $= \frac{2}{8} \times 100\% = 25\%$. - Investment B: mean return $= 15\%$Standard deviation $= 5\%$. CV $= \frac{5}{15} \times 100\% \approx 33.3\%$. - Investment A has lower relative risk.Box-and-Whisker Plots
A box-and-whisker plot is a standardised graphical display of the five-number summary: minimum, Q_1$$Q_2 (median), And maximum.
Construction:
- Draw a rectangular box from to .
- Draw a line inside the box at .
- Extend “whiskers” to the minimum and maximum values.
Identifying outliers: A data point is considered a potential outlier if it falls below or above .
Skewness (DSE awareness)
While not computed algebraically in the compulsory syllabus, students should recognise:
- Positively skewed: mean median, the right tail is longer.
- Negatively skewed: mean median, the left tail is longer.
- Symmetrical: mean median mode (for unimodal distributions).
Wrap-up Questions
1. **Question:** The marks of $7$ students are $56, 62, 45, 78, 83, 71, 65$. Find the mean, median, and mode. ### DetailsAnswer
- Sorted: $\{45, 56, 62, 65, 71, 78, 83\}$. - Mean: $\bar{x} = \frac{460}{7} \approx 65.7$. - Median (position $4$ of $7$): $65$. - Mode: none (all values are distinct).- Question: A dataset has mean and variance . Find the mean and variance of the Transformed dataset .
- .
- .
- Question: For the grouped frequency distribution below, find the mean and standard deviation using the coding method.
| Class | Frequency |
|---|---|
| 10 — 19 | 5 |
| 20 — 29 | 12 |
| 30 — 39 | 18 |
| 40 — 49 | 10 |
| 50 — 59 | 5 |
Answer
- Class marks: $14.5, 24.5, 34.5, 44.5, 54.5$. Let $A = 34.5$$h = 10$. - $d_i$: $-2, -1, 0, 1, 2$. - $\sum f_i = 50$$\sum f_i d_i = 5(-2) + 12(-1) + 18(0) + 10(1) + 5(2) = -10 + (-12) + 0 + 10 + 10 = -2$. - $\bar{x} = 34.5 + \frac{-2}{50} \times 10 = 34.5 - 0.4 = 34.1$. - $\sum f_i d_i^2 = 5(4) + 12(1) + 18(0) + 10(1) + 5(4) = 20 + 12 + 0 + 10 + 20 = 62$. - $\sigma_d^2 = \frac{62}{50} - \left(\frac{-2}{50}\right)^2 = 1.24 - 0.0016 = 1.2384$. - $\sigma^2 = 1.2384 \times 10^2 = 123.84$. So $\sigma = \sqrt{123.84} \approx 11.13$.- Question: Two classes sat the same test. Class A (n_1 = 30$$\bar{x}_1 = 72 ). Class B (n_2 = 20$$\bar{x}_2 = 80$$\sigma_2 = 6). Find the combined mean and Combined standard deviation.
- Combined mean: .
- Combined variance: \begin{aligned} \sigma_c^2 &= \frac{30(64) + 20(36) + 30(72-75.2)^2 + 20(80-75.2)^2}{50} \ &= \frac{1920 + 720 + 30(10.24) + 20(23.04)}{50} \ &= \frac{1920 + 720 + 307.2 + 460.8}{50} \ &= \frac{3408}{50} = 68.16 \end{aligned}
- Combined standard deviation: .
- Question: The following are the lifetimes (in hours) of light bulbs: . Determine the range, IQR, and identify any Outliers.
Answer
- Sorted: .
- Range .
- .
- Lower half: \{780, 790, 795, 800, 805\}$$Q_1 = 795.
- Upper half: \{810, 815, 820, 830, 855\}$$Q_3 = 820.
- IQR .
- Lower fence: . Upper fence: .
- No outliers (all values lie within ).
- Question: A farmer records the yields (in kg) of two varieties of wheat over several seasons. Variety A: mean Standard deviation . Variety B: mean Standard deviation . Which variety has more consistent yield?
- CV.
- CV.
- Since CV CVVariety A has more consistent (less variable) yield relative to its mean.
- Question: Given the dataset with mean and variance Find the value of .
Answer
- .
- .
- .
- Question: A set of numbers has mean and standard deviation . If each number is Multiplied by and then is added, find the new mean and new standard deviation.
- New mean: .
- New variance: .
- New standard deviation: .
- Question: The histogram below (described verbally) shows the distribution of weights of apples. The class intervals and frequencies are:
| Weight (g) | Frequency |
|---|---|
| 100 — 119 | 6 |
| 120 — 139 | 14 |
| 140 — 159 | 20 |
| 160 — 179 | 8 |
| 180 — 199 | 2 |
Estimate the median weight from the cumulative frequency distribution.
Answer
- Cumulative frequencies: .
- The median is the Th value, which lies in the class — (cumulative to ).
- Using linear interpolation within the class: \begin{aligned} \mathrm{Median} &= 139.5 + \frac{25-20}{40-20} \times (159.5 - 139.5) \ &= 139.5 + \frac{5}{20} \times 20 \ &= 139.5 + 5 = 144.5 \mathrm{ g} \end{aligned}
- Question: For the dataset Find \sum x_i$$\sum x_i^2 The mean, and the population variance. Verify your variance using both the definition formula and The computational formula.
- .
- .
- .
- Definition formula:
- Computational formula:
- Question: The weekly wages (in dollars) of workers in a small factory are . The factory owner claims the average wage is
USD 5150. Is this claim misleading? Explain using an appropriate measure of central tendency and Dispersion.
Answer
- Mean: . The owner’s figure is arithmetically correct.
- Sorted: .
- Median: .
- The median () is a far more representative measure here. The single extreme value of
USD 12000(likely the owner’s own salary or a manager’s) inflates the mean byUSD 800. The median is resistant to outliers and better reflects what a typical worker earns. - The range () and the large gap between the mean and median both indicate Significant skewness, confirming the mean is a poor choice of summary statistic.
- Question: A set of data has variance and mean . A new set is formed by removing the Value from the original set. If the original set had values, find the new mean and new Variance.
- Original: \bar{x} = 0$$\sigma^2 = 25$$n = 6.
- So .
- After removing : new sum New .
- New mean: .
- New sum of squares: .
- New variance: .
For the A-Level treatment of this topic, see Data Representation.
:::tip Diagnostic Test Ready to test your understanding of Dispersion? The contains the hardest questions within the DSE specification for this topic, each with a full worked solution.
Unit tests probe edge cases and common misconceptions. Integration tests combine Dispersion with other DSE mathematics topics to test synthesis under exam conditions.
See for instructions on self-marking and building a personal test matrix.
DSE Exam Technique
Showing Working
For ./4-statistics-and-probability/2_statistics problems in DSE Paper 1:
- When computing the mean, show the sum divided by before giving the decimal.
- When computing variance, use the computational formula and show both terms.
- For grouped data, show the class marks and the coding method in a table.
- For the coding method, state the assumed mean and class width .
- For box plots, label all five values (min, Q_1$$Q_2$$Q_3Max).
Significant Figures
The DSE requires answers to be given to 3 significant figures unless the question specifies otherwise. Exact fractions are preferred when they arise .
Common DSE Question Types
- Combined mean and variance of two groups.
- Grouped data mean and standard deviation using the coding method.
- Effect of linear transformations on mean and variance.
- Box-and-whisker plots with outlier identification.
- Coefficient of variation for comparing relative dispersion.
Additional Worked Examples
Worked Example 13: Effect of adding a data point
A dataset has mean and variance . Find the new mean and variance if the value is added.
Solution
New . New sum . New mean .
. New .
New variance: .
Worked Example 14: Standardised scores
In an exam, the mean is 60 and the standard deviation is 10. Student A scores 75 and Student B scores 55. Express each score as a standardised score (z-score).
Solution
Student A scored 1.5 standard deviations above the mean; Student B scored 0.5 standard deviations below.
Worked Example 15: Finding data from summary ./4-statistics-and-probability/2_statistics
A dataset of 5 positive integers has mean 6 and variance 4. Find all possible datasets.
Solution
and .
We need five positive integers summing to 30 with squares summing to 200.
If the data is symmetric around 6: try .
Sum . .
Try : sum = 30$$\sum x_i^2 = 4 + 36 + 36 + 36 + 100 = 212 \neq 200.
Try : sum = 30$$\sum x_i^2 = 16 + 16 + 36 + 64 + 64 = 196 \neq 200.
Try : sum = 30$$\sum x_i^2 = 9 + 25 + 49 + 49 + 64 = 196 \neq 200.
Try : sum = 30$$\sum x_i^2 = 16 + 16 + 64 + 36 + 64 = 196.
Try : sum = 30$$\sum x_i^2 = 4 + 36 + 36 + 64 + 64 = 204.
Try : sum = 30$$\sum x_i^2 = 16 + 36 + 36 + 36 + 64 = 188.
There may be no solution with 5 positive integers. Let me try : sum = 30$$\sum x_i^2 = 4 + 25 + 49 + 49 + 81 = 208.
: sum = 30$$\sum x_i^2 = 9 + 25 + 36 + 64 + 64 = 198.
: . Need 200. The deficit is 10. If we change 5 to 6 and 6 to 5: : same sum of squares.
If we change 4 to 5 and 8 to 7: : .
The minimum for sum 30 with 5 positive integers is achieved by values closest to 6.
The constraints may not be satisfiable with integers. In an exam, this would be solved numerically.
Worked Example 16: Grouped data variance with coding
For the frequency distribution below, find the standard deviation using the assumed mean method.
| Class | Frequency |
|---|---|
| 5 — 9 | 3 |
| 10 — 14 | 7 |
| 15 — 19 | 12 |
| 20 — 24 | 5 |
| 25 — 29 | 3 |
Solution
Class marks: 7$$12$$17$$22$$27. A = 17$$h = 5.
: -2$$-1$$0$$1$$2.
| 3 | 12 | ||
| 7 | 7 | ||
| 12 | 0 | 0 | 0 |
| 5 | 1 | 5 | 5 |
| 3 | 2 | 6 | 12 |
n = 30$$\sum f_id_i = -2$$\sum f_id_i^2 = 36.
.
.
.
.
DSE Exam-Style Questions
DSE Practice 1. Two groups of students took the same test. Group A: n_1 = 40$$\bar{x}_1 = 65$$\sigma_1 = 8. Group B: n_2 = 60$$\bar{x}_2 = 72$$\sigma_2 = 10. Find the overall mean and standard deviation.
Solution
Combined mean: .
Combined variance:
DSE Practice 2. The heights (in cm) of 8 students are: 158, 162, 165, 168, 170, 172, 175, 180. After converting to feet (1 cm = 0.03281 ft), find the mean and standard deviation in feet.
Solution
Let . Then and .
cm.
ft.
.
.
.
cm.
ft.
DSE Practice 3. For the dataset Find the mean deviation (mean absolute deviation) and compare it with the standard deviation.
Solution
.
Mean deviation .
.
.
The standard deviation (4) is greater than the mean deviation (3.43), which is always the case for datasets that are not constant.
DSE Practice 4. A set of data has and . If every value is increased by The new standard deviation becomes 10. Find and explain your answer.
Solution
Adding a constant does not change the standard deviation. Therefore, the new standard deviation should still be Not .
There is no value of that changes the standard deviation from 4 to 10 by addition alone. To change the standard deviation, we would need to multiply by a constant. If Then . For : .
The question likely intends a multiplication, not just addition. If Then for any .
DSE Practice 5. The table shows the distribution of marks in a test.
| Marks | Frequency |
|---|---|
| 0 — 19 | 4 |
| 20 — 39 | 10 |
| 40 — 59 | 22 |
| 60 — 79 | 14 |
| 80 — 100 | 5 |
Estimate the mean and standard deviation.
Solution
Class marks: , , , , . Class widths: 20, 20, 20, 20, 21.
For the coding method with equal class widths (using width 20): , .
: , , , , (approximately; the last class has width 21).
Using approximate equal widths:
| 4 | 9.5 | 16 | ||
| 10 | 29.5 | 10 | ||
| 22 | 49.5 | 0 | 0 | 0 |
| 14 | 69.5 | 1 | 14 | 14 |
| 5 | 89.5 | 2 | 10 | 20 |
n = 55$$\sum f_id_i = 6$$\sum f_id_i^2 = 60.
.
.
. .
Common Pitfalls
- Confusing population and sample standard deviation. The population SD divides by ; the sample SD divides by (Bessel’s correction). Fix: Check the question wording: “population” or “estimate from a sample.”
- Forgetting that standard deviation is always non-negative. , with only when all values are identical. Fix: If your calculation gives a negative value, check for arithmetic errors.
- Wrong formula for grouped data variance. Use for grouped data with class midpoints. Fix: Use midpoints and frequencies ; do not use class boundaries directly.
Summary
- Mean ; variance ; standard deviation .
- Computational formula: .
- For grouped data: use class midpoints and frequencies.
- Sample variance uses in the denominator (Bessel’s correction).
Worked Examples
Example 1: Calculating mean and standard deviation
Problem. Find the mean and standard deviation of: .
Solution. .
Example 2: Grouped data
Problem. Find the mean and variance of the following grouped data:
| Class | Frequency |
|---|---|
| 0–10 | 3 |
| 10–20 | 7 |
| 20–30 | 5 |
Solution. Midpoints: . Frequencies: . Total: .
.
\sigma^2 = \frac{\sum fx^2}{n} - \bar{x}^2 = \frac{3(25) + 7(225) + 5(625)}{15} - \left(\frac{49}{3}\right)^2 = \frac{4655}{15} - \frac{2401}{9} = \frac{931}{3} - \frac{2401}{9} = \frac{2793 - 2401}{9} = \frac{392}{9} pprox 43.6.
Cross-References
| Topic | Site | Link |
|---|---|---|
| [Statistics] | IB | View |
| [Statistics] | DSE | View |
:::