Data Representation
Board Coverage
Section titled “Board Coverage”| Board | Paper | Notes |
|---|---|---|
| AQA | Paper 1 | Measures of location and spread, coding |
| Edexcel | P1 | Similar |
| OCR (A) | Paper 1 | Includes outlier detection |
| CIE (9709) | P1, P6 | Data handling in P1; further statistics in P6 |
1. Measures of Central Tendency
Section titled “1. Measures of Central Tendency”1.1 Mean
Section titled “1.1 Mean”Definition. The mean of values is
1.2 The mean minimises the sum of squared deviations
Section titled “1.2 The mean minimises the sum of squared deviations”Theorem. The function is minimised when .
Proof. Expand :
Setting : .
Check: So this is a minimum.
Intuition. The mean is the “centre of mass” of the data. It is the single value that best Represents all the data points in the sense of least squares — no other value produces a smaller Total squared error. This is why the mean is the foundation of regression and estimation theory.
1.3 Median
Section titled “1.3 Median”The median is the middle value when data are arranged in order. For values:
- If is odd: median = -th value.
- If is even: median = average of -th and -th values.
1.4 Mode
Section titled “1.4 Mode”The mode is the most frequently occurring value. A dataset can be unimodal, bimodal, or have no Mode.
1.5 Comparing measures
Section titled “1.5 Comparing measures”- The mean uses all data values but is affected by outliers.
- The median is robust to outliers but ignores the magnitude of extreme values.
- The mode is useful for categorical data.
Caution: Warning Mean. A few extreme values can pull the mean far from the centre of the data.
2. Variance and Standard Deviation
Section titled “2. Variance and Standard Deviation”2.1 Definition
Section titled “2.1 Definition”The variance of is
The standard deviation is .
2.2 Computational formula
Section titled “2.2 Computational formula”Theorem.
Proof.
### 2.3 Sample varianceFor sample data, the unbiased estimator of the population variance is
The division by (Bessel”s correction) accounts for the fact that is estimated from The same data, losing one degree of freedom.
3. Quartiles, IQR, and Box Plots
Section titled “3. Quartiles, IQR, and Box Plots”3.1 Quartiles
Section titled “3.1 Quartiles”- (lower quartile): the median of the lower half of the data.
- (median): the median of all the data.
- (upper quartile): the median of the upper half.
The interquartile range (IQR) is .
3.2 Box plots
Section titled “3.2 Box plots”A box plot displays:
- Minimum and maximum values (or whisker endpoints)
- , (median),
- The box spans from to
- The median is marked inside the box
3.3 Outlier detection
Section titled “3.3 Outlier detection”An outlier is a value that lies more than below or above :
Values outside these fences are potential outliers.
Caution: Warning Some use IQR, others use different multipliers.
4. Coding Data
Section titled “4. Coding Data”4.1 Linear coding
Section titled “4.1 Linear coding”Definition. Coding transforms data using where and are constants ().
4.2 Effect on summary statistics
Section titled “4.2 Effect on summary statistics”If Then:
Proof.
Hence .
5. Frequency Tables and Grouped Data
Section titled “5. Frequency Tables and Grouped Data”5.1 Discrete frequency data
Section titled “5.1 Discrete frequency data”For data with frequencies :
5.2 Grouped continuous data
Section titled “5.2 Grouped continuous data”Use the midpoint of each class as the representative value. This introduces an approximation Since we lose information about the distribution within each class.
6. Skewness
Section titled “6. Skewness”6.1 Definition
Section titled “6.1 Definition”Skewness measures the asymmetry of a distribution about its centre. A distribution is:
- Positively skewed (right-skewed): the right tail is longer; mean median.
- Negatively skewed (left-skewed): the left tail is longer; mean median.
- Symmetric: mean = median (and mode, for unimodal distributions).
6.2 Pearson’s coefficient of skewness
Section titled “6.2 Pearson’s coefficient of skewness”Pearson’s first coefficient uses the mean, median, and standard deviation:
Pearson’s second coefficient uses only the quartiles:
Interpretation:
- : positive skew (right tail longer).
- : negative skew (left tail longer).
- : symmetric distribution.
For a unimodal distribution:
- Symmetric: mean = median = mode.
- Positively skewed: mode median mean.
- Negatively skewed: mean median mode.
The mean is pulled in the direction of the longer tail, while the mode remains at the peak and the Median lies between them.
7. Outliers in Depth
Section titled “7. Outliers in Depth”7.1 The IQR method — mild and extreme outliers
Section titled “7.1 The IQR method — mild and extreme outliers”As introduced in Section 3.3, the rule defines fences. Some boards further Distinguish between mild and extreme outliers:
- Mild outlier: a value between and from the nearest quartile.
- Extreme outlier: a value more than from the nearest quartile.
7.2 The modified z-score method
Section titled “7.2 The modified z-score method”The modified z-score uses the median absolute deviation (MAD). For a dataset with median :
The modified z-score for each observation is:
An observation is flagged as an outlier if .
### 7.3 Choosing an outlier method| Method | Strengths | Limitations |
|---|---|---|
| IQR () | Standard at A-level; easy to apply from quartiles | Less effective with very small samples |
| Modified z-score | Robust to multiple or clustered outliers | Requires computing the MAD, less common |
8. Box Plots — Drawing and Interpreting
Section titled “8. Box Plots — Drawing and Interpreting”8.1 Drawing a box plot
Section titled “8.1 Drawing a box plot”To construct a box plot:
- Draw a horizontal (or vertical) number line covering the range of the data.
- Draw a rectangular box from to .
- Mark the median as a line inside the box.
- Extend a whisker from to the smallest data value within the lower fence, and from to the largest data value within the upper fence.
- Plot any values outside the fences as individual points (these are the outliers).
Compare the distances from to each quartile:
- : the upper half is more spread out, indicating positive skew.
- : the lower half is more spread out, indicating negative skew.
- : the distribution is approximately symmetric.
Outliers on one side also indicate skewness in that direction.
8.3 Comparing box plots
Section titled “8.3 Comparing box plots”When two or more box plots are drawn on the same scale, compare:
- Location: which distribution has the higher median?
- Spread: which has the larger IQR or total range?
- Skewness: do the distributions differ in shape?
- Outliers: does one distribution have more extreme values?
9. Comparing Distributions
Section titled “9. Comparing Distributions”9.1 Back-to-back stem-and-leaf diagrams
Section titled “9.1 Back-to-back stem-and-leaf diagrams”A back-to-back stem-and-leaf diagram places two distributions on either side of a shared stem, Enabling direct visual comparison of shape, spread, and outliers.
Example. Comparing test scores of two classes (Class A | Stem | Class B):
8 7 5 | 5 | 3 4 6 4 3 1 | 6 | 0 2 7 9 6 2 0 | 7 | 1 3 5 8 9 5 | 8 | 2 4 | 9 | 1 7Reading from the diagram: Class A has scores 55, 57, 58, 61, 63, 64, … While Class B has 53, 54, 56, 60, 62, 67, … Both classes share the stem (tens digit), with Class A on the left and Class B On the right.
9.2 Cumulative frequency curves
Section titled “9.2 Cumulative frequency curves”A cumulative frequency curve (ogive) plots cumulative frequency against the upper class boundary Of each group. To compare two distributions:
- Plot both ogives on the same axes.
- Read off medians, quartiles, and percentiles from each curve.
- Compare location (medians), spread (IQR), and shape (skewness).
When asked to compare two distributions in an exam, structure your response around four points:
- Average: compare means or medians, stated in the context of the data.
- Spread: compare standard deviations or IQRs, stated in context.
- Shape: compare skewness where apparent.
- Outliers: mention any unusual values and their effect.
Always relate numerical comparisons to the original context of the data.
10. Interpolation from Grouped Data
Section titled “10. Interpolation from Grouped Data”10.1 Linear interpolation formula
Section titled “10.1 Linear interpolation formula”When data are grouped into classes, quantiles are estimated using linear interpolation. For the -th percentile:
Where:
- = lower class boundary of the class containing the -th percentile
- = total frequency
- = cumulative frequency of all classes below
- = class width
- = frequency of the class containing the -th percentile
For the median ():
For quartiles ( and ):
10.2 Worked example
Section titled “10.2 Worked example”Find the median from the following grouped frequency distribution:
| Class | Frequency |
|---|---|
| 5 | |
| 12 | |
| 18 | |
| 8 | |
| 4 |
. The median position is .
Cumulative frequencies: 5, 17, 35, 43, 47. The 23.5th value falls in the class .
Problem Set
Section titled “Problem Set”Problem 1
For the dataset $\{3, 5, 7, 2, 8, 4, 6, 5\}$Find the mean, median, and mode.Solution 1
Ordered: $\{2, 3, 4, 5, 5, 6, 7, 8\}$. $n = 8$.Mean: .
Median: average of 4th and 5th values = .
Mode: 5 (appears twice).
If you get this wrong, revise: Measures of Central Tendency — Section 1.
Problem 2
Find the variance and standard deviation of $\{4, 8, 6, 5, 3, 7, 9, 2\}$ using the computational formula.Solution 2
$\sum x = 44$, $n = 8$, $\bar{x} = 44/8 = 5.5$..
.
.
If you get this wrong, revise: Computational Formula — Section 2.2.
Problem 3
Data is coded using $y = (x - 100)/5$. The coded data has mean 12 and variance 9. Find the original mean and standard deviation.Solution 3
$\bar{y} = (\bar{x} - 100)/5 = 12 \implies \bar{x} - 100 = 60 \implies \bar{x} = 160$..
If you get this wrong, revise: Coding Data — Section 4.
Problem 4
For the ordered dataset $\{2, 3, 5, 7, 8, 11, 14, 18, 23\}$Find $Q_1$, $Q_2$, $Q_3$And the IQR. Identify any outliers.Solution 4
$n = 9$ (odd). $Q_2 = 5$Th value $= 8$.Lower half: . . Upper half: . .
.
Lower fence: . Upper fence: .
All values are within So no outliers.
If you get this wrong, revise: Quartiles, IQR, and Box Plots — Section 3.
Problem 5
The following frequency table shows the number of goals scored in 20 football matches. Find the mean and variance.| Goals | Frequency |
|---|---|
| 0 | 3 |
| 1 | 7 |
| 2 | 5 |
| 3 | 3 |
| 4 | 2 |
Problem 6
Prove that $\displaystyle\sum_{i=1}^{n}(x_i - \bar{x}) = 0$.Solution 6
$$\sum(x_i - \bar{x}) = \sum x_i - n\bar{x} = \sum x_i - n \cdot \frac{\sum x_i}{n} = \sum x_i - \sum x_i = 0 \quad \blacksquare$$If you get this wrong, revise: Mean — Section 1.1.
Problem 7
Two datasets A and B have the same mean but A has standard deviation 5 while B has standard deviation 2. What does this tell you about the two datasets?Solution 7
Both datasets are centred at the same point (same mean), but dataset A is more spread out (larger standard deviation). The values in A are more dispersed from the mean, while B's values cluster more tightly around the mean.If you get this wrong, revise: Variance and Standard Deviation — Section 2.
Problem 8
Given that $\bar{x} = 20$ and $\sum(x_i - 20)^2 = 360$ for $n = 10$ observations, find $\sigma$ and the sample variance $s^2$.Solution 8
$\sigma^2 = 360/10 = 36$So $\sigma = 6$..
If you get this wrong, revise: Sample Variance — Section 2.3.
Problem 9
A dataset $\{x_i\}$ has mean 10 and standard deviation 4. A new dataset is formed by adding 5 to each value and then multiplying by 3. Find the new mean and standard deviation.Solution 9
Adding 5 shifts mean by 5: mean becomes 15. SD unchanged at 4. Multiplying by 3 scales mean by 3: mean becomes 45. SD scales by 3: SD becomes 12.New mean = 45, new SD = 12.
If you get this wrong, revise: Coding Data — Section 4.2.
Problem 10
Explain why the median is preferred to the mean for measuring average income in a country.Solution 10
Income distributions are right-skewed — a small number of very high earners pull the mean upward. The median, being the middle value, is unaffected by extreme values and gives a more representative "typical" income. For example, if one billionaire lives in a village of 1000 people earning $30\,000$The mean would be vastly inflated while the median would remain close to $30\,000$.If you get this wrong, revise: Comparing Measures — Section 1.5.
Problem 11
For the dataset $\{2, 4, 5, 6, 7, 8, 12, 15, 28\}$Find $Q_1$, $Q_2$, $Q_3$, $\bar{x}$And $\sigma$. Hence calculate Pearson's first coefficient of skewness and interpret the result.Solution 11
$n = 9$. Ordered data: $\{2, 4, 5, 6, 7, 8, 12, 15, 28\}$.Th value .
Lower half: . . Upper half: . .
.
.
So .
Pearson’s first coefficient:
Since The distribution is positively skewed. This is consistent with the right tail Produced by the value 28.
If you get this wrong, revise: Skewness — Section 6.
Problem 12
A box plot shows: minimum = 5, $Q_1 = 12$$Q_2 = 18$$Q_3 = 25$Maximum = 34, with one outlier At 42. Calculate the IQR, the upper fence, and describe the skewness of the distribution.Solution 12
$\mathrm{IQR} = Q_3 - Q_1 = 25 - 12 = 13$.Upper fence .
Skewness: and .
Since (and there is an outlier at 42 on the upper side), the distribution is positively Skewed, though only slightly so from the quartiles alone.
If you get this wrong, revise: Box Plots — Drawing and Interpreting — Section 8.
Problem 13
Two classes sat the same maths test. Their results are summarised in back-to-back stem-and-leaf form:Class A | Stem | Class B 9 7 3 | 4 | 1 2 5 8 5 4 | 5 | 0 3 6 8 6 2 0 | 6 | 1 4 7 4 | 7 | 2 5 9 | 8 | 3 6Compare the distributions of the two classes.
Solution 13
Class A: $\{43, 47, 49, 54, 55, 58, 60, 62, 66, 74\}$. $n = 10$. Median $= (55 + 58)/2 = 56.5$. Range $= 74 - 43 = 31$.Class B: . . Median Th Value . Range .
Comparison:
- Average: Class B has the higher median (61 vs 56.5), so on average Class B performed better.
- Spread: Class B has a wider range (45 vs 31), suggesting greater variability in scores.
- Shape: Both distributions are roughly symmetric. Class B extends further in both directions.
- Outliers: No obvious outliers in either class.
If you get this wrong, revise: Comparing Distributions — Section 9.
Problem 14
Estimate the median and interquartile range from the following grouped frequency distribution using Linear interpolation:| Class | Frequency |
|---|---|
| 8 | |
| 15 | |
| 22 | |
| 10 | |
| 5 |
Solution 14
$n = 60$.Median (Th value). Cumulative frequencies: 8, 23, 45, 55, 60. The 30th value falls in The class .
Lower quartile (Th value). The 15th value falls in .
Upper quartile (Th value). The 45th value falls in .
.
If you get this wrong, revise: Interpolation from Grouped Data — Section 10.
Problem 15
The ordered dataset $\{4, 6, 8, 10, 12, 13, 15, 16, 48\}$ has median 12 and MAD = 4. Use the Modified z-score method to determine whether the value 48 is an outlier.Solution 15
$\tilde{x} = 12$ (median). $\mathrm{MAD} = 4$.For :
Since The value 48 is classified as an outlier by the modified z-score Method.
If you get this wrong, revise: Outliers in Depth — Section 7.2.
Problem 16
A grouped frequency distribution has class $50 \lt w \le 60$ with frequency 14. The cumulative Frequency below this class is 32, and the total frequency is 80. Use linear interpolation to Estimate $Q_3$.Solution 16
$Q_3$ is at position $3n/4 = 3 \times 80 / 4 = 60$.The 60th value falls in the class .
L = 50$$c_f = 32$$f = 14$$w = 10.
If you get this wrong, revise: Interpolation from Grouped Data — Section 10.1.
Problem 17
For the dataset $\{3, 5, 6, 7, 8, 9, 10, 12, 45\}$Compute both Pearson's first and second Coefficients of skewness. Do they agree on the direction of skewness?Solution 17
$n = 9$. $Q_2 = 5$Th value $= 8$.Lower half: . . Upper half: . .
.
.
So .
Pearson’s first coefficient:
Pearson’s second coefficient:
Both coefficients are positive, so they agree on positive skew. However, is much larger Because the mean (11.67) is strongly pulled by the outlier 45, whereas depends only on the Quartiles, which are less affected by that extreme value.
If you get this wrong, revise: Skewness — Section 6.
## Common Pitfalls
Forgetting to check that solutions satisfy the original equation (especially with squaring both sides or dividing by variables).
Misreading the question, particularly with ‘hence’ vs ‘hence or otherwise’. The former requires using previous work.
Forgetting the constant of integration in indefinite integrals, or misusing boundary conditions in definite integrals.
Losing marks by not showing sufficient working. Always write out each step, especially in proof questions.
Cross-References
Section titled “Cross-References”- Correlation and Regression — The mean and standard deviation are foundational for calculating PMCC and regression coefficients.
- Probability — Probability distributions provide the theoretical basis for understanding data variation.
- Hypothesis Testing — Summary statistics from this topic feed directly into significance tests and confidence intervals.