Measuring Data · applications

Applications: Measuring Data

12 question types · Secondary 3 · each worked step by step with a figure that follows the steps

O-Level · SAT · GCSE Higher

01

Seven House Prices in One Street, One of Them a Mansion

methodWork Out All Three Averages, Then Ask Which of Them a Buyer Would Recognize as an Ordinary Price

Seven houses in one street were sold last year. The prices were $250 000, $320 000, $380 000, $380 000, $450 000, $520 000 and $1 200 000. (a) Find the mean, the median and the mode of the seven prices. (b) An estate agent advertises the street using the mean price. How many of the seven houses sold for less than that, and which average describes an ordinary house in the street better?

20040060080010001200price, $ thousand250 320 380 380 450 520 1200
The seven prices, in thousands of dollars, on one scale. Six of them sit together and one is far to the right.
Put the prices in order and work in thousands of dollars, which keeps the arithmetic short: 250, 320, 380, 380, 450, 520, 1200. The answers are turned back into dollars at the end.
step 1 of 5

The mean shares the total of all the prices equally among the houses, so a single very expensive house lifts it for every house in the street. The median is the middle price once the prices are in order, and it moves only when the middle of the list moves. The mode is the price that occurs most often. Working all three out first, and then asking which one a reader would recognize, is the whole of this question.

  1. Put the prices in order and work in thousands of dollars, which keeps the arithmetic short: 250, 320, 380, 380, 450, 520, 1200. The answers are turned back into dollars at the end.
  2. Add them for the mean: 250 + 320 + 380 + 380 + 450 + 520 + 1200 = 3500 thousand. There are 7 prices, so the mean is 3500 ÷ 7 = 500 thousand, that is $500 000.
  3. (a) With 7 prices in order the median is the 4th of them, which is 380 thousand. The price 380 thousand occurs twice and every other price once, so the mode is 380 thousand as well. The mean is $500 000, the median is $380 000 and the mode is $380 000.
  4. Count the prices below the mean. The prices 250, 320, 380, 380 and 450 are all less than 500, and only 520 and 1200 are above it, so 5 of the 7 houses sold for less than the advertised mean.
  5. (b) The median, $380 000, describes an ordinary house in the street better. The one price of $1 200 000 is 700 thousand above the next highest, and on its own it lifts the mean by 700 ÷ 7 = 100 thousand. Check: leave that house out and the other six average 2300 ÷ 6 ≈ 383 thousand, which is close to the median.

answer(a) the mean is $500 000, the median is $380 000 and the mode is $380 000; (b) 5 of the 7 houses sold for less than the mean, and the median describes an ordinary house better

techniqueMeasures of Central Tendency · Median and Mode

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Taking the median to be halfway between the lowest and the highest price, 250 + 12002 = 725 thousand. That is the midrange, and it uses only the two most extreme prices. The median is the middle value of the ordered list, so it must be counted to.
  • Choosing the mean because it is the only average that uses every price. It does use every price, but one price far from the rest pulls it a long way, and here it lands above all but two of the houses. An average that most of the data sits below is not describing the data.
02

Goals in a Season Read from a Frequency Table: the Mean, the Median and the Mode

methodMultiply Each Value by Its Frequency for the Total, Then Count Along the Frequencies to the Middle Match

A hockey team played 20 matches in a season. It scored 0 goals in 3 matches, 1 goal in 5 matches, 2 goals in 6 matches, 3 goals in 3 matches, 4 goals in 2 matches and 5 goals in 1 match. (a) Find the mean number of goals the team scored in a match. (b) Find the median and the mode, and say in how many matches the team scored more than the mean.

goals xmatches ff x031526334251totalf x is the goals scored in those matches
The table is set out in three columns: the goals x, the matches f, and the product fx.
Write the table in three columns: the goals x, the number of matches f, and the product fx, which is the number of goals scored in the matches of that row.
step 1 of 5

A frequency table lists each value once and says how often it happened, so the total is not the sum of the values but the sum of value times frequency. Set the table out in three columns, x for the goals, f for the matches and fx for the goals those matches produced. The mean is the total of the fx column divided by the total of the f column, and the median is found by counting along the frequencies until the middle match is reached.

  1. Write the table in three columns: the goals x, the number of matches f, and the product fx, which is the number of goals scored in the matches of that row.
  2. Fill in the fx column: 0 × 3 = 0, 1 × 5 = 5, 2 × 6 = 12, 3 × 3 = 9, 4 × 2 = 8 and 5 × 1 = 5.
  3. (a) Total the two columns: 3 + 5 + 6 + 3 + 2 + 1 = 20 matches and 0 + 5 + 12 + 9 + 8 + 5 = 39 goals. The mean is 39 ÷ 20 = 1.95 goals in a match.
  4. For the median, 20 values put it halfway between the 10th and the 11th. Counting along the frequencies, 3 matches had 0 goals and 3 + 5 = 8 had 1 or fewer, so the 9th to the 14th matches all had 2 goals. The 10th and the 11th are both 2, so the median is 2 goals. The largest frequency is 6, at 2 goals, so the mode is 2 goals as well.
  5. (b) More than 1.95 goals means 2 goals or more, which is 6 + 3 + 2 + 1 = 12 matches. The median is 2 goals, the mode is 2 goals and 12 of the 20 matches were above the mean. Check: 8 matches were below the mean and 8 + 12 = 20.

answer(a) the team scored 39 goals in the 20 matches, so the mean is 1.95 goals in a match; (b) the median is 2 goals, the mode is 2 goals, and 12 of the 20 matches were above the mean

techniqueAverages from a Frequency Table · Median and Mode

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Dividing the total number of goals by the number of different scores instead of by the number of matches: 39 ÷ 6 = 6.5. There are 6 rows in the table but 20 matches, and the mean is a mean for each match, so the divisor is the total of the f column.
  • Reading the mode as 6, the largest number in the f column. That 6 is how often the mode happened, not the mode itself. The mode is the value that happened most often, which is the x beside that frequency, 2 goals.
03

Journeys to Work Grouped into Classes: the Modal Class and an Estimated Mean

methodTake the Middle of Each Class as the Value for Everyone in It, Then Bound the Answer with the Two Ends of the Classes

A company asked all 40 of its staff how long the journey to work takes. Writing the time as m minutes, the answers were 0 < m ≤ 10 for 4 staff, 10 < m ≤ 20 for 10 staff, 20 < m ≤ 30 for 14 staff, 30 < m ≤ 40 for 8 staff and 40 < m ≤ 50 for 4 staff. (a) Write down the modal class and estimate the mean journey time. (b) Explain why that mean is only an estimate, and find the smallest and the largest value the true mean could have.

minutesmiddle xstaff ff x0 to 105410 to 20151020 to 30251430 to 4035840 to 50454totalthe middle of 20 to 30 is 25
Each class is replaced by the time at its middle: 5, 15, 25, 35 and 45 minutes.
Write down the middle of each class, halfway between its two ends: 5, 15, 25, 35 and 45 minutes.
step 1 of 5

Once the times have been grouped, no individual time is left in the table, so the mean cannot be found exactly. The standard estimate gives everyone in a class the value at the middle of that class, and then the calculation is an ordinary frequency-table mean. The modal class needs no arithmetic at all: it is the class with the largest frequency, and it is an interval, not a single time.

  1. Write down the middle of each class, halfway between its two ends: 5, 15, 25, 35 and 45 minutes.
  2. Multiply each middle by its frequency: 5 × 4 = 20, 15 × 10 = 150, 25 × 14 = 350, 35 × 8 = 280 and 45 × 4 = 180.
  3. (a) The largest frequency is 14, so the modal class is 20 < m ≤ 30 minutes. The totals are 40 staff and 20 + 150 + 350 + 280 + 180 = 980 minutes, so the estimated mean is 980 ÷ 40 = 24.5 minutes.
  4. The estimate is only an estimate because every time was replaced by the middle of its class. To see how far out it could be, give everyone the lowest time their class allows: 0 × 4 + 10 × 10 + 20 × 14 + 30 × 8 + 40 × 4 = 780, and 780 ÷ 40 = 19.5 minutes.
  5. (b) Now give everyone the highest time their class allows: 10 × 4 + 20 × 10 + 30 × 14 + 40 × 8 + 50 × 4 = 1180, and 1180 ÷ 40 = 29.5 minutes. The true mean therefore lies between 19.5 and 29.5 minutes, and 24.5 minutes is the estimate exactly halfway between those bounds.

answer(a) the modal class is 20 < m ≤ 30 minutes and the estimated mean is 24.5 minutes; (b) the mean is an estimate because each time was replaced by the middle of its class, and the true mean lies between 19.5 and 29.5 minutes

techniqueMean of Grouped Data · The Modal Class

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Giving the modal class as 14. That is the frequency of the modal class, not the class itself. The answer to a modal class question is an interval of times, here 20 < m ≤ 30 minutes.
  • Estimating the mean by averaging the five class middles, 5 + 15 + 25 + 35 + 455 = 25. That treats the five classes as equally busy when one of them holds 14 staff and another holds 4. Each middle has to be weighted by its own frequency.
04

A Missing Frequency in a Shop's Records, Recovered from a Stated Mean

methodWrite the Total and the Number of Days in Terms of the Unknown Frequency, Then Set Total over Days Equal to the Mean

A shop recorded the number of bicycles it sold each day. It sold 0 bicycles on 4 days, 1 bicycle on 6 days, 2 bicycles on 9 days, 3 bicycles on k days and 4 bicycles on 5 days. The mean number sold in a day was exactly 2 bicycles. (a) Find k. (b) Find the median number sold in a day, and say on how many days the shop sold more than the mean.

bikes xdays ff x0416293k45totalk days are unknown, and they count
The unknown k stands in the f column, so it counts in the days as well as in the bicycles.
Count the days in terms of k: 4 + 6 + 9 + k + 5 = 24 + k days.
step 1 of 6

The mean is the total number of bicycles divided by the number of days, and both of those can be written in terms of the unknown frequency k. Setting that quotient equal to the stated mean gives one equation in k, and clearing the fraction leaves a linear equation to solve. Once k is known the table is complete and the median can be counted out in the ordinary way.

  1. Count the days in terms of k: 4 + 6 + 9 + k + 5 = 24 + k days.
  2. Count the bicycles in the same way: 0 × 4 + 1 × 6 + 2 × 9 + 3 × k + 4 × 5 = 6 + 18 + 3k + 20 = 44 + 3k bicycles.
  3. The mean is the bicycles divided by the days, and that is 2, so 44 + 3k24 + k = 2. Multiply both sides by 24 + k: 44 + 3k = 2(24 + k) = 48 + 2k.
  4. (a) Subtract 2k from both sides and then 44: k = 4. Check: the shop traded on 24 + 4 = 28 days and sold 44 + 12 = 56 bicycles, and 56 ÷ 28 = 2 as stated.
  5. For the median there are 28 days, so it lies halfway between the 14th and the 15th. Counting along the frequencies, 4 days sold none, 4 + 6 = 10 days sold 1 or fewer and 10 + 9 = 19 days sold 2 or fewer. The 11th to the 19th days all sold 2, so the 14th and the 15th are both 2 and the median is 2 bicycles.
  6. (b) More than the mean of 2 means 3 or 4 bicycles, which is 4 + 5 = 9 days. The median is 2 bicycles and the shop beat its mean on 9 of the 28 days.

answer(a) k = 4, so the shop traded on 28 days and sold 56 bicycles; (b) the median is 2 bicycles and the shop sold more than the mean on 9 days

techniqueFinding a Frequency from the Mean · Averages from a Frequency Table

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Forgetting that k appears in the divisor as well as in the total, and solving 44 + 3k = 2 × 24. The unknown days are days like any other: they count in the number of days the mean is taken over, so 24 + k is the divisor.
  • Answering the median as 0 + 42 = 2 from the values in the first column. That the answer agrees here is a coincidence of this table. The median is the middle of the 28 days, so the frequencies have to be counted along.
05

Exam Marks on a Cumulative Frequency Curve: the Median, the Quartiles and the Mark for a Distinction

methodGo In on the Cumulative Frequency Axis at the Student You Want, Across to the Curve and Down to the Mark

The 80 students who sat a test marked out of 100 had these cumulative frequencies: 10 marks or fewer, 2 students; 20 or fewer, 8; 30 or fewer, 14; 40 or fewer, 26; 50 or fewer, 40; 60 or fewer, 54; 70 or fewer, 64; 80 or fewer, 72; 90 or fewer, 78; 100 or fewer, 80. (a) Draw the cumulative frequency curve and use it to find the median mark and the interquartile range. (b) The top 10% of the students are given a distinction. Find the lowest mark that earns one.

020406080020406080100students at or below the markmarkseach point is plotted at the TOP of its class
Each point is plotted at the top of its class, because only there are all the students of that class counted.
Plot the points (10, 2), (20, 8), (30, 14), (40, 26), (50, 40), (60, 54), (70, 64), (80, 72), (90, 78) and (100, 80), starting from (0, 0), and join them with a smooth curve. Each point is plotted at the top of its class, because only then are all the students counted.
step 1 of 5

A cumulative frequency curve plots each upper class boundary against the number of students at or below it, so every reading answers the question "how many students are below this mark?". To find a mark, go in on the cumulative frequency axis at the student you want, across to the curve and down to the mark. The median is the n2th student, the quartiles are the n4th and the 3n4th, and a percentile is found the same way from the count that matches it.

  1. Plot the points (10, 2), (20, 8), (30, 14), (40, 26), (50, 40), (60, 54), (70, 64), (80, 72), (90, 78) and (100, 80), starting from (0, 0), and join them with a smooth curve. Each point is plotted at the top of its class, because only then are all the students counted.
  2. The median is the mark of the 802 = 40th student. Go in at 40 on the cumulative frequency axis, across to the curve and down: the mark is 50.
  3. The lower quartile is the 804 = 20th student and the upper quartile is the 3 × 804 = 60th. Reading across at 20 gives 35 marks, and reading across at 60 gives 66 marks.
  4. (a) The median is 50 marks, and the interquartile range is 66 − 35 = 31 marks. The middle half of the students scored between 35 and 66.
  5. (b) The top 10% of 80 students is 8 students, so 80 − 8 = 72 students are below them. Read across at 72 and down: the mark is 80. A student needs 80 marks for a distinction. Check: the table says 72 students scored 80 or fewer, so exactly 8 scored more.

answer(a) the median is 50 marks and the interquartile range is 66 − 35 = 31 marks; (b) the lowest mark that earns a distinction is 80

techniqueQuartiles from the Curve · Cumulative Frequency · Percentiles

examsO-Level · GCSE Higher

Common pitfalls

  • Reading the top 10% by going in at 10 on the cumulative frequency axis, which gives the mark that the bottom 10 students are below. The curve always counts from the bottom, so a question about the top of the list must first be turned into a count from the bottom, here 80 − 8 = 72.
  • Plotting each frequency against the middle of its class instead of the top. A cumulative frequency of 26 means 26 students scored 40 or fewer, not 35 or fewer, so the point belongs at the upper boundary of the class.
06

Two Bus Routes with the Same Mean Journey Time, Compared by Their Spread

methodWhen the Averages Agree, Decide on the Spread: Compare the Interquartile Ranges of the Two Sets

Two bus routes run from a town to the same station, and a commuter times the journey on nine days. Route A took 28, 29, 29, 30, 30, 30, 31, 31 and 32 minutes. Route B took 22, 25, 27, 29, 30, 31, 33, 35 and 38 minutes. (a) Show that the two routes have the same mean and the same median, and find the interquartile range of each. (b) The commuter must not be late for work. Which route should be taken, and why?

2025303540ABnine journeys on each route, one scale
The nine journeys on each route, drawn on one scale in minutes. Route A is packed and route B is spread out.
Both lists are already in order. Add each one: route A gives 28 + 29 + 29 + 30 + 30 + 30 + 31 + 31 + 32 = 270 and route B gives 22 + 25 + 27 + 29 + 30 + 31 + 33 + 35 + 38 = 270. With 9 days each, both means are 270 ÷ 9 = 30 minutes.
step 1 of 5

An average on its own says where a set of values sits, and nothing at all about how tightly they are packed around it. Two sets can share a mean and a median and still behave quite differently, so the second measure is a measure of spread. The interquartile range is the width of the middle half of the values, from the lower quartile to the upper quartile, and it ignores the extremes at both ends.

  1. Both lists are already in order. Add each one: route A gives 28 + 29 + 29 + 30 + 30 + 30 + 31 + 31 + 32 = 270 and route B gives 22 + 25 + 27 + 29 + 30 + 31 + 33 + 35 + 38 = 270. With 9 days each, both means are 270 ÷ 9 = 30 minutes.
  2. With 9 times in order the median is the 5th. For route A that is 30 minutes and for route B it is 30 minutes, so the medians agree as well. Neither average separates the two routes.
  3. The lower quartile is the median of the four times below the middle one. Route A: 29 + 292 = 29 minutes. Route B: 25 + 272 = 26 minutes.
  4. (a) The upper quartile is the median of the four times above the middle one. Route A: 31 + 312 = 31 minutes, so its interquartile range is 31 − 29 = 2 minutes. Route B: 33 + 352 = 34 minutes, so its interquartile range is 34 − 26 = 8 minutes.
  5. (b) Take route A. The two routes average the same 30 minutes, but the middle half of route A's journeys covers only 2 minutes while route B's covers 8. The ranges tell the same story: 32 − 28 = 4 minutes against 38 − 22 = 16 minutes, and a 38 minute journey on route B would make the commuter late.

answer(a) both routes have a mean of 30 minutes and a median of 30 minutes; route A has an interquartile range of 2 minutes and route B one of 8 minutes; (b) route A, because its times are packed far more tightly around the same average

techniqueRange and IQR · Measures of Spread · Comparing Data Sets

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Deciding between the routes on the means alone and calling them equally good. The means are equal, which is exactly why they cannot decide anything here. A question about being on time is a question about the spread of the times, not about their center.
  • Taking the quartiles as the 94th and 274th values and rounding to the 2nd and the 7th. With an odd number of values, split the list at the median, leave the median out, and take the middle of each half; here each half has four values, so each quartile is the mean of two of them.
07

Two Box Plots of Race Times on One Scale

methodRead the Five Numbers Off Each Box, Then Compare the Two Halves of a Box to Judge Whether It Is Symmetric

Two running clubs entered the same 10 km race. The times, in minutes, are summarized as five numbers for each club. Club A: smallest 38, lower quartile 44, median 48, upper quartile 52, largest 58. Club B: smallest 36, lower quartile 40, median 43, upper quartile 55, largest 70. (a) Draw the two box plots on the same scale and compare the times of the two clubs. (b) One of the two sets of times is roughly symmetric and the other is not. Say which is which, and give the figures that show it.

3540455055606570ABone scale in minutes for both clubs
Each box runs from the lower quartile to the upper quartile, with the median inside it and the whiskers out to the fastest and the slowest time.
Draw one scale in minutes long enough for both clubs, from about 35 to 70. For each club draw the box from the lower quartile to the upper quartile, mark the median inside it, and draw the whiskers out to the smallest and the largest time.
step 1 of 5

A box plot draws the five-number summary: the box runs from the lower quartile to the upper quartile with the median marked inside it, and the whiskers reach out to the smallest and the largest value. Drawn on one scale, two box plots can be compared at a glance, and the shape of a single box answers a different question: if the median sits in the middle of its box and the whiskers are about equal, the values are roughly symmetric about the middle.

  1. Draw one scale in minutes long enough for both clubs, from about 35 to 70. For each club draw the box from the lower quartile to the upper quartile, mark the median inside it, and draw the whiskers out to the smallest and the largest time.
  2. The interquartile ranges come straight off the boxes: club A has 52 − 44 = 8 minutes and club B has 55 − 40 = 15 minutes.
  3. (a) Club B has the lower median, 43 minutes against club A's 48 minutes, so a typical club B runner is faster. Club A's interquartile range is 8 minutes against club B's 15, so club A's runners are much more alike; the slowest club B runner took 70 minutes, 12 minutes behind the slowest in club A.
  4. For club A, compare the two halves of the box: 48 − 44 = 4 minutes below the median and 52 − 48 = 4 minutes above it. The whiskers match too, 44 − 38 = 6 minutes and 58 − 52 = 6 minutes.
  5. (b) Club A is roughly symmetric, because each half of its box is 4 minutes wide and each whisker is 6 minutes long. Club B is not: its box is 43 − 40 = 3 minutes wide below the median and 55 − 43 = 12 minutes wide above it, and the upper whisker runs 70 − 55 = 15 minutes against 40 − 36 = 4 minutes at the other end, so club B's times are stretched toward the slow end.

answer(a) club A has a median of 48 minutes and an interquartile range of 8 minutes, club B a median of 43 minutes and an interquartile range of 15 minutes, so club B is faster in the middle and club A is far more consistent; (b) club A is roughly symmetric, with 4 minutes on each side of its median and whiskers of 6 minutes, while club B is stretched toward the slow end, with 3 minutes below its median against 12 minutes above it

techniqueBox and Whisker · Judging Normality from a Box Plot · Comparing Data Sets

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Reading the longer box of club B as "club B is slower". The width of a box is a spread, not a position. Club B's median is lower than club A's, so its typical runner is faster; the wide box says its runners differ from one another more.
  • Judging symmetry from the whiskers alone. A long upper whisker can be one slow runner. The quartiles hold the middle half of the club, so the two halves of the box, 3 minutes against 12 minutes here, are the stronger evidence, and the whiskers then confirm it.
08

Two Bottle-Filling Machines with the Same Mean Weight and Different Standard Deviations

methodSquare Each Distance from the Mean, Average the Squares over All the Items, and Take the Square Root

Two machines fill bottles that should hold 500 g. Five bottles are weighed from each machine. Machine A gave 497, 499, 500, 501 and 503 g. Machine B gave 494, 498, 500, 502 and 506 g. (a) Show that the two machines have the same mean weight, and find the standard deviation of each set of five bottles, dividing by the number of bottles. (b) A bottle is rejected when its weight differs from 500 g by more than 5 g. How many of the ten bottles are rejected, and which machine should be serviced?

A, g(A − 500)2B, g(B − 500)249749449949850050050150250350625002500both machines total 2500 g2500 divided by 5 = 500 g each
Both machines total 2500 g over 5 bottles, so both means are 500 g.
Find each mean. Machine A: 497 + 499 + 500 + 501 + 503 = 2500, and 2500 ÷ 5 = 500 g. Machine B: 494 + 498 + 500 + 502 + 506 = 2500, and 2500 ÷ 5 = 500 g. Both machines average the target weight exactly.
step 1 of 5

The standard deviation measures how far the values sit from their own mean. Each distance from the mean is squared, so that a weight below the mean counts as much as one above it, the squares are averaged over the number of bottles, and the square root turns the answer back into grams. Two machines can hit the target on average and still behave very differently, and the standard deviation is what separates them.

  1. Find each mean. Machine A: 497 + 499 + 500 + 501 + 503 = 2500, and 2500 ÷ 5 = 500 g. Machine B: 494 + 498 + 500 + 502 + 506 = 2500, and 2500 ÷ 5 = 500 g. Both machines average the target weight exactly.
  2. Machine A, distance from the mean and its square: −3 gives 9, −1 gives 1, 0 gives 0, 1 gives 1 and 3 gives 9. The squares total 9 + 1 + 0 + 1 + 9 = 20, so the variance is 20 ÷ 5 = 4 and the standard deviation is √4 = 2 g.
  3. Machine B, the same two columns: −6 gives 36, −2 gives 4, 0 gives 0, 2 gives 4 and 6 gives 36. The squares total 36 + 4 + 0 + 4 + 36 = 80, so the variance is 80 ÷ 5 = 16 and the standard deviation is √16 = 4 g.
  4. (a) Both means are 500 g. Machine A has a standard deviation of 2 g and machine B one of 4 g, so machine B's weights sit twice as far from the target on average.
  5. (b) A bottle is kept when it weighs between 495 g and 505 g. Machine A's lightest bottle is 497 g and its heaviest is 503 g, so all five are kept. Machine B's 494 g and 506 g bottles are outside the limits, so 2 bottles are rejected, both from machine B, and machine B is the machine to service. Check: every rejected bottle is more than one standard deviation of machine B from the target, and machine A's whole range, 497 g to 503 g, sits inside the limits.

answer(a) both machines have a mean of 500 g, and the standard deviations are 2 g for machine A and 4 g for machine B; (b) 2 bottles are rejected, both from machine B, so machine B should be serviced

techniqueStandard Deviation: Ungrouped · Standard Deviation · Comparing Data Sets

examsO-Level · SAT

Common pitfalls

  • Adding the distances from the mean without squaring them. For machine A those distances are −3, −1, 0, 1 and 3, which add to 0, and the same happens for every data set: the distances below the mean cancel the distances above it exactly. Squaring is what stops the cancellation.
  • Forgetting the square root and calling 16 the standard deviation of machine B. The squares are in square grams, so 16 is the variance. The standard deviation is √16 = 4 g, and only that can be compared with a tolerance measured in grams.
09

The Life of a Batch of Batteries, Grouped: an Estimated Mean and Standard Deviation

methodTreat Each Class Middle as a Value Repeated f Times, and Average the Squared Distances with the Same Frequencies

A laboratory tested 30 batteries and grouped the life, h hours, of each: 8 < h ≤ 12 for 2 batteries, 12 < h ≤ 16 for 7, 16 < h ≤ 20 for 12, 20 < h ≤ 24 for 7 and 24 < h ≤ 28 for 2. (a) Estimate the mean life and the standard deviation, dividing by the number of batteries. (b) Estimate how many of the 30 batteries last within one standard deviation of the mean, taking the lives to be spread evenly inside each class.

hoursmiddle xff x8 to 1210212 to 1614716 to 20181220 to 2422724 to 28262totalthe middle of 16 to 20 is 18 hours
Each class is replaced by the life at its middle: 10, 14, 18, 22 and 26 hours.
Write down the middle of each class: 10, 14, 18, 22 and 26 hours.
step 1 of 6

Grouped data is handled by giving every battery in a class the value at the middle of that class, so a class of 7 batteries becomes the same middle value counted 7 times. The mean is then the usual frequency-table mean, and the variance is the average of the squared distances from that mean, again weighted by the frequencies. Everything that follows is an estimate, because the individual lives are gone.

  1. Write down the middle of each class: 10, 14, 18, 22 and 26 hours.
  2. Multiply each middle by its frequency: 10 × 2 = 20, 14 × 7 = 98, 18 × 12 = 216, 22 × 7 = 154 and 26 × 2 = 52. The totals are 30 batteries and 20 + 98 + 216 + 154 + 52 = 540 hours, so the estimated mean is 540 ÷ 30 = 18 hours.
  3. Now the distance of each middle from the mean, and its square times the frequency: 10 − 18 = −8, and 2 × 64 = 128; 14 − 18 = −4, and 7 × 16 = 112; 18 − 18 = 0, and 12 × 0 = 0; 22 − 18 = 4, and 7 × 16 = 112; 26 − 18 = 8, and 2 × 64 = 128.
  4. (a) Those products total 128 + 112 + 0 + 112 + 128 = 480, so the variance is 480 ÷ 30 = 16 and the standard deviation is √16 = 4 hours. The estimated mean is 18 hours.
  5. One standard deviation each side of the mean runs from 18 − 4 = 14 hours to 18 + 4 = 22 hours. The class 12 < h ≤ 16 is 4 hours wide and half of it lies in that range, which is half of 7, or 3.5 batteries. The class 16 < h ≤ 20 lies inside it completely, which is 12 batteries. Half of the class 20 < h ≤ 24 lies in it, another 3.5 batteries.
  6. (b) That gives 3.5 + 12 + 3.5 = 19 batteries, so about 19 of the 30 last within one standard deviation of the mean. Check: that is a little under two thirds of the batch, which is what a single peaked batch usually gives.

answer(a) the estimated mean is 18 hours and the standard deviation is 4 hours; (b) about 19 of the 30 batteries

techniqueStandard Deviation: Grouped · Mean of Grouped Data

examsO-Level · SAT

Common pitfalls

  • Averaging the five squared distances without their frequencies: 64 + 16 + 0 + 16 + 645 = 32. That counts the class holding 12 batteries no more heavily than the class holding 2. Each squared distance must be multiplied by its own frequency, and the total divided by 30.
  • Counting the whole of the class 12 < h ≤ 16 as lying within one standard deviation of the mean. Only the part from 14 to 16 hours does, which is half the width of the class, so on an even spread only half of its 7 batteries are counted.
10

A Market Stall's Daily Takings, and the Average Distance from the Mean

methodTake the Distance of Each Value from the Mean Without Its Sign, and Average Those Distances

A market stall took $190, $210, $230, $270, $290 and $310 on the six days it opened last week. (a) Find the mean of the takings and the mean absolute deviation. (b) The stall holder calls a day unusual when the takings are further from the mean than the mean absolute deviation is. How many of the six days were unusual?

$190$210$230$270$290$310mean $250200250300six days, and the mean they are measured from
The six days on one scale, with the mean drawn through them.
Find the mean first, because every distance is measured from it: 190 + 210 + 230 + 270 + 290 + 310 = 1500, and 1500 ÷ 6 = $250.
step 1 of 5

The mean absolute deviation is the plainest measure of spread there is: the average distance of the values from their own mean. Each distance is taken without its sign, because a day $60 below the mean is as far from it as a day $60 above. Nothing is squared and no square root is needed, so the answer stays in dollars and can be read as "a typical day is this far from the mean".

  1. Find the mean first, because every distance is measured from it: 190 + 210 + 230 + 270 + 290 + 310 = 1500, and 1500 ÷ 6 = $250.
  2. Take the distance of each day's takings from $250, ignoring the sign: 60, 40, 20, 20, 40 and 60 dollars.
  3. (a) Those distances total 60 + 40 + 20 + 20 + 40 + 60 = 240, so the mean absolute deviation is 240 ÷ 6 = $40. The mean is $250 and on a typical day the takings are about $40 from it. Check: the three days above the mean are 20 + 40 + 60 = $120 above it in total and the three below are $120 below it, so the distances must total 2 × 120 = 240.
  4. A day is unusual when its distance from $250 is more than $40. Comparing the six distances with 40: 60 is more, 40 is not more, 20 is not, 20 is not, 40 is not and 60 is more.
  5. (b) So 2 of the 6 days were unusual, the $190 day and the $310 day, each $60 from the mean. The other four days were $40 or less from it.

answer(a) the mean is $250 and the mean absolute deviation is $40; (b) 2 of the 6 days were unusual

techniqueMean Absolute Deviation · Measures of Spread

examsO-Level · SAT

Common pitfalls

  • Adding the distances with their signs: −60 − 40 − 20 + 20 + 40 + 60 = 0. That is true of every data set, because the mean sits exactly at the balance point of the values. The signs have to be dropped before the distances are added.
  • Counting the two $40 days as unusual as well. Their distance from the mean equals the mean absolute deviation, and the stall holder's rule asks for a distance greater than it, so only the two $60 days qualify.
11

Two Clinics Where One Recovers More of Both Kinds of Case and Fewer Cases in All

methodWork Out Each Rate Within Its Own Group First, Then Show That the Overall Rates Are Weighted by the Mix of Cases

Two clinics treat the same illness, and every case is recorded as mild or severe. Clinic A treated 200 mild cases, of which 160 recovered, and 50 severe cases, of which 10 recovered. Clinic B treated 50 mild cases, of which 45 recovered, and 200 severe cases, of which 60 recovered. (a) Find the recovery rate of each clinic for mild cases, for severe cases and for all of its cases. (b) Which clinic would you send a patient to, and explain how one clinic can recover a greater share of both kinds of case and still have the lower overall rate.

050100mildrecovered, per centclinic AB80%90%mild: 160/200 against 45/5080% against 90%: B is ahead
Mild cases: clinic A recovered 160200 = 80% and clinic B recovered 4550 = 90%.
Mild cases: clinic A recovered 160200 = 80% and clinic B recovered 4550 = 90%. Clinic B is ahead.
step 1 of 5

A rate is always a rate out of something, and the something matters. Within a group the comparison is straightforward: divide the recoveries by the cases of that kind. The overall rate of a clinic is not the average of its two group rates; it is a weighted average, weighted by how many cases of each kind the clinic treated. When the two clinics treat very different mixes of cases, the overall comparison can point the opposite way from both of the group comparisons.

  1. Mild cases: clinic A recovered 160200 = 80% and clinic B recovered 4550 = 90%. Clinic B is ahead.
  2. Severe cases: clinic A recovered 1050 = 20% and clinic B recovered 60200 = 30%. Clinic B is ahead again.
  3. (a) All cases: clinic A recovered 160 + 10 = 170 of its 250 patients, which is 170250 = 68%, and clinic B recovered 45 + 60 = 105 of its 250, which is 105250 = 42%. So clinic B leads on mild cases and on severe cases, and trails badly overall.
  4. The reason is the mix. Severe cases recover far less often at either clinic, and clinic B treats 200 of them against clinic A's 50, while clinic A's work is 200 mild cases against clinic B's 50. Each overall rate is pulled toward the rate of the kind of case that clinic mostly sees.
  5. (b) Send the patient to clinic B, because whichever kind of case the patient turns out to be, clinic B recovers a greater share of them. Check by giving clinic B clinic A's mix of cases: 200 mild at 90% is 180 recoveries and 50 severe at 30% is 15, a total of 195 out of 250, which is 78%, well above clinic A's 68%.

answer(a) clinic A recovered 80% of its mild cases, 20% of its severe cases and 68% of all its cases; clinic B recovered 90%, 30% and 42%; (b) clinic B, because it recovers a greater share of both kinds of case, and its overall rate is lower only because 200 of its 250 cases were severe while 200 of clinic A's were mild, and on clinic A's mix of cases clinic B would recover 78%

techniqueSimpson’s Paradox · Comparing Data Sets

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Finding a clinic's overall rate by averaging its two group rates, as 90 + 302 = 60% for clinic B. That would only be right if the clinic treated the same number of mild and severe cases. Clinic B treated four times as many severe cases, so its overall rate must be counted from the totals, 105250 = 42%.
  • Taking the overall figures as the answer because they use the most patients. The two clinics are not seeing the same kind of work, so the overall figures compare clinic B's severe cases with clinic A's mild ones. A comparison is only fair within a group, and clinic B wins both groups.
12

Shoe Sizes Sold in a Week, and the Average a Shop Can Actually Order From

methodWork Out All Three Averages, Then Keep the One That Names a Size the Shop Can Buy

A shoe shop records the sizes it sold in a week: size 5, 4 pairs; size 6, 8 pairs; size 7, 14 pairs; size 8, 20 pairs; size 9, 10 pairs; size 10, 4 pairs. (a) Find the mean, the median and the modal size. (b) The shop will order 120 pairs for next week in the same proportions. How many of them should be size 8, and which of the three averages is of use in placing the order?

010205678910pairs sold48142010460 pairs in all, 456 when weighted by size
The week's sales: 60 pairs in all, and 456 once each size is weighted by the pairs sold.
Total the pairs: 4 + 8 + 14 + 20 + 10 + 4 = 60 pairs. Then multiply each size by its frequency: 5 × 4 = 20, 6 × 8 = 48, 7 × 14 = 98, 8 × 20 = 160, 9 × 10 = 90 and 10 × 4 = 40, which total 456.
step 1 of 5

All three averages can be worked out from a frequency table, but only one of them names something a shop can buy. The mean of a set of sizes need not be a size at all; the median and the mode always are, because both are values that actually occurred. Once the modal size is known, the order is a proportion: the share of the sales that size took, applied to the number of pairs being ordered.

  1. Total the pairs: 4 + 8 + 14 + 20 + 10 + 4 = 60 pairs. Then multiply each size by its frequency: 5 × 4 = 20, 6 × 8 = 48, 7 × 14 = 98, 8 × 20 = 160, 9 × 10 = 90 and 10 × 4 = 40, which total 456.
  2. The mean size is 456 ÷ 60 = 7.6.
  3. (a) For the median, 60 pairs put it halfway between the 30th and the 31st. Counting along the frequencies, 4, then 12, then 26, then 46 pairs are reached, so the 27th to the 46th pairs were all size 8 and the median is size 8. The largest frequency is 20, at size 8, so the modal size is 8 as well. The mean is 7.6, the median is 8 and the mode is 8.
  4. Size 8 took 20 of the 60 pairs sold, which is 2060 = 13 of the week's sales. Keeping the same proportions, the order should hold 13 of 120 pairs in size 8.
  5. (b) 13 × 120 = 40 pairs of size 8. The mode is the average of use here, because 7.6 is not a size any shoe is made in and no pair of that size could be ordered. Check: ordering every size in the same proportion doubles each frequency, and 2 × 20 = 40.

answer(a) over the 60 pairs sold the mean is 7.6, the median is size 8 and the modal size is 8; (b) 40 pairs of size 8, and the mode is the average of use, because no shoe is made in size 7.6

techniqueMedian and Mode · Measures of Central Tendency · Averages from a Frequency Table

examsO-Level · SAT · GCSE Higher

Common pitfalls

  • Ordering to the mean and asking for size 7.6, or rounding it to size 8 and calling that the answer. A mean of sizes is an average of numbers, not a size, and rounding it only happens to land on the right size here. The mode is the size the shop actually sold most of.
  • Taking the median as size 7 because 7 is the middle of the six sizes listed. The list of sizes is not the data; the data is 60 pairs of shoes, and the median is the middle of those 60 pairs, which the frequencies have to be counted along to find.
Mr. Chalk Read the guide