Tutorials › Introduction to Statistics › Choosing the Correct Denominator

Two-Way Tables and Association · Tutorial 206 of 996

Choosing the Correct Denominator

Match the denominator to the group named in a question so that a table proportion describes the intended quantity.

Beginner 9 min read

What You'll Learn

  • Identify a cell count, row total, column total, and grand total in a two-way table.
  • Choose the grand total for a joint proportion about the full table.
  • Choose a row total when the question conditions on a row category.
  • Choose a column total when the question conditions on a column category.
  • Check whether a reported proportion answers the question as worded.
  • Explain why reversing the denominator changes the quantity being calculated.

Why the Denominator Matters

A two-way table records counts for two categorical variables. Each cell tells how many observational units fall into one category of each variable. To turn a cell count into a proportion, the numerator is usually clear: it is the count in the cell of interest. The denominator depends on the question. Are we describing the cell as a share of everyone in the table, a share of one row group, or a share of one column group?

These choices answer different questions. For example, “What fraction of all surveyed people use a bicycle?” is not the same as “What fraction of people who live on campus use a bicycle?” Both may use the same cell count in the numerator, but they require different denominators. A useful habit is to identify the group named after phrases such as of all, among, or within before doing any division.

Definition: In a two-way table, a joint proportion divides a cell count by the grand total. A row-conditional proportion divides a cell count by its row total. A column-conditional proportion divides a cell count by its column total. The denominator must represent the full group about which the question asks.

Reading the Table Before Calculating

The layout of the table matters. A row category appears at the left, a column category appears across the top, and their intersection identifies a cell. The row total adds all cell counts across one row. The column total adds all cell counts down one column. The grand total adds every cell count and equals the sum of all row totals and, separately, the sum of all column totals.

Let \(n_{ij}\) denote the count in row \(i\), column \(j\), \(n_{i+}\) its row total, \(n_{+j}\) its column total, and \(n\) the grand total. Then the three denominator choices are:

$$ \text{Joint proportion}=\frac{n_{ij}}{n}, \qquad \text{Row-conditional proportion}=\frac{n_{ij}}{n_{i+}}, \qquad \text{Column-conditional proportion}=\frac{n_{ij}}{n_{+j}}. $$

The plus sign indicates that counts are summed over that index: \(n_{i+}\) sums across the columns in row \(i\), while \(n_{+j}\) sums down the rows in column \(j\). These formulas are useful only if the chosen total is positive. If a row or column has total zero, there are no observations in that group and its conditional proportion cannot be calculated.

A Short Justification for the Denominator Rule

A proportion is a part divided by the whole. The cell count is the part in all three calculations, but the meaning of “whole” changes with the question. If the whole is everyone represented in the table, the whole is \(n\). If the whole is just the units in row \(i\), its count is the sum of every cell in that row. If the whole is just the units in column \(j\), its count is the sum of every cell in that column.

This also explains why the conditional proportions for a row add to 1: their numerators divide that row into all its categories, and their numerators sum to its row total. The same reasoning applies to each column. In contrast, all joint proportions across the entire table add to 1 because their numerators sum to the grand total.

$$ \sum_j \frac{n_{ij}}{n_{i+}}=1 \quad\text{and}\quad \sum_i \frac{n_{ij}}{n_{+j}}=1, \qquad \sum_i\sum_j \frac{n_{ij}}{n}=1. $$

This is a check on the arithmetic and on the interpretation: if you intended to describe a row but used the grand total, your values across that row will generally not add to 1.

Worked Examples

Worked Example: A Joint Proportion from a Campus Survey

Suppose a hypothetical survey records housing and bicycle use for 240 students. The counts are:

HousingUses bicycleDoes not use bicycleRow total
On campus3684120
Off campus4872120
Column total84156240

What proportion of all surveyed students both live on campus and use a bicycle? The cell count is 36. The phrase “all surveyed students” identifies the grand total, 240, as the denominator:

$$ \frac{36}{240}=0.150=15.0\%. $$

Thus, 15.0% of the surveyed students both live on campus and use a bicycle. This is a joint proportion: it describes the cell as a part of the full survey, not as a part of the on-campus group or the bicycle-user group. For comparison, dividing 36 by 120 would answer a different question because 120 is a group total, not the grand total.

Worked Example: A Row-Conditional Proportion in a Health Table

Imagine a hypothetical health survey of 300 adults. The table records whether each adult reports regular exposure to a workplace irritant and whether the adult reports a symptom. Exposure status is in the rows.

Exposure statusReports symptomDoes not report symptomRow total
Exposed4278120
Not exposed36144180
Column total78222300

What proportion of adults among those exposed report the symptom? The relevant cell count is 42. “Among those exposed” specifies the exposed row as the whole group, so the denominator is that row's total, 120:

$$ \frac{42}{120}=0.350=35.0\%. $$

The answer is 35.0% of the surveyed exposed adults. The denominator is not 300, because the question does not ask for a share of all surveyed adults. It is not 78, the column total of adults reporting a symptom, because the question does not ask what fraction of symptomatic adults were exposed. The table is descriptive; this percentage alone does not establish that exposure caused symptoms.

Worked Example: A Column-Conditional Proportion in a Treatment Table

Suppose a hypothetical evaluation records whether participants improved, split by the program they attended. Program type is in the columns.

OutcomeProgram AProgram BRow total
Improved543690
Did not improve6684150
Column total120120240

What proportion of participants in Program A improved? The cell count is 54. “In Program A” identifies the Program A column as the group of interest, so use its total, 120:

$$ \frac{54}{120}=0.450=45.0\%. $$

Therefore, 45.0% of participants in Program A improved. Dividing by the 90 participants who improved would instead answer what proportion of all improved participants attended Program A. That is a column-versus-row direction change in meaning, even though the numerator still comes from the “Improved, Program A” cell.

A Reliable Selection Process

When a word problem does not explicitly say “joint,” “row-conditional,” or “column-conditional,” use the wording to identify the reference group. Then locate that group in the table. The row and column labels tell you where the cell lies; the verbal question tells you which total is the denominator.

1
Locate the numerator.
Find the cell matching both categories named in the question, and record its count.
2
Name the whole group.
Ask whether the question refers to everyone, to one row category, or to one column category.
3
Choose and check the total.
Use the grand total, the matching row total, or the matching column total. Divide and state the result in context.

Words such as of all usually signal the grand total. Phrases such as among people with... or within the group... signal that the named group is the denominator. If that group is a row category, use its row total; if it is a column category, use its column total. The words alone do not determine row versus column: the table layout does.

Common Mistake: Dividing by the Total That Looks Most Relevant

A frequent error is to choose the denominator based on the cell's outcome label rather than on the question. For example, given a cell for “exposed and symptomatic,” someone might divide by the total number of symptomatic adults simply because “symptomatic” seems important. But that answers “Among symptomatic adults, what proportion were exposed?” It does not answer “Among exposed adults, what proportion were symptomatic?” The first denominator is the symptom column total; the second is the exposure row total.

Another common error is to use the grand total automatically. The grand total is correct for a question about the entire table, but a question about a specific subgroup calls for that subgroup's total. Before calculating, complete this sentence: “The denominator is the number of _____.” If the blank does not match the group named in the question, reconsider the choice.

Key takeaway: A cell count does not determine its own denominator. The question does. Divide by the grand total for a share of everyone, by a row total for a share within a row category, and by a column total for a share within a column category.

Check Your Understanding

For each question, identify the correct denominator before calculating.

  1. In a survey of 500 people, 85 both own a pet and live in an apartment. What denominator would answer “What proportion of all surveyed people both own a pet and live in an apartment?”
  2. A table places age group in rows and reports 24 people with a condition among 160 people in the older age group. What denominator answers “Among older people, what proportion have the condition?”
  3. A table places clinic type in columns. There are 40 improved patients in Clinic B and 100 patients in that column. What denominator answers “What proportion of Clinic B patients improved?”
  4. Explain in words the question answered by dividing a cell count by the column total containing that cell.
  5. Why does dividing the “exposed and symptomatic” count by the total number of symptomatic people not answer the question “Among exposed people, what proportion were symptomatic?”