A table of numbers must be read, but a picture can be taken in at a glance. Diagrams and graphs are therefore used to present data to people who need to see the pattern quickly.
Bar Diagrams and Pie Charts
A bar diagram uses bars of equal width whose lengths are proportional to the values. It suits qualitative data and discrete data. A simple bar diagram shows one variable, a multiple bar diagram compares several, and a component bar diagram divides each bar into parts. A pie chart is a circle divided into sectors whose angles are proportional to the values. The angle of a sector is its frequency divided by the total, multiplied by 360 degrees.
Definition: Histogram. A diagram of a continuous frequency distribution, drawn as adjacent rectangles whose widths are the class widths and whose heights are the class frequencies.
Histogram, Frequency Polygon and Ogive
A histogram is drawn for a continuous frequency distribution. The class boundaries are marked on the horizontal axis and the frequencies on the vertical axis. A frequency polygon is obtained by joining the mid-points of the tops of the rectangles with straight lines. An ogive, or cumulative frequency curve, is drawn by plotting the cumulative frequency against the class limits. A line graph shows how a quantity changes with time, by joining points plotted against the time axis, as for the monthly sales of a shop. Diagrams attract attention and are easily remembered, but they show only approximate values, so a table is preferred when exact figures are needed.
Table 1.3: Diagrams and their uses
| Diagram | Used for | Basis of drawing |
|---|---|---|
| Bar diagram | Categories, discrete data | Length of bars |
| Pie chart | Parts of a whole | Angle of sectors |
| Histogram | Continuous distribution | Area of rectangles |
| Frequency polygon | Shape of a distribution | Class marks and frequencies |
| Ogive | Cumulative frequencies | Cumulative frequency and limits |
Example 1.3: Angles of a pie chart
Problem: Of 20 students, 6 earned grade A, 9 grade B, 3 grade C and 2 grade D. Find the angle of each sector of a pie chart.
Solution:
- Angle = frequency / 20 × 360, which is 18 degrees for each student.
- Grade A: 6 × 18 = 108 degrees. Grade B: 9 × 18 = 162 degrees.
- Grade C: 3 × 18 = 54 degrees. Grade D: 2 × 18 = 36 degrees.
Result: The angles are 108, 162, 54 and 36 degrees, which add up to 360.
Common mistakes
- Leaving gaps between the rectangles of a histogram of continuous data.
- Starting the vertical axis of a bar diagram at a value other than zero, which exaggerates differences.
- Drawing a pie chart whose angles do not add up to 360 degrees.
Key takeaways
- Bar diagrams suit categories; histograms suit continuous data.
- A pie chart sector has the angle frequency / total x 360.
- A frequency polygon joins the class marks at the tops of the bars.
- An ogive is a graph of cumulative frequency.
Practice questions
- What is the angle of a pie chart sector for a frequency of 25 out of 100?
- How is a frequency polygon obtained from a histogram?
- What does an ogive show?
Answers to the practice questions
- 25 / 100 x 360 = 90 degrees.
- By joining the mid-points of the tops of the rectangles with straight lines.
- The cumulative frequency of a distribution.
Sources
- Official BCA syllabus Probability and Statistics, course code 26BCA403DS01, Unit I
