Lesson 27 of 42 · Counting, probability and statistics
Frequencies, measures of centre and measures of spread
Read absolute, relative, joint and conditional frequencies, and compute mean, median, mode, range, variance and standard deviation by hand.
About 24 minutes
In this lesson
- Turn absolute frequencies into relative, cumulative, joint and conditional frequencies.
- Find the mean, median and mode of a list or of a frequency table.
- Compute range, variance and standard deviation, and predict how they change when every value is shifted or scaled.
The idea
Frequencies
A frequency table lists each value once with the number of times it occurs. That number is the absolute frequency . Divide it by the total number of observations to get the relative frequency , a share that can be written as a fraction, a decimal or a percent. Absolute frequencies add up to ; relative frequencies add up to 1. Checking that sum is the quickest way to catch a misread table.
The cumulative frequency of a value counts the observations at or below it. It is what you need to find a median from a table.
Joint and conditional frequencies
When each observation is classified in two ways, a two-way table holds the counts. In the table below, 50 customers of a shop are classified by day and by how they paid.
| Card | Cash | Total | |
|---|---|---|---|
| Weekday | 18 | 12 | 30 |
| Weekend | 14 | 6 | 20 |
| Total | 32 | 18 | 50 |
- A joint frequency is an inner cell: 14 customers paid by card at the weekend, a joint relative frequency of .
- A marginal frequency is a row or column total: 32 paid by card.
- A conditional frequency is a cell divided by its row or column total, restricted to one group: among weekend customers, paid by card; among card payers, came at the weekend.
These are the same ideas as conditional probability, with counts in place of probabilities; the only question is always which total sits in the denominator.
Measures of centre
- Mean: the sum of the values divided by how many there are. From a frequency table, : multiply each value by its frequency, add, and divide by the total frequency , not by the number of rows.
- Median: the middle value once the data are in order. With observations, it is the value in position ; when is even, that falls between two positions and the median is the mean of the two middle values. From a frequency table, use cumulative frequencies to see which value occupies the middle positions.
- Mode: the most frequent value. A data set can have more than one.
The mean uses every value, so a single extreme value can drag it a long way; the median does not move when the largest value grows. For data with a long tail on one side, mean and median can differ a lot.
Measures of spread
- Range: largest minus smallest. Easy, but decided by two values only.
- Variance: the mean of the squared deviations from the mean. In this lesson we use the population formula, which divides by :
Some books divide by for a sample; if a question does not say, look at the answer options, but here and in every example below the divisor is .
- Standard deviation: the square root of the variance, . It is in the same units as the data, which is why it is the measure people quote.
An equivalent formula is often quicker by hand: the variance equals the mean of the squares minus the square of the mean,
Use one formula and check with the other.
Shifting and scaling the data
If every value is transformed as :
| Measure | New value |
|---|---|
| mean, median, mode | |
| range, standard deviation | |
| variance |
Adding a constant moves every value by the same amount, so the centre moves and the spread does not. Multiplying stretches the distances between values, so the spread is multiplied too. These rules turn many statistics questions into one line of work.
Working without a calculator
Choose the route with the smallest numbers. Subtract a convenient value from every observation before averaging, then add it back: the mean of 197, 199, 204 is . Deviations from the mean are usually small whole numbers; squaring those is faster and safer than squaring the raw data.
Worked examples
Example 1: Centre from a frequency table
Twenty students were asked how many novels they read last month. The answers 0, 1, 2, 3, 4 had frequencies 3, 5, 6, 4, 2. Find the relative frequencies, the mean, the median, the mode and the range.
Check the total: . Relative frequencies: , which add to 1.
Mean: .
Median: is even, so average the 10th and 11th values. Cumulative frequencies: up to 0 is 3, up to 1 is 8, up to 2 is 14. Positions 9 to 14 are all 2, so both middle values are 2 and the median is 2.
Mode: 2, with frequency 6. Range: .
Check the mean with relative frequencies: .
Answer
Mean 1.85, median 2, mode 2, range 4. Dividing the 37 by the 5 rows instead of the 20 students would give 7.4, larger than every value in the table, which is impossible for a mean.
Example 2: Variance and standard deviation by hand
Find the population variance and standard deviation of 3, 5, 5, 11.
Mean: .
Deviations from the mean: . They add to 0, as deviations from the mean always do.
Squared deviations: , total 36. Population variance: . Standard deviation: .
Check with the mean of the squares: , and .
Answer
Variance 9, standard deviation 3. Dividing by would give 12, the sample variance, which is not the formula used here.
Example 3: Rescaling a set of scores
A test's scores have mean 60 and standard deviation 8. Every score is multiplied by 1.5 and then 10 points are added. Find the new mean, standard deviation and variance.
The transformation is , so and .
Mean: .
Standard deviation: only the factor acts, . The added 10 moves every score equally and leaves the distances unchanged.
Variance: . Check: the old variance was , and .
Answer
Mean 100, standard deviation 12, variance 144. Applying the whole rule to the standard deviation, , is the classic error.
Common traps
Dividing by the number of rows
The mean of a frequency table divides by the total frequency , not by the number of distinct values. A "mean" larger than the largest value or smaller than the smallest shows that the wrong divisor was used.
Taking the middle row as the median
The median is the middle observation, not the middle line of the table. Use cumulative frequencies to find which value sits in position .
Mixing up the two variance formulas
Dividing by gives the population variance; dividing by gives the sample variance. State which you use and keep to it. If the options include both, the question's wording decides; here every computation divides by .
Letting a shift change the spread
Adding or subtracting the same number to every value leaves range, variance and standard deviation unchanged. Only multiplication changes them, and the variance by the square of the factor.
The wrong total for a conditional frequency
"Among weekend customers, the share paying by card" divides by the weekend total, not by all customers and not by all card payers. Name the group after "among" before dividing.
Check yourself
Answer each question before you open its answer.
Question 1: Mean from a frequency table
Central tendency and dispersion
In a survey of 10 households, the number of cars per household was recorded. The values 1, 2, 3, 4 had frequencies 5, 2, 2, 1. What is the mean number of cars per household?
- A.1
- B.1.9
- C.2.5
- D.4.75
Show the answer
Answer: B. 1.9
Working
Total number of cars: . Number of households: . Mean: . Check with relative frequencies: .
Why the other options are wrong
- A. This is the mode, the most frequent value, not the mean.
- C. This is the mean of the four values 1, 2, 3, 4, ignoring how often each occurs.
- D. Divides the correct total of 19 cars by the 4 rows of the table instead of the 10 households.
What carries over
Weight each value by its frequency and divide by the total frequency.
Question 2: Population variance
Central tendency and dispersion
Using the population formula (dividing by ), what is the variance of the data 2, 4, 6, 8, 10?
- A.
- B.8
- C.10
- D.40
Show the answer
Answer: B. 8
Working
Mean: . Deviations: ; squares: , total 40. Variance: . Check: mean of squares , and .
Why the other options are wrong
- A. This is the standard deviation, the square root of the variance.
- C. Divides the sum of squared deviations, 40, by : the sample formula, not the population formula the question asks for.
- D. This is the sum of the squared deviations, before dividing by the number of values.
What carries over
Variance is the mean squared deviation; take the square root only when the standard deviation is asked for.
Question 3: Scaling and shifting
Central tendency and dispersion
A list of numbers has mean 20 and standard deviation 4. Every number is multiplied by 3, and then 5 is subtracted. What is the standard deviation of the new list?
- A.4
- B.7
- C.12
- D.144
Show the answer
Answer: C. 12
Working
For the standard deviation becomes ; the shifts every value and leaves the spread unchanged. Check with the variance: old variance 16, new variance , and . (The new mean is , which is not asked.)
Why the other options are wrong
- A. Assumes the standard deviation never changes. Subtracting 5 leaves it alone, but multiplying by 3 triples it.
- B. Applies the whole rule, , to the standard deviation. The subtraction shifts every value equally and does not affect the spread.
- D. This is the new variance, , not the standard deviation.
What carries over
Shifts move the centre only; scaling multiplies the standard deviation by the factor and the variance by its square.
Key points
Relative frequency is count over total; conditional frequency is count over the total of the group you are restricted to.
The mean of a frequency table is ; the median is the value in position .
Population variance divides the squared deviations by ; the standard deviation is its square root.
For : the centre becomes , the standard deviation , the variance .
All questions here are original and written for UniExamer; none comes from the test maker.
Written by the UniExamer team with AI assistance. Every worked example and check question was re-solved by an independent checker before publication. No subject expert has reviewed this lesson yet. If you find a mistake, write to support@uniexamer.com.