Bayes' Theorem
in Genetics
Learn how to use conditional probability to update genetic predictions: from pedigree analysis to carrier screening and beyond.
What is Conditional Probability?
In genetics, we rarely know everything about an individual's genotype. Instead, we observe phenotypes (traits) and use them to update our beliefs about hidden genotypes. Conditional probability measures how likely an event is given that something else has already happened.
Prior vs Posterior Probability
Why Does This Matter?
A positive screening test does not always mean someone has the disease. Bayes' theorem tells us the true probability.
Bayes' Theorem: The Formula
Expanding \( P(E) \): Total Probability
The denominator sums over all possible hypotheses. In genetics, the hypotheses are the possible genotypes:
This ensures we compare the likelihood of the evidence under every possible genotype, not just the one we're interested in.
Prior vs Likelihood: Key Distinction
| Prior \( P(H) \) | Likelihood \( P(E \mid H) \) | |
|---|---|---|
| Question answered | How probable is the genotype before new data? | How probable is the data if the genotype is true? |
| Source | Pedigree, Mendelian ratios, population frequencies | Genetic model, penetrance, test sensitivity |
| Example | \( P(\text{carrier}) = \frac{2}{3} \) | \( P(\text{positive test} \mid \text{carrier}) = 0.99 \) |
How to Apply: Step-by-Step
Example 1: Carrier Probability
Both parents are carriers (\( Aa \)) for an autosomal recessive disorder. Their child is unaffected. What is the probability this child is a carrier (\( Aa \))?
Example 1: Solution
Example 2: Adding More Evidence
The same unaffected child (from Example 1) grows up, marries a known carrier (\( Aa \)), and they have 3 unaffected children. What is the updated probability that this individual is a carrier?
If the individual is \( Aa \), the cross is \( Aa \times Aa \), so each child has a \( \frac{3}{4} \) chance of being unaffected. If \( AA \), the cross is \( AA \times Aa \), and all children are unaffected.
Example 2: Solution
Example 3: Screening Test
A genetic screening test for a rare autosomal recessive disorder has sensitivity = 99% and specificity = 95%. The carrier frequency in the population is 1 in 50. A person tests positive. What is their probability of actually being a carrier?
Example 3: Solution
This is why rare-disease screening often requires confirmatory testing.
Common Mistakes
Summary: Bayes' Theorem Components
| Component | Symbol | Genetics Meaning |
|---|---|---|
| Prior | \( P(H) \) | Initial genotype probability from pedigree/Mendelian ratios |
| Likelihood | \( P(E \mid H) \) | Probability of observed phenotype given the genotype |
| Total Evidence | \( P(E) \) | Sum of likelihoods across all possible genotypes |
| Posterior | \( P(H \mid E) \) | Updated genotype probability after observing evidence |
Question 1 of 5
Both parents are carriers (\( Aa \)) for cystic fibrosis. Their first child is unaffected. What is the probability this child is a carrier?
Question 2 of 5
In Bayes' theorem, what does \( P(E \mid H) \) represent?
Question 3 of 5
A genetic test with 99% sensitivity is used to screen for a disorder with prevalence \( \frac{1}{1000} \). A person tests positive. Why is their actual probability of having the disorder much lower than 99%?
Question 4 of 5
An individual with prior carrier probability \( \frac{2}{3} \) marries a carrier and has one unaffected child. What is the updated carrier probability? (Cross if carrier: \( Aa \times Aa \); if not: \( AA \times Aa \))
Question 5 of 5
Which of the following is not a valid source for the prior probability \( P(H) \) in a genetic Bayesian analysis?