Bayes’ Theorem – KVPY Study Notes
(Mathematics – Probability)
1. Simple Explanation
Bayes’ Theorem tells us how to update our belief about an event when we learn new evidence.
If we already know the probability of an event A, and we observe some event B, Bayes’ Theorem lets us compute the probability that A happened given that we saw B.
In symbols
[ P(A\mid B)=\frac{P(B\mid A),P(A)}{P(B)} . ]
- (P(A)) – prior probability of A.
- (P(B\mid A)) – likelihood: how likely we are to see B if A is true.
- (P(B)) – total probability of observing B (normalising constant).
- (P(A\mid B)) – posterior probability: updated belief about A after seeing B.
2. Key Points
| Concept | What it Means | Formula / Note |
|---|---|---|
| Prior | Initial belief about an event before seeing new data. | (P(A)) |
| Likelihood | Probability of observing the new evidence if the hypothesis is true. | (P(B\mid A)) |
| Evidence | Overall probability of observing the evidence (marginal probability). | (P(B)=P(B\mid A)P(A)+P(B\mid A^c)P(A^c)) |
| Posterior | Updated belief after incorporating evidence. | (P(A\mid B)) |
| Rule of Total Probability | Used to compute (P(B)). | (P(B)=\sum_i P(B\mid A_i)P(A_i)) |
| Independence | If events are independent, (P(A\cap B)=P(A)P(B)). Bayes simplifies when independence holds. | |
| Common Pitfall | Confusing (P(A\cap B)) with (P(A)P(B)) unless events are independent. | |
| KVPY Relevance | Appears in “Probability & Statistics” section; requires quick computation of conditional probabilities—Bayes is key for “Bayesian inference” problems. |
3. Worked Example
Problem
A certain disease affects 1 % of a population.
A diagnostic test gives a positive result in 95 % of infected people (sensitivity) and a positive result in 5 % of healthy people (false‑positive rate).
If a randomly selected person tests positive, what is the probability that they actually have the disease?
Step‑by‑Step Solution
-
Define events
- (D): Person has the disease.
- (\overline{D}): Person does not have the disease.
- (T^+): Test is positive.
-
Assign given probabilities
- (P(D)=0.01) (prior).
- (P(\overline{D})=0.99).
- (P(T^+ \mid D)=0.95) (sensitivity).
- (P(T^+ \mid \overline{D})=0.05) (false‑positive rate).
-
Compute evidence (P(T^+)) using the law of total probability:
[ P(T^+) = P(T^+ \mid D)P(D) + P(T^+ \mid \overline{D})P(\overline{D})
= (0.95)(0.01) + (0.05)(0.99)
= 0.0095 + 0.0495 = 0.059. ] -
Apply Bayes’ Theorem
[ P(D \mid T^+) = \frac{P(T^+ \mid D),P(D)}{P(T^+)}
= \frac{0.95 \times 0.01}{0.059}
\approx \frac{0.0095}{0.059} \approx 0.161. ] -
Interpretation
Even though the test is 95 % accurate, the probability that a randomly chosen person who tests positive actually has the disease is only ≈ 16 %.
The low prevalence (prior) dominates the posterior.
Extra Example – Urn Problem
Urn 1 contains 2 red & 3 blue balls.
Urn 2 contains 4 red & 1 blue ball.
One urn is chosen at random, a ball is drawn and it is red.
Find the probability it came from Urn 1.
-
Probabilities
- (P(U1)=P(U2)=0.5).
- (P(\text{red}\mid U1)=\frac{2}{5}=0.4).
- (P(\text{red}\mid U2)=\frac{4}{5}=0.8).
-
Evidence
[ P(\text{red})=0.5(0.4)+0.5(0.8)=0.2+0.4=0.6. ] -
Posterior
[ P(U1\mid \text{red})=\frac{0.5(0.4)}{0.6}=\frac{0.2}{0.6}=\frac{1}{3}\approx 0.333. ]
So, given a red ball, the chance it came from Urn 1 is 1/3.
4. Quick Revision Summary
| Question | Answer |
|---|---|
| What does Bayes’ Theorem compute? | The conditional probability (P(A\mid B)) – probability of (A) given (B). |