MathematicsUnit 128 min read
Probability: Conditional Probability & Bayes' Theorem
Unit 12 of Mathematics covers conditional probability, Bayes' Theorem, and their applications in real-world problems, with solved examples and NEB-style questions to master the concepts.
TAKEAWAYS:
- Conditional probability helps find the probability of an event given another event has already occurred.
- Bayes' Theorem connects prior probabilities, conditional probabilities, and posterior probabilities.
- Tree diagrams and tables simplify complex probability problems.
- Real-world applications include medical testing, spam filtering, and risk assessment.
- Always check if events are independent before applying formulas.
- Practice NEB-style questions to recognize when to use conditional probability vs. Bayes' Theorem.
1. Introduction to Conditional Probability
Probability is the chance of an event happening. Sometimes, we want to find the probability of an event given that another event has already occurred. This is called conditional probability.
Definition
The probability of event A happening given that event B has already happened is written as: where:
- = Probability of A given B
- = Probability of both A and B happening
- = Probability of B happening
Example 1: Basic Conditional Probability
A bag contains 5 red balls and 3 blue balls. Two balls are drawn without replacement. What is the probability that the second ball is red given that the first ball drawn was blue?
Solution:
- Total balls = 5 red + 3 blue = 8 balls.
- Probability of first ball being blue:
- If the first ball is blue, remaining balls = 5 red + 2 blue = 7 balls.
- Probability of second ball being red given first was blue:
Answer:
2. Visualizing Conditional Probability
This pie chart shows:
3. Independent vs. Dependent Events
Independent Events: The occurrence of one event does not affect the other. Example: Rolling a die and flipping a coin.
Dependent Events: The occurrence of one event affects the other. Example: Drawing balls without replacement.
Comparison Table:
| Feature | Independent Events | Dependent Events |
|---|---|---|
| Definition | ||
| Example | Coin toss and die roll | Drawing cards from a deck |
| Formula |
4. Bayes' Theorem
Bayes' Theorem helps update probabilities based on new information. It is widely used in medical testing, spam detection, and machine learning.
Formula:
where:
- = Posterior probability (what we want to find)
- = Likelihood (probability of B given A)
- = Prior probability (initial probability of A)
- = Marginal probability (total probability of B)
Example 2: Medical Testing
A disease affects 1% of the population. A test for the disease is 95% accurate (95% true positive rate and 95% true negative rate). If a person tests positive, what is the probability they actually have the disease?
Solution:
Let:
- = Person has the disease
- = Person does not have the disease
- = Test is positive
Given:
- (True positive rate)
- (True negative rate), so
Find : where .
Calculate:
Answer: Only 16.1% of people who test positive actually have the disease!
5. Tree Diagrams for Probability
Tree diagrams help visualize conditional probabilities step-by-step.
Example 3: Two-Stage Probability
A factory produces 10% defective items. A quality check catches 90% of defective items but also mislabels 5% of good items as defective. What is the probability that an item is actually defective given it was flagged by the check?
Solution:
Probability of flagged item being defective: where .
Calculate:
Answer: 66.7% of flagged items are actually defective.
6. Applications of Conditional Probability and Bayes' Theorem
| Field | Application | Example |
|---|---|---|
| Medicine | Diagnosing diseases | HIV test accuracy |
| Finance | Risk assessment | Probability of loan default |
| Machine Learning | Spam detection | Classifying emails as spam or not spam |
| Quality Control | Defective product detection | Factory inspection |
| Sports | Predicting game outcomes | Probability of a team winning given past performance |
7. Common Mistakes to Avoid
- Ignoring Independence: Assume events are independent when they are not.
- Misapplying Bayes' Theorem: Forgetting to calculate the total probability .
- Confusing and : These are not the same!
- Incorrect Sample Space: Not updating the sample space after an event occurs (e.g., drawing without replacement).
8. NEB-Style Questions
Short Answer Questions
- Define conditional probability with an example.
- What is the difference between independent and dependent events?
- State Bayes' Theorem and explain its components.
Long Answer Questions
A bag contains 4 red and 6 blue balls. Two balls are drawn with replacement. Find the probability that:
- Both are red.
- The second ball is blue given the first was red.
- The first ball is red given both are blue.
In a class of 50 students, 20 study Maths, 15 study Physics, and 10 study both. If a student is selected at random:
- What is the probability they study Maths given they study Physics?
- What is the probability they study Physics given they study Maths?
A factory produces 5% defective items. A test detects 98% of defective items but also mislabels 2% of good items as defective. If a randomly selected item tests positive, what is the probability it is actually defective?
Objective Questions (MCQs)
If , , and , then ?
- (A) 0.4
- (B) 0.5
- (C) 0.8
- (D) 0.2
Bayes' Theorem is used to:
- (A) Find marginal probability
- (B) Update probabilities with new information
- (C) Calculate independent events
- (D) Find sample space
Exam Tip
- Always check if events are independent before applying formulas.
- Draw tree diagrams or tables for complex problems to avoid confusion.
- Memorize Bayes' Theorem formula but understand each component:
- Prior probability ()
- Likelihood ()
- Marginal probability ()
- Practice NEB-style questions to recognize when to use conditional probability vs. Bayes' Theorem.
- Show all steps in your answer, even if the question seems simple. Partial credit is given for correct reasoning.
Good luck with your NEB exam preparation! 🚀
Based on the NEB +2 Science syllabus for Mathematics (Maths), unit 12.
Discussion
Loading…