Class 12 Maths, Worked in Full Past papersGet updates
Chapter 13 · Probability

Example 15: Construction job on time: total probability over a strike, 0.4880.488

ExamplesTheorem of total probability · Section 13.5
The question

A person has undertaken a construction job. The probabilities are 0.65 that there will be strike, 0.80 that the construction job will be completed on time if there is no strike, and 0.32 that the construction job will be completed on time if there is a strike. Determine the probability that the construction job will be completed on time.

Exam answer

Let AA⁠: the job is completed on time, and BB⁠: there is a strike.

BB and B′B' form a partition of the sample space (there is either a strike or no strike).

P(B)=0.65=1320P(B) = 0.65 = \frac{13}{20}

P(B′)=1−1320=720P(B') = 1 - \frac{13}{20} = \frac{7}{20}

P(A∣B)=0.32=825P(A|B) = 0.32 = \frac{8}{25}

P(A∣B′)=0.80=45P(A|B') = 0.80 = \frac45

By the theorem of total probability,

P(A)=P(B)P(A∣B)+P(B′)P(A∣B′)=1320⋅825+720⋅45=26125+725=26125+35125\begin{aligned} P(A) &= P(B)P(A|B) \\ &\quad + P(B')P(A|B') \\ &= \frac{13}{20}\cdot\frac{8}{25} + \frac{7}{20}\cdot\frac45 \\ &= \frac{26}{125} + \frac{7}{25} \\ &= \frac{26}{125} + \frac{35}{125} \end{aligned}

∴\therefore The probability that the job is completed on time is 61125=0.488\dfrac{61}{125} = 0.488⁠.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Split by the cause, then add. We know the chance of finishing on time in each situation (strike, no strike), and how likely each situation is. The job finishes on time either with a strike or without one, never both, so

P(on time)=P(strike and on time)+P(no strike and on time).\begin{aligned} &P(\text{on time}) \\ &= P(\text{strike and on time}) \\ &\quad + P(\text{no strike and on time}). \end{aligned}

Each piece is a product (multiplication rule). This is the theorem of total probability.

Given, to find, and the plan
Given
P(strike) = 0.65; P(on time | no strike) = 0.80; P(on time | strike) = 0.32.
To find
P(the job is completed on time).
Plan
(1) Name the events and check the partition. (2) Write every probability as a fraction. (3) Apply the theorem of total probability. (4) Simplify and give the decimal.

Basics you need

1Reading "if" as a condition

"0.80 that the job will be completed on time if there is no strike" is P(on time∣no strike)P(\text{on time} \mid \text{no strike})⁠. Lesson: conditional probability

2Complement

P(B′)=1−P(B)P(B') = 1 - P(B)⁠: "no strike" has probability 1−0.651 - 0.65⁠. Basics: rules of probability

3Decimals as fractions

0.65=65100=13200.65 = \frac{65}{100} = \frac{13}{20}⁠; divide top and bottom by their highest common factor. Basics: working with fractions

4Theorem of total probability (Section 13.5.2)

For a partition {B,B′}\{B, B'\}⁠: P(A)=P(B)P(A∣B)+P(B′)P(A∣B′)P(A) = P(B)P(A|B) + P(B')P(A|B')⁠. Lesson: total probability and Bayes' theorem

Solution

  1. Name the events

    Let

    • AA⁠: the construction job is completed on time;
    • BB⁠: there is a strike, so B′B'⁠: there is no strike.

    We have to find P(A)P(A)⁠. The events BB and B′B' form a partition of the sample space: they do not overlap, together they cover every possibility, and both have nonzero probability.

    The strike is the "cause" that changes the chance of finishing on time; finishing on time is the event we want. An event and its complement always form a partition when neither is impossible (Section 13.5.1), so the theorem of total probability applies.
    {B,B′}\{B, B'\} is a partition of SS⁠. Lesson: total probability
  2. Every number as a fraction

    P(B)=0.65=65100=1320,P(B′)=1−1320=720,P(A∣B)=0.32=32100=825,P(A∣B′)=0.80=80100=45.\begin{aligned} P(B) &= 0.65 = \frac{65}{100} = \frac{13}{20}, \\ P(B') &= 1 - \frac{13}{20} = \frac{7}{20}, \\ P(A|B) &= 0.32 = \frac{32}{100} = \frac{8}{25}, \\ P(A|B') &= 0.80 = \frac{80}{100} = \frac45. \end{aligned}
    The question gives decimals; fractions keep every later step exact. "0.32 that the job will be completed on time if there is a strike" is about jobs with a strike, so it is P(A∣B)P(A|B)⁠; the 0.80 is for no strike, P(A∣B′)P(A|B')⁠. The book writes P(B′)=1−0.65=0.35P(B') = 1 - 0.65 = 0.35⁠, which is 35100=720\frac{35}{100} = \frac{7}{20}⁠.
    Cancel by the highest common factor: 65100=1320\frac{65}{100} = \frac{13}{20} (divide by 5). Basics: working with fractions
  3. Apply the theorem of total probability

    Since BB and B′B' form a partition, by the theorem of total probability

    P(A)=P(B)P(A∣B)+P(B′)P(A∣B′)=1320⋅825+720⋅45=104500+28100=26125+725.\begin{aligned} P(A) &= P(B)P(A|B) \\ &\quad + P(B')P(A|B') \\ &= \frac{13}{20}\cdot\frac{8}{25} + \frac{7}{20}\cdot\frac45 \\ &= \frac{104}{500} + \frac{28}{100} \\ &= \frac{26}{125} + \frac{7}{25}. \end{aligned}
    start strike? job multiply along the path job B: strike A: on time 13/20 × 8/25 = 26/125 A′: late 13/20 × 17/25 B′: no strike A: on time 7/20 × 4/5 = 7/25 A′: late 7/20 × 1/5 13/20 8/25 17/25 7/20 4/5 1/5
    The tree for Example 15. The two green paths end with the job on time: strike then on time (26125\frac{26}{125}⁠) and no strike then on time (725\frac{7}{25}⁠). Their sum is P(A)P(A)⁠.
    The job is on time in two ways that cannot both happen: with a strike, or without one. Each way is a path in the tree, and its probability is the product along the path (multiplication rule, P(B∩A)=P(B)P(A∣B)P(B \cap A) = P(B)P(A|B)⁠). The two paths are mutually exclusive, so they add.
    Multiply along a path, add the paths. Basics: tree diagrams
  4. Add the fractions

    P(A)=26125+35125=61125=0.488.\begin{aligned} P(A) &= \frac{26}{125} + \frac{35}{125} \\ &= \frac{61}{125} = 0.488. \end{aligned}
    To add, give both fractions the denominator 125: 725=35125\frac{7}{25} = \frac{35}{125}⁠. The fraction 61125\frac{61}{125} cannot be simplified (61 is prime and does not divide 125), and since 125×8=1000125 \times 8 = 1000⁠, it is exactly 4881000=0.488\frac{488}{1000} = 0.488⁠, the book's value.
    Same denominator, then add the numerators. Basics: working with fractions
Result

The probability that the construction job will be completed on time is 61125=0.488\frac{61}{125} = 0.488⁠.

(Textbook answer: 0.4880.488⁠.)

Check it with numbers

Picture 10000 such jobs. A strike hits 65% of them, 6500 jobs, and 32% of those, 2080, still finish on time. The other 3500 jobs have no strike, and 80% of them, 2800, finish on time. So 2080+2800=48802080 + 2800 = 4880 of the 10000 jobs finish on time: 488010000=0.488\frac{4880}{10000} = 0.488⁠, the same as 61125=0.488\frac{61}{125} = 0.488⁠.

The answer lies between the two conditional values 0.32 and 0.80, closer to 0.32 because a strike is the more likely case. A total probability is always such a weighted average.

Common mistakes
  1. Swapping the conditional probabilities. 0.80 belongs to "no strike" and 0.32 to "strike". Read which condition each number comes with.
  2. Adding the conditional probabilities. 0.80+0.320.80 + 0.32 is more than 1. Each must first be multiplied by the probability of its own condition.
  3. Forgetting P(B′)P(B')⁠. The question does not give the chance of no strike; it is 1−0.65=0.351 - 0.65 = 0.35⁠.
What to take away
  1. When a probability depends on which of several situations occurs, find each situation's probability, multiply by the conditional probability, and add: the theorem of total probability.
  2. The next examples turn this round: given that the event happened, which cause was it? That is Bayes' theorem, starting with Example 16. An exercise like this one is Exercise 13.3, Question 1.

Every fact used, and where it comes from

FactUsed inSource
An event and its complement form a partitionStep 1Section 13.5.1 (Lesson: total probability)
P(B′)=1−P(B)P(B') = 1 - P(B)⁠; decimals as fractionsStep 2Class XI (Basics: rules of probability)
Conditional probability P(A∣B)P(A|B)Step 2Section 13.2 (Lesson: conditional probability)
Theorem of total probabilityStep 3Section 13.5.2 (Lesson: total probability)
Multiplication rule P(B∩A)=P(B)P(A∣B)P(B \cap A) = P(B)P(A|B)Step 3Section 13.3 (Lesson: multiplication rule)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →