Skip to main content

Chapter 12 Summarising qualitative data

described in detail following the image
A diagram showing the six steps of research, arranged in a cycle: Ask, Design, Collect, Classify and summarise, Analyse, Report. Step 4 (Summarise) is highlighted, captioned β€œSummarising qualitative data”.

Section 12.1 Introduction

Many quantitative research studies involve qualitative variables. Except for very small amounts of data, understanding the data is difficult without a summary. As with quantitative data, qualitative data can be understood by knowing how often values of the variables appear. This is called the distribution of the data (Def. DefinitionΒ 11.1).
The distribution can be displayed using a frequency table (Sect. SectionΒ 12.2) or a graph (Sect. SectionΒ 12.3). Qualitative data can be summarised by finding modes or, for ordinal qualitative data, using medians (Sect. SectionΒ 12.6). The distribution of qualitative data can be summarised numerically by computing proportions, percentages (Sect. SectionΒ 12.4) or odds (Sect. SectionΒ 12.5).

Section 12.2 Frequency tables for qualitative data

Qualitative data are typically collated in a frequency table. The rows (or the columns) should list the levels of the variable, and these should be exhaustive (cover all levels) and mutually exclusive (observations belong to only one level). The number of observations or the percentage of observations (or both) are then given for each level.
For nominal data, the levels of the variables can be displayed in alphabetical order, in order of size, in order of personal preference, or in any other order: use the order most likely to be useful to readers. For ordinal data, the natural order of the levels should almost always be used.

Example 12.1. Opinions of AV vehicles.

[103] surveyed \(400\) residents of Phoenix (Arizona) about their opinions of autonomous vehicles (AVs). Demographic information (Table TableΒ 12.2) and respondents’ opinions of sharing roads with AVs (Table TableΒ 12.3) were recorded.
The gender of the respondent is nominal (two levels), while the age group is ordinal (six levels). The levels are shown in the rows. The three questions about safety (Table TableΒ 12.3) all yield ordinal responses (five levels, in columns).
Table 12.2. Demographic information for the AV data for \(400\) respondents.
Number Percentage
Gender
Female \(204\) \(51\)
Male \(196\) \(49\)
Age group
\(18\) to \(24\) \(52\) \(13\)
\(25\) to \(34\) \(76\) \(19\)
\(35\) to \(44\) \(76\) \(19\)
\(45\) to \(54\) \(72\) \(18\)
\(55\) to \(64\) \(56\) \(14\)
\(65+\) \(68\) \(17\)
Table 12.3. Responses to three scenarios for the AV data for \(400\) respondents (rows sum to \(n = 400\)).
Unsafe Somewhat unsafe Neutral Somewhat safe Safe
\(n\) % \(n\) % \(n\) % \(n\) % \(n\) %
Driving near an AV \(58\) \(15\) \(79\) \(20\) \(96\) \(24\) \(97\) \(24\) \(70\) \(18\)
Cycling near an AV \(77\) \(19\) \(104\) \(26\) \(87\) \(22\) \(76\) \(19\) \(56\) \(14\)
Walking near an AV \(63\) \(16\) \(86\) \(22\) \(103\) \(26\) \(82\) \(21\) \(66\) \(17\)

Section 12.3 Graphs for qualitative data

Three options for graphing qualitative data include:
Sometimes these graphs are used for discrete quantitative data with a small number of possible options.

Warning 12.4.

The purpose of a graph is to display the information in the clearest, simplest possible way, to facilitate understanding the message(s) in the data.

Subsection 12.3.1 Dot charts (qualitative data)

Dot charts indicate the counts (or corresponding percentages) in each level using dots (or some other symbol). The levels can be on the horizontal or vertical axis, and the counts or percentages on the other. Placing the levels on the vertical axis often makes for easier reading, and space for long labels.
For dot charts:
  • place the qualitative variable on the horizontal or vertical axis (and label with the levels of the variable).
  • use counts or percentages on the other axis.
  • for nominal data, think about the most helpful order for the levels.

Warning 12.6.

The axis displaying the counts (or percentages) should start from zero, since the distance of the dots from the axis visually implies the frequency of those observations (see Example ExampleΒ 17.5).

Subsection 12.3.2 Bar charts

Bar charts use bars to represent the number (or percentage) of observations in each level. As with dot charts, the levels can be on the horizontal or vertical axis, but placing the level names on the vertical axis often makes for easier reading, and room for long labels.
For bar charts:
  • place the qualitative variable on the horizontal or vertical axis (and label with the levels of the variable).
  • use counts or percentages on the other axis.
  • for nominal data, levels can be ordered any way: think about the most helpful order.
  • bars have gaps between bars, as the bars represent distinct categories.
In contrast to bar charts, bars in histograms are butted together (except when an interval has a zero count), as the variable-axis usually represents a continuous numerical scale.

Warning 12.8.

The axis displaying the counts (or percentages) should start from zero, since the height of the bars visually implies the frequency of those observations (see Example ExampleΒ 17.5).

Subsection 12.3.3 Pie charts

In pie charts, a circle is divided into segments proportional to the number in each level of the qualitative variable.
Using pie charts may present challenges (see Sect. SubsectionΒ 17.2.4):
  • pie charts only work when graphing parts of a whole.
  • pie charts only work when all options are present (’exhaustive’).
  • pie charts are difficult to use with levels having zero or small counts (see Example FigureΒ 17.7).
  • pie charts are difficult to interpret when many categories are present.
  • pie charts are hard to read, as humans compare lengths (bar and dot charts) better than angles (pie charts) [159].

Example 12.10. Pie chart unsuitable.

Consider studying the percentage of people who use Firefox, Chrome, and Safari as web browsers. A pie chart is not suitable for displaying the data, as people can use more than one of these browsers (i.e., the options are not mutually exclusive) nor exhaustive (i.e., other options exist).

Subsection 12.3.4 Comparing dot, bar and pie charts

In the pie chart (Fig. FigureΒ 12.11, bottom left panel), determining which age groups have the fewest and most respondents is hard. The equivalent bar chart or dot chart makes the comparison easy. The tilted pie chart makes this comparison even harder (Fig. FigureΒ 12.11, bottom right panel).
Recall that the purpose of a graph is to display the information in the clearest, simplest possible way, to facilitate understanding the message(s) in the data. A pie chart often makes the message hard to see [157].
Four panels showing the age group of AV study respondents: top left is a dot chart, top right is a bar chart, bottom left is a pie chart, and bottom right is a tilted (3D) pie chart.
Figure 12.11. The age group of respondents in the AV study. All graphs present the same data.

Section 12.4 Numerical summary: proportions and percentages

Qualitative data can be summarised numerically by using the proportion or percentage of individuals in each level. These can be given instead of, or with, the counts (Tables TableΒ 12.2 and TableΒ 12.3).

Definition 12.12. Proportion.

A proportion is a fraction out of a total, and is a number between \(0\) and \(1\text{.}\)

Definition 12.13. Percentages.

A percentage is a proportion, multiplied by \(100\text{.}\) In this context, percentages are numbers between \(0\)% and \(100\)%.
Population proportions are almost always unknown. Instead, the population proportion (the parameter), denoted \(p\text{,}\) is estimated by a sample proportion (a statistic), denoted by \(\hat{p}\text{.}\)

Aside

Warning 12.14.

As always, only one possible sample is studied. Statistics are estimates of parameters, and the value of the statistic is not the same for every possible sample.

Example 12.15. Proportions and percentages.

Consider the AV data in Table TableΒ 12.2, summarising results from a sample of \(n = 400\) respondents. The sample proportion of respondents aged \(25\) to \(34\) is \(76 \div 400\text{,}\) or \(0.19\text{.}\) The sample percentage of respondents aged \(25\) to \(34\) is \(0.19 \times 100\text{,}\) or \(19\)%, as in the table.

Section 12.5 Numerical summary: odds

For the AV data in Table TableΒ 12.2, the number of females is slightly larger than the number of males. Specifically, the ratio of females to males is \(204 \div 196 = 1.04\text{;}\) that is, there are \(1.04\) times as many females as males. This value of \(1.04\) is the odds that a respondent is female in the sample. An alternative interpretation is that there are \(1.04 \times 100 = 104\) females for every \(100\) males in the sample.
While proportions and percentages are computed as the number of results of interest divided by the total number, the odds are computed as the number of results of interest divided by the remaining number (Fig. FigureΒ 12.17).

Definition 12.16. Odds.

The odds are the number (or proportion, or percentage) of results of interest, divided by the remaining number (or proportion, or percentage) of results:
\begin{equation*} \text{Odds} = \frac{\text{Number of results of interest}}{\text{Remaining number of results}} \end{equation*}
or (equivalently)
\begin{equation*} \text{Odds} = \frac{\text{Proportion of results of interest}} {\text{Remaining proportion of results}} = \frac{\text{Percentage of results of interest}} {\text{Remaining percentage of results}}. \end{equation*}
The odds are how many times the result of interest occurs compared to the number of times the results of interest does not occur.
A diagram comparing proportions and odds: the left side shows a fraction with the count of interest over the total, the right side shows the count of interest over the remaining count.
Figure 12.17. Proportions (left) are the number of interest divided by the total number. Odds (right) are the number of interest divided by the rest.

Example 12.18. Interpreting odds.

The AV data (Table TableΒ 12.2) includes \(204\) females and \(196\) males. The odds that a respondent is female is \(1.04\text{.}\) The odds are greater than one, as there are more females than males. Alternatively, there are \(104\) females for every \(100\) males.
The odds that a respondent is male is \(196/204 = 0.96\text{;}\) there are \(0.96\) times the number of males as females. The odds are less than one, as there are fewer males than females. Alternatively, there are \(96\) males for every \(100\) females.
When interpreting odds:
  • odds greater than \(1\) mean the result of interest is more likely to happen than not.
  • odds equal to \(1\) mean the result of interest is equally likely to happen as not.
  • odds less than \(1\) mean the result of interest is less likely to happen than not.

Example 12.19. Odds and percentages.

Consider the AV data in Table TableΒ 12.2, summarising results from a sample of \(n = 400\) respondents.
The percentage of respondents aged \(18\) to \(24\) is \(52/400 \times 100 = 13\)%. The odds that a respondent is aged \(18\) to \(24\) is \(52/(400 - 52) = 0.15\text{.}\) This means the number of respondents aged \(18\) to \(24\) is \(0.15\) times (i.e., less then) the number of respondents aged over \(24\text{.}\)
The odds that a respondent is aged \(18\) to \(54\) is \((52 + 76 + 76 + 72)/(56 + 68) = 2.23\text{.}\) This means the number of respondents aged \(18\) to \(54\) is \(2.23\) times (i.e., greater than) the number of respondents aged \(55\) or over.
The population odds (the parameter) are almost always unknown, and are estimated by the sample odds (the statistic). No symbol is commonly used to denote odds.
Take care: proportions and odds are similar, but are different ways of numerically summarising quantitative data (Fig. FigureΒ 12.17).

Section 12.6 Describing the distribution: modes and medians

Graphs are constructed to help readers understand the data, so any important features in the graph should be described. One simple way is to identify the level (or levels) with the most observations. This is called the mode.

Definition 12.20. Mode.

A mode is the level (or levels) of a qualitative variable with the most observations.

Example 12.21. Modes.

Consider the data in Tables TableΒ 12.2 and TableΒ 12.3:
  • the mode for gender is ’Female’ (with \(204\) respondents, or \(51\)%).
  • the mode age groups are \(25\) to \(34\) and \(35\) to \(44\) (each with \(19\) respondents, or \(4.8\)%).
  • the modal response to the question about driving near AVs is ’Somewhat safe’.
  • the modal response to the question about cycling near AVs is ’Somewhat unsafe’.
  • the modal response to the question about walking near AVs is ’Neutral’.
Medians can be found for ordinal data (but not nominal data), since ordinal data have levels with a natural order. The median is the level in which the middle response is located, when the levels from all individuals are placed in order. The sample median estimates the unknown population median.

Warning 12.22.

Medians can be used to summarise quantitative data and ordinal data, but never nominal data.

Example 12.23. Medians.

Consider the data in Tables TableΒ 12.2 and TableΒ 12.3. ’Gender’ is nominal qualitative, so medians are not appropriate. However, the other variables are ordinal, so medians could be used to describe each variable. Since \(n = 400\text{,}\) the median response will be halfway between the location of the \(200\)th and \(201\)st response when ordered:
  • the median age group is \(35\) to \(44\text{.}\)
  • the median response to the driving-near-AVs question is ’Neutral’.
  • the median response to the cycling-near-AVs question is ’Neutral’.
  • the median response to the walking-near-AVs question is ’Neutral’.
For each variable, ordered observations \(200\) and \(201\) both fall into the indicated level.
Importantly, all these numerical quantities are computed from a sample (i.e., are statistics; Def. DefinitionΒ 11.29), even though the whole population is of interest (i.e., the parameter; Def. DefinitionΒ 11.28).
Means (Sect. SubsectionΒ 11.6.1) are generally not suitable for numerically summarising qualitative data. However, ordinal data may be numerically summarised like quantitative data in rare and very special circumstances. Means may be appropriate if both of these are true:
  • the levels are considered equally spaced.
  • assigning a number to each level is appropriate (for example, using a mid-point for numerical age groups).
We will not consider means for ordinal data further.

Section 12.7 Numerical summary tables

Qualitative variables should be summarised in a table. The table should include, as a minimum, numbers and/or percentages for each level. While useful in other contexts (see Chap. ChapterΒ 15), odds are usually not given in the summary table. Examples are shown in Tables TableΒ 12.2 and TableΒ 12.3, and in the next section.

Section 12.8 Example: water access

[119] recorded data about access to water for three rural communities in Cameroon (see Sect. SectionΒ 11.10). Numerous qualitative variables are recorded; some are displayed in Fig. FigureΒ 12.24, and summarised in Table TableΒ 12.25. Notice that the levels of the two ordinal variables are displayed in their natural order.
The distance to the nearest water source is usually less than \(1\) km, and the wait is often over \(15\) mins. The most common water source (i,e., the mode) is a bore (\(68.6\)%). The median (and mode) distance to the water source was \(100\) to \(1000\) m; the median wait time was \(5\) to \(15\) mins (the mode wait time was under \(5\) mins).
Three dot charts showing qualitative variables from the water-access study: distance to water source, queue wait time at water source, and type of water source.
Figure 12.24. The distance to the water source (left), the wait time at the water source (centre), and the water sources (right) for the water-access study.
Table 12.25. Summarising some qualitative data in the water-access study. Ordinal variables (left) and nominal variable (right).
Number % Odds
Distance to water source (\(n = 121\))
Under \(100\) m \(55\) \(45.5\) \(0.83\)
\(100\) m to \(1000\) m \(57\) \(47.1\) \(0.89\)
Over \(1000\) m \(9\) \(7.4\) \(0.08\)
Wait time at water source (\(n = 120\))
Under \(5\) mins \(50\) \(41.7\) \(0.71\)
\(5\) to \(15\) mins \(28\) \(23.3\) \(0.30\)
Over \(15\) mins \(42\) \(35.0\) \(0.54\)
Water source (\(n = 121\))
Bore \(83\) \(68.6\) \(2.18\)
River \(15\) \(12.4\) \(0.14\)
Tap \(7\) \(5.8\) \(0.06\)
Well \(16\) \(13.2\) \(0.15\)

Section 12.9 Chapter summary

Qualitative data can be graphed with a dot chart, bar chart or (in special circumstances) pie chart. Qualitative data can be described using the mode or (for ordinal data only) a median. Qualitative data can be numerically summarised using proportions, percentages or odds.

Reading Questions 12.10 Quick review questions

Are the following statements true or false?

4.

Proportions and percentages are the same.
Answer.
False. Percentages are proportions multiplied by \(100\text{,}\) so similar (but different).

Exercises 12.11 Exercises

Answers to odd-numbered exercises are given at the end of the book.

1.

A study of spider monkeys [209] examined the types of social groups present (Table TableΒ 12.26).
  1. Construct a suitable plot, and explain what the data reveal.
  2. Determine, if appropriate, the median and mode social group.
Table 12.26. Social groups in spider monkeys.
Social group Percentage
Solitary \(8\)
All males \(3\)
Female + no young \(2\)
Mixed young \(15\)
Mixed + no young \(1\)
One female + offspring \(23\)
Many females + offspring \(48\)

2.

[202] studied how Poles prepared and consumed coffee using a sample of \(1\,500\) Poles. Some data are shown in Table TableΒ 12.27.
  1. Classify the variables as quantitative, nominal or ordinal.
  2. Sketch appropriate graphs for the three variables.
  3. Summarise the three variables.
  4. Where appropriate, compute the median and mode for each variable.
Table 12.27. Location of coffee consumption, brewing temperature and brewing time, from \(1\,500\) Poles.
\(n\)
Where consumed
Home \(1432\)
Canteen \(687\)
Cafe \(922\)
Others’ homes \(994\)
Work \(1196\)
Brewing temperature
\(100^{\circ}\text{C}\) \(748\)
\(98^{\circ}\text{C}\) \(269\)
\(93^{\circ}\text{C}\) \(453\)
Unknown \(30\)
Brewing time
Under \(3\) mins \(226\)
About \(3\) mins \(267\)
About \(4\) mins \(114\)
About \(5\) mins \(82\)
About \(6\) mins \(30\)
Unknown \(781\)

3.

[263] recorded the number of cylinders in many models of cars: eleven cars had four cylinders, seven cars had six cylinders, and fourteen cars had eight cylinders. The number of cylinders is quantitative discrete, but with so few different values, the data could be plotted with a graph used for qualitative data. For these data:
  1. Produce a dot chart.
  2. Produce a histogram.
  3. Produce a bar chart.
  4. Produce a pie chart.
What graph do you think is best? Why?

4.

A survey of voice assistants (such as Amazon Echo; Google Home; etc.) conducted by Nielsen asked respondents to indicate how they used their voice assistant. The options were:
Respondents could select all options that applied. What would be the best graph for displaying respondents answers? Would a pie chart be suitable? Explain your answer.

5.

[258] studied the taste of bread with varying salt and fibre content. Information was recorded from \(300\) subjects, including the subjects’ responses to the statement ’Rolls with lower salt content taste worse than regular ones’, on a five-point ordinal scale from ’Strongly Agree’ to ’Strongly Disagree’; see Table TableΒ 12.28.
  1. Identify the variables, then classify them as nominal or ordinal.
  2. For which variables is a mode an appropriate summary (if any)?
  3. For which variables is a median an appropriate summary (if any)?
  4. Compute the above statistics where appropriate.
  5. Compute and interpret the odds of a respondent coming from a city background.
  6. Compute and interpret the odds of a respondent agreeing or strongly agreeing with the statement.
  7. Compute and interpret the odds of a respondent being male.
Table 12.28. The bread-tasting data (\(n = 300\)).
Number Percentage
Gender
Female \(150\) \(50\)
Male \(150\) \(50\)
Place of residence
Rural \(49\) \(16\)
City up to \(20\,000\) residents \(38\) \(13\)
City \(20\,000\) to \(100\,000\) residents \(83\) \(28\)
City more than \(100\,000\) residents \(130\) \(43\)
Response to statement
Strongly agree \(30\) \(10\)
Agree \(84\) \(28\)
Neutral \(78\) \(26\)
Disagree \(66\) \(22\)
Strongly disagree \(42\) \(14\)

6.

[119] asked \(231\) farmers what they considered to be the advantages and disadvantages of using reclaimed water on the farm. The responses are shown in Table TableΒ 12.29 (not all farmers responded).
  1. Produce two bar charts to display the data.
  2. Produce two dot charts to display the data.
  3. Produce two pie charts to display the data.
  4. Determine the mode for both the advantages and disadvantages.
  5. Compute the percentages for both the advantages and disadvantages.
  6. Compute the odds of a farmer stating ’high price’ as a disadvantage, among all farmers.
  7. Compute the odds of a farmer stating ’high price’ as a disadvantage, among farmers who listed a disadvantage.
  8. What is the difference in the meaning of the last two statements?
Table 12.29. The advantages and disadvantages of using reclaimed water, reported by \(231\) farmers. (Not all farmers responded.)
No. farmers
Advantages
Water reutilization \(15\)
Availability \(27\)
Sustainability \(16\)
Disadvantages
High price \(40\)
Growing conductivity \(12\)
Lack of proper filtering \(21\)

7.

[264] studied \(284\) university students in Joinville, Brazil, tabulating how students got to campus (Table TableΒ 12.30; each student could select one option only).
  1. What is the mode type of active transport? What about motorised transport?
  2. What is the mode type of transport overall?
  3. Are medians appropriate? If so, compute the median for active transport types, and motorised transport types.
  4. Compute the proportions for each option, out of the total sample.
  5. Compute the odds that a randomly-chosen student uses motorised transport to get to campus. Explain what this means.
  6. Compute the odds that a student walks to campus. Explain what this means.
  7. Construct appropriate plots to display the data.
Table 12.30. Modes of transport for students getting to campus.
Number
Active
Bicycle \(29\)
Walking \(35\)
Motorised
Car \(70\)
Bus \(117\)
Other \(33\)

8.

[Dataset: BabyBoom] The dataset shows the gender of \(44\) babies born in a hospital on one day [290][233]. The data are given in the order in which the births occurred.
  1. What is the mode sex?
  2. If appropriate, compute the median sex.
  3. Compute the percentages for each sex.
  4. Compute the odds that a randomly-chosen baby from the sample is female. Explain what this means.
  5. Construct appropriate plots to display sex of the baby.

9.

[Dataset: LungCap] [26] studied the lung volume of \(654\) children in East Boston in the 1970s (Table TableΒ 12.31).
  1. Construct suitable plots for all variables.
  2. For each qualitative variable, determine the mode.
  3. For each qualitative variable, compute the percentage and odds of one of the levels occurring in the data.
  4. Compute appropriate statistics for each quantitative variable.
Table 12.31. The lung volume (FEV) for youth in East Boston in the 1970s; the first six observations in the dataset (\(n = 654\)).
Age FEV Height Gender Smoking
\(3\) \(1.072\) \(46\) F No
\(4\) \(0.839\) \(48\) F No
\(4\) \(1.102\) \(48\) F No
\(4\) \(1.389\) \(48\) F No
\(4\) \(1.577\) \(49\) F No
\(4\) \(1.418\) \(49\) F No
\(\vdots\) \(\vdots\) \(\vdots\) \(\vdots\) \(\vdots\)

10.

[309] studied the influence of using ankle-foot orthoses in children with cerebral palsy. The data in Table TableΒ 10.24 give the data for the \(15\) subjects. (Gmfcs is the Gross Motor Function Classification System used to describe the impact of cerebral palsy on their motor function; where lower levels mean better functionality.)
  1. Construct suitable plots for all variables.
  2. For each qualitative variable, determine the mode.
  3. For each qualitative variable, compute the percentage and odds of one of the levels occurring in the data.
  4. Compute appropriate statistics for each quantitative variable.