Statistics
Averages, frequency tables, charts and scatter graphs, then the Extended topics: quartiles, cumulative frequency, box plots and histograms. Every method has a diagram and a worked example, so you can see what to do before you try it.
mentorriyaz.in
In 30 seconds
- Mean = total ÷ number of values. Median = middle value of the ordered data. Mode = most common. Range = largest − smallest. The median is the safest average when there are outliers.
- Tables and charts: for a frequency table use f × x to find the mean, and for grouped data use midpoints (the answer is an estimate). A pie chart angle is frequency ÷ total × 360°.
- Extended: IQR = Q3 − Q1. On a cumulative frequency graph read at ¼n, ½n and ¾n. In a histogram the area of a bar is the frequency, so the height is frequency density = frequency ÷ class width. EXT
By the end you can
- Calculate the mean, median, mode and range from a list, a frequency table and a grouped table.
- Choose the most suitable average and explain why.
- Draw and read bar charts, pie charts and stem-and-leaf diagrams.
- Describe correlation, draw a line of best fit and use it to make predictions.
- Find quartiles and the interquartile range from a list. EXT
- Draw and use cumulative frequency graphs and box plots to estimate and compare. EXT
- Draw and read histograms with unequal class widths. EXT
1Averages and spread
Types of data
Categorical data — described in words or categories, such as eye colour or favourite sport.
Discrete data — numbers you count, so only certain values are possible, such as the number of siblings or shoe size.
Continuous data — numbers you measure, which can take any value in a range, such as height, mass or time.
| Type | How you get it | Examples |
|---|---|---|
| Categorical | sort into named groups | eye colour, type of transport |
| Discrete | count | goals scored, number of pets |
| Continuous | measure | height, time, mass |
- Grouped tables use continuous classes for measured data, written like 10 < x ≤ 20. A value of exactly 10 goes in the class before.
- A small sample is not reliable. If a question asks you to comment on a conclusion from a few results, say that the sample is too small to be sure.
Mean, median, mode and range
Mean — the total of all the values divided by how many values there are.
Median — the middle value when the data is in order. For an even number of values, take the mean of the two middle values.
Mode — the value that occurs most often. There can be two modes, or none at all.
Range — largest value − smallest value. It measures spread, and it is not an average.
- Always put the data in order before finding the median. This is the most common way to lose marks.
- Check your mean. It must lie between the smallest and largest values.
- Reverse problems: total = mean × number of values. Use it to find a missing value or to combine groups.
Find the mean, median, mode and range of 7, 3, 9, 3, 12, 5, 8, 3.
- total = 7 + 3 + 9 + 3 + 12 + 5 + 8 + 3 = 50, so mean = 50 ÷ 8 = 6.25
- in order: 3, 3, 3, 5, 7, 8, 9, 12
- median = (5 + 7) ÷ 2 = 6
- mode = 3
- range = 12 − 3 = 9
The mean of five numbers is 12. Four of them are 8, 10, 15 and 11. Find the fifth.
- total of all five = 5 × 12 = 60
- total of the four = 8 + 10 + 15 + 11 = 44
- fifth number = 60 − 44 = 16
8 students have a mean mark of 62 and 12 students have a mean mark of 72. Find the mean of all 20 students.
- total of the first group = 8 × 62 = 496
- total of the second group = 12 × 72 = 864
- total = 1360
- mean = 1360 ÷ 20 = 68
Aisha has a mean of 70 after 4 tests. What must she score in the fifth test to have a mean of 72 after 5 tests?
- total needed = 5 × 72 = 360
- total so far = 4 × 70 = 280
- fifth test = 360 − 280 = 80
Choosing the best average
Outlier — a value that is much larger or smaller than the rest of the data.
| Average | Best used when | Weakness |
|---|---|---|
| Mean | the data has no extreme values | pulled towards outliers |
| Median | there are outliers or the data is skewed | does not use every value |
| Mode | you want the most popular choice, or the data is categorical | there may be no mode, or more than one |
- The mean uses every value, so one extreme value changes it a lot. The median only depends on the middle.
- Use the mode for "most popular" or "most common", such as the shoe size a shop should stock most of.
- Give a reason in context. "The median is better because the salary of 95 000 is an outlier" gets the mark. "It is better" does not.
The salaries at a small firm are 18 000, 20 000, 21 000, 22 000, 24 000 and 95 000. Find the mean and the median. Which gives a better idea of a typical salary?
- total = 18 000 + 20 000 + 21 000 + 22 000 + 24 000 + 95 000 = 200 000
- mean = 200 000 ÷ 6 = 33 333 to the nearest whole number
- median = (21 000 + 22 000) ÷ 2 = 21 500
- the median is better because 95 000 is an outlier, and five of the six people earn much less than the mean
2Frequency tables
Ungrouped frequency tables
- Mode = the value with the largest frequency, not the largest frequency itself. In the diagram the mode is 3, not 10.
- Range = largest value − smallest value. Use the x column.
- f × x gives the total of each row. Add the column to get the total of all the data.
The number of goals in 20 matches is shown. 0 goals: 3 matches, 1 goal: 6, 2 goals: 7, 3 goals: 3, 4 goals: 1. Find the mean, median, mode and range.
- Σf = 3 + 6 + 7 + 3 + 1 = 20
- Σ(f × x) = 0 + 6 + 14 + 9 + 4 = 33, so mean = 33 ÷ 20 = 1.65
- cumulative frequency: 3, 9, 16, 19, 20
- the 10th and 11th values are both in the row for 2 goals, so median = 2
- mode = 2 (largest frequency 7)
- range = 4 − 0 = 4
A frequency table has x = 1, 2, 3, 4 with frequencies 5, k, 6 and 4. The mean is 2.5. Find k.
- Σf = 5 + k + 6 + 4 = 15 + k
- Σ(f × x) = 5 + 2k + 18 + 16 = 39 + 2k
- mean: (39 + 2k) ÷ (15 + k) = 2.5
- 39 + 2k = 37.5 + 2.5k, so 1.5 = 0.5k
- k = 3
- check: Σf = 18, Σ(f × x) = 45 and 45 ÷ 18 = 2.5
Grouped frequency tables
Modal class — the class with the largest frequency. It is not a single value.
Median class — the class that contains the median. Find it with the cumulative frequency.
- It is only an estimate because you do not know the exact values. You assume they are all at the midpoint.
- For the median class with 40 values, the median is halfway between the 20th and 21st values.
- Check your answer. The estimated mean must lie inside the range of the classes, usually near the modal class.
The heights of 50 plants are grouped. 0 < h ≤ 10: 6 plants, 10 < h ≤ 20: 14, 20 < h ≤ 30: 18, 30 < h ≤ 40: 12. Estimate the mean, and give the modal class and the median class.
- midpoints are 5, 15, 25 and 35
- Σ(f × midpoint) = 30 + 210 + 450 + 420 = 1110
- estimated mean = 1110 ÷ 50 = 22.2
- modal class = 20 < h ≤ 30 (frequency 18)
- 25th and 26th values: cumulative frequency is 6, 20, 38, so the median class is 20 < h ≤ 30
3Charts and diagrams
Bar charts and pie charts
- Bar charts: equal-width bars with equal gaps, a scale that starts at 0, and labels on both axes.
- Pictograms: each symbol stands for a number of items, so always read the key. A half symbol is half of that number.
- Pie charts show proportions. You can only find real frequencies if you know the total, or one sector and its angle.
- Check: all the angles in a pie chart must add up to 360°.
120 students choose how they travel to school and 54 choose the bus. Find the angle for the bus sector.
- angle = 54 ÷ 120 × 360°
- = 0.45 × 360° = 162°
In a pie chart a 60° sector shows 18 students. How many students are there in total, and how many are in a 100° sector?
- 60° is 18 students, so 1° is 18 ÷ 60 = 0.3 students
- total = 360 × 0.3 = 108 students
- 100° sector = 100 × 0.3 = 30 students
Stem-and-leaf diagrams
- Order the leaves from smallest to largest, going away from the stem.
- Write a key such as "2 | 3 means 23 years". Without it you lose a mark.
- Every leaf is one digit. Keep the leaves evenly spaced so the shape is clear.
- Back-to-back diagrams share one stem, with leaves on both sides, so you can compare two sets of data. Read the left side from the stem outwards too.
- Median: count in from the ends of the ordered leaves. For 18 values, take the mean of the 9th and 10th.
Use the diagram of 18 ages. How many people are older than 30, and how many are aged 25 or under?
- the values above 30 are 32, 34, 34, 37, 38, 41, 45 and 46, so 8 people
- the values 25 or under are 12, 15, 18, 21, 23, 23 and 23, so 7 people
Draw an ordered stem-and-leaf diagram for the marks 34, 28, 45, 31, 28, 39, 42, 27, 36, 31 and find the median and mode.
- stem 2: 7 8 8
- stem 3: 1 1 4 6 9
- stem 4: 2 5
- key: 3 | 4 means 34
- ordered data: 27, 28, 28, 31, 31, 34, 36, 39, 42, 45
- median = (31 + 34) ÷ 2 = 32.5
- modes = 28 and 31 (each appears twice)
4Scatter diagrams
Correlation
Positive correlation — as one quantity increases, the other increases too. The points slope up.
Negative correlation — as one quantity increases, the other decreases. The points slope down.
No correlation — the points show no pattern, so there is no link between the two.
- Strong or weak: points close to a line show strong correlation, and points that are more scattered show weak correlation.
- Describe it in context. Write "as the temperature rises, ice cream sales rise", not just "positive".
- Correlation is not causation. A link does not prove that one thing causes the other. Ice cream sales and sunburn are both caused by hot weather.
Say what type of correlation you expect between (a) height and shoe size (b) age of a car and its value (c) shoe size and exam mark.
- (a) positive, because taller people usually have bigger feet
- (b) negative, because older cars are usually worth less
- (c) no correlation, because the two are not linked
Line of best fit
- Draw it with a ruler. It does not have to go through the origin, but it should pass through the mean point if you have worked it out.
- Ignore outliers when you draw the line, and say so if asked.
- Interpolation means predicting inside the range of the data, and it is reasonably reliable.
- Extrapolation means predicting outside the range of the data. The pattern may not continue, so it is unreliable.
- Gradient meaning: if the line rises 7 marks for each extra hour, say "about 7 extra marks for each hour of revision". EXT
The diagram shows the line of best fit for hours of revision and test score. Estimate the score for 5.5 hours.
- draw a vertical line up from 5.5 on the x-axis to the line of best fit
- go across to the y-axis
- score is about 67 (answers from 65 to 69 are accepted)
The line of best fit passes through (2, 42) and (8, 84). Find its gradient and say what it means.
- gradient = (84 − 42) ÷ (8 − 2) = 42 ÷ 6 = 7
- it means about 7 extra marks for each extra hour of revision
Why should the line of best fit not be used to predict the score for 12 hours?
- 12 hours is outside the range of the data (extrapolation)
- the line would give a score above 100
- so the prediction is unreliable
5Quartiles and distributions EXT
Quartiles and the interquartile rangeEXTENDED
Lower quartile Q1 — the value a quarter of the way along the ordered data, with 25% of values below it.
Upper quartile Q3 — the value three quarters of the way along, with 25% of values above it.
Interquartile range — IQR = Q3 − Q1, the spread of the middle 50% of the data.
- If the position is not a whole number, go that fraction of the way between the two values. For example, the 3.5th value is halfway between the 3rd and 4th.
- The IQR is better than the range when there are outliers, because it ignores the extreme values at each end.
- Order first, as always. Then count positions from the start of the list.
Find the median, lower quartile, upper quartile and IQR of 4, 7, 9, 10, 12, 13, 16, 18, 21, 23, 25, 30, 31, 35, 40.
- n = 15 so the data has 15 values already in order
- median is the (15 + 1) ÷ 2 = 8th value = 18
- Q1 is the (15 + 1) ÷ 4 = 4th value = 10
- Q3 is the 3 × 16 ÷ 4 = 12th value = 30
- IQR = 30 − 10 = 20
The data 2, 5, 6, 9, 11, 14, 20 is in order. Find the IQR.
- n = 7, so Q1 is the 8 ÷ 4 = 2nd value = 5
- Q3 is the 3 × 8 ÷ 4 = 6th value = 14
- IQR = 14 − 5 = 9
Cumulative frequencyEXTENDED
Cumulative frequency — the running total of the frequencies, which shows how many values are less than or equal to a given value.
- Plot at the upper class boundary, such as (20, 6) for the class 0 < t ≤ 20, not at the middle of the class.
- Start at the lower boundary of the first class with a cumulative frequency of 0. Join the points with a smooth curve.
- On the graph use n ÷ 2, not (n + 1) ÷ 2. The graph reads at ¼n, ½n and ¾n.
- How many are more than a value? Read the cumulative frequency at that value, then subtract it from n.
- Readings from a curve are approximate, so answers within a small tolerance score the marks. Always show your read-off lines.
The classes for homework time (minutes) are 0 < t ≤ 20: 6, 20 < t ≤ 40: 14, 40 < t ≤ 60: 24, 60 < t ≤ 80: 20, 80 < t ≤ 100: 10, 100 < t ≤ 120: 6. Write the cumulative frequencies.
- 6
- 6 + 14 = 20
- 20 + 24 = 44
- 44 + 20 = 64
- 64 + 10 = 74
- 74 + 6 = 80, which equals the total frequency
Use the graph (n = 80) to estimate the median, the quartiles and the IQR.
- Q1: ¼ × 80 = 20, so read across at 20 and down to 40
- median: ½ × 80 = 40, so read across at 40 and down to about 57
- Q3: ¾ × 80 = 60, so read across at 60 and down to about 75
- IQR = 75 − 40 = 35 minutes
Use the same graph to estimate how many students spent more than 90 minutes.
- at 90 minutes the cumulative frequency is about 70
- students above 90 minutes = 80 − 70 = about 10
Box plotsEXTENDED
Five-number summary — the minimum, lower quartile, median, upper quartile and maximum. They are all you need to draw a box plot.
- The box goes from Q1 to Q3, so its length is the IQR. The line inside the box marks the median.
- The whiskers reach to the smallest and largest values, so the full length is the range.
- Each section (whisker, half box, half box, whisker) holds 25% of the data.
- Use a scale and draw all box plots against the same axis if you are comparing them.
- To compare two sets of data, write one comment on the average (the medians) and one on the spread (the IQRs or ranges), both in context.
Compare Class A (min 12, Q1 23, median 29.5, Q3 37, max 46) with Class B (min 18, Q1 26, median 32, Q3 36, max 44).
- IQR of A = 37 − 23 = 14 and IQR of B = 36 − 26 = 10
- average: Class B has a higher median (32 compared with 29.5), so B scored higher on average
- spread: Class B has a smaller IQR (10 compared with 14), so B's marks were more consistent
A box plot has minimum 5, Q1 12, median 20, Q3 28 and maximum 45. Find the range and IQR, and the number out of 80 students who scored between 12 and 28.
- range = 45 − 5 = 40
- IQR = 28 − 12 = 16
- between Q1 and Q3 is 50% of the students, so 50% of 80 = 40 students
HistogramsEXTENDED
Frequency density — frequency ÷ class width. It is the height of the bar in a histogram.
- The vertical axis is frequency density, not frequency. Label it that way.
- Use a histogram when the class widths are unequal. If all widths are the same, the height is proportional to the frequency, but you still use the same rule.
- Bars touch each other, because the data is continuous. There are no gaps.
- Estimate within a bar by taking a fraction of its area, assuming the values are spread evenly across the class.
Use the histogram to find the frequency of the class 30 < t ≤ 50.
- frequency density = 1.5 and class width = 20
- frequency = 1.5 × 20 = 30
Estimate the number of students with times between 40 and 50 minutes.
- the bar is 1.5 high
- the width from 40 to 50 is 10
- frequency = 1.5 × 10 = 15
Estimate the mean time using the frequencies 5, 15, 25, 30 and 15 for the classes 0 to 10, 10 to 20, 20 to 30, 30 to 50 and 50 to 80.
- midpoints are 5, 15, 25, 40 and 65
- Σ(f × midpoint) = 25 + 225 + 625 + 1200 + 975 = 3050
- Σf = 90
- estimated mean = 3050 ÷ 90 = 33.9 minutes
Draw the histogram for 0 < x ≤ 10: 8, 10 < x ≤ 30: 30, 30 < x ≤ 40: 18 and 40 < x ≤ 60: 12.
- frequency densities: 8 ÷ 10 = 0.8
- 30 ÷ 20 = 1.5
- 18 ÷ 10 = 1.8
- 12 ÷ 20 = 0.6
- draw bars of those heights, with widths 10, 20, 10 and 20 and no gaps
6Test yourself
Test yourself — cover the answers first
Quick check
- Find the mean of 4, 8, 9, 11, 13.
- Find the median of 7, 2, 9, 4, 12, 3.
- Find the mode of 5, 7, 5, 8, 7, 5, 9.
- Find the range of 14, 3, 21, 8.
- The mean of 6 numbers is 9. What is their total?
- Which average is best for 12, 13, 13, 14, 80? Give a reason.
- A frequency table has x = 1, 2, 3 with f = 2, 5, 3. Find the mean.
- For the same table find the median.
- What is the midpoint of the class 20 < x ≤ 30?
- Why is a mean from a grouped table only an estimate?
- In a pie chart, 45 of 180 students walk to school. What is the angle for walking?
- What goes wrong when a bar chart's vertical axis does not start at 0?
- In a stem-and-leaf diagram with key 3 | 4 = 34, what does the row 5 | 0 2 7 show?
- What type of correlation do you expect between temperature and sales of hot chocolate?
- What type of correlation do you expect between the age of a car and its value?
- Why is a prediction from outside the range of the data unreliable?
- Does correlation between two quantities prove that one causes the other?
- EXT Find Q1, Q3 and the IQR of 3, 5, 6, 8, 9, 12, 14.
- EXT A cumulative frequency graph has n = 120. At what cumulative frequency do you read the median?
- EXT For the same graph, where do you read Q1 and Q3?
- EXT What is the greatest cumulative frequency in a table?
- EXT A class 10 < x ≤ 30 has frequency 18. Find the frequency density.
- EXT A histogram bar has width 5 and height 3. What is the frequency?
- EXT What percentage of the data lies between the median and Q3?
- EXT A box plot has minimum 4, Q1 9, median 15, Q3 22 and maximum 40. Find the range and the IQR.
Exam-style
- The ages of nine club members are 12, 15, 15, 16, 18, 20, 21, 24 and 30. Find the mean, median, mode and range. [4]
- The mean of five numbers is 14. A sixth number is added and the mean of the six numbers is 15. Find the sixth number. [3]
- The number of pets owned by 30 students is 0 pets: 6, 1 pet: 9, 2 pets: 10, 3 pets: 4, 4 pets: 1. Find the mean, the median and the mode. [5]
- The masses of 40 parcels are 40 < m ≤ 50: 8, 50 < m ≤ 60: 14, 60 < m ≤ 70: 10 and 70 < m ≤ 80: 8. Estimate the mean mass and give the modal class. [4]
- 72 people were asked how they travel to work: bus 20, car 28, walk 16 and cycle 8. Calculate the angle of each sector of a pie chart. [3]
- Draw a stem-and-leaf diagram for 23, 31, 18, 27, 35, 22, 29, 31, 40, 26 and find the median. [4]
- A line of best fit for practice hours (x) and score (y) passes through (2, 15) and (10, 47). Find its gradient, explain it, and estimate the score for 6 hours. [4]
- EXT Find the median, lower quartile, upper quartile and IQR of 14, 17, 19, 22, 25, 26, 29, 31, 34, 38, 45. [4]
- EXT The times (minutes) of 50 runners are 0 < t ≤ 10: 4, 10 < t ≤ 20: 11, 20 < t ≤ 30: 17, 30 < t ≤ 40: 12 and 40 < t ≤ 50: 6. Write the cumulative frequencies and say where the median is read from. [3]
- EXT A histogram has bars 0 < x ≤ 10 with height 1.2, 10 < x ≤ 20 with height 2.6, 20 < x ≤ 40 with height 1.8 and 40 < x ≤ 60 with height 0.5. Find the total frequency. [4]
- EXT Complete the frequency densities for 0 < a ≤ 10: 20, 10 < a ≤ 30: 50, 30 < a ≤ 50: 30 and 50 < a ≤ 80: 45. [4]
- EXT Class X has median 56 and IQR 20. Class Y has median 62 and IQR 12. Compare the two classes. [2]
Show answers
- 9
- 5.5 (in order 2, 3, 4, 7, 9, 12)
- 5
- 18
- 54
- the median (13), because 80 is an outlier that pulls the mean up to 26.4
- 2.1
- 2
- 25
- the exact values are unknown, so we assume every value is at the midpoint of its class
- 90°
- the bars are no longer in proportion, so differences look bigger than they are
- the values 50, 52 and 57
- negative
- negative
- the pattern may not continue (extrapolation)
- no, there may be a third factor or just coincidence
- Q1 = 5, Q3 = 12, IQR = 7
- 60
- at 30 and 90
- the total frequency n
- 0.9
- 15
- 25%
- range 36, IQR 13
- total = 171, so mean = 171 ÷ 9 = 19
median = 5th value = 18
mode = 15
range = 30 − 12 = 18 - total of five = 5 × 14 = 70
total of six = 6 × 15 = 90
sixth number = 90 − 70 = 20 - Σ(f × x) = 0 + 9 + 20 + 12 + 4 = 45, so mean = 45 ÷ 30 = 1.5
cumulative frequency: 6, 15, 25, 29, 30
the 15th value is 1 and the 16th value is 2
median = (1 + 2) ÷ 2 = 1.5
mode = 2 - midpoints 45, 55, 65, 75
Σ(f × midpoint) = 360 + 770 + 650 + 600 = 2380
mean = 2380 ÷ 40 = 59.5 kg
modal class = 50 < m ≤ 60 - bus = 20 ÷ 72 × 360 = 100°
car = 28 ÷ 72 × 360 = 140°
walk = 16 ÷ 72 × 360 = 80°
cycle = 8 ÷ 72 × 360 = 40° (total 360°) - stem 1: 8
stem 2: 2 3 6 7 9
stem 3: 1 1 5
stem 4: 0
key: 2 | 3 means 23
ordered data: 18, 22, 23, 26, 27, 29, 31, 31, 35, 40
median = (27 + 29) ÷ 2 = 28 - gradient = (47 − 15) ÷ (10 − 2) = 32 ÷ 8 = 4
it means about 4 extra marks for each extra hour of practice
at 6 hours the score is 15 + 4 × 4 = 31
an estimate of about 31 - n = 11
median = 6th value = 26
Q1 = 3rd value = 19
Q3 = 9th value = 34
IQR = 34 − 19 = 15 - cumulative frequencies: 4, 15, 32, 44, 50
points are plotted at the upper boundaries 10, 20, 30, 40, 50
median is read at ½ × 50 = the cumulative frequency of 25 - 1.2 × 10 = 12
2.6 × 10 = 26
1.8 × 20 = 36
0.5 × 20 = 10
total = 12 + 26 + 36 + 10 = 84 - 20 ÷ 10 = 2
50 ÷ 20 = 2.5
30 ÷ 20 = 1.5
45 ÷ 30 = 1.5 - Class Y has a higher median (62 compared with 56), so Y scored higher on average
Class Y has a smaller IQR (12 compared with 20), so Y's marks were more consistent
Send it to me on WhatsApp. I read every message.
Want regular help? Send this to your parent →