L3 - Location, spread and standard deviation

L3 - Location, spread and standard deviation

Calculate measures of centre and variation from raw lists, frequency tables and summary statistics. You will check calculator outputs, recognise grouped estimates and choose summaries that answer a question about the data.

Location from raw data

If one slow journey becomes much slower, must the “average” journey change? The answer depends on which average you mean. For the illustrative ordered times 8,10,10,12,14,16,288,10,10,12,14,16,28 minutes, the mean is 1414, the median is 1212 and the mode is 1010. Each describes a different feature.

You already know

Put observations in order to find positions such as the median. A frequency counts repetitions; an identifier such as ReferenceNumber labels a record and is not a measurement to average.

The mean shares the total equally among all observations. The median is the middle observation when the count is odd, or the mean of the two central observations when it is even. The mode is the most frequent value or category; two values can tie, and a list need not have a useful unique mode. The modal class of grouped data is a most frequent class, rather than a known exact modal observation.

Mean of a list

For nn observations x1,…,xnx_1,\ldots,x_n,

xˉ=∑xin\bar x=\frac{\sum x_i}{n}

Here ∑xi\sum x_i means add the observations, and xˉ\bar x denotes their sample mean.
Not in the formula booklet: learn it.

Use the mean if the total matters: total journey time is count multiplied by mean time. Use the median to describe a central position when extremes pull the mean away from most observations.

Worked example 1: three measures of centre

Question. Find the mean, median and mode of 8,10,10,12,14,16,288,10,10,12,14,16,28 minutes.

Plan. Add for the mean, locate the middle rank, then identify the most frequent value.

∑x=98add all seven timesxˉ=98/7=14equal share of total(n+1)/2=4middle rank is fourth\begin{aligned} \sum x&=98 && \text{add all seven times}\\ \bar x&=98/7=14 && \text{equal share of total}\\ (n+1)/2&=4 && \text{middle rank is fourth} \end{aligned}

Why this step? The fourth value is 1212; using the middle of the minimum and maximum would instead calculate the midrange.

Answer. Mean 1414, median 1212, mode 1010, all in minutes.

Check. 7×14=987\times14=98, and 1010 occurs twice while every other value occurs once.

Change only the final observation from 2828 to 9898. This keeps every rank and repetition pattern unchanged while testing the effect of one extreme value.

Worked example 2: change one extreme observation

Question. Find the mean, median and mode of 8,10,10,12,14,16,988,10,10,12,14,16,98 minutes. Compare with Worked example 1.

Plan. Update the total by the change in the last observation, then recheck the central rank and repetitions.

∑x=98+(98−28)=168update one observationxˉ=168/7=24divide by the same countmedian=x4=12central rank unchanged\begin{aligned} \sum x&=98+(98-28)=168 && \text{update one observation}\\ \bar x&=168/7=24 && \text{divide by the same count}\\ \text{median}&=x_4=12 && \text{central rank unchanged} \end{aligned}

Why this step? Adding 7070 to one observation adds 70/7=1070/7=10 to the mean, but need not move the median or mode.

Answer. Mean 2424, median 1212, mode 1010 minutes. Only the mean changes.

Check. The mean rises by 1010, whereas the middle value and repeated value remain visible in the ordered list.

For a genuine selected list, the first seven AQA workbook masses are 1970,1163,1316,1355,1445,1425,1163 kg1970,1163,1316,1355,1445,1425,1163\,\mathrm{kg}. Their total 9837 kg9837\,\mathrm{kg} gives mean 9837/7≈1405.29 kg9837/7\approx1405.29\,\mathrm{kg}. Mass includes 75 kg75\,\mathrm{kg} for an average driver. Being the first rows does not make them a random sample of all cars.

Source: AQA car LDS, 20172017 DfT Stock Vehicle Database, Open Government Licence v3.0.

Watch out

Wrong: median =(8+98)/2=53=(8+98)/2=53. This averages the extremes and ignores the central position. Right: order the seven observations and select the fourth, 1212.

Change the extreme value again to see whether the reasoning, rather than just the answer, carries over.

Quartiles and resistant spread

The range measures the full distance from minimum to maximum, while the IQR focuses on the middle half and is more resistant to one extreme observation.

Range and interquartile range

range=maximum−minimumIQR=Q3−Q1\text{range}=\text{maximum}-\text{minimum} \qquad \mathrm{IQR}=Q_3-Q_1

Not in the formula booklet: learn it.

Quartile conventions can differ for small samples. Here each question explicitly uses ranks (n+1)/4(n+1)/4 and 3(n+1)/43(n+1)/4; these position rules are not in the formula booklet. Follow a given convention, and record your choice in an investigation. For large datasets, calculator quartiles or graphical readings are useful. You do not need a grouped-data linear-interpolation formula for medians or quartiles.

Worked example 3: locate quartiles

Question. For 8,10,10,12,14,16,288,10,10,12,14,16,28 minutes, use ranks (n+1)/4(n+1)/4 and 3(n+1)/43(n+1)/4 to find the quartiles, IQR and range.

Plan. Find the two ranks before selecting the observations.

(n+1)/4=2,3(n+1)/4=6n=7Q1=10,Q3=16second and sixth valuesIQR=16−10=6middle-half spreadrange=28−8=20full spread\begin{aligned} (n+1)/4&=2,\quad 3(n+1)/4=6 && n=7\\ Q_1&=10,\quad Q_3=16 && \text{second and sixth values}\\ \mathrm{IQR}&=16-10=6 && \text{middle-half spread}\\ \text{range}&=28-8=20 && \text{full spread} \end{aligned}

Why this step? A rank tells you where to look; it is not itself the quartile's measured value.

Answer. Quartiles 10,1610,16 minutes, IQR 66 minutes, range 2020 minutes.

Check. Both quartiles lie between the minimum and maximum, with the median 1212 between them.

Again change only 2828 to 9898, keeping the quartile convention fixed. This isolates the effect of a distant maximum.

Worked example 4: resist an extreme value

Question. Find the quartiles, IQR and range for 8,10,10,12,14,16,988,10,10,12,14,16,98 minutes using the same convention.

Plan. Reuse the ranks, then calculate the two spreads separately.

Q1=x2=10,Q3=x6=16same central ranksIQR=16−10=6quartiles unchangedrange=98−8=90maximum has changed\begin{aligned} Q_1&=x_2=10,\quad Q_3=x_6=16 && \text{same central ranks}\\ \mathrm{IQR}&=16-10=6 && \text{quartiles unchanged}\\ \text{range}&=98-8=90 && \text{maximum has changed} \end{aligned}

Why this step? IQR ignores how far the largest observation extends once the quartile positions are fixed.

Answer. Quartiles 10,1610,16, IQR 66, range 9090, in minutes. The range changes greatly while the IQR stays fixed.

Check. The range rises by 7070, exactly the increase in the maximum.

“Resistant” does not mean a statistic can never change. Changing enough observations, or moving an observation across a quartile position, can change the IQR.

Watch out

Wrong: “The quartile is 22 minutes because its rank is 22.” A rank is a position. Right: select the second observation; here Q1=10Q_1=10 minutes.

Use a different ordered list for the next check, applying the stated ranks rather than a calculator's potentially different convention.

Variance, standard deviation and the calculator

Standard deviation uses every observation to measure variation around the mean, then expresses the result in the original units.

The deviations from a mean sum to zero: for 8,10,128,10,12, the mean is 1010 and the deviations are −2,0,2-2,0,2. Averaging signed deviations would therefore hide spread. Squaring prevents cancellation, giving a variance of (4+0+4)/3=8/3(4+0+4)/3=8/3 and standard deviation 8/3\sqrt{8/3}.

Variance and standard deviation

The descriptive variance of a list is the mean squared deviation from its mean, using denominator nn. Its standard deviation is the nonnegative square root. Variance has squared units; standard deviation has the original units. Both are zero precisely when every observation is equal.

Expanding the squares explains the convenient summary-statistics form:

∑(xi−xˉ)2n=∑xi2−2xˉ∑xi+nxˉ2n=∑xi2n−xˉ2\frac{\sum(x_i-\bar x)^2}{n} =\frac{\sum x_i^2-2\bar x\sum x_i+n\bar x^2}{n} =\frac{\sum x_i^2}{n}-\bar x^2

The last equality uses ∑xi=nxˉ\sum x_i=n\bar x.

Standard deviation of data

standard deviation=∑(xi−xˉ)2n=∑xi2n−xˉ2\text{standard deviation} =\sqrt{\frac{\sum(x_i-\bar x)^2}{n}} =\sqrt{\frac{\sum x_i^2}{n}-\bar x^2}

In the formula booklet.

Square each observation before adding for ∑xi2\sum x_i^2; this differs from squaring the total. Take the square root only after finding variance, and keep the mean unrounded during the calculation.

Worked example 5: work from summary statistics

Question. Seven recorded times have ∑x=98\sum x=98 and ∑x2=1644\sum x^2=1644, with xx in minutes. Find their descriptive variance and standard deviation.

Plan. Calculate the mean, use the supplied summary-statistics formula, then take the square root.

xˉ=98/7=14meanv=1644/7−142=272/7variance, denominator 7v≈6.23restore original units\begin{aligned} \bar x&=98/7=14 && \text{mean}\\ v&=1644/7-14^2=272/7 && \text{variance, denominator }7\\ \sqrt v&\approx6.23 && \text{restore original units} \end{aligned}

Why this step? 1644/71644/7 is a mean square; subtracting the square of the mean leaves the variation around that mean.

Answer. Variance 272/7 min2272/7\,\mathrm{min}^2; standard deviation approximately 6.23 min6.23\,\mathrm{min}.

Check. For the original list 8,10,10,12,14,16,288,10,10,12,14,16,28, squared deviations from 1414 sum to 272272.

Change only the form of the supplied summary: the next question gives the squared-deviation total directly. There is no mean square to correct a second time.

Worked example 6: work from squared deviations

Question. Seven times have mean 1414 minutes and ∑(x−14)2=272 min2\sum(x-14)^2=272\,\mathrm{min}^2. Find the descriptive variance and standard deviation.

Plan. Divide the squared-deviation total by 77, then take its square root.

v=272/7mean squared deviationstandard deviation=272/7≈6.23square root\begin{aligned} v&=272/7 && \text{mean squared deviation}\\ \text{standard deviation}&=\sqrt{272/7}\approx6.23 && \text{square root} \end{aligned}

Why this step? The deviations already measure departures from the mean, so subtracting 14214^2 again would be wrong.

Answer. Variance 272/7 min2272/7\,\mathrm{min}^2; standard deviation approximately 6.23 min6.23\,\mathrm{min}.

Check. Both forms of the same information give the same result as Worked example 5.

Continue this lesson.

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

Create free account