Study Guide

Descriptive statistics: measures of center and spread

IB Mathematics: Applications and Interpretation HLΒ· 30 min read

1. Measures of Central Tendency (Center)β˜…β˜†β˜†β˜†β˜†β± 8 min

πŸ“˜ Definition

Measure of center

A single value that describes the central position of a set of numerical data, also called a measure of central tendency

Example:

The average height of students in a class is a measure of center

Three common measures of center are used for descriptive statistics, each suited to different contexts:

  • Mean: The arithmetic average of all data values, calculated as the sum of all values divided by the number of values.

  • Median: The middle value of an ordered data set, with half the values above and half below.

  • Mode: The most frequently occurring value in a data set, can be used for categorical as well as numerical data.

πŸ“ Worked Example

A small cafΓ© records the number of customers per hour over 6 hours: [12, 8, 15, 10, 8, 14]. Calculate the mean, median and mode.

  1. 1

    Step 1: Calculate the mean by summing all values and dividing by the number of observations:

  2. 2
    12+8+15+10+8+146=676β‰ˆ11.17\frac{12 + 8 + 15 + 10 + 8 + 14}{6} = \frac{67}{6} \approx 11.17
  3. 3

    Step 2: Order the data set from smallest to largest:

  4. 4
    [8,8,10,12,14,15][8, 8, 10, 12, 14, 15]
  5. 5

    Step 3: For an even number of observations, the median is the average of the two middle values:

  6. 6
    Median=10+122=11\text{Median} = \frac{10 + 12}{2} = 11
  7. 7

    Step 4: The mode is the most frequently occurring value:

  8. 8

    Mode = 8 customers

2. Measures of Dispersion (Spread)β˜…β˜…β˜†β˜†β˜†β± 10 min

πŸ“˜ Definition

Measure of spread

A value that describes how far apart data points are from each other and from the center of the distribution

Example:

The standard deviation of test scores tells you how much scores vary around the average

Common measures of spread quantify the variation in a data set:

  • Range: Difference between the maximum and minimum value, simple but very sensitive to outliers.

  • Interquartile Range (IQR): Difference between the third quartile (Q3, 75th percentile) and first quartile (Q1, 25th percentile), not sensitive to outliers.

  • Variance: Average of the squared deviations from the mean.

  • Standard deviation: Square root of variance, measured in the same units as the original data.

πŸ“ Worked Example

For the ordered customer data set [8, 8, 10, 12, 14, 15], calculate the IQR and sample standard deviation.

  1. 1

    Step 1: Find quartiles: Q1 is the median of the lower half, Q3 is the median of the upper half:

  2. 2
    Q1=8+82=8,Q3=14+152=14.5Q1 = \frac{8 + 8}{2} = 8, \quad Q3 = \frac{14 + 15}{2} = 14.5
  3. 3

    Step 2: Calculate IQR = Q3 - Q1:

  4. 4
    IQR=14.5βˆ’8=6.5IQR = 14.5 - 8 = 6.5
  5. 5

    Step 3: Use the sample standard deviation formula, with sample mean :

  6. 6
    s=βˆ‘(xiβˆ’xΛ‰)2nβˆ’1s = \sqrt{\frac{\sum (x_i - \bar{x})^2}{n-1}}
  7. 7

    Step 4: Calculate the sum of squared deviations, divide by , then take the square root:

  8. 8
    sβ‰ˆ2.99s \approx 2.99

Exam tip:

Always check if the question asks for population or sample standard deviation β€” marks are deducted for the wrong output from your GDC.

3. Selecting Appropriate Measuresβ˜…β˜…β˜†β˜†β˜†β± 7 min

The choice of which measure to use depends entirely on the shape of your distribution and the presence of outliers.

πŸ“ Worked Example

A company has 5 employees with annual salaries (in thousands of dollars): [45, 48, 52, 55, 250]. Which measure of center is most appropriate for describing the typical employee salary?

  1. 1

    Step 1: Identify that 250 is an extreme outlier, meaning the distribution is heavily right-skewed.

  2. 2

    Step 2: Calculate both mean and median for comparison:

  3. 3
    Mean=90,Median=52\text{Mean} = 90, \quad \text{Median} = 52
  4. 4

    Step 3: The mean is pulled up by the outlier to $90,000, which is higher than 4 out of 5 salaries. The median of $52,000 is much closer to the typical salary, so it is the appropriate measure.

4. Effect of Linear Transformationsβ˜…β˜…β˜…β˜†β˜†β± 5 min

When you apply a linear transformation of the form to all data points (for example, converting units from cm to inches), measures of center and spread change in predictable ways:

  1. Adding a constant to all values: adds to all measures of center, does not change any measures of spread.

  2. Multiplying all values by a positive constant : multiplies all measures of center by , multiplies all measures of spread by , and multiplies variance by .

πŸ“ Worked Example

The mean of a data set of lengths is 25 cm, with standard deviation 3 cm. Find the new mean and standard deviation after converting to inches (1 inch = 2.54 cm).

  1. 1

    Step 1: The transformation is , so .

  2. 2

    Step 2: The new mean equals the old mean multiplied by :

  3. 3
    New Mean=25Γ—0.3937β‰ˆ9.84 inches\text{New Mean} = 25 \times 0.3937 \approx 9.84 \text{ inches}
  4. 4

    Step 3: The new standard deviation equals the old standard deviation multiplied by :

  5. 5
    New SD=3Γ—0.3937β‰ˆ1.18 inches\text{New SD} = 3 \times 0.3937 \approx 1.18 \text{ inches}

5. Histograms and Cumulative Frequency Graphsβ˜…β˜…β˜†β˜†β˜†β± 12 min

For larger data sets, raw lists are replaced by frequency distributions. Two standard graphs summarize grouped data: the histogram, which reveals the shape of the distribution, and the cumulative frequency graph, which lets you read off the median, quartiles and percentiles.

πŸ“˜ Definition

Histogram

A graph for continuous (grouped) data where adjacent bars represent class intervals. For equal-width classes the bar height is the frequency; for unequal-width classes the height is the frequency density (frequency divided by class width).

Example:

A histogram of 80 students' test scores in classes of width 20 shows the distribution is roughly symmetric and unimodal.

πŸ“˜ Definition

Cumulative frequency graph

Plotting the cumulative frequency (running total of frequencies) against the upper boundary of each class and joining the points with a smooth curve produces an S-shaped ogive.

Example:

If 5 students scored at most 20 and 15 more scored at most 40, the cumulative frequency at a score of 40 is 20.

To estimate positional measures from a cumulative frequency graph with data values, read the -value at these cumulative frequencies:

  • Median: read across from cumulative frequency .

  • Lower quartile Q1: read across from .

  • Upper quartile Q3: read across from .

  • -th percentile: read across from .

  • Then IQR .

Score interval

Frequency

Upper boundary

Cumulative frequency

5

20

5

15

40

20

30

60

50

20

80

70

10

100

80

πŸ“ Worked Example

Using the cumulative frequency table above for the test scores of 80 students, estimate the median, the quartiles and the interquartile range.

  1. 1

    Step 1: With , the median is at cumulative frequency . This falls in class , between cumulative frequency 20 (at 40) and 50 (at 60). Interpolate:

  2. 2
    Medianβ‰ˆ40+40βˆ’2050βˆ’20Γ—20β‰ˆ53.3\text{Median} \approx 40 + \frac{40 - 20}{50 - 20} \times 20 \approx 53.3
  3. 3

    Step 2: Q1 is at . Cumulative frequency 20 occurs exactly at a score of 40, so .

  4. 4

    Step 3: Q3 is at , which falls in class , between cumulative frequency 50 (at 60) and 70 (at 80). Interpolate:

  5. 5
    Q3β‰ˆ60+60βˆ’5070βˆ’50Γ—20=70Q3 \approx 60 + \frac{60 - 50}{70 - 50} \times 20 = 70
  6. 6

    Step 4: Calculate the interquartile range:

  7. 7
    IQR=Q3βˆ’Q1=70βˆ’40=30IQR = Q3 - Q1 = 70 - 40 = 30

Exam tip:

On a cumulative frequency graph, read the median off at cumulative frequency , Q1 at and Q3 at β€” use itself, not , for grouped data in AI.

6. Common Pitfalls

Wrong move:

Confusing population and sample standard deviation on your GDC output

Why:

Most graphic display calculators output both values with different symbols, and exams require the correct value for the context

Correct move:

Check the question: if working with a sample (most cases in AI HL), use , if working with a full population, use

Wrong move:

Using mean and standard deviation for heavily skewed data with outliers

Why:

Outliers pull the mean away from the true center of the data, leading to a misleading description of the typical value

Correct move:

Check for skewness and outliers first: if present, use median and IQR instead

Wrong move:

Calculating the median from an unordered data set

Why:

The median is defined as the middle value of sorted data, so taking the middle value of unsorted data will almost always be wrong

Correct move:

Always sort the data set from lowest to highest before calculating the median or quartiles

Wrong move:

Confusing range and interquartile range

Why:

Many students incorrectly calculate IQR as maximum minus minimum, which is actually range

Correct move:

IQR is Q3 minus Q1, it measures the spread of the middle 50% of the data

Wrong move:

Thinking adding a constant to all data changes the spread

Why:

Students often assume adding a constant changes both center and spread

Correct move:

Adding a constant shifts all points equally, so the distance between points (spread) stays exactly the same

7. Quick Reference Cheatsheet

Measure Type

Name

Best Used For

Transformation

Center

Mean

Symmetric data, no outliers

Center

Median

Skewed data, with outliers

Center

Mode

Categorical/bimodal data

Spread

Range

Rough quick estimate

Spread

IQR

Skewed data, with outliers

Spread

SD

Symmetric data, no outliers

Spread

Variance

Statistical calculations

8. Frequently Asked

When should I use median instead of mean?

Use median when your data is heavily skewed or has extreme outliers, because the median is not affected by extreme values, while the mean is pulled towards the outlier. Median gives a better representation of the typical value in these cases.

Why do we divide by n-1 for sample standard deviation?

Dividing by n-1 corrects for bias in the estimate of the population variance when working with a sample. This Bessel correction ensures your sample estimate is closer to the true population value.

What's Next

Understanding measures of center and spread is the foundation for all further statistics topics in IB AI HL. You will next use these concepts to analyze bivariate data, where you will calculate the center and spread of variables for correlation and regression. Later, you will use these measures to describe probability distributions, and for statistical inference, where the center and spread of sampling distributions are critical for constructing confidence intervals and running hypothesis tests.