Graphical representations
A graph shows at a glance the shape of the data: where they cluster, whether they are symmetric and whether they have values far away from the rest. In the IB exam you have to choose the right graph for the type of variable, draw it with properly labelled axes and read specific values from it. The most common mistakes occur with the histogram and the cumulative frequency graph, so pay close attention to those two sections.
Which graph to use?
Before drawing, check what type of variable you have.
| Type of data | Usual graph |
|---|---|
| Qualitative | Bar chart or pie chart |
| Discrete quantitative, with few values | Bar chart |
| Continuous, or grouped into intervals | Histogram and frequency polygon |
| Questions such as "how many at most" | Cumulative frequency graph |
Bar chart
If you join the tops of the bars with line segments, you obtain the frequency polygon of the diagram.
Pie chart
A pie chart divides a circle into parts. It is used to compare the share that each value represents of the total, and it works best with a few categories.
Histogram
When all the classes have the same width, the height of each bar is simply its frequency. If the widths differ, the height must be corrected, and for that we use the frequency density.
Frequency polygon
The frequency polygon is obtained by joining with line segments the points placed above the class midpoint of each bar, at the height of its frequency. So that the line reaches the axis, a point at height is added in the classes adjacent to the two ends.
Cumulative frequency graph
Worked examples
Calls received by a switchboard
A switchboard records, over 20 hours, the number of calls it receives in each hour. The results are in this table:
| Calls | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| Hours | 4 | 7 | 5 | 3 | 1 |
a) In a bar chart, what is the height of the bar for ?
b) How many hours had at most calls?
c) In a pie chart, how many degrees does the sector for measure?
Solution
There are hours, which is the sum of the frequencies: .
a) The height of the bar is its absolute frequency, .
b) "At most " means , and that is the cumulative frequency of :
c) By the sector formula,
Waiting time at the clinic with the cumulative graph
The waiting time, in minutes, of 40 patients at a health centre has been recorded. The grouped data are:
| Waiting (min) | Patients |
|---|---|
| 4 | |
| 10 | |
| 14 | |
| 8 | |
| 4 |
A cumulative frequency graph is drawn.
a) How many patients waited at most minutes?
b) Estimate how many patients waited at most minutes. Use the line joining the two points of the graph that surround .
c) In which class is the patient who occupies place if the patients are ordered by waiting time?
Solution
First the cumulative frequencies are calculated: , , , and . The points of the graph are , , , and , in addition to the origin.
a) These are the data with waiting time less than or equal to minutes. We read the point directly: there are patients.
b) Between and the line rises patients in minutes. Up to it has risen half of that segment, so We estimate patients.
c) Up to the class there are patients. Places and do not fall there, so place is in the class .
Histogram with unequal class widths
The distance covered by each of 52 couriers in one day has been recorded, in kilometres. The class widths are not equal:
| Kilometres | Couriers |
|---|---|
| 12 | |
| 8 | |
| 14 | |
| 18 |
A histogram is drawn with the height of each bar equal to the frequency density.
a) What is the height of the bar for ?
b) Which class has the tallest bar in the histogram?
c) What proportion of couriers cover between and kilometres? Give the answer as an irreducible fraction.
Solution
We calculate the density of each class by dividing its frequency by its width:
| Class | Width | Height | |
|---|---|---|---|
a) The height of is .
b) The tallest bar is that of , with height . The class with the most couriers is (with ), but it is the widest, and that is why its bar is not the tallest. This is the trap in the exercise.
c) Between and kilometres lie the classes and , with couriers. As :
Common mistakes
Summary
- A bar chart is for a discrete or qualitative variable with few values (separated bars). For proportions, use a pie chart, with angle .
- A continuous or grouped variable calls for a histogram with joined bars. The height is ; with classes of the same width, the frequency alone is enough.
- The frequency polygon joins the points at the class midpoints, at the height of their frequencies.
- The cumulative frequency graph places each point at the upper limit of its class. It lets you read how many data lie up to a value, and estimate the median and the quartiles.
- Always label the axes, use a uniform scale and check that the frequencies add up to .
Want to work on it together?
Free first consultation: we look at your level and your exam, and build a plan. Álvaro replies on WhatsApp.
Message us on WhatsApp