Statistics 2.3 - Measures of central tendency and variation

Statistics 2.3 - Measures of central tendency and variation

Choose and interpret averages and measures of spread, calculate exact summaries, estimate grouped percentiles, and recover original summaries after coding. Use the supplied standard-deviation formulas with clear units, careful rounding and a reason for the comparison you make.

Centre and spread

Can two sets have the same average but feel completely different? The lists 4,5,64,5,6 and 1,5,91,5,9 both have mean 55. The second list is much more spread out. An average alone cannot tell you whether a service is consistent or a machine is reliable.

You already know

The arithmetic mean is the sum divided by the number of values. Order a list before finding its middle, and distinguish a value from the frequency with which it occurs.

[DIAGRAM: asset_name: Same centre and different variation; asset_slug: p3_2_3_interpret_measures_of_central_tendency_and_variation__diagram_01; caption: Identical means can hide four times as much standard deviation; description: Two dot plots on the same horizontal scale show 4, 5, 6 and 1, 5, 9. Both have a marked mean of 5. Their ranges are 2 and 8, and standard deviations using divisor 3 are about 0.816 and 3.27.]
Identical means can hide four times as much standard deviation

The second list is obtained by multiplying every distance from 55 by 44. Its range and standard deviation are therefore both four times as large. That is a mathematical surprise you can verify without any extra data.

Measures of central tendency

The mean uses every numerical value. The median is the middle value of an ordered list, or the mean of the two middle values. The mode is the most frequent value; there may be several modes or no unique mode. A grouped distribution identifies a modal class rather than an exact modal value.

Extreme values affect the mean because their sizes enter the sum. The median depends on order, so changing an already largest value can leave it unchanged. For skewed data with occasional large values, median and IQR often describe a typical observation more usefully than mean and standard deviation. The mode is useful when the most common category or value is the question.

Measures of variation

The range is the largest value minus the smallest. An interpercentile range is a difference of percentiles, such as P90−P10P_{90}-P_{10}, measuring the spread of the central 80%80\%. Variance is a mean squared deviation from the mean; standard deviation is its square root.

Standard deviation has the data's units; variance has squared units. A standard deviation of 2 cm2\,\mathrm{cm} describes variation in lengths, while a variance of 4 cm24\,\mathrm{cm^2} is its square. Neither is a new average length.

For waiting times, sample A has median 8.18.1, mean 8.38.3, SD 1.41.4 minutes; B has median 7.87.8, mean 11.611.6, SD 8.98.9 minutes. Their medians are similar, but B has more variation and a mean pulled much further above its median. This is consistent with a long upper tail, although summaries alone do not prove the full shape.

Key idea

Give both centre and spread, chosen for the question and the distribution. A smaller standard deviation means greater consistency, rather than automatically a better outcome for every purpose.

Choose an average that resists one extreme value.

Exact summaries from raw or frequency data

A frequency table can preserve exact recorded values: the frequency tells you how often to count each value. Continuous measurements listed individually also give exact summaries of those recorded measurements, even though the measurements themselves have finite precision.

Mean from a frequency table

For values xx with frequencies ff,

n=∑fxˉ=∑fx∑fn=\sum f \qquad \bar x=\frac{\sum fx}{\sum f}

For a raw list take each frequency as 11. The number of distinct rows is not generally the number of observations.

Not in the formula booklet: learn it.

Locate the median by ordered positions, using cumulative frequencies when values repeat.

Worked example 1: an exact frequency table

Question. Late arrivals x=0,1,2,3,4x=0,1,2,3,4 occur with respective frequencies 3,5,6,4,23,5,6,4,2. Find the mean, median, mode and range.

Plan. Find the total and weighted sum, then use cumulative positions for the median.

n=3+5+6+4+2=20count all lessons∑fx=0(3)+1(5)+2(6)+3(4)+4(2)=37weight by frequencyxˉ=37/20=1.85\begin{aligned} n&=3+5+6+4+2=20 && \text{count all lessons}\\ \sum fx&=0(3)+1(5)+2(6)+3(4)+4(2)=37 && \text{weight by frequency}\\ \bar x&=37/20=1.85 \end{aligned}

The cumulative frequencies are 3,8,14,18,203,8,14,18,20. Positions 1010 and 1111 both contain 22, so the median is 22. The largest frequency is 66, attached to value 22. The range is 4−0=44-0=4.

Why this step? The mode is the value with the largest frequency, rather than the frequency itself.

Answer. Mean 1.851.85, median 22, mode 22, range 44 late arrivals.

Check. The weighted mean lies between 00 and 44. It need not be a possible count in one lesson.

Change the presentation from frequencies to a raw list. These are genuine daily mean windspeeds from Heathrow, 1–4 May 2015, in Pearson's Large Data Set.

Worked example 2: a raw weather extract

Question. The windspeeds are 9,9,13,109,9,13,10 knots. Find the same four summaries.

Plan. Average all four readings, then sort them to find the middle and extremes.

xˉ=9+9+13+104=10.25four recorded daysordered list: 9,9,10,13sort before locating the middlemedian=9+102=9.5range=13−9=4\begin{aligned} \bar x&=\frac{9+9+13+10}{4}=10.25 && \text{four recorded days}\\ \text{ordered list}&:\ 9,9,10,13 && \text{sort before locating the middle}\\ \text{median}&=\frac{9+10}{2}=9.5\\ \text{range}&=13-9=4 \end{aligned}

Why this step? With an even number of readings, the median lies halfway between the two central recorded values.

Answer. Mean 10.2510.25 knots, median 9.59.5 knots, mode 99 knots and range 44 knots. Neither the mean nor the median needs to be one of the observations.

Check. The total 4141 equals 4×10.254\times10.25, and 99 is the only repeated reading.

For ungrouped quartiles and percentiles, follow a supplied position convention. In the late-arrival list, a rule using positions 55 and 1515 gives P25=1P_{25}=1 and P75=3P_{75}=3, hence an interpercentile range 22. Different software conventions can interpolate differently in small lists; state the requested one.

Watch out

Wrong: divide the late-arrival weighted sum by 55, the number of possible values. Right: divide by 2020, the total frequency. The table's rows compress repeated observations.

Apply the raw-list method to a fresh set of recorded values.

Grouped data and interpolation

Grouping hides where observations lie inside each class. A midpoint mean assumes every observation in a class is at its midpoint; interpolated percentiles assume an even spread within the relevant class. Both are estimates.

Consider these delay times in minutes.

Delay, xx0≤x<100\le x<1010≤x<2010\le x<2020≤x<3020\le x<3030≤x<4030\le x<4040≤x<6040\le x<60
Frequency61420812
Cumulative frequency620404860

The midpoint mean is (6(5)+14(15)+20(25)+8(35)+12(50))/60=27(6(5)+14(15)+20(25)+8(35)+12(50))/60=27 minutes. For a histogram the modal class is 20≤x<3020\le x<30: it has the highest density, 20/10=220/10=2. The final class is wider, so frequency alone should not be used to compare peak heights.

Grouped percentile interpolation

For percentile pp of nn observations, use target cumulative frequency r=pn/100r=pn/100. If its class has lower boundary LL, width ww, frequency f>0f>0 and cumulative frequency cc before it,

Pp≈L+r−cfwP_p\approx L+\frac{r-c}{f}w

Use boundaries, rather than rounded class labels, and assume an even spread inside the class.

Not in the formula booklet: learn it.

The same fraction appears as a fraction of the horizontal class width.

[DIAGRAM: asset_name: Interpolating within a grouped class; asset_slug: p3_2_3_interpret_measures_of_central_tendency_and_variation__diagram_02; caption: Half the class frequency gives half the class width; description: Cumulative-frequency segment joins (20, 20) and (30, 40). Guides at cumulative frequency 30 meet the segment at x equals 25. Boundaries 20 and 30, class frequency 20 and target 30 are labelled outside the plotted line.]
Half the class frequency gives half the class width

Worked example 3: estimating a median and percentile range

Question. For the delay table, estimate the median and P90−P10P_{90}-P_{10}.

Plan. Calculate each target rank and interpolate in its own class.

median≈20+30−2020×10=25r=60/2P90≈40+54−4812×20=50r=0.90(60)P10≈0+6−06×10=10r=0.10(60)\begin{aligned} \text{median}&\approx20+\frac{30-20}{20}\times10=25 && r=60/2\\ P_{90}&\approx40+\frac{54-48}{12}\times20=50 && r=0.90(60)\\ P_{10}&\approx0+\frac{6-0}{6}\times10=10 && r=0.10(60) \end{aligned}

Why this step? Percentiles are located by cumulative counts, not by taking a percentage of the largest delay.

Answer. Estimated median 2525 minutes and central 80%80\% spread 50−10=4050-10=40 minutes.

Check. The median lies inside 20≤x<3020\le x<30; the target rank for P10P_{10} is exactly at the first upper boundary.

Change only the pair of percentiles: estimate the spread of the middle half rather than the middle 80%80\%.

Worked example 4: estimating the IQR

Question. Estimate Q1Q_1, Q3Q_3 and the IQR for the same table.

Plan. Use target cumulative frequencies 1515 and 4545.

Q1≈10+15−614×10=16.428571…second classQ3≈30+45−408×10=36.25fourth classIQR≈36.25−16.428571…=19.821428…\begin{aligned} Q_1&\approx10+\frac{15-6}{14}\times10=16.428571\ldots && \text{second class}\\ Q_3&\approx30+\frac{45-40}{8}\times10=36.25 && \text{fourth class}\\ \mathrm{IQR}&\approx36.25-16.428571\ldots=19.821428\ldots \end{aligned}

Why this step? Each percentile may lie in a different class; its width and frequency must come from that class.

Answer. Q1≈16.4Q_1\approx16.4, Q3≈36.3Q_3\approx36.3 and IQR ≈19.8\approx19.8 minutes to 33 significant figures.

Check. The middle 50%50\% spread is less than the earlier middle 80%80\% spread of 4040 minutes. Unrounded quartiles were subtracted.

The IQR identity itself, Q3−Q1Q_3-Q_1, is in the formula booklet; the interpolation process is not. For continuous classes with half-open endpoints, do not add an extra unit to a width. A class 20≤x<3020\le x<30 has width 1010.

Exam tip

Write an interpolation expression and call the answer an estimate. Rounding each percentile before subtracting can spoil the final spread.

Estimate a new upper quartile using its own class information.

Continue this lesson.

You’re previewing NovaLearn without an account. Create a free account to read the rest.

Create free account