Law of Total Probability and Baye's Theorem
You have one fair coin and a biased coin that lands on heads with a probability of
solution
We know:
Baye's Theorem
Let
: prior probabilities : posterior probability
You have one fair coin and a biased coin that lands on heads with a probability of
solution
Bayes rule: find
Baseline Fallacy
Lets say you have 2 groups:
- Group 1: 10 people, 90% of people can play piano
- Group 2: 1000 people, 5% can play piano
If you meet someone who can play piano, which group are they more likely to be from?
answer
Our immediate answer may be group 1, since 90% of people play piano. But think again:
- Group 1:
people can play piano - Group 2:
people can play piano
So it's actually almost 6x more likely that this person is from group 2, since the absolute numbers in terms of population is so high.
A person is getting tested for a disease that affects 1% of the population.
A test is 95% accurate in true positivity (sensitivity)
A test is 95% accurate in true negativity (specificity)
If a person tests positive, then what is the probability that they have the disease?
solution
Let:
= has the disease, = doesn't have the disease, = test is positive = test is negative
What is
Intuitively, we would say 95%, but this isn't correct.
So If you test positive, there's only a 16% chance you actually have the disease.
Explanation:
Suppose we have 100 000 people in population. Then 1000 people have the disease (1%).
Hence we have 99 000 without the disease, and 1000 with the disease.
- 99000 without the disease
- Test positive: 4 950
- Test negative: 94 050
- 1000 with the disease
- Test positive: 950
- Test negative: 50
Far more people WITHOUT the disease will test positive than those WITH the disease, which is why the percentage is so low.