The two-way table and conditional probability
The two-way table and conditional probability
A two-way table sorts the data by two variables at once: one variable in the rows and one in the columns. Each cell is the intersection of two events.
All the residents of a neighbourhood were asked whether they want a cinema built in the shopping centre:
| Want one | Do not want one | Total | |
|---|---|---|---|
| Young | 75 | 85 | 160 |
| Adults | 140 | 50 | 190 |
| Total | 215 | 135 | 350 |
A resident of the neighbourhood is chosen at random.
– the resident is young; – the resident wants a cinema built.
- – from the row’s total.
- – from the column’s total.
- – from the cell where the row and the column meet.
A table can hold probabilities instead of numbers of people. In such a table the four inner cells add up to 1, and the total of a row or a column is the probability of its event.
Given: , , .
The table is completed by subtracting, row by row and column by column:
| Total | |||
|---|---|---|---|
| 0.2 | 0.6 | ||
| Total | 0.3 | 1 |
From the table we read, for example, : neither nor .
A conditional probability is the probability of an event when another event is already known to have happened. The probability of given is written (also ).
You met a young resident of the neighbourhood. What is the probability that he wants a cinema?
- The resident is known to be young, so the choice is only among the 160 young people – the young row is now the whole sample space.
- 75 of them want one.
Of all the residents want one, and of the young only .
In a table of counts the cell is divided by the row’s total. Dividing both by the number of residents, 350, gives the same fraction – and that is the definition of conditional probability:
In the neighbourhood: and .
From the formula, multiplying by : .
and are two different questions: their numerators are the same intersection, but the denominators differ – once and once .
The residents’ committee held a meeting for all 135 residents who do not want a cinema. – the resident does not want one.
- You met a resident at the meeting. The probability that he is young: – among the 135 who do not want one.
- You met a young resident. The probability that he does not want one: – among the 160 young.
The words “given that …” say what to divide by: the event known to have happened is the denominator.
A school asked its 400 students in years 10, 11 and 12 whether they come to school by bus:
| Year 10 | Year 11 | Year 12 | Total | |
|---|---|---|---|---|
| By bus | 60 | 45 | 35 | 140 |
| Not by bus | 90 | 75 | 95 | 260 |
| Total | 150 | 120 | 130 | 400 |
A student is chosen at random.
What is the probability that the student comes by bus?
/ – 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
What is the probability that the student is in year 11 and comes by bus?
/ – 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
The student is known to be in year 12. What is the probability that he comes by bus?
/ – 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
The student is known to come by bus. What is the probability that he is in year 12?
/ – 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
, , .
Build a two-way table of probabilities, as in the example.
Work out .
/ – 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
Work out .
/ – 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
Is equal to ? Work it out and explain.
/ – 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
An insurance company checked 250 young drivers: who has been driving for less than two years, and who was in an accident in the last year.
| In an accident | Not in an accident | Total | |
|---|---|---|---|
| Driving less than two years | 12 | 48 | 60 |
| Driving two years or more | 19 | 171 | 190 |
| Total | 31 | 219 | 250 |
What is the probability that a driver was in an accident, given that he has been driving for less than two years? Write a decimal.
/ – 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
What is the probability that a driver was in an accident, given that he has been driving for two years or more?
/ – 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
A driver is known to have been in an accident. What is the probability that he has been driving for less than two years?
/ – 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
In a certain town 25% of the residents are teenagers.
60% of the town’s teenagers play computer games every day.
A resident is chosen at random. What is the probability that he is a teenager who plays computer games every day? Write a decimal.
/ – 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
Dana says: “Always , since both have the same two events.”
Show from the neighbourhood’s table that Dana is wrong, and explain the difference.
/ – 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