Course contentsShow
← Mathematics
Lesson 2812 of 3,12155. Probability — FoundationsFree lesson

Applying the Law of Total Probability

Solving problems where an event can occur through multiple mutually exclusive pathways or scenarios.

Applying the Law of Total Probability

What you'll learn: You'll learn how to break down complex probability problems by considering all the different mutually exclusive ways an event can happen.

The Core Idea

The Law of Total Probability isn't just a formula—it's a problem-solving strategy. When you're trying to find the probability of an event B, but B can occur through several different "pathways" (represented by a partition {A₁, A₂, ..., Aₙ}), you can:

  1. Calculate the probability of each pathway: P(Aᵢ)
  2. Calculate the conditional probability of B given each pathway: P(B | Aᵢ)
  3. Sum up all the weighted contributions: P(B) = Σ P(Aᵢ) · P(B | Aᵢ)

When to Apply It

Use this approach when:

  • Your sample space naturally divides into scenarios (a partition)
  • You know probabilities for each scenario
  • You know conditional probabilities of your target event given each scenario
  • Computing P(B) directly seems difficult or impossible

Example Setup

Suppose a factory has three machines producing widgets: Machine 1 (40% of production), Machine 2 (35%), and Machine 3 (25%). Defect rates are 2%, 3%, and 5% respectively. What's the probability a random widget is defective?

Solution approach:

  • Let D = "widget is defective"
  • Partition by machine: {M₁, M₂, M₃}
  • Apply the law: P(D) = P(M₁)·P(D|M₁) + P(M₂)·P(D|M₂) + P(M₃)·P(D|M₃)
  • Calculate: P(D) = (0.40)(0.02) + (0.35)(0.03) + (0.25)(0.05) = 0.031 = 3.1%

Key Takeaway: The Law of Total Probability transforms hard problems into manageable pieces by considering all possible pathways through which your event can occur, weighting each by its likelihood.