Skip to content

The two-way table

The two-way table

A two-way table of numbers

A two-way table sorts data by two variables at once: one variable in the rows and one in the columns. Each inner cell is the intersection of two events, and the total row and the total column hold each event on its own.

A school asked its 450 students in years 10, 11 and 12 whether they volunteer in the community. This is a 3×2\displaystyle 3\times2 table – three rows and two columns of data:

VolunteerDo not volunteerTotal
Year 1048112160
Year 116090150
Year 127268140
Total180270450

A student is chosen at random. V\displaystyle V – the student volunteers; T\displaystyle T – the student is in year 12.

  • P(V)=180450=25\displaystyle {P(V)}={\frac{180}{450}}={\frac{2}{5}} – from the column’s total.
  • P(T∩V)=72450=425\displaystyle {P(T\cap V)}={\frac{72}{450}}={\frac{4}{25}} – from the cell where the row and the column meet.
  • P(V‾)=270450=35\displaystyle {P(\overline{V})}={\frac{270}{450}}={\frac{3}{5}} – the second column, and also 1−25\displaystyle 1-\frac{2}{5}.
  • A union – “in year 12 or volunteers”: P(T∪V)=140+180−72450=248450=124225\displaystyle {P(T\cup V)}={\frac{140+180-72}{450}}={\frac{248}{450}}={\frac{124}{225}}. The 72 are in both the row and the column, so they are taken away once.
A table of probabilities

Dividing each cell by the number of all the students, 450, gives a table of probabilities. In such a table:

  • the inner cells add up to 1;
  • the total of a row or a column is the probability of its event;
  • in each row and each column, the inner cells add up to its total.
V\displaystyle VV‾\displaystyle \overline{V}Total
Year 1048450\displaystyle \frac{48}{450}112450\displaystyle \frac{112}{450}160450\displaystyle \frac{160}{450}
Year 1160450\displaystyle \frac{60}{450}90450\displaystyle \frac{90}{450}150450\displaystyle \frac{150}{450}
Year 1272450\displaystyle \frac{72}{450}68450\displaystyle \frac{68}{450}140450\displaystyle \frac{140}{450}
Total180450\displaystyle \frac{180}{450}270450\displaystyle \frac{270}{450}1
Completing a table from percentages

Many questions give only some of the cells, as percentages of the whole population. The rest is completed by subtraction, row by row and column by column.

In a certain town 40% of the residents are under 30.
25% of the residents use the bike-sharing service.
15% of the residents are under 30 and use the service.
Y\displaystyle Y – the resident is under 30; S\displaystyle S – the resident uses the service.

S\displaystyle SS‾\displaystyle \overline{S}Total
Y\displaystyle Y0.150.4−0.15=0.25\displaystyle {0.4-0.15}={0.25}0.4
Y‾\displaystyle \overline{Y}0.25−0.15=0.1\displaystyle {0.25-0.15}={0.1}0.6−0.1=0.5\displaystyle {0.6-0.1}={0.5}1−0.4=0.6\displaystyle {1-0.4}={0.6}
Total0.251−0.25=0.75\displaystyle {1-0.25}={0.75}1

From the table: the probability that a resident chosen at random is 30 or older and does not use the service is P(Y‾∩S‾)=0.5\displaystyle {P(\overline{Y}\cap\overline{S})}={0.5}.

A table with an unknown

When what is given is a link between two cells, one cell is written x\displaystyle x, the other cells are expressed with it, and an equation is solved.

In a youth club 45% of the members are girls.
30% of the members play chess.
The probability that a member chosen at random is a boy who does not play chess is 3 times the probability that the member is a girl who plays chess.
G\displaystyle G – a girl; C\displaystyle C – plays chess.

The solution below writes P(G∩C)=x\displaystyle {P(G\cap C)}={x}, completes the table with x\displaystyle x, and writes an equation from the link between the cells.

C\displaystyle CC‾\displaystyle \overline{C}Total
G\displaystyle Gx\displaystyle x0.45−x\displaystyle 0.45-x0.45
G‾\displaystyle \overline{G}0.3−x\displaystyle 0.3-x0.55−(0.3−x)=0.25+x\displaystyle {0.55-(0.3-x)}={0.25+x}0.55
Total0.30.71
0.25+x=3x0.25+x=3xx=0.125x=0.125

The probability that a member is a girl who plays chess is 0.125\displaystyle 0.125, and that a member is a boy who does not play – 0.375\displaystyle 0.375.

Exercise 1

A gym has 300 members:

Train in the morningTrain in the eveningTotal
Men5496150
Women8169150
Total135165300

A member is chosen at random.

a

What is the probability that the member trains in the morning?

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    b

    What is the probability that the member is a woman who trains in the evening?

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      c

      What is the probability that the member is a man or trains in the morning?

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

        / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

        Exercise 2

        P(A)=0.3\displaystyle {P(A)}={0.3}, P(B)=0.55\displaystyle {P(B)}={0.55}, P(A‾∩B‾)=0.25\displaystyle {P(\overline{A}\cap\overline{B})}={0.25}.
        Build a two-way table of probabilities, and fill in all its cells.

        a

        What is P(A∩B)\displaystyle P(A\cap B)?

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

          / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

          b

          What is P(A∩B‾)\displaystyle P(A\cap\overline{B})?

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

            / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

            Exercise 3

            A shop sells the phones of three companies: 25% of the phones sold are company A’s, 45% company B’s, and the rest company C’s.
            10% of all the phones sold are company A’s and were sold with insurance.
            18% of all the phones are company B’s and were sold with insurance.
            12% of all the phones are company C’s and were sold with insurance.
            A phone that was sold is chosen at random. Build a 3×2\displaystyle 3\times2 two-way table.

            a

            What is the probability that the phone was sold with insurance?

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

              / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

              b

              What is the probability that the phone is company C’s and was sold without insurance?

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

                Exercise 4

                30% of the candidates in a college entrance exam came from the north, and the rest from the centre.
                65% of the candidates passed the exam.
                The probability of choosing at random a candidate from the centre who failed is 1.5 times the probability of choosing a candidate from the north who passed.

                a

                Write x\displaystyle x for the probability that a candidate is from the north and passed, and find x\displaystyle x.

                  b

                  What is the probability that a candidate is from the north and failed?

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

                    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power