- Foundation
- About 20 min
- 5 practice questions
Pie diagrams and histograms
Convert components into pie-chart angles, draw a histogram for equal and unequal classes using frequency density, and distinguish a histogram from a bar diagram.
If something looks wrong, please tell us.
By the end of this lesson you can
- Work out the angles of a pie diagram from absolute values or percentages.
- Describe how a histogram is drawn, using frequency density when class widths differ.
- List the differences between a histogram and a bar diagram.
A pie diagram shows the parts of a whole as slices of a circle. A histogram shows a grouped frequency distribution as touching rectangles. Both rest on simple calculations, worked out below with made-up data.
Pie diagram
A pie diagram (pie chart) is also a component diagram, but here a circle is divided into sectors, one for each component, by straight lines from the centre to the circumference. Pie charts are not usually drawn with absolute values: each component is first expressed as a percentage of the total. Whatever its radius, the circle is treated as 100 equal parts of 3.6 degrees each (360 ÷ 100).
Angle of a component = its percentage × 3.6 degrees = (component value ÷ total value) × 360 degrees.
Worked example 1: angles from absolute values
Illustrative: a made-up farm of 500 hectares grows wheat on 200, rice on 150, pulses on 100 and other crops on 50 hectares.
| Crop (illustrative) | Area (hectares) | Per cent | Angle (degrees) |
|---|---|---|---|
| Wheat | 200 | 40 | 144 |
| Rice | 150 | 30 | 108 |
| Pulses | 100 | 20 | 72 |
| Others | 50 | 10 | 36 |
| Total | 500 | 100 | 360 |
Working: wheat = 200 ÷ 500 × 100 = 40 per cent; angle = 40 × 3.6 = 144 degrees. Rice = 30 per cent, 30 × 3.6 = 108 degrees. Pulses = 20 per cent, 72 degrees. Others = 10 per cent, 36 degrees. Check: 144 + 108 + 72 + 36 = 360 degrees. Draw a circle, draw a radius, and mark off the sectors with a protractor one after another.
Worked example 2: from a pie back to values
Illustrative: in a pie chart of a made-up firm's total cost of ₹6,00,000, the sector for wages has an angle of 90 degrees. Share: 90 ÷ 360 = 1/4 = 25 per cent. Value: 25 per cent of 6,00,000 = ₹1,50,000. Any data that can be shown by a component bar diagram can equally be shown by a pie chart, once the values are converted to percentages.
Histogram
Grouped frequency distributions are shown by frequency diagrams: the histogram, frequency polygon, frequency curve and ogive. A histogram is a two-dimensional diagram: a set of rectangles whose bases are the class intervals (between class boundaries, on the X-axis) and whose areas are proportional to the class frequencies. Because, for a continuous variable, each class's lower boundary meets the previous class's upper boundary, the rectangles are adjacent, with no gaps. Classes that are not continuous (inclusive classes) are first made continuous, as in the previous chapter.
When all classes have equal width, the heights can simply equal the frequencies. When widths differ (for example, very short age intervals at the start of a table of deaths by age), heights must be adjusted: the height is the frequency density, that is class frequency ÷ class width. Otherwise a wide class would look misleadingly large.
Worked example 3: frequency density for unequal classes
Illustrative: daily travel distances (km) of 52 made-up delivery workers.
| Distance (km) | Frequency | Class width | Frequency density | Height if width 10 is the standard |
|---|---|---|---|---|
| 0-10 | 5 | 10 | 0.5 | 5 |
| 10-20 | 12 | 10 | 1.2 | 12 |
| 20-40 | 20 | 20 | 1.0 | 10 |
| 40-70 | 15 | 30 | 0.5 | 5 |
| Total | 52 |
Working: density = frequency ÷ width: 5 ÷ 10 = 0.5; 12 ÷ 10 = 1.2; 20 ÷ 20 = 1.0; 15 ÷ 30 = 0.5. Using 10 km as the standard width, the adjusted heights are density × 10: 5, 12, 10 and 5. Why it matters: the class 20-40 has the largest frequency (20), but it is twice as wide, so its rectangle is drawn lower than that of 10-20. Check of areas: width × density gives back each frequency, for example 20 × 1.0 = 20 and 30 × 0.5 = 15.
A histogram can also be used to locate the mode graphically: in the tallest rectangle, join its top corners to the adjoining corners of the rectangles on either side; the X-coordinate of the point where these two lines cross is the mode. (The mode is studied in the next chapter.)
Histogram versus bar diagram
-
Histogram
- Two-dimensional: width and height both matter
- Area proportional to frequency
- No gaps between rectangles
- Only for continuous variables (grouped data)
- Can locate the mode
-
Bar diagram
- One-dimensional: only height matters
- Width and spacing are arbitrary
- Gaps between bars (except multiple and component bars)
- For discrete or continuous variables and attributes
Key takeaways: a pie diagram divides a circle into sectors; angle = percentage × 3.6 degrees, and all angles add to 360 degrees. A histogram is a set of adjacent rectangles on class intervals with areas proportional to frequencies; with unequal widths, heights are frequency densities. A histogram is two-dimensional and only for continuous variables; a bar diagram is one-dimensional.
Check your understanding
-
1. Illustrative: a component forms 35 per cent of a total. Its angle in a pie diagram is:
- 35 degrees
- 100 degrees
- 126 degrees
- 360 degrees
Show answer
Answer: C. Angle = percentage × 3.6 = 35 × 3.6 = 126 degrees.
-
2. Illustrative: a class 30-50 has a frequency of 24. Its frequency density is:
- 1.2
- 24
- 0.83
- 2.4
Show answer
Answer: A. Frequency density = frequency ÷ class width = 24 ÷ (50 − 30) = 24 ÷ 20 = 1.2.
-
3. Which statement about a histogram is correct?
- Its bars have gaps between them
- Only the height of the rectangles matters
- It is drawn only for continuous variables, and its rectangles touch each other
- It is a one-dimensional diagram
Show answer
Answer: C. A histogram is two-dimensional (width and height both matter), its rectangles are adjacent with no gaps, and it is drawn only for a continuous variable.
-
4. Illustrative: in a pie chart of a made-up town's 12,000 households, the sector for households using bicycles is 60 degrees. How many households use bicycles?
- 1,200
- 2,000
- 6,000
- 7,200
Show answer
Answer: B. Share = 60 ÷ 360 = 1/6. Households = 12,000 × 1/6 = 2,000.
-
5. Assertion (A): When class intervals are unequal, the heights of a histogram's rectangles should be frequency densities. Reason (R): In a histogram it is the area of a rectangle, not its height alone, that represents the frequency.
- Both A and R are true, and R is the correct explanation of A
- Both A and R are true, but R is not the correct explanation of A
- A is true, but R is false
- A is false, but R is true
Show answer
Answer: A. Both are true, and R explains A: since area must be proportional to frequency, a wider class needs a proportionately lower rectangle, which is achieved by plotting frequency ÷ width (frequency density).
Sign in to keep track of the lessons you finish.