Skip to content
🎯⭐ INTERACTIVE LESSON

Conditional Probability

Learn step-by-step with interactive practice!

Conditional Probability - Complete Interactive Lesson

Part 1: Basic Probability

📐 Basic Probability

Part 1 of 7 — Foundations of Probability


What Is Probability?

Probability measures how likely an event is to occur, expressed as a number between 0 and 1.

P(A)=number of favorable outcomestotal number of equally likely outcomesP(A) = \frac{\text{number of favorable outcomes}}{\text{total number of equally likely outcomes}}

ProbabilityMeaning
P(A)=0P(A) = 0Impossible — can never happen
P(A)=1P(A) = 1Certain — always happens
0<P(A)<10 < P(A) < 1Possible — may or may not happen

Key Vocabulary

TermSymbolMeaning
Sample spaceSSSet of ALL possible outcomes
EventAA, BB, etc.A subset of the sample space
ComplementA’A\text{'} or AcA^cEverything NOT in AA
UnionA∪BA \cup BAA or BB (or both)
IntersectionA∩BA \cap BAA AND BB (both)

Complement Rule

P(A’ )=1−P(A)P(A\text{' }) = 1 - P(A)

🔑 Key Insight: An event and its complement always sum to 1. This is often the fastest way to solve "at least one" problems.


Worked Example 1: Rolling a Die

Find P(even)P(\text{even}) on a fair six-sided die.

  • Sample space: S={1,2,3,4,5,6}S = \{1, 2, 3, 4, 5, 6\} → 6 outcomes
  • Favorable outcomes: {2,4,6}\{2, 4, 6\} → 3 outcomes

P(even)=36=0.5P(\text{even}) = \frac{3}{6} = 0.5


Worked Example 2: Using the Complement

A bag has 10 marbles: 3 red, 7 blue. Find P(not red)P(\text{not red}).

P(not red)=1−P(red)=1−310=710=0.7P(\text{not red}) = 1 - P(\text{red}) = 1 - \frac{3}{10} = \frac{7}{10} = 0.7


Interpreting Probability

InterpretationDescription
ClassicalEqually likely outcomes (dice, coins, cards)
Relative frequencyLong-run proportion from many trials (or a simulation)

🔑 Law of Large Numbers: As the number of trials increases, the relative frequency approaches the true probability.

Basic Probability Concepts 🎯

Calculating Probabilities 🧮

1) P(heads)P(\text{heads}) on a fair coin:

2) A bag has 5 red and 15 blue marbles. P(red)=P(\text{red}) = ? (as decimal)

3) Using the complement: P(not red)=P(\text{not red}) = ?

Probability Vocabulary 🔍

Exit Quiz — Basic Probability ✅

Part 2: Addition Rule

📊 Addition Rule

Part 2 of 7 — "Or" Probabilities


The General Addition Rule

The probability that event AA or event BB (or both) occurs:

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

🔑 Why subtract P(A∩B)P(A \cap B)? Because the overlap is counted once in P(A)P(A) and again in P(B)P(B). Subtracting avoids double-counting.


Venn Diagram View

RegionRepresentsProbability
Left onlyAA but not BBP(A)−P(A∩B)P(A) - P(A \cap B)
OverlapAA and BBP(A∩B)P(A \cap B)
Right onlyBB but not AAP(B)−P(A∩B)P(B) - P(A \cap B)
Outside bothNeither AA nor BB1−P(A∪B)1 - P(A \cup B)

Mutually Exclusive Events

Two events are mutually exclusive (disjoint) if they cannot both occur: P(A∩B)=0P(A \cap B) = 0.

For mutually exclusive events, the addition rule simplifies to:

P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)

Examples:

  • Rolling a 2 and rolling a 5 on one die → mutually exclusive
  • Choosing one student who is a freshman and choosing one who is a senior → mutually exclusive
  • Drawing a heart and drawing a spade → mutually exclusive

NOT mutually exclusive:

  • Drawing a heart and drawing a king (king of hearts exists!)

Worked Example 1: General Addition Rule

P(A)=0.4P(A) = 0.4, P(B)=0.3P(B) = 0.3, P(A∩B)=0.1P(A \cap B) = 0.1. Find P(A∪B)P(A \cup B).

P(A∪B)=0.4+0.3−0.1=0.6P(A \cup B) = 0.4 + 0.3 - 0.1 = 0.6


Worked Example 2: Two-Way Table

A class of 200 students:

FreshmanSophomoreTotal
Male503080
Female6060120
Total11090200

Find P(Male OR Freshman)P(\text{Male OR Freshman}):

P(M∪F)=P(M)+P(F)−P(M∩F)=80200+110200−50200=140200=0.70P(M \cup F) = P(M) + P(F) - P(M \cap F) = \frac{80}{200} + \frac{110}{200} - \frac{50}{200} = \frac{140}{200} = 0.70

🔑 Check: Count directly: 80 males + 60 female freshmen = 140 out of 200 = 0.70 ✓

Addition Rule Concepts 🎯

Addition Rule Calculations 🧮

1) P(A)=0.4P(A) = 0.4, P(B)=0.3P(B) = 0.3, P(A∩B)=0.1P(A \cap B) = 0.1. P(A∪B)=P(A \cup B) = ?

2) P(A)=0.6P(A) = 0.6, P(B)=0.4P(B) = 0.4, P(A∩B)=0.2P(A \cap B) = 0.2. P(A∪B)=P(A \cup B) = ?

3) P(A∪B)=0.9P(A \cup B) = 0.9, P(A)=0.5P(A) = 0.5, P(B)=0.6P(B) = 0.6. P(A∩B)=P(A \cap B) = ?

Key Concepts 🔍

Exit Quiz — Addition Rule ✅

Part 3: Multiplication Rule

🔢 Multiplication Rule

Part 3 of 7 — "And" Probabilities


The General Multiplication Rule

The probability that both AA and BB occur:

P(A∩B)=P(A)⋅P(B∣A)P(A \cap B) = P(A) \cdot P(B | A)

where P(B∣A)P(B | A) means "the probability of BB given that AA has occurred."


Independent Events (Special Case)

If events are independent (one doesn't affect the other):

P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B)

🔑 Key Insight: For independent events, you just multiply. For dependent events, you must account for how the first event changes the second.


Independent vs Dependent

ScenarioTypeWhy
Flip a coin, then roll a dieIndependentCoin doesn't affect die
Draw 2 cards WITH replacementIndependentDeck is reset each time
Draw 2 cards WITHOUT replacementDependentDeck shrinks after 1st draw
Select 2 people from a small groupDependentPool changes after 1st selection

Worked Example 1: Independent Events

Two coin flips. Find P(HH)P(HH).

Flips are independent: P(HH)=P(H)⋅P(H)=0.5×0.5=0.25P(HH) = P(H) \cdot P(H) = 0.5 \times 0.5 = 0.25


Worked Example 2: Dependent Events (Without Replacement)

A bag has 4 red and 6 blue marbles. Draw 2 without replacement. Find P(both red)P(\text{both red}).

P(R1∩R2)=P(R1)⋅P(R2∣R1)=410⋅39=1290=215≈0.133P(R_1 \cap R_2) = P(R_1) \cdot P(R_2 | R_1) = \frac{4}{10} \cdot \frac{3}{9} = \frac{12}{90} = \frac{2}{15} \approx 0.133

After removing one red marble, only 3 red remain out of 9 total.


Extending to Multiple Events

For three independent events: P(A∩B∩C)=P(A)⋅P(B)⋅P(C)P(A \cap B \cap C) = P(A) \cdot P(B) \cdot P(C)

Example: Probability of 3 heads in a row: P(HHH)=0.53=0.125P(HHH) = 0.5^3 = 0.125


"At Least One" Using the Complement

P(at least one)=1−P(none)P(\text{at least one}) = 1 - P(\text{none})

Example: Roll a die 3 times. P(at least one 6)P(\text{at least one 6}): P(at least one 6)=1−P(no 6s)=1−(56)3=1−125216≈0.421P(\text{at least one 6}) = 1 - P(\text{no 6s}) = 1 - \left(\frac{5}{6}\right)^3 = 1 - \frac{125}{216} \approx 0.421

Multiplication Rule Concepts 🎯

Computing "And" Probabilities 🧮

For independent events:

1) P(A)=0.5P(A) = 0.5, P(B)=0.5P(B) = 0.5. P(A∩B)=P(A \cap B) = ?

2) P(A)=0.2P(A) = 0.2, P(B)=0.5P(B) = 0.5. P(A∩B)=P(A \cap B) = ?

3) P(at least one head in 2 flips)=1−P(TT)=P(\text{at least one head in 2 flips}) = 1 - P(TT) = ?

Independent vs Dependent 🔍

Exit Quiz — Multiplication Rule ✅

Part 4: Conditional Probability

📈 Conditional Probability

Part 4 of 7 — "Given That" Probabilities


What Is Conditional Probability?

Conditional probability is the probability of event AA occurring, given that event BB has already occurred:

P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

🔑 Key Insight: Knowing BB occurred restricts the sample space to only outcomes where BB happened.


Reading Conditional Probability

NotationRead As
P(A∣B)P(A\vert B)"Probability of AA given BB"
P(B∣A)P(B\vert A)"Probability of BB given AA"

⚠️ Warning: P(A∣B)≠P(B∣A)P(A|B) \neq P(B|A) in general! The order matters.


Worked Example 1: Formula

P(A∩B)=0.12P(A \cap B) = 0.12, P(B)=0.4P(B) = 0.4. Find P(A∣B)P(A|B).

P(A∣B)=P(A∩B)P(B)=0.120.4=0.3P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{0.12}{0.4} = 0.3


Worked Example 2: Two-Way Table

Survey of 500 students:

Plays SportNo SportTotal
Male12080200
Female100200300
Total220280500

Find P(Sport∣Male)P(\text{Sport} | \text{Male}):

P(Sport∣Male)=120200=0.60P(\text{Sport}|\text{Male}) = \frac{120}{200} = 0.60

We restrict to males only (200), then count how many play a sport (120).

Find P(Male∣Sport)P(\text{Male} | \text{Sport}):

P(Male∣Sport)=120220≈0.545P(\text{Male}|\text{Sport}) = \frac{120}{220} \approx 0.545

We restrict to sport players (220), then count how many are male (120).

Notice: P(Sport∣Male)≠P(Male∣Sport)P(\text{Sport}|\text{Male}) \neq P(\text{Male}|\text{Sport})!


Connection to the Multiplication Rule

Rearranging the conditional probability formula:

P(A∩B)=P(B)⋅P(A∣B)P(A \cap B) = P(B) \cdot P(A|B)

This IS the general multiplication rule!


Reversing the Condition with a Tree Diagram

Sometimes you know P(B∣A)P(B|A) but need P(A∣B)P(A|B). Draw a tree, then use the conditional probability formula.

Example: 2% of people have a disease. A test is positive for 95% of people with the disease and for 10% of people without it.

BranchProbability
Disease AND positive0.02×0.95=0.0190.02 \times 0.95 = 0.019
No disease AND positive0.98×0.10=0.0980.98 \times 0.10 = 0.098
Positive (total)0.019+0.098=0.1170.019 + 0.098 = 0.117

P(disease∣positive)=P(disease∩positive)P(positive)=0.0190.117≈0.162P(\text{disease}|\text{positive}) = \frac{P(\text{disease} \cap \text{positive})}{P(\text{positive})} = \frac{0.019}{0.117} \approx 0.162

🔑 Only about 16% of positive tests come from people with the disease, because the disease is rare. The tree plus P(A∣B)=P(A∩B)/P(B)P(A|B) = P(A \cap B)/P(B) is all you need; no separate formula is required.

Conditional Probability Concepts 🎯

Computing Conditional Probabilities 🧮

P(A∣B)=P(A∩B)/P(B)P(A|B) = P(A \cap B) / P(B)

1) P(A∩B)=0.12P(A \cap B) = 0.12, P(B)=0.4P(B) = 0.4. P(A∣B)=P(A|B) = ?

2) P(A∩B)=0.06P(A \cap B) = 0.06, P(B)=0.2P(B) = 0.2. P(A∣B)=P(A|B) = ?

3) From a table: 80 males, 50 play a sport. P(Sport∣Male)=P(\text{Sport}|\text{Male}) = ? (as decimal)

Conditional vs Joint Probability 🔍

Exit Quiz — Conditional Probability ✅

Part 5: Independence

🧮 Independence

Part 5 of 7 — Testing for Independence


What Does Independence Mean?

Events AA and BB are independent if knowing one occurred does NOT change the probability of the other.

Two equivalent tests:

P(A∣B)=P(A)orP(A∩B)=P(A)⋅P(B)P(A|B) = P(A) \qquad \text{or} \qquad P(A \cap B) = P(A) \cdot P(B)

If either equation holds, events are independent. If not, they are dependent.


How to Check Independence

MethodCheckIndependent If
Conditional probabilityCompute P(A∣B)P(A\vert B)P(A∣B)=P(A)P(A\vert B) = P(A)
Multiplication checkCompute P(A)⋅P(B)P(A) \cdot P(B)P(A)⋅P(B)=P(A∩B)P(A) \cdot P(B) = P(A \cap B)
Two-way tableCompare conditional proportionsRow/column proportions are equal

Independence vs Mutually Exclusive

These concepts are DIFFERENT and often confused:

PropertyIndependentMutually Exclusive
Can both occur?YesNo
P(A∩B)P(A \cap B)P(A)⋅P(B)>0P(A) \cdot P(B) > 000
P(A∣B)P(A\vert B)P(A)P(A)00
Knowing one affects the other?NoYes (if one occurs, the other can't)

🔑 Critical Fact: If AA and BB are mutually exclusive (and both have P>0P > 0), they are ALWAYS dependent. If AA happened, BB definitely didn't!


Worked Example 1: Multiplication Check

P(A)=0.4P(A) = 0.4, P(B)=0.5P(B) = 0.5, P(A∩B)=0.2P(A \cap B) = 0.2. Independent?

P(A)⋅P(B)=0.4×0.5=0.2=P(A∩B)✓P(A) \cdot P(B) = 0.4 \times 0.5 = 0.2 = P(A \cap B) \checkmark

Yes, independent! The product equals the intersection.


Worked Example 2: Two-Way Table

200 employees:

College DegreeNo DegreeTotal
Promoted301040
Not Promoted12040160
Total15050200

Are promotion and degree independent?

P(Promoted∣Degree)=30150=0.20P(\text{Promoted}|\text{Degree}) = \frac{30}{150} = 0.20 P(Promoted∣No Degree)=1050=0.20P(\text{Promoted}|\text{No Degree}) = \frac{10}{50} = 0.20

Since P(Promoted∣Degree)=P(Promoted∣No Degree)=0.20P(\text{Promoted}|\text{Degree}) = P(\text{Promoted}|\text{No Degree}) = 0.20, the events are independent. Having a degree doesn't affect the promotion rate.


Independence in Sampling

Sampling MethodIndependent?
With replacementYes
Without replacement (n<10%n < 10\% of NN)Approximately yes
Without replacement (n≥10%n \geq 10\% of NN)No — use other methods

Independence Concepts 🎯

Testing Independence 🧮

Compute P(A)×P(B)P(A) \times P(B) and compare with P(A∩B)P(A \cap B):

1) P(A)=0.4P(A) = 0.4, P(B)=0.5P(B) = 0.5. P(A)×P(B)=P(A) \times P(B) = ?

2) P(A)=0.3P(A) = 0.3, P(B)=0.6P(B) = 0.6. P(A)×P(B)=P(A) \times P(B) = ?

3) P(A)=0.5P(A) = 0.5, P(B)=0.8P(B) = 0.8. P(A)×P(B)=P(A) \times P(B) = ?

Key Distinctions 🔍

Exit Quiz — Independence ✅

Part 6: Problem-Solving Workshop

🛠️ Problem-Solving Workshop

Part 6 of 7 — Combining Probability Rules


Strategy: Which Rule Do I Use?

Key Word / PhraseRuleFormula
"or", "either", "at least one of"AdditionP(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
"and", "both", "all"MultiplicationP(A∩B)=P(A)⋅P(B∣A)P(A \cap B) = P(A) \cdot P(B\vert A)
"given", "if", "knowing that"ConditionalP(A∣B)=P(A∩B)P(B)P(A\vert B) = \frac{P(A \cap B)}{P(B)}
"not", "fails", "none"ComplementP(A’ )=1−P(A)P(A\text{' }) = 1 - P(A)
"at least one"Complement shortcut1−P(none)1 - P(\text{none})

Worked Example 1: "At Least One" with Complement

A factory produces items with a 5% defect rate. In a batch of 3 independent items, what is P(at least one defective)P(\text{at least one defective})?

Step 1: Find P(not defective)=1−0.05=0.95P(\text{not defective}) = 1 - 0.05 = 0.95

Step 2: P(none defective in 3)=0.953=0.857375P(\text{none defective in 3}) = 0.95^3 = 0.857375

Step 3: P(at least one)=1−0.857375=0.1426P(\text{at least one}) = 1 - 0.857375 = 0.1426

P(at least one defective)≈0.143\boxed{P(\text{at least one defective}) \approx 0.143}


Worked Example 2: Combining Multiple Rules

In a class: 60% study math, 40% study science, 20% study both. A student is chosen. Given they study math, what is P(science)P(\text{science})?

Step 1: Identify: This is P(Science∣Math)P(\text{Science}|\text{Math}) → conditional probability

Step 2: Apply formula: P(Sci∣Math)=P(Sci∩Math)P(Math)=0.200.60=0.333P(\text{Sci}|\text{Math}) = \frac{P(\text{Sci} \cap \text{Math})}{P(\text{Math})} = \frac{0.20}{0.60} = 0.333


Worked Example 3: Sequential Events with Dependence

A bag has 5 red and 3 blue marbles. Draw 2 without replacement. P(both red)P(\text{both red})?

Step 1: P(1st red)=58P(\text{1st red}) = \frac{5}{8}

Step 2: After removing a red: P(2nd red∣1st red)=47P(\text{2nd red}|\text{1st red}) = \frac{4}{7}

Step 3: Multiply (general rule): P(both red)=58×47=2056=514≈0.357P(\text{both red}) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56} = \frac{5}{14} \approx 0.357


Decision Flowchart

Read the problem→{"or" / "either"→Addition Rule"and" / "both"→Multiplication Rule"given" / "if"→Conditional"at least one"→Complement\text{Read the problem} \to \begin{cases} \text{"or" / "either"} &\to \text{Addition Rule} \\ \text{"and" / "both"} &\to \text{Multiplication Rule} \\ \text{"given" / "if"} &\to \text{Conditional} \\ \text{"at least one"} &\to \text{Complement} \end{cases}

🎯 Pro tip: "At least one" problems are almost ALWAYS easier with the complement: 1−P(none)1 - P(\text{none}).

Choosing the Right Rule 🎯

Multi-Rule Calculations 🧮

1) P(defect)=0.1P(\text{defect}) = 0.1, items independent. P(at least one defect in 3 items)=P(\text{at least one defect in 3 items}) = ? (Use: 1−P(none)=1−0.931 - P(\text{none}) = 1 - 0.9^3. Round to 3 decimal places.)

2) Bag: 4 red, 6 blue. Draw 2 without replacement. P(both blue)=P(\text{both blue}) = ? (Round to 3 decimal places.)

3) P(A)=0.5P(A) = 0.5, P(B)=0.3P(B) = 0.3, P(A∩B)=0.15P(A \cap B) = 0.15. P(A∣B)=P(A|B) = ?

Rule Selection 🔍

Exit Quiz — Problem-Solving Workshop ✅

Part 7: Review & Applications

🏆 Review & Applications

Part 7 of 7 — Comprehensive Probability Review


Complete Formula Reference

RuleFormulaWhen to Use
ComplementP(A’ )=1−P(A)P(A\text{' }) = 1 - P(A)"not", "fails", "none"
Addition (General)P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)"or", "either"
Addition (ME)P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)"or" when mutually exclusive
Multiplication (General)P(A∩B)=P(A)⋅P(B∣A)P(A \cap B) = P(A) \cdot P(B\vert A)"and", "both" (dependent)
Multiplication (Indep.)P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B)"and", "both" (independent)
ConditionalP(A∣B)=P(A∩B)P(B)P(A\vert B) = \frac{P(A \cap B)}{P(B)}"given", "if", "knowing"
At least one1−P(none)1 - P(\text{none})"at least one"

Key Relationships

Mutually Exclusive:P(A∩B)=0\text{Mutually Exclusive:} \quad P(A \cap B) = 0 Independent:P(A∩B)=P(A)⋅P(B)\text{Independent:} \quad P(A \cap B) = P(A) \cdot P(B) Complementary:P(A)+P(A’ )=1\text{Complementary:} \quad P(A) + P(A\text{' }) = 1

🔑 Remember: Mutually exclusive events with P>0P > 0 are NEVER independent!


Comprehensive Worked Example

A survey of 500 adults:

Exercises RegularlyDoes NotTotal
Healthy Weight180120300
Not Healthy Weight60140200
Total240260500

a) P(Healthy Weight)P(\text{Healthy Weight}) P(HW)=300500=0.60P(\text{HW}) = \frac{300}{500} = 0.60

b) P(Exercises AND Healthy Weight)P(\text{Exercises AND Healthy Weight}) P(E∩HW)=180500=0.36P(\text{E} \cap \text{HW}) = \frac{180}{500} = 0.36

c) P(Exercises OR Healthy Weight)P(\text{Exercises OR Healthy Weight}) P(E∪HW)=P(E)+P(HW)−P(E∩HW)=0.48+0.60−0.36=0.72P(\text{E} \cup \text{HW}) = P(\text{E}) + P(\text{HW}) - P(\text{E} \cap \text{HW}) = 0.48 + 0.60 - 0.36 = 0.72

d) P(Healthy Weight∣Exercises)P(\text{Healthy Weight} | \text{Exercises}) P(HW∣E)=P(HW∩E)P(E)=0.360.48=0.75P(\text{HW}|\text{E}) = \frac{P(\text{HW} \cap \text{E})}{P(\text{E})} = \frac{0.36}{0.48} = 0.75

e) Are Exercise and Healthy Weight independent? P(HW)=0.60≠0.75=P(HW∣E)P(\text{HW}) = 0.60 \neq 0.75 = P(\text{HW}|\text{E}) No — exercising is associated with higher rate of healthy weight.


Common Mistakes to Avoid

MistakeCorrection
Using addition rule for "and""And" → multiplication rule
Forgetting −P(A∩B)-P(A \cap B) in addition ruleAlways subtract overlap unless ME
Treating dependent events as independentCheck if events affect each other
Confusing ME with independentME ≠ independent (opposite when P>0P > 0)
P>1P > 1 in final answerProbability is always between 0 and 1

Formula Identification 🎯

Mixed Calculations 🧮

1) P(A)=0.4P(A) = 0.4, P(B)=0.3P(B) = 0.3, independent. P(A∩B)=P(A \cap B) = ?

2) P(A)=0.6P(A) = 0.6, P(B)=0.5P(B) = 0.5, P(A∩B)=0.3P(A \cap B) = 0.3. P(A∪B)=P(A \cup B) = ?

3) P(pass)=0.9P(\text{pass}) = 0.9, 2 independent attempts. P(at least one pass)=P(\text{at least one pass}) = ?

Concept Review 🔍

Exit Quiz — Comprehensive Review ✅