Formula sheet

Mean (grouped)

x̄ = Σfx / Σf is given on the SPM formula sheet. You still must know how to build the fx column, and, crucially, that for a class interval x is the class midpoint (lower boundary + upper boundary, then ÷ 2), not the upper or lower limit.

Mean (grouped)
x̄ = Σfx / Σf
Given in the exam

What the symbols mean

  1. x̄ the mean of the grouped data
  2. f the frequency of each value or class
  3. x each value, or the midpoint of each class interval
  4. Σfx the sum of every frequency × value
  5. Σf the total frequency (the total number of data)

Given in the exam, or memorise?

x̄ = Σfx / Σf is given on the SPM formula sheet. You still must know how to build the fx column, and, crucially, that for a class interval x is the class midpoint (lower boundary + upper boundary, then ÷ 2), not the upper or lower limit.

Why it works

Each value x occurs f times, so multiplying x by f is a shortcut for adding that value f times over.

  1. For each row, multiply the value (or class midpoint) x by its frequency f to get fx.
  2. Add all the fx to get the grand total Σfx, this is the same as Σx would be for a full raw list.
  3. Add all the frequencies to get Σf, the total count.
  4. Divide: x̄ = Σfx / Σf gives the mean.

Worked example 1

The number of goals scored in 20 matches is recorded. Goals x = 0, 1, 2, 3, 4 with frequencies f = 3, 5, 6, 4, 2.

Find the mean number of goals per match.

  1. Total frequency: Σf = 3 + 5 + 6 + 4 + 2 = 20.
  2. Multiply each value by its frequency: fx = 0, 5, 12, 12, 8.
  3. Add them: Σfx = 0 + 5 + 12 + 12 + 8 = 37.
  4. Apply the formula: x̄ = Σfx / Σf = 37 / 20.

Worked example 2

The masses of 20 parcels are grouped: class 1–5 (midpoint 3) f = 4, class 6–10 (midpoint 8) f = 6, class 11–15 (midpoint 13) f = 7, class 16–20 (midpoint 18) f = 3. Find the mean mass.

  1. Use the class midpoints as x: 3, 8, 13, 18.
  2. Total frequency: Σf = 4 + 6 + 7 + 3 = 20.
  3. Compute fx: (3×4), (8×6), (13×7), (18×3) = 12, 48, 91, 54.
  4. Add: Σfx = 12 + 48 + 91 + 54 = 205, then x̄ = Σfx / Σf = 205 / 20.

Where students go wrong

  1. Dividing by the number of classes instead of by Σf (the total frequency), the denominator is always the total count of data.
  2. For class intervals, using the upper or lower limit instead of the midpoint x when there is a range like 6–10.
  3. Computing Σf × Σx or (Σf)(Σx) separately, you need Σ(fx), the sum of each row's f × x.

Use it with

Source:SPM: Format Pentaksiran mulai 2021, Matematik (1449)

Book a Trial ClassOne-hour paid trial · Same-day reply · from RM50/hr

Frequently asked questions

What value of x do I use for a class interval like 21–30?

Use the class midpoint. Add the lower and upper limits and divide by two: for 21–30 that is (21 + 30) ÷ 2 = 25.5.

Enter this midpoint as x for that row, multiply by the frequency f, and continue. Never use the limits themselves as x.

Why is my grouped mean slightly different from the raw-data mean?

Because grouping replaces every value in a class with the one midpoint, some information is lost. The grouped mean is therefore an estimate, usually very close but not identical to the exact mean of the original list.

That is expected and acceptable in SPM answers.

Is this the same formula as the ungrouped mean?

Yes, it is the same idea. Σfx is just Σx written efficiently, because f tells you how many times each value repeats, and Σf equals N.

Use x̄ = Σfx / Σf whenever the data comes as a frequency table or grouped classes rather than a plain list.

Book a Trial Class

Book a Trial Class
One-hour paid trial · Same-day replyfrom RM50/hr
Book a Trial Class