01 / 21

Bayes' Theorem
in Genetics

Learn how to use conditional probability to update genetic predictions: from pedigree analysis to carrier screening and beyond.

Genetics

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

Prior Probability
Your initial estimate before observing new evidence. Based on pedigree structure or population data alone.
Posterior Probability
Your updated estimate after incorporating new evidence: test results, number of unaffected children, etc.

Why Does This Matter?

Pedigree Analysis
Update carrier status based on family history and offspring
Genetic Screening
Interpret test results considering disease prevalence
Genetic Counseling
Give patients accurate risk assessments for inherited disorders

A positive screening test does not always mean someone has the disease. Bayes' theorem tells us the true probability.

Bayes' Theorem: The Formula

$$ P(H \mid E) = \frac{P(E \mid H) \cdot P(H)}{P(E)} $$
\( P(H \mid E) \)
Posterior: probability of hypothesis given evidence
\( P(H) \)
Prior: initial probability of hypothesis
\( P(E \mid H) \)
Likelihood: probability of evidence if hypothesis is true
\( P(E) \)
Total evidence: overall probability of the evidence

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

1
Identify the hypothesis \( H \). What genotype are you testing? (e.g., "individual is a carrier: \( Aa \)")
2
Assign the prior \( P(H) \). Use Mendelian ratios or pedigree logic (e.g., \( \frac{2}{3} \) for a known carrier cross).
3
Compute the likelihood \( P(E \mid H) \). What is the probability of the observed evidence if \( H \) is true?
4
Compute \( P(E \mid H^c) \). Do the same for the alternative hypothesis.
5
Plug into Bayes' theorem and simplify to get \( P(H \mid E) \).

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 \))?

\( Aa \)
\( Aa \)
\( AA \)
\( \frac{1}{4} \)
\( Aa \)
\( \frac{2}{4} \)
\( aa \)
\( \frac{1}{4} \)
?
Unaffected
Mendelian ratio from \( Aa \times Aa \) cross
Unaffected child: \( AA \) or \( Aa \) (not \( aa \))

Example 1: Solution

1
Hypothesis: child is a carrier (\( Aa \)). Prior: \( P(Aa) = \frac{2}{4} = \frac{1}{2} \)
2
Evidence: child is unaffected. \( P(\text{unaffected} \mid Aa) = 1 \) (carriers show no symptoms).
3
Alternative: child is \( AA \). \( P(AA) = \frac{1}{4} \), \( P(\text{unaffected} \mid AA) = 1 \).
4
Total evidence \( P(\text{unaffected}) \): Sum over possible unaffected genotypes. \( P(\text{unaff.}|AA)P(AA) + P(\text{unaff.}|Aa)P(Aa) = (1 \cdot \frac{1}{4}) + (1 \cdot \frac{2}{4}) = \frac{3}{4} \).

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

1
Likelihood if carrier \( (Aa) \): \( P(3 \text{ unaffected} \mid Aa) = \left(\frac{3}{4}\right)^3 = \frac{27}{64} \)
2
Likelihood if homozygous \( (AA) \): \( P(3 \text{ unaffected} \mid AA) = 1^3 = 1 \)
3
Total evidence: \( \frac{27}{64} \cdot \frac{2}{3} + 1 \cdot \frac{1}{3} = \frac{27}{96} + \frac{1}{3} = \frac{27}{96} + \frac{32}{96} = \frac{59}{96} \)

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?

Sensitivity
\( P(+ \mid \text{carrier}) = 0.99 \)
Specificity
\( P(- \mid \text{non-carrier}) = 0.95 \)
Prevalence
\( P(\text{carrier}) = \frac{1}{50} = 0.02 \)

Example 3: Solution

This is why rare-disease screening often requires confirmatory testing.

Common Mistakes

✕ Ignoring the Prior
Assuming \( P(\text{carrier} \mid +) = \text{sensitivity} \). The prior prevalence matters enormously for rare conditions.
✕ Swapping Conditionals
Confusing \( P(E \mid H) \) with \( P(H \mid E) \). The probability of evidence given hypothesis is not the same as the reverse.
✕ Forgetting to Update
Using the original Mendelian ratio instead of updating with new evidence (e.g., unaffected offspring).

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?