STA 260.1 · Introduction to Probability and Statistics
Our notes
2 min readConditional probability
The probability of A given that B has happened:
P(A | B) = P(A ∩ B) / P(B), provided P(B) > 0.
B becomes the new sample space.
Example: of 200 students, 120 passed STA 260; 80 of these attended tutorials. Among 80 who failed, 20 attended. P(passed | attended) = 80 / (80 + 20) = 0.8.
Multiplication rule
P(A ∩ B) = P(B) P(A | B) = P(A) P(B | A).
Two cards drawn without replacement: P(both aces) = 4/52 × 3/51 = 12/2652 = 1/221.
Independence
A and B are independent if P(A ∩ B) = P(A) P(B), equivalently P(A | B) = P(A): knowing B tells you nothing about A.
- Independent is not the same as mutually exclusive. Mutually exclusive events with non-zero probabilities are always dependent (if one happens, the other cannot).
- For three events, independence needs all pairs and the triple product to hold.
Example: a system works if both of two independent pumps work, each with reliability 0.9: P = 0.9 × 0.9 = 0.81. If either pump is enough (parallel), P(works) = 1 − 0.1 × 0.1 = 0.99.
Total probability
If B₁, …, B_k partition S, then P(A) = Σ P(A | Bᵢ) P(Bᵢ).
Bayes' theorem
P(Bⱼ | A) = P(A | Bⱼ) P(Bⱼ) / Σ P(A | Bᵢ) P(Bᵢ).
It reverses the condition: from "probability of the evidence given the cause" to "probability of the cause given the evidence".
Worked example (a screening test)
2% of a population has a condition. A test detects it 95% of the time (sensitivity), and gives a false positive 10% of the time in people without it. A person tests positive. P(has the condition)?
- P(+ and D) = 0.02 × 0.95 = 0.019
- P(+ and not D) = 0.98 × 0.10 = 0.098
- P(+) = 0.117
- P(D | +) = 0.019/0.117 = 0.162
Check with 10,000 people: 200 have it, 190 test positive; 9,800 don't, 980 test positive; 190/1,170 = 0.162. ✓ Most positives are false because the condition is rare.
Exams usually ask
- Show whether two events are independent.
- A tree diagram problem with two or three stages.
- Bayes with machines or suppliers ("machine A makes 50% of bolts, 3% defective…; a bolt is defective: which machine?").
Common mistake
Confusing P(A | B) with P(B | A). A positive test given the disease (0.95) is not the disease given a positive test (0.162).
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Introductory Statistics 2e, 3.2 Independent and Mutually Exclusive Events
(opens openstax.org in a new tab)
OpenStax, Introductory Statistics 2e, 3.2 Independent and Mutually Exclusive Events, CC BY-NC-SA 4.0 · licence
-
Introductory Statistics 2e, 3.5 Tree and Venn Diagrams
(opens openstax.org in a new tab)
OpenStax, Introductory Statistics 2e, 3.5 Tree and Venn Diagrams, CC BY-NC-SA 4.0 · licence
-
Conditional probability
(opens en.wikipedia.org in a new tab)
Wikipedia, Conditional probability, CC BY-SA 4.0 · licence
-
Bayes' theorem
(opens en.wikipedia.org in a new tab)
Wikipedia, Bayes' theorem, CC BY-SA 4.0 · licence
-
OpenStax, Introductory Statistics 2e (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Introductory Statistics 2e (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Bayes' Theorem of Probability With Tree Diagrams & Venn Diagrams
19 min · ≈ 86 MB · about ₦48
(opens youtube.com in a new tab)
-
Conditional Probability: Bayes’ Theorem – Disease Testing (Table and Formula)
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
Tutorial 47- Bayes' Theorem| Conditional Probability- Machine Learning
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Class 12th – Bayes Theorem Problem-1 | Probability | Tutorials Point
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
2. Conditioning and Bayes' Rule
51 min · ≈ 230 MB · about ₦129
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.