Resources For Teachers For Tutors For Students & Parents AI New Pricing
Year 9 Maths Advanced Probability

Two-way Tables

20 practice questions 1 video lesson Theory + worked examples

A two-way table records two attributes at once, such as year group and how students travel, with totals for each row and column. This NSW Year 9 Advanced maths subtopic reads and builds two-way tables to find probabilities (NESA outcome MA5‑PRO‑P‑01).

You will complete tables with missing values, find probabilities and percentages, and convert between two-way tables and Venn diagrams. You will find conditional probabilities, build tables from percentages, test whether playing tennis is independent of being left-handed, and work out how likely a positive medical test is to be right. It is part of Year 9 Advanced Probability.

Practice 20 questions
Practice questions

Every question with a fully worked solution.

Start practising
Watch 1 video(s)
  • Two-way Tables - Video - Using Two Way Tables with Probability Watch
Create a free accountTrack your progress and save your work as you go.
Create free account

Theory

A two-way table sorts a group by two attributes at once, such as year and transport. Cells, row totals and column totals give probabilities for "and", "or" and "not", and a condition restricts you to one row or column. This Year 9 Advanced maths page is on the path towards Advanced maths.

A two-way table has one attribute down the side (rows) and another across the top (columns). Each cell counts the people with one row category and one column category.

The row totals and column totals count each category on its own. The grand total is the sum of all the cells. Every person is in exactly one cell.

A two-way table with two rows and two columns holds the same information as a two-set Venn diagram: both, one only, the other only, and neither.

A condition ("a girl is chosen", "given that the person tested positive") restricts the sample space to one row or one column, so that row or column total becomes the denominator. Two events are independent if knowing one does not change the probability of the other.

Parts of a two-way tableA two-way table with rows A and not A, columns B and not B, and totals. The cell a is A and B; a plus b is the row total for A; a plus c is the column total for B; n is the grand total. Bnot BTotalAaba + bnot Acdc + dTotala + cb + dn a = A and B (one cell) a + b = all of A (row total) n = grand total
Each person is in exactly one of the four cells. Rows and columns add to the totals.
The same four numbers in a Venn diagramA Venn diagram with circles A and B. The overlap is a, A only is b, B only is c and outside both is d, matching the four cells of the two-way table. A B b a c d a: A and B b: A only c: B only d: neither
A two-way table and a Venn diagram hold the same four numbers: both, one only, the other only, neither.
\[P(\text{cell}) = \dfrac{\text{cell}}{\text{grand total}} \qquad P(\text{row}) = \dfrac{\text{row total}}{\text{grand total}}\]
P=cellgrand total

With a condition, divide by the total of that row or column:

\[P(A \text{ given } B) = \dfrac{n(A \text{ and } B)}{n(B)}\]
n(A and B)n(B)
\[n(A \text{ or } B) = n(A) + n(B) - n(A \text{ and } B)\]
n(A or B)=n(A)+n(B)−n(A and B)
Independence check. Work out the probability of the event in each row. If every row gives the same value (equal to the overall probability), the events are independent.

How to complete a two-way table

  1. Draw the table with a Total row and a Total column.
  2. Enter what you know: cells, totals, and counts from percentages or probabilities (\(0.55 \times 120\), \(30\%\) of a row).
  3. Fill the gaps by subtracting from row and column totals, one cell at a time.
  4. Check that the cells add to the grand total.

How to read a probability

  1. "And" is one cell. "Not" is the other row or column, or the total minus a cell.
  2. "Or" is a whole row plus the rest of a column, counting the shared cell once.
  3. "Given that" or "a ... is chosen": divide by that row or column total, not the grand total.
  4. Unknowns: make the cells add to the total and solve. Then answer from the completed table.
Example 1 β€” Completing the table
Of \(150\) students, \(64\) are in Year 9 and the rest are in Year 10. \(40\) of the Year 9 students play a musical instrument, and \(95\) students altogether do not. A student is chosen at random. Find
(i) \(P(\text{Year 10 and plays})\);
(ii) \(P(\text{Year 9 or plays})\).
Solution

Fill the table from the totals, one cell at a time: Year 10 \(= 150 - 64 = 86\); Year 9 who do not play \(= 64 - 40 = 24\); players \(= 150 - 95 = 55\); Year 10 players \(= 55 - 40 = 15\); Year 10 non-players \(= 86 - 15 = 71\).

PlaysDoes not playTotal
Year 9402464
Year 10157186
Total5595150
\(\text{(i) } P(\text{Y10 and plays})\)\(=\)\(\dfrac{15}{150} = \mathbf{\dfrac{1}{10}}\)

(ii) "Or": the whole Year 9 row plus the Year 10 players (so the Year 9 players are not counted twice).

\(P(\text{Y9 or plays})\)\(=\)\(\dfrac{64 + 15}{150} = \mathbf{\dfrac{79}{150}}\)
P=64+15150
Example 2 β€” Restricting to a row or column
The table shows \(80\) households.
Has a catNo catTotal
Has a dog121830
No dog104050
Total225880
(i) Draw the Venn diagram regions for \(C\) (cat) and \(D\) (dog). (ii) A household with a cat is chosen at random. Find the probability that it has a dog. (iii) A household with a dog is chosen. Find the probability that it has a cat.
Solution

(i) Overlap (both) \(= 12\); \(D\) only \(= 18\); \(C\) only \(= 10\); neither \(= 40\).

(ii) Only the \(22\) cat households count: the "Has a cat" column.

\(P(\text{dog, given cat})\)\(=\)\(\dfrac{12}{22} = \mathbf{\dfrac{6}{11}}\)

(iii) Now only the \(30\) dog households count: the "Has a dog" row.

\(P(\text{cat, given dog})\)\(=\)\(\dfrac{12}{30} = \mathbf{\dfrac{2}{5}}\)

Same cell, different total: the two answers are not equal.

1222≠1230
Example 3 β€” Percentages of different groups
A school has \(400\) students and \(45\%\) are girls. \(60\%\) of the girls and \(40\%\) of the boys bought a ticket to the formal. A student who bought a ticket is chosen at random. Find the probability that the student is a girl.
Solution

Each percentage is of a different group, so turn each into a count of its own row.

\(\text{girls}\)\(=\)\(0.45 \times 400 = 180\)
\(\text{boys}\)\(=\)\(400 - 180 = 220\)
\(\text{girls with a ticket}\)\(=\)\(0.6 \times 180 = 108\)
\(\text{boys with a ticket}\)\(=\)\(0.4 \times 220 = 88\)
TicketNo ticketTotal
Girls10872180
Boys88132220
Total196204400
\(P(\text{girl, given ticket})\)\(=\)\(\dfrac{108}{196} = \mathbf{\dfrac{27}{49}}\)
108196=2749
Example 4 β€” An unknown, then independence
\(80\) students were asked if they want a longer lunch break.
YesNo
Junior\(3x\)18
Senior\(2x\)12
(i) Find \(x\). (ii) Is answering "Yes" independent of being a junior student? Justify your answer.
Solution
\(3x + 18 + 2x + 12\)\(=\)\(80\)
\(5x\)\(=\)\(50\)
\(x\)\(=\)\(\mathbf{10}\)

(ii) Juniors: \(30\) yes out of \(48\). Seniors: \(20\) yes out of \(32\). Compare the probability of "Yes" in each row.

\(P(\text{yes, given junior})\)\(=\)\(\dfrac{30}{48} = 0.625\)
\(P(\text{yes, given senior})\)\(=\)\(\dfrac{20}{32} = 0.625\)

Both equal \(0.625\) (and so does the whole group, \(\dfrac{50}{80}\)). Knowing the student is a junior does not change the probability: the events are independent.

3048=2032=0.625

Common pitfalls

Choose the right denominator. "A student is chosen" uses the grand total; "a Year 9 student is chosen" uses only the Year 9 row.
Do not double count in "or". "Year 9 or plays" is the Year 9 row plus the Year 10 players, not the Year 9 row plus the whole "plays" column.
Percentages belong to a group. "\(60\%\) of the girls" is \(60\%\) of the girls' row, not of the whole school.
\(P(A \text{ given } B)\) is not \(P(B \text{ given } A)\). They share the same cell but divide by different totals.

Frequently asked questions

How do you find probability from a two-way table?

Find the cell, row or column that matches the event and divide by the grand total. If the question restricts the group, divide by that row or column total instead.

How do you complete a two-way table?

Add a total row and column, enter the numbers you know, then subtract from the totals to fill each missing cell. Check that the cells add to the grand total.

How do you change a two-way table into a Venn diagram?

The cell for both attributes is the overlap. The cells for one attribute only are the two parts of the circles outside the overlap, and the cell for neither goes outside both circles.

What is conditional probability in a two-way table?

It is a probability where you already know something about the person, such as their gender. Use only that row or column: divide the matching cell by that row or column total.

How do you tell if two events are independent from a two-way table?

Find the probability of one event within each row. If the probability is the same in every row, knowing the row does not change it, so the events are independent.