UNIHIVE

Study Hub UNIPORT MTH 260

MTH 260 · Probability and Statistics

Conditional probability, independence and Bayes' theorem

Probability given that something has happened, the multiplication rule, independent events, total probability and Bayes' theorem.

Our notes

2 min read

Conditional 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

Watch

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.

All MTH 260 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.