Conditional Probability
Useful for subpopulations.
Based on conditional probability, like the previous example with different rates of left handedness in males and females.
Conditional probability formula
In our left-handedness example where men and women have different left handed rates:
Pobability of left handed-ness in general population = (Probability of males being left handed
General Formula for conditional probability
Independence
Example: Probability of brown eyes in men and women
Imagine there was a difference in probability of brown eyes between men and women:
However, in reality, there is no difference, these conditions are independent. Therefore:
Since the two events are independent, the probability of being male and having brown eyes is just the product. There is no need for conditional probabilities, since they are just equal.
However, for conditional probability, we need to use different probabilities for the sub-populations.
Murder Example
Based on a stab wound, we can determine the killer is left-handed. What is the probability that the killer is male?
Probability of being left handed if they are male:
Probability of being male if they are left handed:
These two products should be equal in probability:
Therefore, we can re-arrange to find probability of being male and left handed:
So it's slightly more likely that the murderer is a man than a woman.
Bayes' Theorem
This is because of Bayes' Theorem, a basic obvious relationship between probabilities, that is very important. See the link
Haemophilia example
This is a recessive trait that is carried on the x-chromosome.
Here is an example with a family with two daughters and one son. The son has haemophilia. Since it's carried on the x chromosome, he must have inherited it from his mother, who must be a carrier of this recessive gene (heterozygote).
The probability of their daughter "B" being a carrier is 0.5. She received the chromosome from either her father or mother, and the mother must be a carrier.
If the daughter "B" has three healthy sons without haemophilia, this is evidence that she might not be a carrier. What is the probability that she is a carrier, given this?
Let's first determine what the probability of producing 3 healthy (without haemophilia) sons from a carrier. The probability of the first son being a carrier is 0.5, then we multiply by 0.5 again each time after that.
Now, we use Bayes' Theorem to get the posterior probability:
We still need the total probability of 3 healthy sons. Get this from Law of total probability:
(100% chance of 3 healthy sons if B is not a carrier)
Back to Bayes' theorem:
So, the posterior probability is 1/9. There is a good chance that she is not a carrier, but in order to be 100% sure she would need infinitely many sons.
B has a daughter named "C". What's the chance of her being a carrier?
Probability of C being a carrier if B is not a carrier is 0, since then she could not have inherited it.
If B didn't have 3 sons, then we wouldn't know anything about the conditional probability. In this case, the probability of C being a carrier would be 1/4, since the only thing we know is that B has a 1/2 chance, and C inherited half her genes from B.
Daughter D still has the same probability of being a carrier (0.5).
Bayesian Inference
Example: Regina vs Adams court case (1996 England)
A woman was assaulted in the street in the night and could not identify the man. They identified Adams as the suspect, but Regina could not identify Adams, and he had an alibi.
A DNA sample was produced, and it matched Adams with very high confidence.
The lab said that the probability of DNA match:
This seems very low. However, in fact, we are looking for the probability of innocence, given a DNA match: (
We are looking at the wrong conditional probability - this is common practice in the courtroom, often called the "prosecutor's fallacy" due to its use by prosecutors to prove guilt in the courtroom.
At this point, the court invited a statistics professor from Oxford who taught the jury about Bayes' Theorem and gave them examples, homework exercises, calculators, so they can decide what the real probability is.
To get P(match), we use the law of total prob.:
We know that P(guilty) is the reverse of P(innocence):
And the probability of a match if he is guilty is 100%.
However, we still don't know the P(innocence) before the DNA test (the prior probability). This is actually just
Back to our law of total prob:
Putting this back into Bayes' Theorem:
This means
One assumption not taken into account - the attacker could have come from another town which would make prior P(innocence) even smaller (if we assume it could be a man from anywhere in the country, n=50,000,000). This assumption would increase the posterior probability of innocence with a DNA match
Later, it was found that the DNA results were wrong, and in fact it was 1/2 million instead of 1/200 million. This doesn't make much of a difference to a layperson, but in fact this makes the posterior probability (assuming the assaulter was from the town)
Ultimately, probability in this case isn't related to frequencies or science - the true answer is quantifiable, and Adams knows what the answer is. Maybe statistics is not the most applicable here.
Hypothesis testing
Given q is the probability of tails in a coin toss.
Our null hypothesis is that q=0.5 if it is a fair coin:
If we toss the coin
What is
This is hard to calculate, let's try:
This is less that 0.05, so we can reject our null hypothesis. However, this is based on the prosecutor's fallacy and is actually not correct. There are problems with classical statistics. We need a two-sided test:
This is higher, but we can still reject our null hypothesis.
Trying this using Bayes' theorem
It's kind of impossible to do this, since there are infinitely many alternative hypotheses? For example, let's say
In Bayesian statistics, we assign probabilities to each of these alternative hypotheses and call this the "prior distribution". In our case, since most coins are fair, the null hypothesis is our most likely scenario.