Skip to content

Bayes' Theorem

Probability and Statistics · FE Reference Handbook section

Probability and Statistics
4 formulas
10 exam-style examples
~53 min
All Probability and Statistics lectures

Core formulas for this FE topic

Definitions, applicability, units, assumptions and worked examples for each relation.

Worked exam-style examples

The four ways this section is written on the real exam — thoughts first, then equations, then substitution.

Example 1
Union and conditional probability — Bayes' Theorem

Two independent inspections fail with P(A) = 0.40 and P(B) = 0.25. Find P(A ∪ B) and P(A|B).

Given

  • P(A)=0.40P(A) = 0.40
  • P(B)=0.25P(B) = 0.25
  • A and B independent

Find

P(A ∪ B) and P(A|B)

Start with the thinking

  • Independence gives the intersection by multiplication.
  • Independence also means conditioning changes nothing.

Step-by-step solution

  1. Intersection

    P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)
  2. Substituting

    P(A∩B)=0.40×0.25=0.1000P(A \cap B) = 0.40 \times 0.25 = 0.1000
  3. Union

    P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
  4. Substituting

    P(A∪B)=0.40+0.25−0.1000=0.5500P(A \cup B) = 0.40 + 0.25 - 0.1000 = 0.5500
  5. Conditional

    P(A∣B)=P(A∩B)/P(B)=0.1000/0.25=0.40P(A|B) = P(A \cap B)/P(B) = 0.1000/0.25 = 0.40
Answer:
P(A∪B)=0.550;P(A∣B)=0.40P(A \cup B) = 0.550; P(A|B) = 0.40

Why the other options are there

  • 0.65 (intersection not subtracted)
  • 0.100 (intersection reported as the union)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 2
Law of total probability and the reverse (Bayes) question — Bayes' Theorem

Plant 1 supplies 45% of the concrete cylinders and has a 7.0% low-break rate; plant 2 supplies the rest with a 11.0% low-break rate. Find the overall probability of a low break, and the probability that a low-breaking cylinder came from plant 1.

Given

  • P(1)=0.45,P(2)=0.55P(1) = 0.45, P(2) = 0.55
  • P(L∣1)=0.070P(L|1) = 0.070
  • P(L∣2)=0.110P(L|2) = 0.110

Find

P(L) by the law of total probability, then P(1|L)

Start with the thinking

  • The law of total probability sums the joint probability over every mutually exclusive source.
  • The reverse conditional is a joint probability divided by that total.

Step-by-step solution

  1. Formula

    P(L)=P(L∣1)P(1)+P(L∣2)P(2)P(L) = P(L|1)P(1) + P(L|2)P(2)
  2. Substituting

    P(L)=0.070(0.45)+0.110(0.55)=0.09200P(L) = 0.070(0.45) + 0.110(0.55) = 0.09200
  3. Formula

    P(1∣L)=P(L∣1)P(1)/P(L)P(1|L) = P(L|1)P(1)/P(L)
  4. Substituting

    P(1∣L)=0.03150/0.09200=0.3424P(1|L) = 0.03150/0.09200 = 0.3424
Answer:
P(L)=0.0920;P(plant1∣lowbreak)=0.342P(L) = 0.0920; P(plant 1 | low break) = 0.342

Why the other options are there

  • 0.1800 (rates added)
  • 0.45 (prior reported as posterior)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 3
Union and conditional probability — Bayes' Theorem (2)

Two independent inspections fail with P(A) = 0.30 and P(B) = 0.50. Find P(A ∪ B) and P(A|B).

Given

  • P(A)=0.30P(A) = 0.30
  • P(B)=0.50P(B) = 0.50
  • A and B independent

Find

P(A ∪ B) and P(A|B)

Start with the thinking

  • Independence gives the intersection by multiplication.
  • Independence also means conditioning changes nothing.

Step-by-step solution

  1. Intersection

    P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)
  2. Substituting

    P(A∩B)=0.30×0.50=0.1500P(A \cap B) = 0.30 \times 0.50 = 0.1500
  3. Union

    P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
  4. Substituting

    P(A∪B)=0.30+0.50−0.1500=0.6500P(A \cup B) = 0.30 + 0.50 - 0.1500 = 0.6500
  5. Conditional

    P(A∣B)=P(A∩B)/P(B)=0.1500/0.50=0.30P(A|B) = P(A \cap B)/P(B) = 0.1500/0.50 = 0.30
Answer:
P(A∪B)=0.650;P(A∣B)=0.30P(A \cup B) = 0.650; P(A|B) = 0.30

Why the other options are there

  • 0.80 (intersection not subtracted)
  • 0.150 (intersection reported as the union)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 4
Law of total probability and the reverse (Bayes) question — Bayes' Theorem (2)

Plant 1 supplies 55% of the concrete cylinders and has a 8.0% low-break rate; plant 2 supplies the rest with a 10.0% low-break rate. Find the overall probability of a low break, and the probability that a low-breaking cylinder came from plant 1.

Given

  • P(1)=0.55,P(2)=0.45P(1) = 0.55, P(2) = 0.45
  • P(L∣1)=0.080P(L|1) = 0.080
  • P(L∣2)=0.100P(L|2) = 0.100

Find

P(L) by the law of total probability, then P(1|L)

Start with the thinking

  • The law of total probability sums the joint probability over every mutually exclusive source.
  • The reverse conditional is a joint probability divided by that total.

Step-by-step solution

  1. Formula

    P(L)=P(L∣1)P(1)+P(L∣2)P(2)P(L) = P(L|1)P(1) + P(L|2)P(2)
  2. Substituting

    P(L)=0.080(0.55)+0.100(0.45)=0.08900P(L) = 0.080(0.55) + 0.100(0.45) = 0.08900
  3. Formula

    P(1∣L)=P(L∣1)P(1)/P(L)P(1|L) = P(L|1)P(1)/P(L)
  4. Substituting

    P(1∣L)=0.04400/0.08900=0.4944P(1|L) = 0.04400/0.08900 = 0.4944
Answer:
P(L)=0.0890;P(plant1∣lowbreak)=0.494P(L) = 0.0890; P(plant 1 | low break) = 0.494

Why the other options are there

  • 0.1800 (rates added)
  • 0.55 (prior reported as posterior)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 5
Union and conditional probability — Bayes' Theorem (3)

Two independent inspections fail with P(A) = 0.25 and P(B) = 0.40. Find P(A ∪ B) and P(A|B).

Given

  • P(A)=0.25P(A) = 0.25
  • P(B)=0.40P(B) = 0.40
  • A and B independent

Find

P(A ∪ B) and P(A|B)

Start with the thinking

  • Independence gives the intersection by multiplication.
  • Independence also means conditioning changes nothing.

Step-by-step solution

  1. Intersection

    P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)
  2. Substituting

    P(A∩B)=0.25×0.40=0.1000P(A \cap B) = 0.25 \times 0.40 = 0.1000
  3. Union

    P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
  4. Substituting

    P(A∪B)=0.25+0.40−0.1000=0.5500P(A \cup B) = 0.25 + 0.40 - 0.1000 = 0.5500
  5. Conditional

    P(A∣B)=P(A∩B)/P(B)=0.1000/0.40=0.25P(A|B) = P(A \cap B)/P(B) = 0.1000/0.40 = 0.25
Answer:
P(A∪B)=0.550;P(A∣B)=0.25P(A \cup B) = 0.550; P(A|B) = 0.25

Why the other options are there

  • 0.65 (intersection not subtracted)
  • 0.100 (intersection reported as the union)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 6
Law of total probability and the reverse (Bayes) question — Bayes' Theorem (3)

Plant 1 supplies 35% of the concrete cylinders and has a 8.0% low-break rate; plant 2 supplies the rest with a 9.0% low-break rate. Find the overall probability of a low break, and the probability that a low-breaking cylinder came from plant 1.

Given

  • P(1)=0.35,P(2)=0.65P(1) = 0.35, P(2) = 0.65
  • P(L∣1)=0.080P(L|1) = 0.080
  • P(L∣2)=0.090P(L|2) = 0.090

Find

P(L) by the law of total probability, then P(1|L)

Start with the thinking

  • The law of total probability sums the joint probability over every mutually exclusive source.
  • The reverse conditional is a joint probability divided by that total.

Step-by-step solution

  1. Formula

    P(L)=P(L∣1)P(1)+P(L∣2)P(2)P(L) = P(L|1)P(1) + P(L|2)P(2)
  2. Substituting

    P(L)=0.080(0.35)+0.090(0.65)=0.08650P(L) = 0.080(0.35) + 0.090(0.65) = 0.08650
  3. Formula

    P(1∣L)=P(L∣1)P(1)/P(L)P(1|L) = P(L|1)P(1)/P(L)
  4. Substituting

    P(1∣L)=0.02800/0.08650=0.3237P(1|L) = 0.02800/0.08650 = 0.3237
Answer:
P(L)=0.0865;P(plant1∣lowbreak)=0.324P(L) = 0.0865; P(plant 1 | low break) = 0.324

Why the other options are there

  • 0.1700 (rates added)
  • 0.35 (prior reported as posterior)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 7
Union and conditional probability — Bayes' Theorem (4)

Two independent inspections fail with P(A) = 0.35 and P(B) = 0.20. Find P(A ∪ B) and P(A|B).

Given

  • P(A)=0.35P(A) = 0.35
  • P(B)=0.20P(B) = 0.20
  • A and B independent

Find

P(A ∪ B) and P(A|B)

Start with the thinking

  • Independence gives the intersection by multiplication.
  • Independence also means conditioning changes nothing.

Step-by-step solution

  1. Intersection

    P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)
  2. Substituting

    P(A∩B)=0.35×0.20=0.0700P(A \cap B) = 0.35 \times 0.20 = 0.0700
  3. Union

    P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
  4. Substituting

    P(A∪B)=0.35+0.20−0.0700=0.4800P(A \cup B) = 0.35 + 0.20 - 0.0700 = 0.4800
  5. Conditional

    P(A∣B)=P(A∩B)/P(B)=0.0700/0.20=0.35P(A|B) = P(A \cap B)/P(B) = 0.0700/0.20 = 0.35
Answer:
P(A∪B)=0.480;P(A∣B)=0.35P(A \cup B) = 0.480; P(A|B) = 0.35

Why the other options are there

  • 0.55 (intersection not subtracted)
  • 0.070 (intersection reported as the union)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 8
Law of total probability and the reverse (Bayes) question — Bayes' Theorem (4)

Plant 1 supplies 40% of the concrete cylinders and has a 3.0% low-break rate; plant 2 supplies the rest with a 5.0% low-break rate. Find the overall probability of a low break, and the probability that a low-breaking cylinder came from plant 1.

Given

  • P(1)=0.40,P(2)=0.60P(1) = 0.40, P(2) = 0.60
  • P(L∣1)=0.030P(L|1) = 0.030
  • P(L∣2)=0.050P(L|2) = 0.050

Find

P(L) by the law of total probability, then P(1|L)

Start with the thinking

  • The law of total probability sums the joint probability over every mutually exclusive source.
  • The reverse conditional is a joint probability divided by that total.

Step-by-step solution

  1. Formula

    P(L)=P(L∣1)P(1)+P(L∣2)P(2)P(L) = P(L|1)P(1) + P(L|2)P(2)
  2. Substituting

    P(L)=0.030(0.40)+0.050(0.60)=0.04200P(L) = 0.030(0.40) + 0.050(0.60) = 0.04200
  3. Formula

    P(1∣L)=P(L∣1)P(1)/P(L)P(1|L) = P(L|1)P(1)/P(L)
  4. Substituting

    P(1∣L)=0.01200/0.04200=0.2857P(1|L) = 0.01200/0.04200 = 0.2857
Answer:
P(L)=0.0420;P(plant1∣lowbreak)=0.286P(L) = 0.0420; P(plant 1 | low break) = 0.286

Why the other options are there

  • 0.0800 (rates added)
  • 0.40 (prior reported as posterior)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 9
Union and conditional probability — Bayes' Theorem (5)

Two independent inspections fail with P(A) = 0.40 and P(B) = 0.30. Find P(A ∪ B) and P(A|B).

Given

  • P(A)=0.40P(A) = 0.40
  • P(B)=0.30P(B) = 0.30
  • A and B independent

Find

P(A ∪ B) and P(A|B)

Start with the thinking

  • Independence gives the intersection by multiplication.
  • Independence also means conditioning changes nothing.

Step-by-step solution

  1. Intersection

    P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)
  2. Substituting

    P(A∩B)=0.40×0.30=0.1200P(A \cap B) = 0.40 \times 0.30 = 0.1200
  3. Union

    P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
  4. Substituting

    P(A∪B)=0.40+0.30−0.1200=0.5800P(A \cup B) = 0.40 + 0.30 - 0.1200 = 0.5800
  5. Conditional

    P(A∣B)=P(A∩B)/P(B)=0.1200/0.30=0.40P(A|B) = P(A \cap B)/P(B) = 0.1200/0.30 = 0.40
Answer:
P(A∪B)=0.580;P(A∣B)=0.40P(A \cup B) = 0.580; P(A|B) = 0.40

Why the other options are there

  • 0.70 (intersection not subtracted)
  • 0.120 (intersection reported as the union)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

Example 10
Law of total probability and the reverse (Bayes) question — Bayes' Theorem (5)

Plant 1 supplies 60% of the concrete cylinders and has a 8.0% low-break rate; plant 2 supplies the rest with a 6.0% low-break rate. Find the overall probability of a low break, and the probability that a low-breaking cylinder came from plant 1.

Given

  • P(1)=0.60,P(2)=0.40P(1) = 0.60, P(2) = 0.40
  • P(L∣1)=0.080P(L|1) = 0.080
  • P(L∣2)=0.060P(L|2) = 0.060

Find

P(L) by the law of total probability, then P(1|L)

Start with the thinking

  • The law of total probability sums the joint probability over every mutually exclusive source.
  • The reverse conditional is a joint probability divided by that total.

Step-by-step solution

  1. Formula

    P(L)=P(L∣1)P(1)+P(L∣2)P(2)P(L) = P(L|1)P(1) + P(L|2)P(2)
  2. Substituting

    P(L)=0.080(0.60)+0.060(0.40)=0.07200P(L) = 0.080(0.60) + 0.060(0.40) = 0.07200
  3. Formula

    P(1∣L)=P(L∣1)P(1)/P(L)P(1|L) = P(L|1)P(1)/P(L)
  4. Substituting

    P(1∣L)=0.04800/0.07200=0.6667P(1|L) = 0.04800/0.07200 = 0.6667
Answer:
P(L)=0.0720;P(plant1∣lowbreak)=0.667P(L) = 0.0720; P(plant 1 | low break) = 0.667

Why the other options are there

  • 0.1400 (rates added)
  • 0.60 (prior reported as posterior)

Reference: FE Reference Handbook — Probability and Statistics → Bayes' Theorem

© 2026 Dr. Steve Efe. Civil Engineering Capstone Studio. All rights reserved.