Skip to content

Dispersion | DSE - Wyatt's Notes

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.

A measure of central tendency identifies a single value that is representative of an entire dataset.

The mean (arithmetic average) of a dataset {x1,x2,,xn}\{x_1, x_2, \ldots, x_n\} is defined as:

xˉ=1ni=1nxi\begin{aligned} \bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i \end{aligned}

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$.

The median is the middle value of an ordered dataset. For nn data values sorted in ascending Order:

  • If nn is odd, the median is the value at position n+12\dfrac{n+1}{2}.
  • If nn is even, the median is the average of the values at positions n2\dfrac{n}{2} and n2+1\dfrac{n}{2}+1.

The median is robust to outliers since only on the position of data points, not their Magnitude.

Examples- Dataset: $\{3, 7, 1, 9, 5\}$. Sorted: $\{1, 3, 5, 7, 9\}$. Median = $5$ (position $3$ of $5$). - Dataset: $\{2, 4, 6, 8, 10, 12\}$. Median = $\frac{6+8}{2} = 7$ (average of positions $3$ and $4$). - Salaries: $\{18000, 20000, 22000, 25000, 150000\}$. Median = $22000$Which is far more representative than the mean of $47000$.

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.
MeasureUses all valuesAffected by outliersApplicable to categorical dataUnique value
MeanYesYesNoYes
MedianNoNoNoYes
ModeNoNoYesNo

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=MaximumvalueMinimumvalue\begin{aligned} \mathrm{Range} = \mathrm{Maximum value} - \mathrm{Minimum value} \end{aligned}

The range is simple to compute but uses only two data points, making it highly sensitive to Outliers.

Examples- $\{12, 15, 18, 22, 25\}$: range $= 25 - 12 = 13$. - $\{5, 10, 10, 10, 10, 100\}$: range $= 95$Heavily distorted by the single outlier.

The quartiles divide an ordered dataset into four equal parts:

  • Q1Q_1 (lower quartile): the median of the lower half.
  • Q2Q_2 (median): the middle value.
  • Q3Q_3 (upper quartile): the median of the upper half.
IQR=Q3Q1\begin{aligned} \mathrm{IQR} = Q_3 - Q_1 \end{aligned}

The IQR is resistant to outliers since it ignores the most extreme 50%50\% 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 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 nn):

σ2=1ni=1n(xixˉ)2\begin{aligned} \sigma^2 = \frac{1}{n}\sum_{i=1}^{n}(x_i - \bar{x})^2 \end{aligned}

Sample variance (divides by n1n-1):

s2=1n1i=1n(xixˉ)2\begin{aligned} s^2 = \frac{1}{n-1}\sum_{i=1}^{n}(x_i - \bar{x})^2 \end{aligned}

An equivalent computational formula is:

σ2=1n[i=1nxi21n(i=1nxi)2]\begin{aligned} \sigma^2 = \frac{1}{n}\left[\sum_{i=1}^{n}x_i^2 - \frac{1}{n}\left(\sum_{i=1}^{n}x_i\right)^2\right] \end{aligned}

Why nn vs n1n-1? Dividing by n1n-1 (Bessel”s correction) provides an unbiased estimator of The population variance when working with a sample. Using only nn data points, the sample mean xˉ\bar{x} is closer to the data points than the true population mean μ\mu So the squared Deviations tend to underestimate the true spread. Dividing by n1n-1 compensates for this. In the DSE Syllabus, unless the problem explicitly identifies the data as a sample, the population formula (dividing by nn) is expected.

Examples- Dataset: $\{2, 4, 4, 4, 5, 5, 7, 9\}$ ($n=8$). - $\bar{x} = \frac{40}{8} = 5$. - $\sum(x_i - \bar{x})^2 = 9 + 1 + 1 + 1 + 0 + 0 + 4 + 16 = 32$. - Population variance: $\sigma^2 = \frac{32}{8} = 4$. - Sample variance: $s^2 = \frac{32}{7} \approx 4.57$.

The standard deviation is the positive square root of the variance, restoring the units to match The original data:

σ=σ2,s=s2\begin{aligned} \sigma = \sqrt{\sigma^2}, \qquad s = \sqrt{s^2} \end{aligned}

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.

When data is presented in a grouped frequency distribution, individual values are not available. We work with class intervals instead.

  • Class boundaries: The endpoints of each class interval, with no gaps between consecutive classes. For example, if raw intervals are 10101919 and 20202929The class boundaries are 9.59.519.519.5 and 19.519.529.529.5.
  • Class width: The difference between the upper and lower class boundaries.
  • Class mark (midpoint): xi=lowerboundary+upperboundary2x_i = \dfrac{\mathrm{lower boundary} + \mathrm{upper boundary}}{2} used as the representative value for all data in the class.
xˉ=i=1kfixii=1kfi\begin{aligned} \bar{x} = \frac{\sum_{i=1}^{k} f_i x_i}{\sum_{i=1}^{k} f_i} \end{aligned}

Where kk is the number of classes, fif_i is the frequency of class ii And xix_i is the class Mark.

When class marks are equally spaced, let hh be the common class width and AA be the class mark of A convenient class (the assumed mean). Define di=xiAhd_i = \dfrac{x_i - A}{h}. Then:

xˉ=A+i=1kfidii=1kfi×h\begin{aligned} \bar{x} = A + \frac{\sum_{i=1}^{k} f_i d_i}{\sum_{i=1}^{k} f_i} \times h \end{aligned}

This method simplifies calculation by working with small integer values of did_i.

Examples- The following frequency distribution records the marks of $40$ students:
Class intervalfif_iClass mark xix_idid_ifidif_i d_i
30 — 39434.52-28-8
40 — 49844.51-18-8
50 — 591454.50000
60 — 691064.5111010
70 — 79474.52288

Here A=54.5A = 54.5, h=10h = 10.

xˉ=54.5+88+0+10+840×10=54.5+240×10=54.5+0.5=55\begin{aligned} \bar{x} &= 54.5 + \frac{-8-8+0+10+8}{40} \times 10 \\ &= 54.5 + \frac{2}{40} \times 10 \\ &= 54.5 + 0.5 = 55 \end{aligned}

For grouped data, the population variance is:

σ2=i=1kfi(xixˉ)2i=1kfi\begin{aligned} \sigma^2 = \frac{\sum_{i=1}^{k} f_i(x_i - \bar{x})^2}{\sum_{i=1}^{k} f_i} \end{aligned}

Or equivalently:

σ2=1n[fixi21n(fixi)2],n=fi\begin{aligned} \sigma^2 = \frac{1}{n}\left[\sum f_i x_i^2 - \frac{1}{n}\left(\sum f_i x_i\right)^2\right], \quad n = \sum f_i \end{aligned}

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:

Frequencydensity=FrequencyClasswidth\begin{aligned} \mathrm{Frequency density} = \frac{\mathrm{Frequency}}{\mathrm{Class width}} \end{aligned}

The median, quartiles, and other percentiles can be estimated from a cumulative frequency curve (ogive) by linear interpolation within the relevant class.

For a dataset XX and constants a,ba, b:

Var(aX+b)=a2Var(X)\begin{aligned} \mathrm{Var}(aX + b) = a^2 \mathrm{Var}(X) \end{aligned}

Adding a constant bb shifts all values equally and does not affect spread. Multiplying by aa Scales the spread by a|a|.

For the mean: aX+b=axˉ+b\overline{aX+b} = a\bar{x} + b.

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$.

Given two datasets XX and YY with sizes n1n_1 and n2n_2Means xˉ1\bar{x}_1 and xˉ2\bar{x}_2 And Variances σ12\sigma_1^2 and σ22\sigma_2^2The combined variance of the pooled dataset is:

σc2=n1σ12+n2σ22+n1(xˉ1xˉc)2+n2(xˉ2xˉc)2n1+n2\begin{aligned} \sigma_c^2 = \frac{n_1 \sigma_1^2 + n_2 \sigma_2^2 + n_1(\bar{x}_1 - \bar{x}_c)^2 + n_2(\bar{x}_2 - \bar{x}_c)^2}{n_1 + n_2} \end{aligned}

Where the combined mean is:

xˉc=n1xˉ1+n2xˉ2n1+n2\begin{aligned} \bar{x}_c = \frac{n_1 \bar{x}_1 + n_2 \bar{x}_2}{n_1 + n_2} \end{aligned}

The additional terms n1(xˉ1xˉc)2n_1(\bar{x}_1 - \bar{x}_c)^2 and n2(xˉ2xˉc)2n_2(\bar{x}_2 - \bar{x}_c)^2 account for The between-group variation caused by the difference in means.

Examples- Group A: $n_1 = 6$$\bar{x}_1 = 10$$\sigma_1^2 = 4$. - Group B: $n_2 = 4$$\bar{x}_2 = 20$$\sigma_2^2 = 9$.

Combined mean: xˉc=6(10)+4(20)10=14\bar{x}_c = \frac{6(10)+4(20)}{10} = 14.

σc2=6(4)+4(9)+6(1014)2+4(2014)210=24+36+96+14410=30010=30\begin{aligned} \sigma_c^2 &= \frac{6(4) + 4(9) + 6(10-14)^2 + 4(20-14)^2}{10} \\ &= \frac{24 + 36 + 96 + 144}{10} = \frac{300}{10} = 30 \end{aligned}

The coefficient of variation (CV) allows comparison of variability between datasets measured in Different units or with vastly different means:

CV=σxˉ×100%\begin{aligned} \mathrm{CV} = \frac{\sigma}{\bar{x}} \times 100\% \end{aligned}

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.

A box-and-whisker plot is a standardised graphical display of the five-number summary: minimum, Q_1$$Q_2 (median), Q3Q_3 And maximum.

Construction:

  1. Draw a rectangular box from Q1Q_1 to Q3Q_3.
  2. Draw a line inside the box at Q2Q_2.
  3. Extend “whiskers” to the minimum and maximum values.

Identifying outliers: A data point is considered a potential outlier if it falls below Q11.5×IQRQ_1 - 1.5 \times \mathrm{IQR} or above Q3+1.5×IQRQ_3 + 1.5 \times \mathrm{IQR}.

Examples- Dataset: $\{5, 8, 12, 15, 18, 20, 24, 28, 35, 42, 58\}$ ($n=11$). - $Q_2 = 18$. - Lower half: $\{5, 8, 12, 15, 18\}$$Q_1 = 12$. - Upper half: $\{18, 20, 24, 28, 35, 42, 58\}$$Q_3 = 28$. - IQR $= 28 - 12 = 16$. - Lower fence: $12 - 1.5(16) = -12$. - Upper fence: $28 + 1.5(16) = 52$. - Since $58 > 52$The value $58$ is an outlier. The upper whisker extends to $42$ instead.

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 Questions1. **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).
  1. Question: A dataset has mean 2020 and variance 3636. Find the mean and variance of the Transformed dataset Y=X206Y = \dfrac{X - 20}{6}.
Answer
  • yˉ=16(20)206=20206=0\bar{y} = \frac{1}{6}(20) - \frac{20}{6} = \frac{20-20}{6} = 0.
  • Var(Y)=(16)2×36=136×36=1\mathrm{Var}(Y) = \left(\frac{1}{6}\right)^2 \times 36 = \frac{1}{36} \times 36 = 1.
  1. Question: For the grouped frequency distribution below, find the mean and standard deviation using the coding method.
ClassFrequency
10 — 195
20 — 2912
30 — 3918
40 — 4910
50 — 595
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$.
  1. Question: Two classes sat the same test. Class A (n_1 = 30$$\bar{x}_1 = 72 σ1=8\sigma_1 = 8). Class B (n_2 = 20$$\bar{x}_2 = 80$$\sigma_2 = 6). Find the combined mean and Combined standard deviation.
Answer
  • Combined mean: xˉc=30(72)+20(80)50=2160+160050=376050=75.2\bar{x}_c = \frac{30(72)+20(80)}{50} = \frac{2160+1600}{50} = \frac{3760}{50} = 75.2.
  • 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: σc=68.168.26\sigma_c = \sqrt{68.16} \approx 8.26.
  1. Question: The following are the lifetimes (in hours) of 1010 light bulbs: 820,790,810,780,830,800,795,815,805,855820, 790, 810, 780, 830, 800, 795, 815, 805, 855. Determine the range, IQR, and identify any Outliers.
Answer
  • Sorted: {780,790,795,800,805,810,815,820,830,855}\{780, 790, 795, 800, 805, 810, 815, 820, 830, 855\}.
  • Range =855780=75= 855 - 780 = 75.
  • Q2=805+8102=807.5Q_2 = \frac{805+810}{2} = 807.5.
  • Lower half: \{780, 790, 795, 800, 805\}$$Q_1 = 795.
  • Upper half: \{810, 815, 820, 830, 855\}$$Q_3 = 820.
  • IQR =820795=25= 820 - 795 = 25.
  • Lower fence: 7951.5(25)=757.5795 - 1.5(25) = 757.5. Upper fence: 820+1.5(25)=857.5820 + 1.5(25) = 857.5.
  • No outliers (all values lie within [757.5,857.5][757.5, 857.5]).
  1. Question: A farmer records the yields (in kg) of two varieties of wheat over several seasons. Variety A: mean =45= 45Standard deviation =5= 5. Variety B: mean =60= 60Standard deviation =9= 9. Which variety has more consistent yield?
Answer
  • CVA=545×100%11.1%_A = \frac{5}{45} \times 100\% \approx 11.1\%.
  • CVB=960×100%=15.0%_B = \frac{9}{60} \times 100\% = 15.0\%.
  • Since CVA<_A < CVB_BVariety A has more consistent (less variable) yield relative to its mean.
  1. Question: Given the dataset {a,b,c}\{a, b, c\} with mean 1010 and variance 88Find the value of a2+b2+c2a^2 + b^2 + c^2.
Answer
  • xˉ=a+b+c3=10    a+b+c=30\bar{x} = \frac{a+b+c}{3} = 10 \implies a+b+c = 30.
  • σ2=a2+b2+c23xˉ2=8\sigma^2 = \frac{a^2+b^2+c^2}{3} - \bar{x}^2 = 8.
  • a2+b2+c23100=8    a2+b2+c2=324\frac{a^2+b^2+c^2}{3} - 100 = 8 \implies a^2+b^2+c^2 = 324.
  1. Question: A set of 2020 numbers has mean 1515 and standard deviation 33. If each number is Multiplied by 22 and then 55 is added, find the new mean and new standard deviation.
Answer
  • New mean: 2(15)+5=352(15) + 5 = 35.
  • New variance: 22×32=362^2 \times 3^2 = 36.
  • New standard deviation: 36=6\sqrt{36} = 6.
  1. Question: The histogram below (described verbally) shows the distribution of weights of 5050 apples. The class intervals and frequencies are:
Weight (g)Frequency
100 — 1196
120 — 13914
140 — 15920
160 — 1798
180 — 1992

Estimate the median weight from the cumulative frequency distribution.

Answer
  • Cumulative frequencies: 6,20,40,48,506, 20, 40, 48, 50.
  • The median is the 502=25\frac{50}{2} = 25Th value, which lies in the class 140140159159 (cumulative 2020 to 4040).
  • 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} ,,
  1. Question: For the dataset {3,7,7,2,9,5,1,8,6,4}\{3, 7, 7, 2, 9, 5, 1, 8, 6, 4\}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.
Answer
  • xi=3+7+7+2+9+5+1+8+6+4=52\sum x_i = 3+7+7+2+9+5+1+8+6+4 = 52.
  • xi2=9+49+49+4+81+25+1+64+36+16=334\sum x_i^2 = 9+49+49+4+81+25+1+64+36+16 = 334.
  • xˉ=5210=5.2\bar{x} = \frac{52}{10} = 5.2.
  • Definition formula: σ2=(35.2)2+(75.2)2+(75.2)2+(25.2)2+(95.2)2+(55.2)2+(15.2)2+(85.2)2+(65.2)2+(45.2)210=4.84+3.24+3.24+10.24+14.44+0.04+17.64+7.84+0.64+1.4410=63.610=6.36\begin{aligned} \sigma^2 &= \frac{(3-5.2)^2 + (7-5.2)^2 + (7-5.2)^2 + (2-5.2)^2 + (9-5.2)^2 + (5-5.2)^2 + (1-5.2)^2 + (8-5.2)^2 + (6-5.2)^2 + (4-5.2)^2}{10} \\ &= \frac{4.84+3.24+3.24+10.24+14.44+0.04+17.64+7.84+0.64+1.44}{10} \\ &= \frac{63.6}{10} = 6.36 \end{aligned}
  • Computational formula: σ2=33410(5210)2=33.427.04=6.36\begin{aligned} \sigma^2 &= \frac{334}{10} - \left(\frac{52}{10}\right)^2 = 33.4 - 27.04 = 6.36 \quad \checkmark \end{aligned}
  1. Question: The weekly wages (in dollars) of 88 workers in a small factory are 3200,3500,3800,4200,4500,4800,5200,120003200, 3500, 3800, 4200, 4500, 4800, 5200, 12000. 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: xˉ=412008=5150\bar{x} = \frac{41200}{8} = 5150. The owner’s figure is arithmetically correct.
  • Sorted: {3200,3500,3800,4200,4500,4800,5200,12000}\{3200, 3500, 3800, 4200, 4500, 4800, 5200, 12000\}.
  • Median: 4200+45002=4350\frac{4200+4500}{2} = 4350.
  • The median (43504350) 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 by USD 800. The median is resistant to outliers and better reflects what a typical worker earns.
  • The range (120003200=880012000 - 3200 = 8800) and the large gap between the mean and median both indicate Significant skewness, confirming the mean is a poor choice of summary statistic.
  1. Question: A set of data has variance 2525 and mean 00. A new set is formed by removing the Value 1010 from the original set. If the original set had n=6n = 6 values, find the new mean and new Variance.
Answer
  • Original: \bar{x} = 0$$\sigma^2 = 25$$n = 6.
  • xi=0\sum x_i = 0 So xi2=nσ2+(xi)2n=6(25)+0=150\sum x_i^2 = n\sigma^2 + \frac{(\sum x_i)^2}{n} = 6(25) + 0 = 150.
  • After removing 1010: new sum =010=10= 0 - 10 = -10New n=5n' = 5.
  • New mean: xˉ=105=2\bar{x}' = \frac{-10}{5} = -2.
  • New sum of squares: 150100=50150 - 100 = 50.
  • New variance: σ2=505(2)2=104=6\sigma'^2 = \frac{50}{5} - (-2)^2 = 10 - 4 = 6.

For the A-Level treatment of this topic, see Data Representation.


Mathematics is the study of structure, quantity, and change. Algebra provides symbols for unknown quantities, geometry describes spatial relationships, and calculus captures motion and growth. Together, these branches form a powerful toolkit for solving problems that range from calculating areas to predicting population dynamics. Mathematical literacy is essential for science, technology, and informed citizenship.