Descriptive statistics AI SL
Descriptive statistics sum up a data set with a typical value, a measure of spread and a diagram. On this course the calculator finds the mean, median, quartiles and standard deviation, so the marks are for entering the data correctly, reading the right value and saying what it means in context. Start with the measures of central tendency, then spread, then the diagrams, and finish by comparing two sets of data.
Formulas at a glance
Only two results on this page are in the formula booklet: the mean from a frequency table and the interquartile range. The range, the outlier boundaries and the link between variance and standard deviation are not, but each takes one line. The calculator finds standard deviation and quartiles, so there is no booklet formula to recall for them.
Total spread of the data
Not in the bookletSpread of the middle 50%
In the bookletOutlier test (below)
Lower fence
Not in the bookletOutlier test (above)
Upper fence
Not in the bookletRelationship between variance and standard deviation
Not in the bookletWhich method to use
Decide what the question is asking you to describe: a typical value, how spread out the data are, or a diagram. Most numerical answers come from the calculator, so the skill is choosing the right value to read.
| The question has | Use | Notes |
|---|---|---|
| A list of values, and asks for the mean, median, mode or range | Enter the list and run the one-variable statistics. The mode and range are read from the sorted data | There may be more than one mode. The range is largest value minus smallest value |
| A frequency table of single values | Enter the values in one list and the frequencies in another, and tell the calculator to use the frequency list | Never average the distinct values. The mean is |
| Data in classes (grouped data) | Use the midpoint of each class as , with the frequencies. The modal class is the class with the highest frequency | The mean is only an estimate, because the exact values are not known |
| A standard deviation or a variance | Read from the one-variable statistics. The variance is | Use the value written |
| Quartiles, the interquartile range or a possible outlier | Read and from the calculator. . Outlier boundaries are and | A value beyond a boundary is an outlier. Say whether it looks genuine or like an error |
| Every value is changed in the same way | Adding adds to the mean and leaves the standard deviation unchanged. Multiplying by multiplies both the mean and the standard deviation by | The variance is multiplied by |
| A cumulative frequency graph | Read across from , and on the vertical axis, then down to the horizontal axis | A percentile works the same way: the 90th percentile is at |
| A histogram | With equal class widths, the height of a bar is the frequency. The tallest bar is the modal class | Add the heights of the bars to find the total number of values |
| Two data sets to compare | Compare one measure of centre, such as the median, and one measure of spread, such as the interquartile range, and say what each means in context | Box plots allow this comparison. A symmetrical box with whiskers of similar length suggests a normal distribution |
Section 1 of 3 SL4.3
Measures of central tendency
A measure of central tendency gives one typical value for a data set. The mean is the sum of the values divided by how many there are, the median is the middle value when the data is in order, and the mode is the most frequent value. For grouped data, use class midpoints to estimate the mean.
Mean from a frequency table, and estimated mean
Mean from a frequency table
In the formula booklet. Each value is weighted by how often it occurs, ; don't just average the distinct values.
Estimated mean from grouped data
, class midpoint
Same formula from the formula booklet, applied with midpoints in place of exact -values. Since exact values inside a class are unknown, the midpoint stands in for every value in that class - hence "estimate".
Median and mode are read directly from the data, not calculated from a formula.
Key terms
What is the mean?
The mean is the sum of all the values divided by the number of values. It uses every value, so it is pulled towards extreme values.
e.g. The mean of is .
How do you find the median?
Put the values in order. The median is the middle value, or the mean of the two middle values when there is an even number of values.
e.g. For , the median is .
What is the mode?
The mode is the most frequent value. In a frequency table, it is the value with the highest frequency, not the highest frequency itself.
e.g. In a table where the values have frequencies , the mode is , not .
What is a class midpoint?
The midpoint of a class is halfway between its lower and upper boundaries. It is used as a stand-in value for every item in the class when estimating the mean.
e.g. The class to has midpoint .
Worked example, step by step
The question Calculator needed for the mean [6 marks]
A library records how long 50 visitors stay on one afternoon. The times, minutes, are grouped as follows.
: 6 visitors
: 14 visitors
: 18 visitors
: 9 visitors
: 3 visitors
(a) Write down the modal class.
(b) Estimate the mean time spent in the library.
(c) Find the class that contains the median.
(d) Explain why your answer to (b) is an estimate.
Worked solution: worked example
Answer: (a) (b) 45.6 minutes (c) (d) the exact values in each class are not known, so each is replaced by its midpoint.
Step 1 - Find the modal class.
The highest frequency is 18, so the modal class is . A1 -
Why? The modal class is the class with the highest frequency, not the frequency itself. This works with equal class widths, as here.
Step 2 - Write down the midpoints.
The midpoints of the five classes are . These stand in for the -values. M1 - Use the midpoints of the classes as the -values
Why? For grouped data nobody knows the exact times, so every value in a class is treated as if it were at the midpoint of that class. Midpoint .
Step 3 - Use the calculator for the mean.
Enter the midpoints in one list and the frequencies in a second list, then run the one-variable statistics with the second list as the frequency list. The calculator gives minutes. By hand, . A1 - Mean
Why? The mean from a frequency table is , and the calculator does the multiplying and adding. Check that the frequency list is switched on, or it averages the five midpoints instead.
Step 4 - Find the class that contains the median.
There are 50 values, so the median lies between the 25th and 26th values. The cumulative frequencies are 6, 20, 38, 47, 50. The 25th and 26th values are both in the third class, so the median is in . M1 - Use cumulative frequencies to locate the 25th and 26th values A1 -
Why? The cumulative frequency tells you how many values are in or below each class. The class where it first passes 25 contains the middle values.
Step 5 - Say why it is an estimate.
The table does not give the exact times, only how many fall in each class. The calculation treats every time in a class as the midpoint, so the true mean may be a little higher or lower than 45.6. R1 - The exact values in each class are not known, so midpoints are used
Why? The reasoning mark needs the idea that the exact values within each class are unknown, not just the word "estimate".
A1
M1 Use the midpoints of the classes as the -values
A1 Mean
M1 Use cumulative frequencies to locate the 25th and 26th values
A1
R1 The exact values in each class are not known, so midpoints are used
Now you try: enter your answers to be marked
These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.
| Value | Frequency |
|---|---|
| 1 | 2 |
| 2 | 6 |
| 3 | 6 |
| 4 | 1 |
Worked solution: practice question 1
Find the mean mark.
Worked solution: practice question 2
Find .
Worked solution: practice question 3
Your score so far: 0 out of 9 marks
Calculator steps: One-variable statistics (mean, median, standard deviation)
Common mistakes
- Averaging the distinct values instead of using frequencies. Given a frequency table, the mean is , not the plain average of the values that appear - a value seen ten times must count ten times.
- Using the class boundary instead of the midpoint for an estimated mean. Grouped-data means always use the midpoint of each class as the representative -value, never the upper or lower boundary.
- Missing a second (or third) mode. If more than one value shares the highest frequency, state every one of them - the data is bimodal or multimodal, and giving only one is an incomplete answer.
Section 2 of 3 SL4.3
Measures of spread
Measures of spread describe how far data values are scattered around the centre. The range is the largest value minus the smallest, the interquartile range gives the spread of the middle half of the data, and the standard deviation and variance describe typical distance from the mean. The standard deviation and variance are found using a GDC.
Standard deviation and variance are found with the calculator's one-variable statistics, not by hand.
Key terms
What is standard deviation?
Standard deviation measures how far values typically lie from the mean. A larger value means the data is more spread out, and it is zero only when every value is the same.
e.g. The data has a standard deviation of .
How are variance and standard deviation related?
Variance is the square of the standard deviation, so the standard deviation is the square root of the variance.
e.g. A standard deviation of gives a variance of , and a variance of gives a standard deviation of .
How does adding a constant to every value change the spread?
The mean increases by the constant, but the standard deviation and the interquartile range stay the same, because every value moves by the same amount.
e.g. Adding to every value in data with mean and standard deviation gives a mean of and a standard deviation of .
How does multiplying every value by a positive number change the spread?
The mean and the standard deviation are both multiplied by that number, and the variance is multiplied by its square.
e.g. Multiplying every value by in data with mean and standard deviation gives a mean of , a standard deviation of and a variance of instead of .
Worked example, step by step
The question Calculator needed [6 marks]
Eight riders take part in a hill-climb race. Their times, in minutes, are
22, 25, 25, 27, 28, 30, 31, 44.
(a) Find the mean and the standard deviation of the times.
(b) Find the interquartile range.
(c) The course is shortened, and every rider's time is reduced by 5 minutes. Write down the new mean and the new standard deviation.
Worked solution: worked example
Answer: (a) mean minutes, standard deviation minutes (b) minutes (c) new mean minutes, new standard deviation minutes.
Step 1 - Enter the data and run the statistics.
Enter the eight times in a list and run the one-variable statistics. Read the values you need from the screen: the mean , the standard deviation , and the quartiles and .
Why? One run gives everything. The screen also shows a second standard deviation, , which is not the one to use on this course.
Step 2 - Read the mean and standard deviation.
and minutes, to 3 significant figures. A1 - Mean A1 - Standard deviation
Why? The standard deviation measures how far the times typically lie from the mean. The calculator has no separate "by hand" step here, because the syllabus says to use technology.
Step 3 - Find the interquartile range.
The calculator gives and . Then M1 - Subtract the quartiles, A1 -
Why? The interquartile range is the spread of the middle half of the data, so it is not pulled by the slowest rider. Quartiles can differ slightly between methods, which is why the calculator value is the one to use.
Step 4 - Reduce every time by 5.
Subtracting 5 from every value subtracts 5 from the mean, so the new mean is minutes. Every value moves by the same amount, so the spread does not change: the new standard deviation is still minutes. A1 - New mean A1 - Standard deviation unchanged,
Why? Adding or subtracting a constant shifts the data without changing how spread out it is. Multiplying every value by a constant would multiply the standard deviation by that constant as well.
Step 5 - Look at the slowest rider.
The upper boundary for outliers is , and the slowest time, 44, is above it. This outlier is why the mean (29) is above the median (27.5), and why the standard deviation (6.28) is larger than the interquartile range (5.5).
Why? One extreme value pulls the mean and the standard deviation more than it pulls the median and the interquartile range. That is why the median and interquartile range are the better summary when there is an outlier.
A1 Mean
A1 Standard deviation
M1 Subtract the quartiles,
A1
A1 New mean
A1 Standard deviation unchanged,
Now you try: enter your answers to be marked
Worked solution: practice question 1
| Goals | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| Frequency | 5 | 8 | 4 | 3 |
Worked solution: practice question 2
| Class | Frequency |
|---|---|
| 0-10 | 4 |
| 10-20 | 9 |
| 20-30 | 14 |
| 30-40 | 8 |
| 40-50 | 5 |
Worked solution: practice question 3
Your score so far: 0 out of 5 marks
Calculator steps: One-variable statistics (mean, median, standard deviation), Box-and-whisker plot and quartiles
Common mistakes
- Reading the wrong standard deviation. The calculator's 1-Var Stats screen shows two standard deviation values. Use the one written , not .
- Quoting the range as a single extreme-sensitive summary. One unusually large or small value inflates the range even though the rest of the data is tightly packed - the IQR is the more robust measure when a question asks you to compare consistency.
- Forgetting how scaling affects spread. Adding a constant to every value shifts the mean but leaves the standard deviation unchanged; multiplying every value by a constant multiplies the standard deviation by , not by alone.
Section 3 of 3 SL4.2
Statistical diagrams
Statistical diagrams show how data is distributed. Frequency tables and histograms show how many values fall in each class, cumulative frequency graphs show how many values lie below a given value, and box and whisker diagrams show the minimum, quartiles, median and maximum. Read the median, quartiles and interquartile range from them, and compare distributions using centre and spread.
Reading the diagrams
Median and quartiles from a cumulative frequency curve
Median at position ; at ; at .
Not in the formula booklet - it's a reading skill, not a formula. Trace across from the vertical axis to the curve, then down to the horizontal axis.
Box plot from the five-number summary
Minimum, , median, , maximum.
The box spans to with a line at the median. An outlier is marked with a cross, and each whisker runs to the smallest or largest value that is not an outlier.
Key terms
What is cumulative frequency?
Cumulative frequency is the running total of the frequencies up to the upper boundary of each class. The final value equals the total number of data values.
e.g. Class frequencies of , , and give cumulative frequencies of , , and .
What does a histogram show?
A histogram uses touching bars, where each bar covers one class and its height shows the frequency. When all class widths are equal, the heights can be compared directly.
e.g. Classes of width with frequencies , and give three bars of heights , and .
What is the interquartile range?
The interquartile range is , the spread of the middle half of the data. It is not affected by extreme values at either end.
e.g. If and , then the interquartile range is .
What does a box and whisker diagram show?
The box runs from the lower quartile to the upper quartile with a line at the median. The whiskers reach to the smallest and largest values that are not outliers, and any outlier is marked with a cross.
e.g. For a minimum of , , median , and a maximum of , the box spans to and the whiskers reach and , because neither is an outlier.
Worked example, step by step
The question Calculator allowed [5 marks]
The journey times, in minutes, on two bus routes are summarised below.
Route 14: minimum 18, , median 27, , maximum 45.
Route 22: minimum 20, , median 30, , maximum 40.
(a) Show that the maximum journey time on Route 14 is an outlier.
(b) Compare the journey times on the two routes, using the median and the interquartile range.
Worked solution: worked example
Answer: (a) upper boundary , and , so 45 is an outlier (b) Route 22 journeys are typically longer (median 30 minutes against 27 minutes) and less consistent (interquartile range 9 minutes against 7 minutes).
Step 1 - Find the interquartile range of Route 14.
Why? The outlier boundaries are measured in lots of the interquartile range, so you need it first.
Step 2 - Find the upper boundary.
Upper boundary . M1 - Use with their interquartile range A1 - Upper boundary
Why? An outlier is a value more than from the nearest quartile. The maximum is a large value, so the test is against the upper boundary.
Step 3 - Compare the maximum with the boundary.
The maximum, 45, is greater than 41.5, so it is an outlier. On a box plot it would be marked with a cross, and the upper whisker would stop at the largest value below the boundary. R1 - Compare 45 with 41.5 and conclude it is an outlier
Why? "Show that" needs the comparison written down. The boundary on its own does not show that 45 is an outlier.
Step 4 - Compare the centres.
The median for Route 22 is 30 minutes and for Route 14 it is 27 minutes. Journeys on Route 22 are typically 3 minutes longer. R1 - Compare the medians, in context
Why? Compare like with like, using the same measure for both data sets, and say what the difference means in the context.
Step 5 - Compare the spreads.
The interquartile range for Route 22 is minutes, and for Route 14 it is 7 minutes. The middle half of the journey times is more spread out on Route 22, so Route 14 is the more consistent route. R1 - Compare the interquartile ranges, in context
Why? The interquartile range is the better measure of spread here because the outlier makes the range misleading. A smaller interquartile range means more consistent journey times.
M1 Use with their interquartile range
A1 Upper boundary
R1 Compare 45 with 41.5 and conclude it is an outlier
R1 Compare the medians, in context
R1 Compare the interquartile ranges, in context
Now you try: enter your answers to be marked
Worked solution: practice question 1
Worked solution: practice question 2
Worked solution: practice question 3
Your score so far: 0 out of 14 marks
Calculator steps: Box-and-whisker plot and quartiles, Histogram and cumulative frequency graph
Common mistakes
- Reading cumulative frequency instead of frequency, or vice versa. A cumulative frequency graph always rises (or stays flat) - if your curve dips, you've plotted plain frequency by mistake.
- Using the class midpoint where the boundary is needed. Histograms and cumulative frequency graphs plot against class boundaries, not midpoints - midpoints only belong in mean calculations.
- Forgetting to test for outliers. Before you draw the whiskers, check the smallest and largest values against and . A value beyond a boundary is marked with a cross, and the whisker stops at the next value.
Using your GDC
The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.
One-variable statistics (mean, median, standard deviation)
Used in: Measures of central tendency, Measures of spread
How to find summary statistics on a TI-84 Plus CE
1-Var Stats (from a list) | |
Press stat and choose 1:Edit. If L1 already has numbers in it, press ▲ to put the cursor on the name L1, then press clear and enter to empty the list. |
|
Type the data into L1, one value at a time, pressing enter after each: 4, 5, 5, 6, 7, 8, 9, 10. |
L1 4 5 5 6 7 8 9 10 |
Press stat, then ▶ to move to CALC, and choose 1:1-Var Stats. With the Stat Wizards on, set Xlist to L1 (2nd 1), leave FreqList empty, move down to Calculate and press enter. If the Stat Wizards are off, 1-Var Stats is pasted on the home screen: press 2nd 1 and then enter. |
1-Var Stats Xlist:L1 FreqList: Calculate |
The results appear. Press ▼ to scroll down to minX, Q1, Med, Q3 and maxX. x̄ is the mean, σx is the standard deviation to use, and Sx is not needed. Mean and standard deviation , each to 3 significant figures. |
x̄=6.75 Σx=54 Σx²=396 Sx=2.121320 σx=1.984313 n=8 minX=4 Q1=5 Med=6.5 Q3=8.5 maxX=10 |
Data with frequencies | |
For a frequency table, type the values in L1 and the frequencies in L2. In 1-Var Stats set Xlist to L1 and FreqList to L2 (2nd 2). For the table in the box below, L1 is 1, 2, 3, 4, 5 and L2 is 3, 5, 8, 4, 2. |
1-Var Stats Xlist:L1 FreqList:L2 Calculate |
Use σx for the standard deviation and ignore Sx. The calculator's Q1 and Q3 are the medians of the lower and upper halves of the data.
The full guide: One-variable statistics (mean, median, standard deviation)
Box-and-whisker plot and quartiles
Used in: Measures of spread, Statistical diagrams
How to find quartiles and draw a box-and-whisker plot on a TI-84 Plus CE
1-Var Stats (the five-number summary) | |
Press stat and choose 1:Edit.... Type the data into L1, pressing enter after each value: 12, 6, 31, 9, 15, 5, 10, 13, 6, 3, 16, 8. If L1 already holds numbers, clear them first. |
L1 12 6 31 9 15 ... |
Press stat, then ▶ to move to CALC, and choose 1:1-Var Stats. With the Stat Wizards on, set Xlist to L1 by pressing 2nd 1 (L1), leave FreqList empty, then choose Calculate and press enter. If the Stat Wizards are off, type |
1-Var Stats Xlist:L1 FreqList: Calculate |
Press ▼ to scroll past the mean and the standard deviations until you reach minX, Q1, Med, Q3 and maxX. Minimum , , median , , maximum . So . |
n=12 minX=3 Q1=6 Med=9.5 Q3=14 maxX=31 |
Box plot | |
Press 2nd Y= (STAT PLOT) and choose 1:Plot1. Set Plot1 to On, choose the modified box plot icon for Type (the fourth of the six; it plots outliers as separate points), set Xlist to L1 with 2nd 1, and set Freq to 1. |
Plot1 On Type: modified box plot Xlist:L1 Freq:1 |
Press zoom and choose 9:ZoomStat. The box plot appears with the window set for you. Press trace: the cursor starts at the median, ◀ moves to Q1 and the lower whisker end, and ▶ moves to Q3, the upper whisker end and the outlier. The upper whisker ends at and is plotted on its own, as an outlier. |
Med=9.5 x=16 x=31 |
If the plot does not show, turn off any equations in Y= and check that only the plot you set up is on. The fifth icon is the plain box plot, whose whiskers always reach the minimum and maximum.
The full guide: Box-and-whisker plot and quartiles
Histogram and cumulative frequency graph
Used in: Statistical diagrams
How to draw a histogram and a cumulative frequency graph on a TI-84 Plus CE
Histogram from grouped data | |
Press stat and choose 1:Edit.... In L1 type the class mid-values, pressing enter after each: 5, 15, 25, 35, 45, 55. In L2 type the frequencies: 3, 7, 12, 10, 6, 2. Clear any old numbers out of both lists first. |
L1 L2 5 3 15 7 25 12 35 10 ... |
Press 2nd Y= (STAT PLOT) and choose 1:Plot1. Set Plot1 to On, choose the histogram icon for Type (the third of the six), set Xlist to L1 with 2nd 1, and set Freq to L2 with 2nd 2. |
Plot1 On Type: histogram Xlist:L1 Freq:L2 |
Press window and set Xmin to 0, Xmax to 60 and Xscl to the class width, 10. Set Ymin to 0 and Ymax to a little more than the greatest frequency, such as 14. Press graph. |
Xmin=0 Xmax=60 Xscl=10 Ymin=0 Ymax=14 |
Press trace and use ◀ and ▶ to move from bar to bar. The screen shows the start and end of each class and its frequency. The tallest bar is the class , with frequency . |
min=20 max=30 n=12 |
Cumulative frequency graph | |
Press stat and choose 1:Edit.... In L3 type the upper class boundaries: 10, 20, 30, 40, 50, 60. In L4 type the cumulative frequencies, the running totals of the frequencies: 3, 10, 22, 32, 38, 40. |
L3 L4 10 3 20 10 30 22 40 32 ... |
Press 2nd Y= (STAT PLOT), choose 1:Plot1 and set it to Off. Choose 2:Plot2, set it to On, and choose the xyLine icon for Type (the second of the six). Set Xlist to L3 with 2nd 3 and Ylist to L4 with 2nd 4. |
Plot1 Off Plot2 On Type: xyLine Xlist:L3 Ylist:L4 |
Press window and set Xmin to 0, Xmax to 60, Xscl to 10, Ymin to 0 and Ymax to a little more than the total, such as 45. Press graph. The points are joined by straight lines. Cumulative frequencies . The median is the th value, so minutes. |
xyLine (10,3) (20,10) ...(60,40) |
The graph also passes through (0, 0), the start of the first class, which the plot above leaves out: add it when you copy the graph. To avoid adding the frequencies by hand, press 2nd stat (LIST), choose OPS and then 6:cumSum(, and store cumSum(L2) in L4.
The full guide: Histogram and cumulative frequency graph
See the full list of GDC guides for every calculator task.
Syllabus content covered
| Code | Syllabus content |
|---|---|
| SL4.3 | Measures of central tendency (mean, median, mode), including estimating the mean from grouped data. Measures of dispersion (IQR, standard deviation and variance), calculated using technology. Effect of constant changes (e.g. adding or scaling every value) on the mean and standard deviation. |
| SL4.2 | Presentation of data in frequency tables, histograms and cumulative frequency graphs; using cumulative frequency to find the median, quartiles, percentiles, range and IQR. Production and understanding of box and whisker diagrams, including comparing two distributions using symmetry, median, IQR or range, and assessing possible normality from the symmetry of the box and whiskers. |
Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).
Quick questions
Why is the mean from grouped data called an estimate?
Grouped data only tells you how many values fall in each class, not their exact values, so the calculation uses the class midpoint as a stand-in for every value in that class - the result is close to, but not exactly, the true mean.
What is the difference between range and IQR?
The range is and uses every value, including any extremes. The IQR is , the spread of the middle 50% of the data, so it isn't distorted by an unusually high or low value.
How do I read the median from a cumulative frequency graph?
Find on the cumulative frequency axis, draw across to the curve, then drop down to the horizontal axis to read the median value.
How do I find the mean from a frequency table?
Multiply each value by its frequency, add the products, and divide by the total frequency. For values with frequencies , the mean is .
What does the standard deviation tell me when comparing two data sets?
A larger standard deviation means the values are more spread out, and a smaller one means they are more consistent. State the comparison in context, alongside the means.
How do I find the quartiles from a cumulative frequency graph?
For values, read across from on the vertical axis for the lower quartile and from for the upper quartile. Then drop down to the horizontal axis. For values, these heights are and .
Which average should I use when there are extreme values?
Use the median, because extreme values do not affect it as much as they affect the mean. In , the median is but the mean is .
Which measure of spread should I use if there is an extreme value?
Use the interquartile range. The range and the standard deviation are both pulled by extreme values, but the interquartile range depends only on the middle half of the data.
How do I compare two distributions using box plots?
Compare a measure of centre, such as the median, and a measure of spread, such as the interquartile range, and say what each means in context. A higher median means higher values typically, and a smaller interquartile range means more consistent values.
How do I find the median from a frequency table?
Find the total frequency , then locate the th value by adding the frequencies cumulatively. With values, the median is the th value.
Ready to practise properly?
Practice questions on every section, marked instantly like the real exam.