Why this matters
Drawing a histogram or a frequency polygon is a four-mark question that rewards neat work and correct scales, and a one-mark question often asks which graph suits which data or how to adjust unequal class widths. Reading such graphs is also a life skill: newspapers and reports use them daily.
The idea
A picture of data is easier to read than a table. Class 9 uses three pictures.
A bar graph is a pictorial representation of data in which rectangular bars of uniform width are drawn with equal spacing between them, one bar for each category, with the height of each bar proportional to the value it represents. Bar graphs suit categories or discrete data such as favourite sports or the population of towns. The gaps between bars remind you that the categories are separate.
A histogram is a graphical representation of a grouped frequency distribution with continuous classes, in which rectangles are drawn with class intervals as bases and, for equal class sizes, heights equal to the frequencies. Because the classes are continuous, the rectangles touch with no gaps. If the first class does not start at 0, a kink or break mark is drawn on the x-axis near the origin to show that the scale has been broken.
In a histogram it is the area of each rectangle that represents the frequency. When all classes have the same width, height and frequency agree. When class widths differ, the heights must be adjusted so that areas stay proportional. Adjusted frequency of a class = (minimum class size ÷ class size of that class) × its frequency. A class twice as wide as the smallest gets half its frequency as height.
A frequency polygon is the graph obtained by joining, in order, the midpoints of the tops of the rectangles of a histogram with line segments, and then closing the figure by joining the ends to the midpoints of an imagined class at each end with frequency zero. The x-coordinates used are the class marks. A frequency polygon can also be drawn without a histogram by plotting the points (class mark, frequency) and joining them.
| Graph | Data | Bars or lines |
|---|---|---|
| Bar graph | Categories or discrete values | Separate bars of equal width with gaps |
| Histogram | Continuous grouped data | Touching rectangles, area shows frequency |
| Frequency polygon | Continuous grouped data | Line through (class mark, frequency), closed to the axis |
Whatever you draw, mark both axes with what they show, choose a scale that uses the paper well, write the scale on the graph and give a title.
Worked examples
Example 1: A bar graph
Question: In a class of 40 students, 16 like cricket, 10 like kabaddi, 8 like football and 6 like chess. Draw a bar graph.
- Mark the sports on the x-axis at equal spacing and number of students on the y-axis with a scale of 1 cm for 2 students.
- Draw bars of equal width and heights 16, 10, 8 and 6, leaving equal gaps.
- Label the axes and give the title Favourite sports.
Answer: Four separated bars of heights 16, 10, 8 and 6.
Example 2: A histogram and its frequency polygon
Question: Marks of 30 students are grouped as 0–10: 4, 10–20: 8, 20–30: 12, 30–40: 6. Draw the histogram and the frequency polygon.
- All classes have size 10, so heights equal frequencies. Mark 0 to 40 on the x-axis and 0 to 12 on the y-axis.
- Draw touching rectangles of heights 4, 8, 12 and 6 on the bases 0–10, 10–20, 20–30 and 30–40.
- Class marks are 5, 15, 25 and 35. Mark the points (5, 4), (15, 8), (25, 12) and (35, 6) at the tops of the rectangles.
- Add the imagined classes −10–0 and 40–50 with frequency 0, giving points (−5, 0) and (45, 0), and join all six points in order.
Answer: A histogram of heights 4, 8, 12, 6 with the polygon through (−5, 0), (5, 4), (15, 8), (25, 12), (35, 6), (45, 0).
Example 3: Unequal class widths
Question: The classes 0–10, 10–20, 20–40 and 40–70 have frequencies 5, 8, 12 and 9. Find the heights of the histogram rectangles.
- The minimum class size is 10.
- Class 0–10: height = (10 ÷ 10) × 5 = 5. Class 10–20: (10 ÷ 10) × 8 = 8.
- Class 20–40: size 20, height = (10 ÷ 20) × 12 = 6.
- Class 40–70: size 30, height = (10 ÷ 30) × 9 = 3.
Answer: Heights 5, 8, 6 and 3.
Common mistakes
- Leaving gaps between the rectangles of a histogram. The classes are continuous, so the rectangles touch.
- Using the frequency as the height when class widths are unequal. Adjust it first.
- Plotting the polygon points at class limits instead of class marks.
- Forgetting the kink on the x-axis when the first class does not start at 0, and forgetting to close the polygon to the axis.
Try it yourself
- Which graph is used for a continuous grouped frequency distribution?
- The minimum class size in a table is 10. A class 30–50 has frequency 16. What height is its rectangle?
- Write the class marks used for a frequency polygon of the classes 10–20 and 20–30.
Answers: 1. A histogram. 2. (10 ÷ 20) × 16 = 8. 3. 15 and 25.