A-level Mathematics

Chapter 12: Review

The chapter problem, solved

The warehouse fire system has these figures:

The manager needs P(fire∣alarm)P(\text{fire} \mid \text{alarm}).

Step 1. Write the two paths to an alarm

An alarm can happen in two ways. Multiply along each path.

P(F and A)=P(F)×P(A∣F)=0.001×0.95=0.00095.P(F \text{ and } A) = P(F) \times P(A \mid F) = 0.001 \times 0.95 = 0.00095. P(no F and A)=P(no F)×P(A∣no F)=0.999×0.02=0.01998.P(\text{no } F \text{ and } A) = P(\text{no } F) \times P(A \mid \text{no } F) = 0.999 \times 0.02 = 0.01998.

The two paths are mutually exclusive, so add them to find the probability of an alarm.

P(A)=0.00095+0.01998=0.02093.P(A) = 0.00095 + 0.01998 = 0.02093.

Step 2. Divide the fire path by the alarm total

P(F∣A)=P(F and A)P(A)=0.000950.02093=952093≈0.0454.P(F \mid A) = \frac{P(F \text{ and } A)}{P(A)} = \frac{0.00095}{0.02093} = \frac{95}{2093} \approx 0.0454.

So about 4.5%4.5\% of alarms are real fires. Fewer than one alarm in twenty.

Step 3. Check with a table

The same answer comes from 100000 mornings.

Alarm sounds Alarm does not sound Total
Fire 95 5 100
No fire 1998 97902 99900
Total 2093 97907 100000

Of the 2093 mornings with an alarm, 95 had a fire:

952093≈0.0454.\frac{95}{2093} \approx 0.0454.

There are about 2121 false alarms for each real fire, because 199895≈21\dfrac{1998}{95} \approx 21.

Step 4. Explain the surprise

The detector is reliable. It finds 95% of fires and raises a false alarm on only 2% of quiet mornings. The surprise comes from the base rate. Fires are rare, so the 2% false-alarm rate acts on a very large number of quiet mornings. Those false alarms outnumber the fires.

This is not a fault in the detector. It is a fact about rare events, and it is why a screening test for a rare condition needs a very low false-positive rate.

Step 5. Critique the assumptions

The answer rests on three assumptions.

Step 6. Answer the manager

Most alarms are false, but P(F∣A)≈0.045P(F \mid A) \approx 0.045 is far larger than the 0.0010.001 chance of a fire with no alarm. The alarm raises the risk by a factor of about 45. A real fire is serious, and a missed one is dangerous, so the manager should treat each alarm as a possible fire until it is checked.

Mixed practice — choose the method first

For each question, say which method you will use before you calculate: an addition rule, a multiplication rule, a tree diagram, the conditional probability formula, an expected count, or a method from Chapter 11. The items mix this chapter with the sampling, diagrams and summary statistics of Chapter 11.

  1. A fair six-sided die is rolled once. Find the probability of a number greater than 4 or an odd number.
  2. Events AA and BB are independent with P(A)=0.6P(A) = 0.6 and P(B)=0.5P(B) = 0.5. Find P(A and B)P(A \text{ and } B).
  3. For two events AA and BB, P(A and B)=0.12P(A \text{ and } B) = 0.12 and P(B)=0.4P(B) = 0.4. Find P(A∣B)P(A \mid B).
  4. A bag has 4 white counters and 6 black counters. Two counters are taken at random, without replacement. Find the probability that the two counters are different colours.
  5. A test for a fault has sensitivity 0.90.9 and false-positive rate 0.080.08. The fault affects 5% of items. Find the probability that an item has the fault, given a positive result.
  6. A model gives a probability of 0.040.04 that a machine produces a faulty part in one hour. Find the expected number of faulty parts in 250 hours.
  7. Find the mean of 12,15,16,18,20,2112, 15, 16, 18, 20, 21.
  8. Find the standard deviation of 12,15,16,18,20,2112, 15, 16, 18, 20, 21, dividing by nn.
  9. A class of width 10 contains 45 values. Find the frequency density.
  10. A population has 450 members in one stratum and 150 in another. A stratified sample of 60 is taken. Find the number from the 450 stratum.
  11. A line of best fit passes through the points (2,10)(2, 10) and (6,22)(6, 22). Find its gradient.
  12. A histogram of 200 values has frequency density 6 in a class of width 10. Estimate the probability that a value lies in this class.
  13. A card is drawn at random from a standard pack of 52. Event AA is a heart. Event BB is a king. Find P(A or B)P(A \text{ or } B).
  14. A six-sided die is rolled 300 times. A model predicts 50 of each face. The observed count of sixes is 72. Find the model prediction for sixes and the difference from the observed count.
Answers and concise solutions

1. The probability

Answer: The numbers greater than 4 are 5 and 6. The odd numbers are 1, 3 and 5. The number 5 is in both sets, so subtract it once: 26+36−16=46=23\dfrac{2}{6} + \dfrac{3}{6} - \dfrac{1}{6} = \dfrac{4}{6} = \dfrac{2}{3}.

2. The probability of A and B

Answer: For independent events, multiply the probabilities: 0.6×0.5=0.3=3100.6 \times 0.5 = 0.3 = \dfrac{3}{10}.

3. The conditional probability

Answer: Use the formula: P(A∣B)=P(A and B)P(B)=0.120.4=0.3=310P(A \mid B) = \dfrac{P(A \text{ and } B)}{P(B)} = \dfrac{0.12}{0.4} = 0.3 = \dfrac{3}{10}.

4. The probability that the counters are different colours

Answer: The counters are different on two paths: white then black gives 410×69=2490\dfrac{4}{10} \times \dfrac{6}{9} = \dfrac{24}{90}, and black then white gives 610×49=2490\dfrac{6}{10} \times \dfrac{4}{9} = \dfrac{24}{90}. Adding gives 4890=815\dfrac{48}{90} = \dfrac{8}{15}.

5. The probability that the item has the fault

Answer: The fault and a positive result give 5100×910=451000\dfrac{5}{100} \times \dfrac{9}{10} = \dfrac{45}{1000}. No fault and a positive result give 95100×8100=761000\dfrac{95}{100} \times \dfrac{8}{100} = \dfrac{76}{1000}. So P(positive)=1211000P(\text{positive}) = \dfrac{121}{1000} and P(fault∣positive)=45121≈0.372P(\text{fault} \mid \text{positive}) = \dfrac{45}{121} \approx 0.372.

6. The expected number of faulty parts

Answer: The expected number is 0.04×250=100.04 \times 250 = 10. This is a long-run average, so a particular 250 hours may give a different count.

7. The mean

Answer: The values sum to 102 over 6 values, so the mean is 1026=17\dfrac{102}{6} = 17.

8. The standard deviation

Answer: The mean is 17. The squared deviations sum to 56, so the variance is 566=283\dfrac{56}{6} = \dfrac{28}{3} and σ=2213=3.06\sigma = \dfrac{2\sqrt{21}}{3} = 3.06 (3 s.f.).

9. The frequency density

Answer: Frequency density is frequency divided by class width: 4510=4.5=92\dfrac{45}{10} = 4.5 = \dfrac{9}{2}.

10. The sample size from the 450 stratum

Answer: The population is 600, so the 450 stratum gives 450600×60=45\dfrac{450}{600} \times 60 = 45 members. The other stratum gives 15, and the two add to 60.

11. The gradient

Answer: Gradient =change in ychange in x=22−106−2=3= \dfrac{\text{change in } y}{\text{change in } x} = \dfrac{22 - 10}{6 - 2} = 3. The line rises by 3 for each extra unit of xx.

12. The estimated probability

Answer: The frequency is frequency density multiplied by class width: 6×10=606 \times 10 = 60. The probability is the frequency divided by the total: 60200=310\dfrac{60}{200} = \dfrac{3}{10}.

13. The probability

Answer: There are 13 hearts and 4 kings. The king of hearts is counted twice, so subtract it once: 1352+452−152=1652=413\dfrac{13}{52} + \dfrac{4}{52} - \dfrac{1}{52} = \dfrac{16}{52} = \dfrac{4}{13}.

14. The prediction and the difference

Answer: The model predicts 3006=50\dfrac{300}{6} = 50 sixes. The observed count is 72, which is 22 higher. The difference is large, so the model of a fair die may not fit. A refinement is to estimate the probability of a six from the observed data.

What you can now do

Your relevance reflection

Return to the prompt in the chapter opener: a test, an alarm or a check you have met that can be wrong. Write the example again. Now add three things you could not have said before this chapter: the base rate, the false-positive rate, and what a positive result actually means. Finish with one sentence about how you would judge the result the next time you meet it.

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.