Worked example
From a ward tally to a defensible display. A ward has audited 40 patients and wants two figures for the monthly quality meeting. The first dataset is blood group: A 10 patients, B 12, AB 4, O 14. The second is waiting time for the first dose of analgesia, grouped in minutes as 0–9 (8 patients), 10–19 (14), 20–29 (12) and 30–39 (6). Before anything is drawn, the nurse must name each variable and prove the numbers.
- Name the variable type in each dataset. Blood group is categorical: the four groups are names, not amounts, so they can be compared but not added along a scale. Waiting time is continuous: it is a measurement, and the groups 0–9, 10–19 are artificial classes cut out of a continuous scale.
- Check both totals before drawing anything. Blood group: 10 + 12 + 4 + 14 = 40. Waiting time: 8 + 14 + 12 + 6 = 40. Both match the 40 audited patients, so the parts rebuild the whole and the tables can be trusted.
- Compute the sector angles for the blood-group pie. The rule is angle = (frequency ÷ total) × 360°, and the total is 40. Group A: 10 ÷ 40 = 0.25, then 0.25 × 360° = 90°. Group B: 12 ÷ 40 = 0.30, then 0.30 × 360° = 108°. Group AB: 4 ÷ 40 = 0.10, then 0.10 × 360° = 36°. Group O: 14 ÷ 40 = 0.35, then 0.35 × 360° = 126°.
- Add the four angles as a check: 90° + 108° + 36° + 126° = 360°. A total of 360° means the sectors exactly fill the circle. If the total were 350° or 370°, one frequency would be wrong or a division would have been rounded.
- Choose and label the second display. Waiting time is continuous and already grouped, so the right display is a histogram with touching bars, the unit “minutes” written on the horizontal axis and the frequency “number of patients” on the vertical axis. The bars touch because the classes are adjacent pieces of one continuous scale, and the tallest bar at 10–19 minutes shows where most patients wait.
The same 40 patients produced a pie chart, because their blood groups are parts of one whole of 40, and a histogram, because their waiting times are a continuous measurement cut into classes. Naming the variable type first, and checking the totals and the 360° before drawing, is what makes both figures defensible in a meeting.
Tutorial 1 — calculating pie-chart sector angles
A ward audit classifies 60 patients by blood group: A 15 patients, B 18, AB 6 and O 21. You must build the pie chart by hand, computing each sector angle and proving that the four angles fill the circle exactly. Work with a protractor or a spreadsheet, but do the reasoning here first.
Rule used: Sector angle = (category frequency ÷ total frequency) × 360°, because one whole circle measures 360°. Two checks are built into the rule: the frequencies must first add to the total frequency, and the finished angles must add to 360°.
Add the four frequencies and confirm that they rebuild the total of 60 patients.
Reveal this step
15 + 18 + 6 + 21 = 60. The total matches the 60 patients audited, so every patient belongs to exactly one group and the pie chart is legitimate.
The rule multiplies by 360° rather than by 100. Why does a percentage table use 100 and a pie chart use 360°?
Reveal the answer
Both numbers describe the same whole in different units. A percentage cuts the whole into 100 equal parts, so the fraction is multiplied by 100 and the parts total 100 %. A circle cuts the whole into 360 degrees of angle, so the same fraction is multiplied by 360 and the parts total 360°.
Compute the sector angle for group A, which holds 15 of the 60 patients. Divide first, then multiply.
Reveal this step
15 ÷ 60 = 0.25, so group A is one quarter of the patients. Then 0.25 × 360° = 90°. Group A takes a right angle, exactly one quarter of the circle.
Group B holds 18 of the 60 patients. Without computing, say whether its sector is larger or smaller than group A’s, and check your judgement with the calculation.
Reveal the answer
Larger, because 18 is more than 15 patients out of the same 60. The calculation confirms it: 18 ÷ 60 = 0.30, and 0.30 × 360° = 108°, which is 18° wider than the 90° sector of group A.
Compute the two remaining sectors: AB with 6 patients and O with 21 patients.
Reveal this step
AB: 6 ÷ 60 = 0.10, then 0.10 × 360° = 36°. O: 21 ÷ 60 = 0.35, then 0.35 × 360° = 126°. The four sectors are 90°, 108°, 36° and 126°.
Add the four angles. What must the answer be, and what would an answer of 350° tell you about your work?
Reveal the answer
90° + 108° + 36° + 126° = 360°, so the sectors fill the circle exactly. A total of 350° would mean that 10° are unaccounted for: either a frequency was copied wrongly, or one division was rounded too early, or a sector was simply drawn short. Never draw the chart until the total is 360°.
Answer: Group A 90°, group B 108°, group AB 36° and group O 126°; the four angles sum to 360°, so the circle is exactly filled and the chart can be drawn.
Keep this habit: Divide each frequency by the total first, then multiply by 360°; never multiply and divide in the other order. Finish by adding the angles and insisting on 360° — that single check catches a wrong frequency, an early rounding and a printer’s error before the figure reaches a meeting.
Tutorial 2 — choosing the display for five datasets
A district hospital is preparing its monthly report and hands you five datasets: (1) the ward to which each of 120 patients was admitted — medical, surgical, paediatrics or maternity; (2) waiting time to first analgesia in minutes, grouped 0–9, 10–19, 20–29 and 30–39; (3) malaria cases recorded in each of the 12 months; (4) age and systolic blood pressure for each of 80 patients; (5) the five leading causes of maternal death as shares of 20 deaths. Choose the display for each and justify the choice.
Rule used: Ask two questions before drawing. First, what type is the variable? A category needs a bar chart or a pie chart; a continuous measurement needs a histogram; a value followed in time order needs a line graph; two measurements on the same subject need a scatter plot. Second, what must the reader decide? Comparison of sizes, share of a whole, direction over time, or relationship between two variables.
Dataset 1: name the variable type for the ward of admission, then choose between a bar chart and a pie chart.
Reveal this step
Ward is a categorical (nominal) variable: four names with no natural order. A bar chart with four separated bars is the safe choice because the reader must compare the number of patients per ward; a pie chart is equally legal if the report’s purpose is to show each ward’s share of all 120 admissions.
Dataset 2 gives waiting times grouped as 0–9, 10–19, 20–29 and 30–39 minutes. Which display is correct, and what does it show that a table of the same four numbers does not?
Reveal the answer
A histogram with touching bars, because waiting time is continuous and the classes are adjacent pieces of one scale. The table gives four numbers; the histogram shows the shape — where the patients concentrate, how long the right tail is, and whether a few patients wait far longer than the rest.
Dataset 3: 12 monthly malaria counts. Name the display and state exactly what must go on each axis.
Reveal this step
A line graph. The horizontal axis carries the months in calendar order, January to December, and the vertical axis carries the number of cases, with the unit “cases” stated. The points are joined in that order so that the rise and fall of the epidemic is visible.
Dataset 4 holds two measurements for each of 80 patients: age and systolic blood pressure. Which display, and what can it show that none of the previous three can?
Reveal the answer
A scatter plot, one dot per patient. It is the only display among the four in which the two axes carry two different quantitative variables, so it can show whether the two measurements move together — here, whether older patients tend to have higher systolic pressures. It shows a relationship, not a share and not a trend in time.
Dataset 5: five causes of maternal death as shares of 20 deaths. Choose between a bar chart and a pie chart, and state the total you will use.
Reveal this step
A pie chart, because the 20 deaths form one complete whole and the report asks for each cause’s share of that whole; the total is 20 deaths, and each sector angle will be (deaths from that cause ÷ 20) × 360°. A bar chart would also be acceptable if the purpose were to rank the causes by size.
A colleague proposes to present dataset 2 — the grouped waiting times — as a bar chart with wide gaps and the vertical axis cut off at 10 patients. What two false claims would that figure make?
Reveal the answer
The gaps would claim that no waiting time exists between one class and the next, as though a patient could wait 9 minutes or 10 minutes but nothing in between, although the scale is continuous. Cutting the axis at 10 patients would claim that the difference between the bars is much larger than it really is, because bar length, not the number beside it, is what the eye compares.
Write the five decisions as one line each, each with its unit, so that a colleague could draw the figures without asking you anything.
Reveal this step
Ward: bar chart, x = ward name, y = patients. Waiting time: histogram, x = minutes, y = patients, bars touching. Malaria: line graph, x = month, y = cases. Age and pressure: scatter plot, x = age in years, y = systolic pressure in mmHg. Causes of death: pie chart, sector angle = (deaths ÷ 20) × 360°, unit degrees.
Answer: Ward → bar chart; waiting time → histogram; malaria by month → line graph; age and blood pressure → scatter plot; causes of maternal death → pie chart with angles computed from the total of 20 deaths.
Keep this habit: Name the variable type and the reader’s decision before you open the software; the display is one of the two answers, never a matter of taste. Write the unit of each axis at the same moment, and check that a continuous variable never receives separated bars.
Now you try
Attempt each one on paper first. Write the formula, substitute the numbers, then check the unit of your answer.
A ward table lists 80 patients by ward — medical 28, surgical 22, paediatrics 18, maternity 12 — but it has no title, no unit on the count column, no total row and no source. Name what is missing, compute the missing total, and give the medical ward’s percentage to one decimal place.
Hint
Add the four counts to obtain the total; the percentage of a category is (category count ÷ total) × 100, computed from the total you have just checked.
Show the worked answer
Missing: the title saying which group and period the table describes, the unit “patients” on the count column, the Total row, and the source line. Total = 28 + 22 + 18 + 12 = 80 patients, which matches the number audited. Medical ward percentage = 28 ÷ 80 × 100 = 35.0 %.
You have two datasets from the same clinic: (a) the number of children each patient has, recorded as 0, 1, 2, 3 or 4; (b) each patient’s body temperature in °C. Choose the display for each and explain, in terms of the bars, why the two choices differ.
Hint
Ask whether a value between two neighbouring classes is possible for the patient. If it is impossible, the classes are separate categories; if it is possible, they are pieces of one continuous scale.
Show the worked answer
(a) A bar chart with gaps: the number of children is discrete, so only whole values exist and each value is a separate category; a bar for 1.5 children would be meaningless. (b) A histogram with touching bars: temperature is continuous, so the classes are adjacent pieces of one scale and a gap would wrongly claim that no temperature exists between two classes.
A triage audit sorts 120 patients into four categories: red 15, orange 25, yellow 50 and green 30. Compute the four pie-chart sector angles and prove that they fill the circle.
Hint
Divide each frequency by the total of 120, then multiply by 360°. Group the angles at the end and insist on a total of exactly 360°.
Show the worked answer
Total = 15 + 25 + 50 + 30 = 120. Red: 15 ÷ 120 = 0.125, so 0.125 × 360° = 45°. Orange: 25 ÷ 120 × 360° = 75°. Yellow: 50 ÷ 120 × 360° = 150°. Green: 30 ÷ 120 × 360° = 90°. Check: 45° + 75° + 150° + 90° = 360°, so the sectors fill the circle exactly.
Two datasets arrive for the infection-control report: (a) hand-hygiene compliance in per cent recorded in each of the 12 months; (b) compliance in per cent in each of four wards. A colleague plots the wards as a line graph. Choose the correct display for each and explain what the colleague’s line graph wrongly claims.
Hint
A line graph is only legal when the horizontal axis carries a real sequence. Ask whether one ward comes before another in any meaningful order.
Show the worked answer
(a) A line graph, with the months in calendar order on the horizontal axis and compliance in per cent on the vertical axis, because the slope shows whether compliance is improving. (b) A bar chart with separated bars, because the four wards are separate categories with no natural order. The colleague’s line wrongly claims that one ward follows another along a path and that compliance rises or falls from ward to ward, which is meaningless.
Common misconception
Many beginners believe a histogram is simply a bar chart with the gaps rubbed out, so the two are interchangeable once the numbers are ready. The gaps are not a style choice: they encode whether the categories are separate things or a continuous scale cut into pieces. A gapped bar chart of grouped weights claims that nobody weighs between 49 kg and 50 kg. A histogram of blood groups drawn with touching bars claims that group A flows into group B. The variable type decides the display, and the gaps are how the display reports that decision.
Check your reasoning
A colleague shows a pie chart of malaria cases by month for one year and says it proves that malaria is seasonal. Using what a pie chart can and cannot show, write your reply.
Reveal an answer
A pie chart divides one fixed whole, here the year’s total cases, so each sector shows only which month contributed the largest share of that total. Seasonality means a pattern of rise and fall across the months, which is change in time, and a pie chart has no time axis: its sectors could be reordered at random with no loss. The same twelve monthly counts on a line graph, with the months in calendar order, would show whether cases actually climb and fall together each year, and only several years of such lines could establish a seasonal pattern. So the pie chart is not wrong, it is simply answering a different question from the one your colleague claims.
Where this comes from
- BMS 1110 Applied Mathematics and Medical Biostatistics lecture notes (supplied) · Unit Three “Description and presentation of data”, lines 689–757: the list of presentations (tables, bar charts, pie charts, histograms, frequency polygons, line graphs, box-and-whisker plots, scatter plots) and the statement that the choice depends on the type of variable and the purpose; the six features of a good statistical table and the blood-group table; the bar chart for categorical or discrete data with categories on one axis and frequencies on the other; the pie chart as components of a whole with Percentage = (Frequency ÷ 60) × 100 and a pie-angle column totalling 360°; the histogram for continuous grouped data at lines 730–741, with bars that normally touch because the intervals are continuous, and the four things it can reveal (centre, spread, skewness, possible unusual observations); the monthly malaria line graph for change over time at lines 742–749; and the scatter plot for the relationship between two quantitative variables with the examples age and blood pressure, height and weight, exercise time and heart rate, and body mass index and blood glucose at lines 750–757.
- Beyond the supplied notes: reading and drawing a distribution honestly · The notes name the displays but do not teach how to read or to draw them safely. Added here as standard, uncontroversial descriptive practice: the interpretation of symmetric, right-skewed and left-skewed histograms and why the mean is dragged by an extreme tail while the median resists; unimodal and bimodal shapes as hypotheses about mixed populations; empty classes as data checks; the boundary convention for continuous data recorded to the nearest unit (40–49 means 39.5 up to 49.5); the effect of class width on the visible shape of the distribution; density, frequency ÷ class width, as the quantity that must be proportional to frequency when class widths are unequal; the rule that a bar chart’s vertical axis must begin at zero while a labelled line graph may start higher; the distortion caused by three-dimensional pie charts; the need to keep the natural order of ordinal categories; and stating the number of observations, the unit of each axis and the period covered. The frequency polygon and the box-and-whisker plot are named in the notes at lines 695 and 697 but not developed; their explanation here is beyond the notes.
- Note on the course code · The supplied cover page reads “Course Number: BMS 110”. The curriculum catalogue in this project records “BMS 1110”; the catalogue is treated as authoritative and the notes’ cover value is retained here for provenance.