🏠 Home
Probability
Unit II · Lecture 15

BDS113 — Introduction to Statistics

Unit II Review & Problem-Solving Session

Formula Sheet · Concept Map · 8 Worked Exam-Style Problems · Common Mistakes · Comprehensive Quiz · Unit Wrap-Up


Unit II · Lecture 15 of 40 · B.Sc. Data Science, 1st Year, Semester II

Probability
Unit II · Lecture 15

The Review Journey


📋
Complete Formula Sheet — Unit II
Every formula from Lectures 9–14 in one place
🗺️
Concept Map & Decision Guide
How all Unit II topics connect · When to use which rule
✏️
8 Worked Exam-Style Problems (Click to Reveal)
Covering every topic · Step-by-step solutions · Exam technique
🎓
Common Mistakes, Exam Tips, Quiz & Unit Wrap-Up
Pitfalls to avoid · 12-question quiz · Complete unit summary
Probability
Unit II · Lecture 15

📋 Complete Formula Sheet — Unit II


Classical (A Priori) Probability (Lecture 9)

P(A) = n(A) / n(S)  |  n(A) = favourable outcomes  |  n(S) = total outcomes in sample space

Empirical (Statistical) Probability (Lecture 9)

P(A) = frequency of A / total observations  |  Based on actual data/experiments

Axioms of Probability — Kolmogorov (Lecture 10)

Axiom 1: P(A) ≥ 0  |  Axiom 2: P(S) = 1  |  Axiom 3: P(A∪B) = P(A) + P(B) for mutually exclusive A, B

Basic Results (Lecture 10)

P(∅) = 0  |  P(A') = 1 − P(A)  |  0 ≤ P(A) ≤ 1  |  P(A) + P(A') = 1

Addition Theorem — General (Lecture 11)

P(A∪B) = P(A) + P(B) − P(A∩B)  |  For any two events A and B

Addition Theorem — Mutually Exclusive (Lecture 11)

P(A∪B) = P(A) + P(B)  |  Since P(A∩B) = 0 when A and B cannot occur together

Conditional Probability (Lecture 12)

P(A|B) = P(A∩B) / P(B)  |  P(B|A) = P(A∩B) / P(A)  |  where P(B) > 0, P(A) > 0

Multiplication Theorem (Lecture 13)

P(A∩B) = P(A) × P(B|A) = P(B) × P(A|B)  |  General rule for any two events

Independent Events (Lecture 13)

P(A∩B) = P(A) × P(B)  |  P(A|B) = P(A)  |  P(B|A) = P(B)  |  Occurrence of one does not affect the other

Total Probability Theorem (Lecture 14)

P(B) = P(A₁)P(B|A₁) + P(A₂)P(B|A₂) + ... + P(Aₙ)P(B|Aₙ)  |  where A₁, A₂, ..., Aₙ partition S

Bayes' Theorem (Lecture 14)

P(Aᵢ|B) = P(Aᵢ) × P(B|Aᵢ) / Σⱼ P(Aⱼ) × P(B|Aⱼ)  |  "Inverse probability" — updating beliefs with new evidence

Three Events — Addition Theorem

P(A∪B∪C) = P(A)+P(B)+P(C) − P(A∩B)−P(A∩C)−P(B∩C) + P(A∩B∩C)
Probability
Unit II · Lecture 15

🗺️ Concept Map & Decision Guide


1 Start: Identify the experiment, sample space S, and events of interest.
Define what you're looking for. List all possible outcomes. Identify the event(s) A, B, etc.
2 How many events? What's the question?
→ Single event, counting outcomes: Use Classical Probability: P(A) = n(A)/n(S)
→ "A or B" (union): Use Addition Theorem
→ "A and B" (intersection): Use Multiplication Theorem
→ "A given B" (conditional): Use Conditional Probability formula
3 Check the relationship between events:
→ Mutually exclusive: A∩B = ∅ → P(A∩B) = 0. Addition simplifies to P(A)+P(B).
→ Independent: P(A∩B) = P(A)×P(B). Multiplication simplifies. Conditional = unconditional.
→ Neither: Use the general addition/multiplication formulas with conditional probability.
4 Is there a "partition" of the sample space?
→ Multiple causes, one observed outcome: Use Total Probability to find P(B).
→ Known outcome, want to find which cause: Use Bayes' Theorem to find P(Aᵢ|B).
5 Verify & Interpret:
Check: 0 ≤ P ≤ 1. All probabilities in a partition sum to 1. P(A∪B) ≥ max(P(A),P(B)). State the answer in plain language.

💬 Exam Shortcut: Most exam problems on Unit II follow this sequence: (1) define events and sample space, (2) identify if events are mutually exclusive or independent, (3) choose the correct formula (addition, multiplication, conditional, or Bayes'), (4) compute, (5) interpret. Master this flow and you can solve any Unit II problem.
Probability
Unit II · Lecture 15

✏️ Problem 1: Classical Probability & Complements


📝 A bag contains 5 red, 3 blue, and 2 green balls. One ball is drawn at random. Find: (a) P(Red), (b) P(not Green), (c) P(Red or Blue).

▶ Reveal

Total balls: n(S) = 5 + 3 + 2 = 10

(a) P(Red):
n(Red) = 5
P(Red) = 5/10 = 0.5

(b) P(not Green):
P(Green) = 2/10 = 0.2
P(Green') = 1 − P(Green) = 1 − 0.2 = 0.8

(c) P(Red or Blue):
Red and Blue are mutually exclusive (a ball cannot be both).
P(Red∪Blue) = P(Red) + P(BLue) = 5/10 + 3/10 = 0.8

Verification: P(Red∪Blue) = 0.8 = P(Green') ✓ (Red or Blue = not Green)

Probability
Unit II · Lecture 15

✏️ Problem 2: Addition Theorem (Non-Mutually Exclusive)


📝 In a class of 60 students: 30 play cricket, 25 play football, and 10 play both. A student is selected at random. Find: (a) P(cricket or football), (b) P(neither).

▶ Reveal

Let C = plays cricket, F = plays football
P(C) = 30/60 = 0.5, P(F) = 25/60 = 5/12
P(C∩F) = 10/60 = 1/6

(a) P(C or F):
P(C∪F) = P(C) + P(F) − P(C∩F)
        = 30/60 + 25/60 − 10/60
        = 45/60 = 0.75

(b) P(neither):
P(neither) = 1 − P(C∪F) = 1 − 0.75 = 0.25

Verification: Students playing at least one = 30 + 25 − 10 = 45. Students playing neither = 60 − 45 = 15. P = 15/60 = 0.25 ✓

Probability
Unit II · Lecture 15

✏️ Problem 3: Conditional Probability


📝 A box has 4 defective and 6 non-defective items. Two items are drawn one after another without replacement. Find: (a) P(both defective), (b) P(second is defective | first was defective).

▶ Reveal

Total = 10 items. Defective = 4, Non-defective = 6.

(a) P(both defective):
P(D₁) = 4/10
P(D₂|D₁) = 3/9  (one defective removed, 3 left out of 9)
P(D₁∩D₂) = P(D₁) × P(D₂|D₁) = (4/10) × (3/9) = 12/90 = 2/15 ≈ 0.133

(b) P(second defective | first defective):
After removing one defective item: 3 defective out of 9 total
P(D₂|D₁) = 3/9 = 1/3 ≈ 0.333


Key insight: Without replacement changes the sample space. The second draw depends on the first — these events are NOT independent.

Probability
Unit II · Lecture 15

✏️ Problem 4: Testing Independence


📝 P(A) = 0.4, P(B) = 0.5, P(A∩B) = 0.2. Are A and B independent? Find P(A|B) and P(B|A).

▶ Reveal

Independence test:
If independent: P(A∩B) = P(A) × P(B) = 0.4 × 0.5 = 0.2
Given P(A∩B) = 0.2
Since 0.2 = 0.2, A and B ARE independent ✓

P(A|B):
P(A|B) = P(A∩B) / P(B) = 0.2 / 0.5 = 0.4
Note: P(A|B) = 0.4 = P(A) ✓ (confirms independence — knowing B doesn't change A's probability)

P(B|A):
P(B|A) = P(A∩B) / P(A) = 0.2 / 0.4 = 0.5
Note: P(B|A) = 0.5 = P(B) ✓ (confirms independence — knowing A doesn't change B's probability)

Probability
Unit II · Lecture 15

✏️ Problem 5: Mutually Exclusive vs Independent


📝 P(A) = 0.3, P(B) = 0.4. (a) If A and B are mutually exclusive, find P(A∪B) and P(A∩B). (b) If A and B are independent, find P(A∪B) and P(A∩B). (c) Can A and B be both mutually exclusive and independent?

▶ Reveal

(a) Mutually exclusive:
P(A∩B) = 0 (cannot occur together)
P(A∪B) = P(A) + P(B) = 0.3 + 0.4 = 0.7

(b) Independent:
P(A∩B) = P(A) × P(B) = 0.3 × 0.4 = 0.12
P(A∪B) = P(A) + P(B) − P(A∩B) = 0.3 + 0.4 − 0.12 = 0.58

(c) Both mutually exclusive AND independent?
If mutually exclusive: P(A∩B) = 0
If independent: P(A∩B) = P(A)×P(B) = 0.12
0 ≠ 0.12 → Contradiction!

Conclusion: A and B CANNOT be both mutually exclusive and independent (unless one has probability 0). These are fundamentally different concepts.

Probability
Unit II · Lecture 15

✏️ Problem 6: Addition Theorem — Three Events


📝 P(A)=0.4, P(B)=0.5, P(C)=0.3, P(A∩B)=0.2, P(A∩C)=0.1, P(B∩C)=0.15, P(A∩B∩C)=0.05. Find P(A∪B∪C).

▶ Reveal

P(A∪B∪C) = P(A) + P(B) + P(C) − P(A∩B) − P(A∩C) − P(B∩C) + P(A∩B∩C)

   = 0.4 + 0.5 + 0.3 − 0.2 − 0.1 − 0.15 + 0.05
   = 1.2 − 0.45 + 0.05
   = 0.8


Verification: P(A∪B∪C) = 0.8 ≤ 1 ✓. Also P(A∪B∪C) ≥ max(0.4, 0.5, 0.3) = 0.5 ✓


Interpretation: The probability that at least one of A, B, or C occurs is 0.8 (80%).

Probability
Unit II · Lecture 15

✏️ Problem 7: Total Probability Theorem


📝 A factory has three machines A₁, A₂, A₃ producing 40%, 35%, and 25% of items respectively. Defect rates are 2%, 3%, and 5%. An item is selected at random. Find the probability it is defective.

▶ Reveal

Given:
P(A₁) = 0.40, P(A₂) = 0.35, P(A₃) = 0.25
P(D|A₁) = 0.02, P(D|A₂) = 0.03, P(D|A₃) = 0.05

Total Probability:
P(D) = P(A₁)P(D|A₁) + P(A₂)P(D|A₂) + P(A₃)P(D|A₃)
     = (0.40)(0.02) + (0.35)(0.03) + (0.25)(0.05)
     = 0.008 + 0.0105 + 0.0125
     = 0.031 (3.1%)


Verification: P(A₁)+P(A₂)+P(A₃) = 0.40+0.35+0.25 = 1.00 ✓ (valid partition). P(D) = 0.031 is between min(0.02,0.03,0.05) and max(0.02,0.03,0.05) ✓

Probability
Unit II · Lecture 15

✏️ Problem 8: Bayes' Theorem


📝 Using the same factory data from Problem 7: An item is found to be defective. What is the probability it was produced by Machine A₃?

▶ Reveal

From Problem 7: P(D) = 0.031

Bayes' Theorem:
P(A₃|D) = P(A₃) × P(D|A₃) / P(D)
        = (0.25 × 0.05) / 0.031
        = 0.0125 / 0.031
        = 0.4032 (40.32%)


Full Bayes' table for all machines:

MachineP(Aᵢ)P(D|Aᵢ)P(Aᵢ)×P(D|Aᵢ)P(Aᵢ|D)
A₁0.400.020.00800.008/0.031 = 0.2581
A₂0.350.030.01050.0105/0.031 = 0.3387
A₃0.250.050.01250.0125/0.031 = 0.4032
Total1.000.03101.0000

Interpretation: Even though Machine A₃ produces only 25% of items, it accounts for 40.32% of defective items — the highest proportion. This is because A₃ has the highest defect rate (5%). Bayes' Theorem lets us "reverse" the reasoning: from effect (defective) back to cause (which machine).

Probability
Unit II · Lecture 15

⚠️ Common Mistakes in Unit II


Conceptual Errors

1. Confusing mutually exclusive with independent — they are DIFFERENT. Mutually exclusive: P(A∩B)=0. Independent: P(A∩B)=P(A)P(B). Both can only hold if P(A)=0 or P(B)=0.

2. Thinking P(A|B) = P(B|A) — they are generally NOT equal!

3. Applying the addition theorem P(A)+P(B) when events are NOT mutually exclusive — you must subtract P(A∩B).

4. Confusing "at least one" with "exactly one" — "at least one" = 1 − P(none).

Formula Errors

1. In conditional probability, dividing by the wrong event: P(A|B) = P(A∩B)/P(B), NOT P(A∩B)/P(A).

2. In Bayes' Theorem, forgetting to include ALL terms in the denominator — it's a sum over ALL partitions.

3. Using P(A∩B) = P(A)×P(B) when events are NOT independent — this only works for independent events.

4. In "without replacement" problems, not updating the total after each draw.

Arithmetic & Setup Errors

1. Probabilities exceeding 1 or being negative — always check 0 ≤ P ≤ 1.

2. Partition probabilities not summing to 1 — verify P(A₁)+P(A₂)+...+P(Aₙ) = 1 before applying Bayes'.

3. Not defining the sample space clearly — count outcomes carefully for classical probability.

4. In counting problems, confusing permutations with combinations — order matters in permutations.


💬 Exam Tip: After computing any probability, always do a quick sanity check: (1) Is 0 ≤ P ≤ 1? (2) Is P(A∪B) ≥ max(P(A), P(B))? (3) Do all partition probabilities sum to 1? (4) In Bayes' table, do all posterior probabilities sum to 1? These catches prevent most errors.
Probability
Unit II · Lecture 15

📝 Exam Tips for Unit II


🎯

Define Events First

Always start by clearly defining events A, B, etc. and the sample space S. This prevents confusion later.

✅

Check Relationships

Before applying formulas, determine: Are events mutually exclusive? Independent? This determines which formula to use.

📊

Draw a Tree Diagram

For Bayes' and Total Probability problems, a tree diagram makes the solution almost automatic.

⏱️

Use Complements

"At least one" problems are easiest via P = 1 − P(none). Don't try to count all cases individually.


📖 High-Frequency Exam Questions — Unit II

1. Compute P(A∪B) using the addition theorem. (Very common)
2. Find conditional probability P(A|B) from given data. (Very common)
3. Test whether two events are independent. (Common)
4. Distinguish between mutually exclusive and independent events. (Almost every exam)
5. Apply the multiplication theorem for "and" problems. (Common)
6. Solve a Bayes' Theorem problem (factory/medical test/defective items). (Almost every exam)
7. Use Total Probability to find P(B) from a partition. (Common)
8. "At least one" problems using the complement rule. (Occasional)

Probability
Unit II · Lecture 15

🧠 Comprehensive Quiz — Unit II (12 Questions)


Q1: The probability of an impossible event is:

A) 1
B) 0
C) 0.5
D) Undefined

Q2: P(A∪B) = P(A) + P(B) is valid when:

A) A and B are mutually exclusive
B) A and B are independent
C) A and B are complementary
D) Always

Q3: If A and B are independent with P(A)=0.3 and P(B)=0.5, then P(A∩B) =

A) 0.8
B) 0.65
C) 0.15
D) 0

Q4: P(A|B) is defined as:

A) P(A) / P(B)
B) P(A∩B) / P(B)
C) P(A∩B) / P(A)
D) P(A) × P(B)

Q5: If A and B are mutually exclusive with P(A)=0.3 and P(B)=0.4, then P(A|B) =

A) 0.3
B) 0.7
C) 0
D) 0.12

Q6: Two events A and B are independent if:

A) P(A∩B) = 0
B) P(A∩B) = P(A) × P(B)
C) P(A∪B) = P(A) + P(B)
D) A and B cannot occur together

Q7: P(A') equals:

A) P(A)
B) 1 + P(A)
C) 1 − P(A)
D) −P(A)

Q8: Can two events be both mutually exclusive and independent (with non-zero probabilities)?

A) Yes, always
B) No, never
C) Only if P(A) = P(B)
D) Only for equally likely events

Q9: Bayes' Theorem is used to:

A) Find P(A∩B) from P(A) and P(B)
B) Reverse conditional probability: find P(cause|effect) from P(effect|cause)
C) Test whether events are independent
D) Compute the union of three events

Q10: The sum of probabilities of all outcomes in a sample space is:

A) 0
B) 1
C) Depends on the experiment
D) Greater than 1

Q11: In "without replacement" sampling, successive draws are:

A) Independent
B) Dependent (not independent)
C) Mutually exclusive
D) Equally likely

Q12: P(A∪B∪C) for three events includes the term P(A∩B∩C) with a:

A) Negative sign (subtracted)
B) Positive sign (added)
C) It is not included
D) It is divided by 3
Probability
Unit II · Lecture 15

Unit II — Complete!

Probability · Lectures 9–14 · Axioms, Addition, Conditional, Multiplication, Bayes'

Lectures 9–10

Classical & Empirical Probability
Kolmogorov Axioms
Basic Results & Complements

Lecture 11

Addition Theorem
General & Mutually Exclusive
Three Events

Lecture 12

Conditional Probability
P(A|B) = P(A∩B)/P(B)
Intuition & Applications

Lecture 13

Multiplication Theorem
Independent Events
With & Without Replacement

Lecture 14

Total Probability
Bayes' Theorem
Partition & Inverse Problems

Key Skills You've Developed

Classical Probability Axioms Addition Theorem Complement Rule Conditional Probability Multiplication Theorem Independence Mutually Exclusive Total Probability Bayes' Theorem

You have completed Unit II — Probability.

Probability is the language of uncertainty. The axioms, addition and multiplication rules, conditional probability, and Bayes' Theorem you've learned here are the foundation for everything in Unit III (distributions), and indeed for all of modern data science and machine learning. Keep practising — every problem strengthens your intuition.

Next up: Unit III — Random Variables & Distributions!

BDS113 Introduction to Statistics · B.Sc. Data Science, Semester II · Unit II Review Complete