Descriptive Statistics AA SL

Descriptive statistics summarise a data set with a few numbers and a few diagrams: where the data is centred, how spread out it is, and what its shape looks like. This page shows how to find and choose between the mean, median and mode, how to measure spread with the range, interquartile range and standard deviation, and how to read histograms, cumulative frequency graphs and box plots, with worked examples and exam-style questions.

Formulas at a glance

The mean of a frequency table and the interquartile range are in the formula booklet. The outlier boundaries, the effect of a constant change on the data and the midpoint rule for grouped data are not, so learn them. Standard deviation and variance come from the calculator.

Spread of the middle 50%

IQR=Q3−Q1\text{IQR}=Q_3-Q_1

In the booklet

Identifying potential outliers

Outlier boundary: Q1−1.5IQRQ_1-1.5\,\text{IQR}, Q3+1.5IQRQ_3+1.5\,\text{IQR}

Not in the booklet

Mean of grouped/frequency data

x¯=∑fx∑f\bar x=\dfrac{\sum fx}{\sum f}

In the booklet

Which measure or display to use

Choose the measure from the shape of the data and what the question needs.

The question asks forUseNotes
A typical value for data with no outliersThe meanEnter the data as a list on the calculator. Pair it with the standard deviation
A typical value for skewed data or data with outliersThe medianIt depends on position only, so extreme values do not move it. Pair it with the interquartile range
The mean from a frequency table, or an estimate of the mean from grouped datax¯=∑fx∑f\bar x=\dfrac{\sum fx}{\sum f}, using the midpoint of each class for grouped dataGrouped data gives an estimate only. The modal class is the class with the highest frequency
The spread of the middle half of the dataThe interquartile range Q3−Q1Q_3-Q_1Not affected by outliers, unlike the range
The spread of all the dataThe standard deviation σ\sigma, from the calculatorUse σx\sigma x on the calculator screen. It is never negative
The varianceThe square of the standard deviationIf σ=3\sigma=3 the variance is 99
The effect of adding kk to every value or multiplying every value by kkAdding changes the mean and median only. Multiplying by kk changes the mean, median and spreadStandard deviation and interquartile range are multiplied by |k||k|; adding a constant leaves them unchanged
Whether a value is an outlierBelow Q1−1.5×IQRQ_1-1.5\times\text{IQR} or above Q3+1.5×IQRQ_3+1.5\times\text{IQR}Shown as a cross on a box plot, outside the whiskers
The median or quartiles from a cumulative frequency graphRead across at n2\tfrac{n}{2}, n4\tfrac{n}{4} or 3n4\tfrac{3n}{4} on the vertical axis, then down to the horizontal axisPlot each cumulative frequency at the upper boundary of its class
A comparison of two data setsCompare a measure of centre and a measure of spread, in contextFor example, the median and the interquartile range read from two box plots

Section 1 of 3 SL4.3

Measures of central tendency

The mean, median and mode are three measures of the centre of a data set: the mean is the total divided by the number of values, the median is the middle value of the ordered data, and the mode is the most frequent value. Use the median when extreme values would distort the mean. For a frequency table, weight each value by its frequency.

The key methods

Median (ordered data)

Middle value if nn is odd; mean of the two middle values if nn is even.

For grouped data, the median is estimated from a cumulative frequency graph or by interpolation within the class that contains it.

Key terms

What is the modal class?

For grouped data, the modal class is the class interval with the highest frequency. It is used because the individual values are not known.

e.g. Classes 0≤x<100\le x<10, 10≤x<2010\le x<20 and 20≤x<3020\le x<30 with frequencies 44, 99 and 66 have modal class 10≤x<2010\le x<20.

How do you estimate the mean of grouped data?

Use the midpoint of each class as its value, then calculate x¯=∑fx∑f\bar x=\dfrac{\sum fx}{\sum f} with these midpoints. The result is only an estimate because the true values are unknown.

e.g. Classes 0≤x<100\le x<10 and 10≤x<2010\le x<20 with frequencies 44 and 66 have midpoints 55 and 1515, so the estimated mean is 4×5+6×1510=11\dfrac{4\times5+6\times15}{10}=11.

How do you find the median of an even number of values?

Order the data, then take the mean of the two middle values. The median is the value halfway through the ordered list.

e.g. For 2,4,7,92, 4, 7, 9, the middle values are 44 and 77, so the median is 4+72=5.5\dfrac{4+7}{2}=5.5.

Why is the mean affected by extreme values?

The mean uses every value in its total, so one extreme value pulls it towards that value. The median depends only on position, so it is much less affected.

e.g. For 3,4,5,6,73, 4, 5, 6, 7 the mean and median are both 55; replacing 77 with 3737 changes the mean to 1111 but leaves the median at 55.

Worked example, step by step

The question No calculator needed [5 marks]

The lengths of 4040 leaves are summarised in the table.

Length l (mm)10≤l<2020≤l<3030≤l<4040≤l<50Frequency614128\begin{array}{c|cccc}\text{Length }l\text{ (mm)}&10\le l<20&20\le l<30&30\le l<40&40\le l<50\\ \hline \text{Frequency}&6&14&12&8\end{array}

(a) Write down the modal class.

(b) Estimate the mean length of a leaf.

Worked solution: worked example

Answer: (a) The modal class is 20≤l<3020\le l<30. (b) The estimated mean length is 30.530.5 mm.

Step 1 - Find the modal class.

The highest frequency is 1414, so the modal class is 20≤l<3020\le l<30. A1 - Modal class 20≤l<3020\le l<30

Why? The mode of grouped data cannot be found exactly, because the individual values are not known. The modal class is the class with the largest frequency.

Step 2 - Find the midpoint of each class.

10+202=15,25,35,45.\dfrac{10+20}{2}=15,\quad 25,\quad 35,\quad 45. M1 - Use the midpoints 15,25,35,4515,25,35,45

Why? The individual lengths are not known, so each leaf in a class is treated as if its length were the midpoint of the class. This is why the answer is only an estimate.

Step 3 - Find the total of the lengths.

∑fx=6(15)+14(25)+12(35)+8(45)=90+350+420+360=1220.\sum fx=6(15)+14(25)+12(35)+8(45)=90+350+420+360=1220. A1 - ∑fx=1220\sum fx=1220

Why? Each midpoint is repeated as many times as the frequency, so multiply each midpoint by its frequency before adding. This is the same weighted total you would use for a frequency table of exact values.

Step 4 - Divide by the total frequency.

∑f=6+14+12+8=40,x¯=122040=30.5.\sum f=6+14+12+8=40,\qquad \bar x=\dfrac{1220}{40}=30.5. M1 - Divide ∑fx\sum fx by ∑f=40\sum f=40 A1 - x¯=30.5\bar x=30.5

Why? The mean is the total of the lengths divided by the number of leaves. Divide by the total frequency ∑f\sum f, not by the number of classes.

Step 5 - Check.

The estimate 30.530.5 lies between the smallest and largest midpoints, 1515 and 4545, and is close to the middle of the table, which is where most of the leaves are.

Why? A mean must always lie within the range of the data. Dividing by 44 instead of 4040 is a common slip, and it gives an answer that fails this check.

Marks (5):
A1 Modal class 20≤l<3020\le l<30
M1 Use the midpoints 15,25,35,4515,25,35,45
A1 ∑fx=1220\sum fx=1220
M1 Divide ∑fx\sum fx by ∑f=40\sum f=40
A1 x¯=30.5\bar x=30.5

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.

1
Easy
No calc
[4 marks]
The number of pets owned by 31 families is shown.

Pets01234
Families810742
(a) Find the median number of pets.
[2]
(b) Find the mode.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[3 marks]
Values and frequencies are shown.

Value2468
Frequency35ff2


The mean is 5.

Find ff.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Medium
Calculator
[4 marks]
Group A has 15 values with mean 20. Group B has 25 values with mean 28.
(a) Find the combined mean of all 40 values.
[2]
(b) Group A is found to have an extra value omitted; recompute the mean of A if a value of 52 is added to it.
[2]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 11 marks

Common mistakes

  • Averaging the distinct values instead of weighting by frequency. For a table with values 5,6,7,85,6,7,8 and frequencies 2,4,3,12,4,3,1, averaging the four values gives 6.56.5, but the correct mean is 6.36.3, because the frequencies have to multiply into the total first.
  • Forgetting to reorder the data before finding the median. The median only works on ordered data - if the list is given in the order it was collected, sort it first or the "middle" value is meaningless.
  • Assuming every data set has a mode. If every value occurs the same number of times there is no mode, and if two values tie for most frequent the set is bimodal - don't force a single answer where none exists.

Try some questions on measures of central tendency

Section 2 of 3 SL4.3

Measures of spread

Measures of spread describe how far a data set is scattered around its centre. The range uses only the extreme values, the interquartile range measures the middle half of the data, and the standard deviation uses every value. Use a measure of spread alongside the mean or median to compare two data sets.

The key measures

Effect of a linear transformation

If y=ax+by=ax+b, the new mean is ax¯+ba\bar x+b and the new standard deviation is |a|σx|a|\sigma_x.

Adding or subtracting a constant bb shifts every value equally, so it never changes the spread - only the multiplier aa does.

Key terms

What is variance?

Variance is the square of the standard deviation, so it is measured in squared units. A larger variance means the data is more spread out.

e.g. If the standard deviation is 33, the variance is 32=93^2=9.

What are quartiles?

The lower quartile Q1Q_1, the median and the upper quartile Q3Q_3 split ordered data into four equal parts. About 25% of the data lies below Q1Q_1 and about 75% lies below Q3Q_3.

e.g. For 1,3,5,7,9,11,13,151, 3, 5, 7, 9, 11, 13, 15, the median is 88, Q1=4Q_1=4 and Q3=12Q_3=12.

What does standard deviation measure?

The standard deviation measures the typical distance of the values from the mean. A smaller value means the data is more consistent, and a larger value means more variation.

e.g. The sets 4,5,64, 5, 6 and 1,5,91, 5, 9 both have mean 55, but the second has the larger standard deviation.

How does a constant change affect the spread?

Adding a constant to every value shifts the data but leaves the standard deviation and interquartile range unchanged. Multiplying every value by a positive constant kk multiplies both by kk.

e.g. If the data has standard deviation 2.52.5, adding 1010 to each value keeps it at 2.52.5, and doubling each value changes it to 55.

Worked example, step by step

The question Calculator needed (a list and one-variable statistics) [6 marks]

The times, in minutes, taken by 88 people to complete a puzzle are 14, 17, 17, 19, 22, 23, 26, 30.14,\ 17,\ 17,\ 19,\ 22,\ 23,\ 26,\ 30.

(a) Find the mean and the standard deviation of the times.

(b) A second puzzle takes each person twice as long as the first, plus 33 minutes. Write down the mean and the standard deviation of the times for the second puzzle.

Worked solution: worked example

Answer: (a) Mean =21=21 minutes, standard deviation =4.95=4.95 minutes. (b) Mean =45=45 minutes, standard deviation =9.90=9.90 minutes.

Step 1 - Enter the data and read the mean.

Put the eight times in a list and run one-variable statistics. The screen shows x¯=21\bar x=21. Check: 14+17+17+19+22+23+26+30=16814+17+17+19+22+23+26+30=168 and 1688=21\dfrac{168}{8}=21. M1 - Use a list and one-variable statistics, or 1688\dfrac{168}{8}, for the mean A1 - x¯=21\bar x=21

Why? The calculator gives the mean directly from the list, so you do not need to add the values yourself. Adding them is worth doing once as a check that the list was entered correctly.

Step 2 - Read the standard deviation.

The screen also shows σx≈4.9497\sigma x\approx 4.9497, so the standard deviation is σ=4.95\sigma=4.95 minutes to 33 significant figures. A1 - σ=4.95\sigma=4.95

Why? Use the value labelled σx\sigma x for the standard deviation of the data you are given. Keep the unrounded value on the calculator if you use it again.

Step 3 - Decide how the change affects each measure.

Each new time is y=2x+3y=2x+3. Multiplying every value by 22 multiplies the mean and the standard deviation by 22. Adding 33 increases the mean by 33 but leaves the standard deviation unchanged. M1 - Mean multiplied by 22 and increased by 33, standard deviation multiplied by 22 only

Why? Adding a constant slides every value along by the same amount, so the values stay the same distance apart and the spread does not change. Multiplying stretches the distances between the values, so the spread is multiplied too.

Step 4 - New mean.

y¯=2×21+3=45 minutes.\bar y=2\times21+3=45\text{ minutes}. A1 - New mean 4545

Why? The mean follows the same rule as every value: double it, then add 33.

Step 5 - New standard deviation.

σy=2×4.9497…=9.90 minutes.\sigma_y=2\times4.9497\ldots=9.90\text{ minutes}. A1 - New standard deviation 9.909.90

Why? Only the multiplier 22 acts on the standard deviation, and the +3+3 has no effect. You can check by running one-variable statistics on the new list 31,37,37,41,47,49,55,6331,\,37,\,37,\,41,\,47,\,49,\,55,\,63.

Marks (6):
M1 Use a list and one-variable statistics, or 1688\dfrac{168}{8}, for the mean
A1 x¯=21\bar x=21
A1 σ=4.95\sigma=4.95
M1 Mean multiplied by 22 and increased by 33, standard deviation multiplied by 22 only
A1 New mean 4545
A1 New standard deviation 9.909.90

Now you try: enter your answers to be marked

1
Easy
No calc
[4 marks]
A data set in order is 3,5,6,8,9,11,14,183, 5, 6, 8, 9, 11, 14, 18.
(a) Find the range.
[1]
(b) Find the interquartile range.
[3]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[4 marks]
The number of goals scored in 40 matches is shown.
Goals xx01234
Freq ff6141163
(a) Find the mean number of goals.
[2]
(b) Find the standard deviation.
[2]
Fractions & powers
Other

Worked solution: practice question 2

3
Medium
Calculator
[4 marks]
Three of four numbers are 6,8,106, 8, 10. The mean of all four is 9.
(a) Find the fourth number.
[2]
(b) Find the standard deviation of the four numbers, using a graphic display calculator.
[2]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 12 marks

Common mistakes

  • Reading the wrong standard deviation off the GDC. The calculator's 1-Var Stats screen shows two standard deviations. Use the one labelled σx\sigma x for a data set you are given in full, and do not use SxSx.
  • Forgetting that shifting data doesn't change its spread. Under y=ax+by=ax+b, the constant bb moves every value by the same amount, so gaps between values - and hence the standard deviation - are unaffected; only aa rescales the spread.
  • Splitting an odd-sized data set incorrectly for the quartiles. When nn is odd, whether the median itself is included in the lower and upper halves changes Q1Q_1 and Q3Q_3. The calculator and the hand method can give slightly different quartiles, so follow the method the question asks for.

Try some questions on measures of spread

Section 3 of 3 SL4.2

Statistical diagrams

Histograms, cumulative frequency graphs and box and whisker diagrams are three ways of presenting a data set. A histogram shows how the data is distributed, a cumulative frequency graph is used to read the median, quartiles and percentiles, and a box plot summarises five key values and makes two data sets easy to compare.

Reading the diagrams

Box and whisker diagrams

A box plot displays the five-number summary: minimum, Q1Q_1, median, Q3Q_3, maximum. The box spans the IQR, and the whiskers extend to the most extreme values that aren't outliers.

Outliers are plotted as separate crosses or dots, not included in the whisker.

Cumulative frequency graph

Plots running totals against the upper class boundary; the curve rises from 00 to nn.

The median is read at cumulative frequency n2\tfrac{n}{2}; Q1Q_1 at n4\tfrac{n}{4} and Q3Q_3 at 3n4\tfrac{3n}{4}.

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 frequency.

e.g. Frequencies 3,5,43, 5, 4 give cumulative frequencies 3,8,123, 8, 12.

What is a five-number summary?

It is the minimum, lower quartile, median, upper quartile and maximum. These five values are exactly what a box and whisker diagram displays.

e.g. For 2,4,6,8,10,12,142, 4, 6, 8, 10, 12, 14, the summary is 2,4,8,12,142, 4, 8, 12, 14.

How do you read the interquartile range from a cumulative frequency graph?

Read the lower quartile at one quarter of the total frequency and the upper quartile at three quarters, then subtract: Q3−Q1Q_3-Q_1.

e.g. A total frequency of 8080 means reading at 2020 and 6060 on the vertical axis; readings of 4848 and 7171 give an interquartile range of 71−48=2371-48=23.

What is an outlier on a box plot?

An outlier is a value that lies far from the rest of the data. In IB Mathematics it is a value more than 1.5×IQR1.5\times\text{IQR} above Q3Q_3 or below Q1Q_1, and it is marked separately from the whiskers.

e.g. If Q1=20Q_1=20 and Q3=30Q_3=30, then 1.5×10=151.5\times10=15, so values above 4545 or below 55 are outliers.

Worked example, step by step

The question No calculator needed [6 marks]

The times, in minutes, that 1111 students spent on an online quiz are, in order, 18, 22, 24, 25, 27, 28, 30, 31, 33, 36, 61.18,\ 22,\ 24,\ 25,\ 27,\ 28,\ 30,\ 31,\ 33,\ 36,\ 61.

(a) Find the lower quartile and the upper quartile.

(b) Use the 1.5×1.5\times interquartile range rule to find the boundaries beyond which a value is an outlier.

(c) Hence state which times are outliers, and write down the ends of the whiskers of a box plot of the data.

Worked solution: worked example

Answer: (a) Q1=24Q_1=24 and Q3=33Q_3=33. (b) The boundaries are 10.510.5 and 46.546.5. (c) The time 6161 is the only outlier. The whiskers end at 1818 and 3636.

Step 1 - Find the median and split the data.

There are 1111 values, so the median is the 66th value, 2828. Leave the median out and split the rest into two halves of five values: 18, 22, 24, 25, 27and30, 31, 33, 36, 61.18,\ 22,\ 24,\ 25,\ 27\quad\text{and}\quad 30,\ 31,\ 33,\ 36,\ 61. M1 - Split the ordered data into two halves, leaving out the median

Why? The quartiles are the medians of the lower half and the upper half. With an odd number of values the median itself belongs to neither half, which is why it is left out here.

Step 2 - Read the quartiles.

The middle value of the lower half is the 33rd, so Q1=24Q_1=24. The middle value of the upper half is 3333, so Q3=33Q_3=33. A1 - Q1=24Q_1=24 and Q3=33Q_3=33

Why? Each half has 55 values, so its middle value is the 33rd. A calculator can also give the quartiles, but the method used for them can differ from the method by hand, and for these data the two agree.

Step 3 - Find the interquartile range and the boundaries.

IQR=33−24=9,1.5×9=13.5.\text{IQR}=33-24=9,\qquad 1.5\times9=13.5. Lower boundary=24−13.5=10.5,upper boundary=33+13.5=46.5.\text{Lower boundary}=24-13.5=10.5,\qquad\text{upper boundary}=33+13.5=46.5. M1 - Use 1.5×IQR1.5\times\text{IQR} beyond the quartiles A1 - Boundaries 10.510.5 and 46.546.5

Why? A value is an outlier if it is more than 1.5×IQR1.5\times\text{IQR} below Q1Q_1 or above Q3Q_3. Work out both boundaries before you look at the data.

Step 4 - Decide which values are outliers.

No time is below 10.510.5, since the smallest is 1818. The time 6161 is above 46.546.5, so 6161 is an outlier. No other time is above 46.546.5. R1 - Compare with the boundaries: 6161 is the only outlier

Why? Check every value against both boundaries and say what you find, including that nothing falls below the lower boundary. The conclusion is only complete when each end has been dealt with.

Step 5 - Describe the box plot.

The upper whisker ends at the largest value that is not an outlier, which is 3636. The lower whisker ends at the smallest value, 1818. The outlier 6161 is shown with a cross. A1 - Whiskers end at 1818 and 3636

Why? A whisker stops at the most extreme value that is not an outlier, not at the boundary itself. Outliers are marked separately with a cross.

Marks (6):
M1 Split the ordered data into two halves, leaving out the median
A1 Q1=24Q_1=24 and Q3=33Q_3=33
M1 Use 1.5×IQR1.5\times\text{IQR} beyond the quartiles
A1 Boundaries 10.510.5 and 46.546.5
R1 Compare with the boundaries: 6161 is the only outlier
A1 Whiskers end at 1818 and 3636

Now you try: enter your answers to be marked

1
Easy
No calc
[4 marks]
The table shows the number of siblings reported by 20 students in a class.
Number of siblings01234
Frequency37631
(a) Find the median number of siblings.
[2]
(b) Find the range.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[5 marks]
The histogram shows delivery times (minutes) for 50 packages dispatched by a courier company.
0102030405005101520Delivery time (minutes)Frequency
(a) Find the missing frequency.
[2]
(b) Estimate the mean delivery time, using mid-interval values.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Medium
Calculator
[8 marks]
A helpline records the length, tt minutes, of each of 200 calls received in one week. The cumulative frequency table shows the results.
Length of call tt (minutes)t < 5t < 10t < 15t < 20t < 25t < 30
Cumulative frequency1660110158186200
(a) Find the lower boundary of the class that contains the median call length.
[2]
(b) Calculate an estimate of the median call length, in minutes.
[2]
(c) Find the percentage of the calls that lasted longer than 20 minutes.
[2]
(d) Calculate an estimate of the interquartile range of the call lengths, in minutes.
[2]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 17 marks

Common mistakes

  • Reading the median at the wrong cumulative frequency. The median sits at n2\tfrac{n}{2} on the cumulative frequency axis, not at the middle of the xx-axis - always work from the vertical axis first, then read across and down.
  • Judging skewness from the whiskers instead of the box. Skewness is about which side of the median the box (the middle 50%) is more stretched, not which whisker looks longer - a long whisker can exist on either side regardless of the overall skew.
  • Including outliers in the whisker length. A box plot's whiskers should stop at the most extreme non-outlier value; genuine outliers are marked separately, so don't stretch a whisker out to catch them.

Try some questions on statistical diagrams

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 =6.75= 6.75 and standard deviation =1.98= 1.98, 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 L1 and press enter.

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 33, Q1=6Q_1 = 6, median 9.59.5, Q3=14Q_3 = 14, maximum 3131. So IQR=14−6=8\text{IQR} = 14 - 6 = 8.

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 1616 and 3131 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 20<t≤3020 \lt t \le 30, with frequency 1212.

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 3,10,22,32,38,403, 10, 22, 32, 38, 40. The median is the 2020th value, so median≈28.3\text{median} \approx 28.3 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

CodeSyllabus content
SL4.1Interpretation of outliers. An outlier is defined as a data item which is more than 1.5 × interquartile range (IQR) from the nearest quartile. Awareness that, in context, some outliers are a valid part of the data but some outlying data items may be an error.
SL4.2Presentation of data (discrete and continuous): frequency distributions (tables). Histograms. Cumulative frequency; cumulative frequency graphs; use to find median, quartiles, percentiles, range and interquartile range (IQR). Production and understanding of box and whisker diagrams. Class intervals will be given as inequalities, without gaps. Frequency histograms with equal class intervals. Use of box and whisker diagrams to compare two distributions, using symmetry, median, interquartile range or range. Outliers should be indicated with a cross. Determining whether the data may be normally distributed by consideration of the symmetry of the box and whiskers.
SL4.3Measures of central tendency (mean, median and mode). Estimation of mean from grouped data. Modal class. Measures of dispersion (interquartile range, standard deviation and variance). Effect of constant changes on the original data. Quartiles of discrete data. Calculation of mean using formula and technology. Students should use mid-interval values to estimate the mean of grouped data, for equal class intervals only. Calculation of standard deviation and variance using only technology, however hand calculations may enhance understanding. Variance is the square of the standard deviation. Examples: if three is subtracted from the data items, then the mean is decreased by three, but the standard deviation is unchanged; if all the data items are doubled, the mean is doubled and the standard deviation is also doubled. Quartiles are found using technology; the values obtained using technology and by hand may differ.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Quick questions

How do you find the mean from a frequency table?

Use the weighted mean x¯=∑fx∑f\bar x = \dfrac{\sum fx}{\sum f}: multiply each value by its frequency, add the results, then divide by the total frequency. On a GDC, enter values and frequencies into two lists and run 1-Variable Statistics with a frequency list.

What is the difference between the range and the interquartile range?

The range is the maximum minus the minimum, so it uses only the two most extreme values. The interquartile range, IQR=Q3−Q1\text{IQR}=Q_3-Q_1, is the spread of the middle 50% of the data, so it isn't distorted by outliers the way the range is.

How do you find the median from a cumulative frequency graph?

Find n2\tfrac{n}{2} on the cumulative frequency axis, draw a horizontal line across to the curve, then a vertical line down to the horizontal axis - that value is the estimated median.

When should I use the median instead of the mean?

Use the median when the data has extreme values or is strongly skewed, because it is not pulled towards them. The mean suits data that is roughly symmetric, where every value should count.

Why is the standard deviation never negative?

It is the square root of the variance, which is an average of squared distances, so it is zero or positive. It equals 00 only when every value is identical.

Why do the bars of a histogram touch?

Continuous data has no gaps between classes, so the bars meet. Each bar covers one class interval, and with equal class widths its height shows the frequency.

How do I find the median from a frequency table?

Find the total frequency nn, then use the cumulative frequencies to locate the middle position. For values 1,2,31, 2, 3 with frequencies 3,4,33, 4, 3, the total is 1010 and the cumulative frequencies are 3,7,103, 7, 10, so the 55th and 66th values are both 22 and the median is 22.

How do I compare the spread of two data sets?

Compare their standard deviations, or their interquartile ranges, and say which data set is more consistent in context. The set with the smaller value is less spread out, and it helps to compare the means or medians as well.

How do I compare two box plots?

Compare the medians for the typical value, and the interquartile ranges or ranges for the spread, and comment on symmetry. State each comparison in context, for example which group has the higher median.

How does adding a constant to every value change the mean and median?

Both increase by that constant. Adding 55 to every value of 2,4,92, 4, 9 changes the mean from 55 to 1010 and the median from 44 to 99.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.