Join the class midpoints of a frequency table into a line graph, and overlay a second group on the same classes, as counts or as percentages when the groups differ in size.
Midpoint = (lower + upper) ÷ 2
A frequency polygon is a line graph of a frequency table: each class is plotted as a point at its midpoint and height equal to its frequency, and the points are joined with straight lines. It traces the tops of a histogram's bars.
Its advantage over a histogram is overlaying. Two sets of bars on one chart hide each other, but two lines can be compared directly, so frequency polygons are the standard way to compare the shapes of two groups.
When the groups differ in size, plot percentages rather than counts. Otherwise the larger group's line sits higher everywhere simply because it has more people.
As described in OpenStax Introductory Statistics, section 2.2. See Sources.
Closing it makes the area under the polygon equal the area of the matching histogram.
On counts, school B looks stronger in most classes simply because it has 10 more pupils. As percentages, A has the larger share of high marks, which is the fair comparison.
Counts and percentages side by side. The first and last rows are the empty end classes.
| Class | Midpoint | A count | A % | B count | B % |
|---|---|---|---|---|---|
| 20–<30 | 25 | 0 | 0% | 0 | 0% |
| 30–<40 | 35 | 0 | 0% | 1 | 3.3% |
| 40–<50 | 45 | 1 | 5% | 3 | 10% |
| 50–<60 | 55 | 3 | 15% | 7 | 23.3% |
| 60–<70 | 65 | 6 | 30% | 10 | 33.3% |
| 70–<80 | 75 | 6 | 30% | 6 | 20% |
| 80–<90 | 85 | 3 | 15% | 2 | 6.7% |
| 90–<100 | 95 | 1 | 5% | 1 | 3.3% |
| 100–<110 | 105 | 0 | 0% | 0 | 0% |
They show the same table. A histogram uses bars; a polygon joins the midpoints of the bar tops with lines, which is easier to overlay.
An empty class is added at each end, so the line closes on the axis and encloses the same area as the histogram.
Whenever you compare groups of different sizes. With equal sizes, counts and percentages give the same shape.
A related graph that plots cumulative frequency against upper class boundaries, showing how many values fall below each point.
Automatically from Sturges’ rule on all the data, rounded to a tidy number, unless you enter one.
The higher one: classes include their lower limit and exclude their upper limit.
This page overlays two. More lines are possible but quickly become hard to read.
No, values are grouped into classes. For every value, use a dot plot or stem-and-leaf plot.
Related Tools