SECTION 02 / 6

Relative frequency: compare fairly

2 min read
On this page 4 headings

Raw counts can be hard to compare when groups have different sizes. Relative frequency tells us what fraction of a group belongs to a category.

Divide each count by the number of observations to get a share.
Divide each count by the number of observations to get a share.

One idea, three ways to write it

Relative frequency=category frequencytotal frequency=fn\text{Relative frequency} = \frac{\text{category frequency}}{\text{total frequency}} = \frac{f}{n}
Percentage=fn×100%\text{Percentage} = \frac{f}{n}\times 100\%

For A in the first lecture example, f = 4 and n = 10. Its relative frequency is 4/10 = 0.4, its proportion is 0.4, and its percentage is 40%. The remaining three categories each have 2/10 = 0.2 = 20%.

CategoryList 1: n = 10List 2: n = 15List 3: n = 15List 4: n = 18
A4/10 = 0.46/15 = 0.43/15 = 0.26/18 ≈ 0.3333
B2/10 = 0.23/15 = 0.26/15 = 0.43/18 ≈ 0.1667
C2/10 = 0.23/15 = 0.23/15 = 0.24/18 ≈ 0.2222
D2/10 = 0.23/15 = 0.23/15 = 0.25/18 ≈ 0.2778

Why the denominator matters

Lists 1 and 2 have different counts but identical proportions: A is 40% in both. As another example, 20 bus users among 50 students is 40%, whereas 30 among 100 is 30%. The second group has more bus users but a smaller share.

Checks that catch mistakes

Each relative frequency lies between 0 and 1. For a complete set of non-overlapping categories, exact relative frequencies sum to 1 and exact percentages sum to 100%. Use the total for the group you are actually describing: after filtering, the denominator may change.

Keep fractions or full precision while calculating and round only for display. Three equal categories each have share 1/3. Displaying each as 33.3% gives 99.9%; this small discrepancy is rounding, not a missing observation.

Try it yourself

A category has 12 of 40 responses. Find its relative frequency and percentage.

Show explained answer

12/40 = 0.3 = 30%.

Try it yourself

Group X has 8 out of 20 choosing A. Group Y has 15 out of 50 choosing A. Which has a larger share?

Show explained answer

X: 8/20 = 40%. Y: 15/50 = 30%. X has the larger share even though Y has the larger count.

More practice: apply what you learned

Try it yourself

In a class of 25 students, 10 choose football. Find the relative frequency and percentage.

Show explained answer

Relative frequency = 10/25 = 0.4. Percentage = 0.4×100% = 40%. Use the class total 25 as the denominator.

Try it yourself

A survey has 100 responses, but after filtering one class only 20 remain; 5 choose A. Find A’s share within that class.

Show explained answer

5/20 = 0.25 = 25%. The question asks within the filtered class, so divide by 20, not by the original 100.

Source: Lecture 2.1.pdf. Explanations, diagrams and extra practice are prepared for these notes.

YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑