Neural Sync Active
Statistics I · Week 8 — Conditional probability & Bayes
Registry Synced
Statistics I · Week 8 — Conditional probability & Bayes
963 words
5 min read
2026-08-16
Reading compass
Now · Week map
Week 8 — conditional probability & bayes
Quiz 2 scope: Weeks 1–8 per IITM May 2026 foundation courses. Source baseline: IITM BS admissions important-dates calendar · May 2026 cycle. Times on assessments are operational conventions — verify hall ticket.
Week map
Condition given → P(A|B) → independence check → Bayes flip
Classify → Represent → Execute → Trap-check
- Recognize: Ask: Formula for P(A|B)?
- Procedure: Restrict sample space to B; what fraction of B is also A? Tree diagram: multiply along path, restrict denominator.
- Variations / traps: Watch for: P(A|B) vs P(B|A) swapped.
Formula chain (compressed)
P(A|B)=P(A∩B)/P(B) → multiply → Bayes invert cause from evidence.
- Conditional —
P(A|B) = P(A∩B)/P(B)— given B happened - Multiplication —
P(A∩B) = P(A|B)P(B)— sequential events - Independence —
P(A∩B)=P(A)P(B)— no information flow - Bayes —
P(A|B)=P(B|A)P(A)/P(B)— invert direction - Total prob. —
P(B)=Σ P(B|Aᵢ)P(Aᵢ)— expand denominator
Open interactive formula desk · Week 8 tab.
Deep study
Statistics I · Week 8 — Conditional probability and Bayes
Deep study for Quiz 2 week 8. Conditioning narrows the sample space; Bayes flips the direction of a conditional statement.
Week map
Given information → P(A∣B) → multiplication rule → independence → law of total probability → Bayes theorem.
Conditional notation
- P(A∣B) → “probability of A given B” → probability A occurs knowing B occurred.
- Formula: P(A∣B)=P(B)P(A∩B) — requires P(B)>0.
- Narrow sample space: restrict to outcomes where B is true, renormalize.
Mini-example: die roll, B = “even,” A = “greater than 3.” Given even {2,4,6}, favorable {4,6} → P(A∣B)=2/3.
Multiplication rule
P(A∩B)=P(A∣B)⋅P(B)=P(B∣A)⋅P(A)
Chain events sequentially: multiply conditionals.
Independence
- A and B independent if P(A∣B)=P(A) — knowing B does not change A.
- Equivalent: P(A∩B)=P(A)⋅P(B).
- Independent ≠ mutually exclusive (disjoint events with positive probability are dependent).
Mini-example: fair coin tosses. A = first head, B = second head. P(A∩B)=1/4=P(A)P(B).
Bayes and total probability
Law of total probability (partition B1,…,Bk):
P(A)=∑i=1kP(A∣Bi)P(Bi)
Bayes theorem:
P(B∣A)=P(A)P(A∣B)⋅P(B)
Flip from P(A∣B) to P(B∣A) using prior P(B) and evidence P(A).
Mini-example (screening): disease rate 1%, test sensitivity P(+∣D)=0.99, specificity P(−∣no D)=0.95. Positive test does not imply 99% sick — denominator P(+) mixes true and false positives via total probability.
Pattern families
Easy — Read conditional from table or story
Identify P(A∣B) numerator and denominator. Compute from counts in restricted row.
Medium — Multiply chain
P(A∩B) from P(A∣B)P(B). Two-step tree: multiply along branch.
Hard — Bayes setup
Identify hypothesis H and evidence E. Plug P(E∣H), P(H), compute P(E) via total probability, then P(H∣E).
Worked mini-examples
Example 1 — Conditional from counts.
100 students: 40 take stats, 25 take both CS and stats. P(CS∣stats)=25/40.
Example 2 — Multiplication.
P(rain)=0.2, P(late∣rain)=0.5 → P(rain and late)=0.1.
Example 3 — Independence check.
Roll die: A odd, B greater than 4. P(A)=3/6, P(A∣B) on {5,6} is 1/2 — not equal → dependent.
Example 4 — Complement conditional.
P(Ac∣B)=1−P(A∣B).
Example 5 — Bayes skeleton.
Prior P(H)=0.01, likelihood P(E∣H)=0.9, P(E∣Hc)=0.1. Compute P(H∣E) using P(E)=0.9(0.01)+0.1(0.99).
Traps
- Swapping P(A∣B) and P(B∣A) without Bayes.
- Using P(A)+P(B) instead of conditional formula.
- Treating independent as disjoint.
- Forgetting to renormalize when conditioning.
- Base rate neglect: ignoring small P(H) in medical/test stories.
Diagnostic (try yourself)
-
P(A∩B)=0.12, P(B)=0.4. Find P(A∣B).
-
Events independent with P(A)=0.3, P(B)=0.5. Find P(A∩B).
-
Two cards without replacement: P(second ace∣first ace) on standard deck — qualitative: larger or smaller than P(second ace) unconditional?
-
Write Bayes formula for P(H∣E) in terms of P(E∣H), P(H), P(E).
-
Table row “Test +” split into disease / no disease counts. What probability does P(disease∣test+) use as denominator?
ChatGPT prep archive
Archived import for extra depth — complements the notes above, not official IITM material.
Core concepts
- Conditional: P(A|B) = P(A∩B)/P(B); B must have positive probability.
- Independent: P(A|B)=P(A); knowing B does not change A.
- Total probability: partition B1..Bk: P(A)=Σ P(A|Bi)P(Bi).
- Bayes: P(B|A) = P(A|B)P(B)/P(A).
Notation & vocabulary
| Idea | Formula |
|---|---|
| conditional | P(A |
| independence | P(A∩B)=P(A)P(B) |
| Bayes | flip condition with prior |
Pattern families
Easy — Read P(A|B)
Restrict sample space to B; what fraction of B is also A? Tree diagram: multiply along path, restrict denominator.
Medium — Independence test
Compare P(A∩B) with P(A)P(B) or check P(A|B)=P(A). Do not assume independence from wording.
Hard — Bayes update
Identify prior P(B), likelihood P(A|B), compute P(A) via total prob if needed, then Bayes for posterior P(B|A).
Drill these on the pattern atlas — filter to week 8.
Traps
- P(A|B) vs P(B|A) swapped.
- Using P(A)+P(B) for AND.
- Independence assumed without check.
- Denominator P(B) zero in conditional.
Retrieval prompts
- Formula for P(A|B)?
- What does independence mean?
- When use Bayes rule?
Practice loop
- Read Deep study (if present) or core concepts once.
- Recite the formula chain without looking.
- Open one easy pattern on the interactive atlas for week 8.
- Attempt without solutions; mark studied after an honest try.
- Say one trap aloud before closing the tab.