Conditional denominators in a two-way table

Draw a two-way table in VectorPaint and compare conditional denominators

Build a hypothetical task-completion table and check margins and denominators for two different conditions.

English translation of the Chinese original, translated on . Original publication dates, attribution, code and version notes are retained.

Build a hypothetical task-completion table and check margins and denominators for two different conditions.

Define the practice data

Suppose 40 tasks use methods A or B and each is completed or not completed. A has 18 completed and 12 not completed; B has 8 completed and 2 not completed. These are invented counts, not evidence about real users, effectiveness or a survey. Each task belongs to exactly one row and one column. OpenStax explains that a conditional distribution uses a specified subset as its denominator; this exercise compares two directions with new example data.

Calculate row and column totals

A totals 18+12=30 and B totals 8+2=10. The completed column totals 18+8=26 and not-completed totals 12+2=14. Rows give 30+10=40 and columns give 26+14=40. Calculate both checks before drawing. If they disagree, fix the underlying counts rather than adjusting only the displayed total. Preserve the distinction between tasks and people.

Create canvas and table frame

Create a landscape VectorPaint canvas, for example 1600 by 1000 pixels, and save an editable original. Draw four columns: method, completed, not completed and total; draw four rows: header, A, B and total. Use available object or layer controls to separate borders, text, color and explanation. Make columns wide enough for labels and numbers and reserve space below for calculations and notes.

Fill the intersection cells

Put 18 at A/completed, 12 at A/not completed, 8 at B/completed and 2 at B/not completed. Center values in their cells or use a consistent visual baseline so 18 does not appear to belong to a neighboring column. Temporarily cover totals and compare all four source inputs with the scratch table. Color helps orientation but cannot replace clear row and column labels.

Fill the margins

Enter row totals 30 and 10, column totals 26 and 14, and grand total 40 at bottom right. Distinguish margins from source cells with a slightly stronger border or pale shading that does not obscure numbers. Re-add each row and column and verify that 40 agrees in both directions. Totals summarize the same tasks; they are not an additional set.

Calculate completion conditional on A

Question one asks, “Among tasks using A, what proportion were completed?” The condition selects the A row, so the denominator is its total 30 and the numerator is intersection count 18: 18/30=3/5=60%. Use an arrow or text to identify the A row and its total 30, then the intersection 18. Neither all 40 tasks nor the 26 completed tasks is the denominator for this question.

Calculate A conditional on completion

Question two asks, “Among completed tasks, what proportion used A?” The condition selects the completed column, so its total 26 is the denominator. The same intersection 18 is the numerator, giving 18/26=9/13, about 69.2%. Put this calculation beside question one with each condition on the same line. The 60% and approximately 69.2% are not contradictory; they answer different questions.

Highlight denominators with text retained

Use pale shading to mark the A row and completed column, and a border to identify their shared numerator. The legend or explanation must state which condition selects each denominator rather than relying on two colors. In monochrome the labels, arrows and fractions should remain readable. Keep number sizes and colors consistent instead of enlarging the larger percentage.

Test understanding with another condition

Ask instead, “Among B tasks, what proportion were completed?” B’s row total is 10 and its completed cell is 8, giving 8/10=80%. This is practice on invented counts and does not show that B causes a higher completion rate; there is no random assignment, sample design or uncertainty information. Recalculate while covering the B row, then reveal it and check the denominator is the B row rather than the overall column.

Check table and text alternative

Read headers, then A’s 18, 12, 30 and B’s 8, 2, 10, followed by 26, 14, 40. Check that a reader can locate values without background color. Provide a text table in the same order and explain the two conditional probabilities. If cell borders overlap text, widen columns or move labels rather than changing counts or units to fit the layout.

Troubleshoot, save and inspect

If both formulas use the same denominator, reread the condition in plain language and circle the corresponding row or column total. Save the editable original and use an available export control to create a separate SVG or PNG. Reopen it to check headers, fractions, bottom-right total and notes for clipping, then return to confirm text and borders remain editable. Mark the counts hypothetical and unperformed device steps pending.

Check complements with the same denominator

Within A, 18 completed and 12 did not, both out of 30. The not-completed proportion is 12/30=40%, which adds to the completed 60% to give 100%; these are mutually exclusive and exhaustive categories within A. Within the completed column, B accounts for 8/26=4/13, and A’s 9/13 plus B’s 4/13 equals 1. Do not add 40% and 4/13: the first conditions on A and the second on completion, so their denominators refer to different subsets. Keep these extra calculations in scratch work if the final chart is crowded.

Check the grouping and observation unit

Each observation in this table is a task. If one person performs several tasks, that person appears more than once, so 40 does not automatically mean 40 people. Real data grouped by person or allowing one task to use both methods requires a different definition and counting procedure; this example’s addition cannot be assumed. Label the title or note as hypothetical task counts and an exercise period, and never present invented values as an actual experiment. A real survey also requires checking its source, missing records and collection method.

Without-replacement probability tree; Set membership diagram.

Checked 25 November 2026: Apple public lookup; OpenStax: conditional distributions in two-way tables. No physical-device or private-server test is claimed.