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 fif_i. Divide it by the total number of observations nn to get the relative frequency fin\frac{f_i}{n}, a share that can be written as a fraction, a decimal or a percent. Absolute frequencies add up to nn; 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 1450=0.28\frac{14}{50} = 0.28.
  • 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, 1420=70%\frac{14}{20} = 70\% paid by card; among card payers, 1432=43.75%\frac{14}{32} = 43.75\% 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, xˉ=∑fixin\bar{x} = \frac{\sum f_i x_i}{n}: multiply each value by its frequency, add, and divide by the total frequency nn, not by the number of rows.
  • Median: the middle value once the data are in order. With nn observations, it is the value in position n+12\frac{n+1}{2}; when nn 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 nn:

σ2=1n∑(xi−xˉ)2.\sigma^2 = \frac{1}{n}\sum (x_i - \bar{x})^2.

Some books divide by n−1n - 1 for a sample; if a question does not say, look at the answer options, but here and in every example below the divisor is nn.

  • Standard deviation: the square root of the variance, σ=σ2\sigma = \sqrt{\sigma^2}. 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,

σ2=1n∑xi2−xˉ2.\sigma^2 = \frac{1}{n}\sum x_i^2 - \bar{x}^2.

Use one formula and check with the other.

Shifting and scaling the data

If every value is transformed as y=ax+by = a x + b:

Measure New value
mean, median, mode a⋅(old)+ba \cdot (\text{old}) + b
range, standard deviation ∣a∣⋅(old)\lvert a \rvert \cdot (\text{old})
variance a2⋅(old)a^2 \cdot (\text{old})

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 200+−3−1+43=200200 + \frac{-3 - 1 + 4}{3} = 200. 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.

  1. Check the total: 3+5+6+4+2=203 + 5 + 6 + 4 + 2 = 20. Relative frequencies: 0.15,0.25,0.30,0.20,0.100.15, 0.25, 0.30, 0.20, 0.10, which add to 1.

  2. Mean: 0×3+1×5+2×6+3×4+4×220=0+5+12+12+820=3720=1.85\frac{0 \times 3 + 1 \times 5 + 2 \times 6 + 3 \times 4 + 4 \times 2}{20} = \frac{0 + 5 + 12 + 12 + 8}{20} = \frac{37}{20} = 1.85.

  3. Median: n=20n = 20 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.

  4. Mode: 2, with frequency 6. Range: 4−0=44 - 0 = 4.

  5. Check the mean with relative frequencies: 0×0.15+1×0.25+2×0.30+3×0.20+4×0.10=0.25+0.6+0.6+0.4=1.850 \times 0.15 + 1 \times 0.25 + 2 \times 0.30 + 3 \times 0.20 + 4 \times 0.10 = 0.25 + 0.6 + 0.6 + 0.4 = 1.85.

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.

  1. Mean: 3+5+5+114=244=6\frac{3 + 5 + 5 + 11}{4} = \frac{24}{4} = 6.

  2. Deviations from the mean: −3,−1,−1,5-3, -1, -1, 5. They add to 0, as deviations from the mean always do.

  3. Squared deviations: 9,1,1,259, 1, 1, 25, total 36. Population variance: 364=9\frac{36}{4} = 9. Standard deviation: 9=3\sqrt{9} = 3.

  4. Check with the mean of the squares: 9+25+25+1214=1804=45\frac{9 + 25 + 25 + 121}{4} = \frac{180}{4} = 45, and 45−62=945 - 6^2 = 9.

Answer

Variance 9, standard deviation 3. Dividing by n−1=3n - 1 = 3 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.

  1. The transformation is y=1.5x+10y = 1.5x + 10, so a=1.5a = 1.5 and b=10b = 10.

  2. Mean: 1.5×60+10=1001.5 \times 60 + 10 = 100.

  3. Standard deviation: only the factor acts, 1.5×8=121.5 \times 8 = 12. The added 10 moves every score equally and leaves the distances unchanged.

  4. Variance: 122=14412^2 = 144. Check: the old variance was 6464, and 1.52×64=2.25×64=1441.5^2 \times 64 = 2.25 \times 64 = 144.

Answer

Mean 100, standard deviation 12, variance 144. Applying the whole rule to the standard deviation, 1.5×8+10=221.5 \times 8 + 10 = 22, is the classic error.

Common traps

  • Dividing by the number of rows

    The mean of a frequency table divides ∑fixi\sum f_i x_i by the total frequency nn, 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 n+12\frac{n+1}{2}.

  • Mixing up the two variance formulas

    Dividing by nn gives the population variance; dividing by n−1n - 1 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 nn.

  • 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?

  1. A.1
  2. B.1.9
  3. C.2.5
  4. D.4.75
Show the answer

Answer: B. 1.9

Working

Total number of cars: 1×5+2×2+3×2+4×1=5+4+6+4=191 \times 5 + 2 \times 2 + 3 \times 2 + 4 \times 1 = 5 + 4 + 6 + 4 = 19. Number of households: 5+2+2+1=105 + 2 + 2 + 1 = 10. Mean: 1910=1.9\frac{19}{10} = 1.9. Check with relative frequencies: 0.5+0.4+0.6+0.4=1.90.5 + 0.4 + 0.6 + 0.4 = 1.9.

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 nn), what is the variance of the data 2, 4, 6, 8, 10?

  1. A.222\sqrt{2}
  2. B.8
  3. C.10
  4. D.40
Show the answer

Answer: B. 8

Working

Mean: 305=6\frac{30}{5} = 6. Deviations: −4,−2,0,2,4-4, -2, 0, 2, 4; squares: 16,4,0,4,1616, 4, 0, 4, 16, total 40. Variance: 405=8\frac{40}{5} = 8. Check: mean of squares 4+16+36+64+1005=2205=44\frac{4 + 16 + 36 + 64 + 100}{5} = \frac{220}{5} = 44, and 44−36=844 - 36 = 8.

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 n−1=4n - 1 = 4: 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?

  1. A.4
  2. B.7
  3. C.12
  4. D.144
Show the answer

Answer: C. 12

Working

For y=3x−5y = 3x - 5 the standard deviation becomes ∣3∣×4=12\lvert 3 \rvert \times 4 = 12; the −5-5 shifts every value and leaves the spread unchanged. Check with the variance: old variance 16, new variance 32×16=1443^2 \times 16 = 144, and 144=12\sqrt{144} = 12. (The new mean is 3×20−5=553 \times 20 - 5 = 55, 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, 3×4−53 \times 4 - 5, to the standard deviation. The subtraction shifts every value equally and does not affect the spread.
  • D. This is the new variance, 12212^2, 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 ∑fixin\frac{\sum f_i x_i}{n}; the median is the value in position n+12\frac{n+1}{2}.

  • Population variance divides the squared deviations by nn; the standard deviation is its square root.

  • For y=ax+by = ax + b: the centre becomes a⋅old+ba \cdot \text{old} + b, the standard deviation ∣a∣⋅old\lvert a \rvert \cdot \text{old}, the variance a2⋅olda^2 \cdot \text{old}.

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.

Bu konuyu çalış

Bu beceride çözümlü açıklamalarla yeni sorular. Çalışma için Single Exam Pass veya Plus gerekir.