Docsity

Conditional Probability & Bayes' Theorem Study Notes | Statistics PDF, Summaries of Mathematics

Toggle sidebar
bg1
Conditional Probability & Bayes' Theorem
Concepts, Formulas & Solved Examples | Study Notes for High School & Undergraduate Statistics, Mathematics & Data
Analysis
1. Introduction to Probability
Probability measures how likely an event is to occur. Every probability value lies between 0 and 1: a probability of 0 means
an event is impossible (it can never happen), and a probability of 1 means an event is certain (it will always happen). Values
in between describe varying degrees of likelihood.
The sample space is the set of all possible outcomes of a random process (for example, all 6 faces of a die). An event is any
subset of the sample space — one outcome or a group of outcomes we are interested in (for example, “rolling an even
number”).
Simple examples: the probability of flipping a coin and getting heads is 0.5; the probability of rolling a 7 on a standard
six-sided die is 0 (impossible); the probability that a rolled die shows a number from 1 to 6 is 1 (certain).
2. Basic Probability Rules
Complement Rule: the probability that an event does not happen equals 1 minus the probability that it does happen.
P(Ac) = 1 − P(A)
Addition Rule: the probability that A or B occurs equals the sum of their individual probabilities, minus the probability that both
occur together (so the overlap is not counted twice).
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Multiplication Rule: used to find the probability that two events both occur; the exact form depends on whether the events are
independent or dependent (Sections 3 and 6).
3. Independent and Dependent Events
Two events are independent if the occurrence of one does not change the probability of the other. Two events are dependent
if the occurrence of one does change the probability of the other — knowing that one event happened gives us new
information about the other.
For independent events, probabilities multiply directly:
P(A ∩ B) = P(A) × P(B) (independent events only)
Independent Events Dependent Events
One event does not affect the other's probability. One event changes the other's probability.
P(A ∩ B) = P(A) × P(B) P(A ∩ B) = P(A) × P(B | A)
Example: two separate coin flips. Example: drawing two cards without replacement.
Probability & Bayes' Theorem — Study Notes Page 1 of 5
pf3
pf4
pf5

Partial preview of the text

Download Conditional Probability & Bayes' Theorem Study Notes | Statistics PDF and more Summaries Mathematics in PDF only on Docsity!

Conditional Probability & Bayes' Theorem

Concepts, Formulas & Solved Examples | Study Notes for High School & Undergraduate Statistics, Mathematics & Data Analysis

1. Introduction to Probability

Probability measures how likely an event is to occur. Every probability value lies between 0 and 1 : a probability of 0 means an event is impossible (it can never happen), and a probability of 1 means an event is certain (it will always happen). Values in between describe varying degrees of likelihood. The sample space is the set of all possible outcomes of a random process (for example, all 6 faces of a die). An event is any subset of the sample space — one outcome or a group of outcomes we are interested in (for example, “rolling an even number”). Simple examples: the probability of flipping a coin and getting heads is 0.5; the probability of rolling a 7 on a standard six-sided die is 0 (impossible); the probability that a rolled die shows a number from 1 to 6 is 1 (certain).

2. Basic Probability Rules

Complement Rule: the probability that an event does not happen equals 1 minus the probability that it does happen.

P(A

c

) = 1 − P(A)

Addition Rule: the probability that A or B occurs equals the sum of their individual probabilities, minus the probability that both occur together (so the overlap is not counted twice).

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

Multiplication Rule: used to find the probability that two events both occur; the exact form depends on whether the events are independent or dependent (Sections 3 and 6).

3. Independent and Dependent Events

Two events are independent if the occurrence of one does not change the probability of the other. Two events are dependent if the occurrence of one does change the probability of the other — knowing that one event happened gives us new information about the other. For independent events, probabilities multiply directly:

P(A ∩ B) = P(A) × P(B) (independent events only)

Independent Events Dependent Events

One event does not affect the other's probability. One event changes the other's probability.

P(A ∩ B) = P(A) × P(B) P(A ∩ B) = P(A) × P(B | A)

Example: two separate coin flips. Example: drawing two cards without replacement.

4. Conditional Probability Conditional probability answers the question: “ given that B has already happened, what is the probability that A also happens?” It narrows the sample space down to only the outcomes where B is true, and asks what share of those outcomes also satisfy A.

FORMULA P(A | B) = P(A ∩ B) / P(B)

  • A = the event of interest (what we want the probability of).
  • B = the given condition (what we already know has happened). P(A | B) is not usually equal to P(B | A). They divide by different totals: P(A | B) divides the overlap by P(B), while P(B | A) divides the same overlap by P(A). Unless P(A) = P(B), these two conditional probabilities will generally differ — confusing the two is one of the most common mistakes in probability (Section 11). 5. Tree Diagrams A probability tree diagram shows the possible outcomes of a sequence of events as branches. Moving along a branch from left to right, probabilities are multiplied together to find the probability of that specific sequence of outcomes. To find the probability of a broader event that corresponds to more than one branch , the probabilities of those branches are added together.

Example: flipping a fair coin twice. Each branch multiplies to 0.25, and all four outcomes add up to 1.0, since they cover the entire sample space.

6. The Multiplication Rule For events that may be dependent, the general multiplication rule uses conditional probability:

FORMULA P(A ∩ B) = P(A) × P(B | A) This version works for dependent events because it uses P(B | A) — the probability of B after A has already happened — rather than assuming B's probability stays fixed. When A and B happen to be independent, P(B | A) simply equals P(B), and the formula reduces to the simpler P(A) × P(B) rule from Section 3.

Formula Key idea

Independent events P(A ∩ B) = P(A) × P(B) Knowing A tells us nothing new about B.

Dependent events P(A ∩ B) = P(A) × P(B | A) Knowing A changes B's probability.

Example 2 — Conditional Probability Given: a survey of 200 people records smoking status and exercise habits:

Exercises No exercise Total Smoker 20 30 50 Non-smoker 90 60 150 Total 110 90 200

Find: P(Exercises | Non-smoker) — the probability a person exercises, given that they are a non-smoker. Formula: P(A | B) = P(A ∩ B) / P(B). Calculation: P(Exercises ∩ Non-smoker) = 90/200 = 0.45. P(Non-smoker) = 150/200 = 0.75. So P(Exercises | Non-smoker) = 0.45 / 0.75 = 0.6. Answer: P(Exercises | Non-smoker) = 0.6. Interpretation: 60% of non-smokers in this survey exercise — noticeably higher than the overall exercise rate of 110/200 = 55%, suggesting exercise and smoking status are not independent.

Example 3 — Tree Diagram for Dependent Events Given: a bag contains 5 red and 3 blue balls (8 total). Two balls are drawn without replacement. Find the probability that both balls are red. Events: R 1 = first ball is red, R 2 = second ball is red. Formula: P(R 1 ∩ R 2 ) = P(R 1 ) × P(R 2 | R 1 ). Calculation: P(R 1 ) = 5/8. After removing one red ball, 4 red and 3 blue remain (7 total), so P(R 2 | R 1 ) = 4/7. Then P(both red) = 5/8 × 4/7 = 20/56 = 5/14 ≈ 0.357. Answer: P(both red) = 5/14 ≈ 0.357. Interpretation: there is roughly a 35.7% chance of drawing two red balls in a row without replacement.

Example 4 — Bayes' Theorem (Medical Testing) Given: a disease affects 1% of a population: P(D) = 0.01. A test correctly detects the disease 99% of the time: P(+ | D) = 0.99. The test also gives a false positive 5% of the time in healthy people: P(+ | Dc) = 0.05. Find P(D | +): the probability a person actually has the disease, given a positive test. Step 1 — total probability of a positive test: P(+) = P(+|D)P(D) + P(+|Dc)P(Dc) = (0.99)(0.01) + (0.05)(0.99) = 0.0099 + 0. = 0.0594. Step 2 — apply Bayes' Theorem: P(D | +) = [P(+|D) × P(D)] / P(+) = 0.0099 / 0.0594 ≈ 0.167. Answer: P(D | +) ≈ 0.167 (about 16.7%). Interpretation: even with a positive test result, there is only about a 16.7% chance the person actually has the disease — because the disease is rare, most positive results are still false positives from the much larger healthy population.

10. Real-World Applications - Medical testing: updating the probability a patient has a condition after seeing a test result (Example 4). - Weather forecasting: combining historical patterns and current atmospheric readings to estimate the probability of rain. - Quality control: estimating the probability that a manufactured item is defective, given results from an inspection or sensor. - Spam filtering: updating the probability an email is spam based on the words it contains, refining the estimate as more evidence (words) is observed. 11. Common Student Mistakes - Confusing P(A | B) with P(B | A) — these are generally different values. - Forgetting the intersection in conditional probability and using the wrong numerator. - Multiplying probabilities directly (P(A) × P(B)) when the events are not actually independent. - Forgetting to subtract from 1 when applying the complement rule. - Adding probabilities incorrectly — forgetting to subtract the intersection in the addition rule. - Using Bayes' Theorem without first correctly finding the total probability P(B) in the denominator. - Rounding too early in multi-step calculations, which can distort the final answer. 12. Exam Tips & Quick Revision Summary

Rule Formula

Complement Rule P(Ac) = 1 − P(A)

Addition Rule P(A ∪ B) = P(A) + P(B) − P(A ∩ B)

Conditional Probability P(A | B) = P(A ∩ B) / P(B)

Multiplication Rule (dependent) P(A ∩ B) = P(A) × P(B | A)

Independent Events Rule P(A ∩ B) = P(A) × P(B)

Bayes' Theorem P(A | B) = [P(B | A) × P(A)] / P(B)

Important symbols: P(A), P(B), P(A ∩ B) (A and B both occur), P(A ∪ B) (A or B occurs), P(A | B) (A given B).

EXAM TIP CHECKLIST Problem-Solving Checklist — work through these in order:

1. Define the events clearly. 2. Identify whether events are independent or dependent. 3. Check whether the question says “given.” 4. Choose the correct formula. 5. Draw a tree diagram if helpful. 6. Calculate carefully, avoiding early rounding. 7. Check that the final probability is between 0 and 1. 8. Write a clear final interpretation.