Maths4UBETA

Frequency tables, grouped estimates and median interpolation

Use frequencies as counts, midpoints only as a model, and cumulative positions to locate a median.

Try the quick check →
Lesson 3 of 5

Section 1 of 5 · Core · about 6 min

How do I use a discrete frequency table?

A discrete frequency table states each observed value xx and how often it occurs, ff. It keeps the original values and their repetitions, so their summaries can be calculated exactly. Let TT be their total.

N=∑f,T=∑fx,xˉ=∑fxN.N=\sum f,\qquad T=\sum fx,\qquad\bar{x}=\frac{\sum fx}{N}.

First order the values. Cumulative frequencies tell you which row contains each observation. For odd NN, use position N+12\frac{N+1}{2}; for even NN, average the values at positions N2\frac{N}{2} and N2+1\frac{N}{2}+1.

ValueFrequencyCumulative countPositions
0221–2
1353–5
2496–9
411010

The fifth observation is 11 and the sixth is 22. The most frequent value is 22.

Median=1+22=32,xˉ=2(0)+3(1)+4(2)+1(4)10=32.\text{Median}=\frac{1+2}{2}=\frac32,\qquad\bar x=\frac{2(0)+3(1)+4(2)+1(4)}{10}=\frac32.

The fifth and sixth observations contain 11 and 22. Their average is the exact median 32\frac{3}{2}.

Worked example

A median between two rows

A school records the number xx of late arrivals in each of ten weeks. Find the exact mean, median and mode from this table.

Late arrivals xxWeeks ff
0022
1133
2244
4411
  1. Count every week, including weeks with no late arrivals:

    N=2+3+4+1=10.N=2+3+4+1=10.
  2. ∑fx=2(0)+3(1)+4(2)+1(4)=15,xˉ=1510=32.\sum fx=2(0)+3(1)+4(2)+1(4)=15,\qquad\bar{x}=\frac{15}{10}=\frac{3}{2}.
  3. The cumulative counts are 2,5,9,102,5,9,10. The fifth observation is 11, and the sixth is 22, so

    median=1+22=32.\text{median}=\frac{1+2}{2}=\frac{3}{2}.
  4. The greatest frequency is 44, attached to the observed value 22. The mode is 22, not 44.

Your turn

The table records the number of faults found in each of several inspections. Find the total count, exact mean, median and mode.

Faults xxFrequency ff
0011
2233
3355
5522

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Give the complete set: {1, 4} for separate values, (1, 5] for an interval, U for union or empty for no real solutions. Use sqrt(...) for exact roots.

Section 2 of 5 · Core · about 7 min

What does grouping let me estimate?

A grouped table gives counts in intervals, not the individual measurements. To estimate moments, replace each observation in a class by its midpoint m=L+U2m=\frac{L+U}{2}. Keep the class frequency as its weight:

xˉest=∑fmN,σest2=∑fm2N−(xˉest)2,σest=σest2.\bar{x}_{\mathrm{est}}=\frac{\sum fm}{N},\qquad \sigma_{\mathrm{est}}^2=\frac{\sum fm^2}{N}-(\bar{x}_{\mathrm{est}})^2,\qquad \sigma_{\mathrm{est}}=\sqrt{\sigma_{\mathrm{est}}^2}.

Here variance means the descriptive average squared distance from the mean, using divisor NN. Variance has squared units; standard deviation has the original units. With actual discrete values xx instead of midpoints mm, the same calculation gives exact descriptive moments.

Worked example

Build two midpoint columns

The grouped table gives heights hh, in centimetres, of twenty young plants. Use class midpoints to estimate the mean, descriptive variance and standard deviation.

Height hhFrequency ff
10≤h<2010\le h<2066
20≤h<3020\le h<301010
30≤h<5030\le h<5044
  1. The intervals already give continuous boundaries. Their midpoints are 15,25,4015,25,40; the final class is wider than the others.

  2. mmfffmfmfm2fm^2
    151566909013501350
    2525101025025062506250
    40404416016064006400
    Total20205005001400014000
  3. hˉest=50020=25 cm.\bar{h}_{\mathrm{est}}=\frac{500}{20}=25\,\mathrm{cm}.
  4. σest2=1400020−252=75 cm2,σest=53 cm.\sigma_{\mathrm{est}}^2=\frac{14000}{20}-25^2=75\,\mathrm{cm}^2,\qquad\sigma_{\mathrm{est}}=5\sqrt{3}\,\mathrm{cm}.
  5. These results treat all six plants in the first class as height 15 cm15\,\mathrm{cm}, and similarly for the other classes. They do not recover the original twenty heights.

Your turn

Plant heights hh, in centimetres, are grouped below. Use class midpoints to estimate the mean, descriptive variance and standard deviation.

Height hhFrequency
2≤h<62\le h<633
6≤h<106\le h<1055
10≤h<1810\le h<1822

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

The repeated-midpoint list gives exact model moments, which estimate the raw data. A uniform-within-class model instead spreads values across each class; it supports median interpolation later in this lesson. These are different models. The midpoint variance above is not the variance of that full uniform model.

In the interactive, one possible raw dataset has mean 21 cm21\,\mathrm{cm} and median 22 cm22\,\mathrm{cm}; another has mean 29 cm29\,\mathrm{cm} and median 28 cm28\,\mathrm{cm}. Both produce the same grouped table. Grouping alone does not tell you whether a midpoint estimate is above or below the true value.

If asked for a grouped modal class, this course uses the greatest frequency density fw\frac{f}{w}, where ww is class width. A question that explicitly defines it by greatest frequency must be followed as stated. Equal-width classes give the same result under either rule; a modal class does not identify an exact raw mode.

Section 3 of 5 · Core · about 5 min

How do I find a missing frequency?

Write the total count and weighted total with the unknown included, then use

∑fx=Nxˉ.\sum fx=N\bar{x}.

For a grouped midpoint estimate, replace xx by mm and use the stated estimated mean. Solve the equation, then check every frequency is a non-negative integer, the total is positive, and any extra condition such as a positive frequency is satisfied.

Worked example

Put the unknown frequency in both sums

A discrete table has values 1,3,61,3,6 with respective frequencies 2,k,42,k,4. The exact mean is 44. Find the non-negative integer frequency kk, then find the median.

  1. N=2+k+4=6+k,∑fx=2(1)+3k+4(6)=26+3k.N=2+k+4=6+k,\qquad\sum fx=2(1)+3k+4(6)=26+3k.
  2. 26+3k6+k=4⟹26+3k=24+4k⟹k=2.\frac{26+3k}{6+k}=4\Longrightarrow26+3k=24+4k\Longrightarrow k=2.
  3. The frequency is an allowed integer. Recheck the original mean:

    N=8,∑fx=32,328=4.N=8,\qquad\sum fx=32,\qquad\frac{32}{8}=4.
  4. Cumulative frequencies are 2,4,82,4,8. Observations 44 and 55 are 33 and 66, so

    median=3+62=92.\text{median}=\frac{3+6}{2}=\frac{9}{2}.

Your turn

A discrete table has values 2,4,82,4,8 with respective frequencies 3,k,23,k,2, where kk is a non-negative integer. The exact mean is 215\frac{21}{5}. Find kk. Could a separate table with the same fixed values and frequencies 3,k,23,k,2 have exact mean 44?

Enter an exact number, for example 3/2 or 2-sqrt(3).

Could the separate mean be exactly 44?

Section 4 of 5 · Core · about 7 min

How do I interpolate a grouped median?

Use the underlying continuous boundaries. For measurements rounded to the nearest unit, each recorded value represents an interval extending half a unit on either side; use the stated rule at exact ties. Different recording precision changes that half-unit adjustment. Leave already continuous boundaries unchanged, and do not close a genuine empty interval just because it is a gap.

For straight cumulative segments, assume a uniform spread within each class. Locate the median level N2\frac{N}{2}. In a class with lower boundary LL, previous cumulative count CC, positive frequency ff and width ww, the required fraction of the class is N2−Cf\frac{\frac{N}{2}-C}{f}, so

M^=L+N2−Cf w.\widehat{M}=L+\frac{\frac{N}{2}-C}{f}\,w.

Dashed guides connect time or measurement values to cumulative counts.

Height (cm)FrequencyMidpoint (cm)Cumulative count
10≤h<2010\le h<206156
20≤h<3020\le h<30102516
30≤h<5030\le h<5044020

The median is at cumulative count 20÷2=1020\div2=10 in the second class. Assume a uniform distribution inside that class.

Mest≈20+10−616−6(30−20)=24 cm.M_{\mathrm{est}}\approx20+\frac{10-6}{16-6}(30-20)=24\,\mathrm{cm}.hˉest=6(15)+10(25)+4(40)20=25 cm.\bar h_{\mathrm{est}}=\frac{6(15)+10(25)+4(40)}{20}=25\,\mathrm{cm}.σest2=1400020−252=75 cm2,σest=53 cm.\sigma_{\mathrm{est}}^2=\frac{14000}{20}-25^2=75\,\mathrm{cm}^2,\qquad \sigma_{\mathrm{est}}=5\sqrt3\,\mathrm{cm}.

The grouped frequencies do not give the two exact middle observations. The moments use midpoints and the median uses within-class interpolation.

For heights in [10,20),[20,30),[30,50)[10,20),[20,30),[30,50) with frequencies 6,10,46,10,4, the target is 1010 and M^=20+10−610(10)=24 cm\widehat{M}=20+\frac{10-6}{10}(10)=24\,\mathrm{cm}.

Worked example

Restore the boundaries before interpolating

Lengths were rounded to the nearest centimetre, with half-way values rounded up. The recorded groups and frequencies are shown below. Use a uniform spread within each underlying class to estimate the median length.

Recorded length in centimetresFrequency
20–2920\text{–}2966
30–3930\text{–}391010
40–5940\text{–}5944
  1. The true class boundaries are 19.5,29.5,39.5,59.519.5,29.5,39.5,59.5. For example, values from 29.529.5 up to but not including 39.539.5 round into the middle recorded group.

  2. N=20,N2=10.N=20,\qquad\frac{N}{2}=10.

    Cumulative frequencies 6,16,206,16,20 place the target level in the middle class.

  3. L=29.5,C=6,f=10,w=10.L=29.5,\qquad C=6,\qquad f=10,\qquad w=10.
  4. M^=29.5+10−610(10)=33.5 cm.\widehat{M}=29.5+\frac{10-6}{10}(10)=33.5\,\mathrm{cm}.
  5. The estimate is four centimetres into the middle class. Its midpoint is 34.5 cm34.5\,\mathrm{cm}, which is a different quantity.

Your turn

Recorded lengths xx, in centimetres, have the following continuous class boundaries. Assume a uniform spread within each class, so the cumulative graph consists of straight segments. Find its median target level and estimated median length.

Length xxFrequency
5≤x<155\le x<1533
15≤x<2515\le x<2588
25≤x<4525\le x<4544

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

If the target is an ordinary boundary between increasing segments, read that boundary directly. A zero-frequency class produces a flat segment. If its height equals N2\frac{N}{2}, every cutoff on that segment satisfies C(x)=N2C(x)=\frac{N}{2}; a unique crossing needs an additional convention. Never divide by a zero class frequency. If the question instead supplies a smooth freehand curve, read an estimate from that curve rather than assuming straight-line interpolation.

Section 5 of 5 · Further applications · about 6 min

How do I recover two unknown frequencies?

Two unknown frequencies generally need two independent conditions. A total count, exact mean or cumulative count can supply an equation. Translate words such as “below” carefully: observations equal to the cutoff do not belong in a strict-below count.

Solve the equations together and verify every original condition. If a condition involves an interpolated median, first write NN using all frequencies. After solving, check that the median target really lies in the class you used, with positive frequency. Dependent equations may leave several tables possible; inconsistent equations give none.

Worked example

Recover two frequencies from two conditions

A discrete table has values 1,3,5,81,3,5,8 with frequencies 2,p,q,12,p,q,1. Exactly six observations are below 55, and the exact mean is 44. Find pp, qq and the median.

  1. The cumulative condition uses only the first two values:

    2+p=6⟹p=4.2+p=6\Longrightarrow p=4.
  2. N=2+4+q+1=7+q,∑fx=2(1)+4(3)+5q+1(8)=22+5q.N=2+4+q+1=7+q,\qquad\sum fx=2(1)+4(3)+5q+1(8)=22+5q.
  3. 22+5q=4(7+q)⟹q=6.22+5q=4(7+q)\Longrightarrow q=6.
  4. Both frequencies are valid integers. The total count is 1313, the weighted total is 5252, and

    5213=4,2+4=6.\frac{52}{13}=4,\qquad 2+4=6.

    Both original conditions are satisfied.

  5. The median is observation 77. Cumulative frequencies 2,6,12,132,6,12,13 place it at x=5x=5, so the median is 55.

Your turn

A discrete table lists values 1,2,4,71,2,4,7 with frequencies 3,p,q,23,p,q,2. Exactly seven observations are below 44, and the exact mean is 33. Find pp, qq and the median.

Enter the value on its own or write p = … . Fractions and exact square roots are accepted.

Enter the value on its own or write q = … . Fractions and exact square roots are accepted.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

A discrete frequency table represents all observations

4 marks
ValueFrequency
01
24
43

Give the total count, exact mean, median and all modes.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Give the complete set: {1, 4} for separate values, (1, 5] for an interval, U for union or empty for no real solutions. Use sqrt(...) for exact roots.

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Use the observations represented by the table

A discrete frequency table records the number of defects in batches.

DefectsFrequency
02
33
75

Find the total number of batches, the exact mean, the median and every mode.

Enter the value on its own or write n = … . Fractions and exact square roots are accepted.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Give the complete set: {1, 4} for separate values, (1, 5] for an interval, U for union or empty for no real solutions. Use sqrt(...) for exact roots.

Estimate moments and a median from grouped data

Grouped lengths xx, in centimetres, have the following frequencies.

LengthFrequency
0≤x<60\le x<64
6≤x<106\le x<1010
10≤x<1810\le x<186

Use class midpoints to estimate the mean and descriptive variance. Assuming uniform spread within each class, estimate the median by linear interpolation. Give the model results as exact fractions.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

An unknown frequency changes the denominator

Values 2,5,82,5,8 have frequencies 3,k,43,k,4, respectively. The mean is 265\frac{26}{5}. Find kk and the total count. Separately, could any non-negative integer kk make the mean exactly 55?

Enter the value on its own or write k = … . Fractions and exact square roots are accepted.

Enter the value on its own or write n = … . Fractions and exact square roots are accepted.

Can the mean be exactly five?

Use continuous boundaries for rounded measurements

Masses were recorded to the nearest gram and grouped as follows.

Recorded mass (g)Frequency
10–1910\text{–}193
20–2920\text{–}299
30–4930\text{–}498

Use continuous class boundaries halfway between adjacent possible recorded integers, and assume uniform spread within each continuous class. State the lower and upper boundaries of the median class, then give the interpolated median as an exact fraction.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact number, for example 3/2 or 2-sqrt(3).

A flat cumulative segment does not select one crossing

Classes [0,5),[5,10),[10,20)[0,5),[5,10),[10,20) have frequencies 5,0,55,0,5. Draw the cumulative-frequency model using straight segments between class boundaries. The median target is cumulative level N2=5\frac{N}{2}=5. Give the endpoints of the full interval where the model has cumulative frequency 55. Does this crossing method identify one unique measurement without a further convention?

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Is one unique crossing selected?

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Start after this lesson

Recover two frequencies before locating the median 6 marks

A discrete frequency table is incomplete.

ValueFrequency
13
4pp
7qq
92

There are 1616 observations and their mean is 8316\frac{83}{16}. Find pp and qq, then the median and every mode.

Hint

One equation comes from the count and another from the weighted total. Rebuild the cumulative frequencies after solving them.

Worked solution
  1. 3+p+q+2=16⟹p+q=11.3+p+q+2=16\quad\Longrightarrow\quad p+q=11.
  2. 3+4p+7q+18=83⟹4p+7q=62.3+4p+7q+18=83\quad\Longrightarrow\quad4p+7q=62.
  3. Subtract 4(p+q)=444(p+q)=44 to obtain 3q=183q=18. Thus q=6q=6 and p=5p=5, both valid integer frequencies.

  4. Cumulative frequencies are 3,8,14,163,8,14,16. The eighth observation is 44, and the ninth is 77, giving

    M=4+72=112.M=\frac{4+7}{2}=\frac{11}{2}.
  5. The greatest frequency is 66, attached to value 77, so 77 is the only mode. The completed table restores count 1616 and weighted total 8383.

Marking guidance
  • 1 mark: form the total-frequency equation.
  • 1 mark: form the weighted-total equation.
  • 1 mark: solve for both frequencies and check their validity.
  • 1 mark: locate the two central observations.
  • 1 mark: obtain the median.
  • 1 mark: identify every modal value.
A grouped median determines a missing frequency 8 marks

A grouped length table, in centimetres, is

LengthFrequency
0≤x<40\le x<44
4≤x<104\le x<10kk
10≤x<1810\le x<186

The piecewise uniform model has median exactly 88 cm. Find the positive integer kk, the total count, the midpoint estimate of the mean and the model estimate of the fraction of lengths at least 1212 cm. Give exact fractions.

Hint

The count is k+10k+10, so the target cumulative level depends on the unknown frequency. The median lies in the middle class.

Worked solution
  1. 8=4+k+102−4k(6)=7+6k.8=4+\frac{\frac{k+10}{2}-4}{k}(6)=7+\frac{6}{k}.
  2. k=6,N=16.k=6,\qquad N=16.
  3. The median target is now 88, strictly between the cumulative counts 44 and 1010, confirming the selected class and positive denominator.

  4. xˉ≈4(2)+6(7)+6(14)16=13416=678 cm.\bar{x}\approx\frac{4(2)+6(7)+6(14)}{16}=\frac{134}{16}=\frac{67}{8}\ \text{cm}.
  5. Only the last class contributes to the requested tail. Under the uniform model, the fraction of that class at least 1212 cm is 18−1218−10=34\frac{18-12}{18-10}=\frac{3}{4}, so

    estimated overall fraction=616⋅34=932.\text{estimated overall fraction}=\frac{6}{16}\cdot\frac{3}{4}=\frac{9}{32}.
  6. The midpoint mean and within-class tail fraction estimate properties of the original data; they do not reveal the exact original values or tail count.

Marking guidance
  • 2 marks: form the median equation with the unknown count and class frequency.
  • 1 mark: solve for the valid integer frequency.
  • 1 mark: recover the count and verify the median class.
  • 1 mark: calculate the weighted midpoint total.
  • 1 mark: obtain the estimated mean.
  • 1 mark: find the within-class tail proportion.
  • 1 mark: weight that proportion by the class fraction of the full dataset.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.

Question bank and saved work