Mendelian Genetics
Time limit: 75 minutes Total marks: 60 Instructions: Answer all questions. Show full reasoning. Use for mathematics. Coding answers may be given in Python (pseudocode acceptable if logically complete).
Question 1 — Cross-domain: Deriving and Proving Ratios (22 marks)
A geneticist studies two independently assorting genes in pea plants:
- Gene A: purple flowers (A) dominant to white (a)
- Gene B: tall (B) dominant to short (b)
(a) State Mendel's Law of Independent Assortment and explain the cellular basis (meiosis) that justifies treating the two genes as independent probability events. (4 marks)
(b) Two dihybrid plants () are crossed. Using only the product and sum rules (do NOT draw a 16-box Punnett square), derive the probability of obtaining an offspring that is: (i) purple AND tall, (ii) purple AND short, (iii) white AND tall, (iv) white AND short. Show the phenotypic ratio and prove it equals . (8 marks)
(c) Prove algebraically that for an cross, the probability of an offspring being homozygous at both loci (any combination) is . (4 marks)
(d) A student claims: "In this dihybrid cross, exactly of the offspring will be heterozygous at at least one locus." Determine whether this claim is true by computing the exact probability. (6 marks)
Question 2 — Coding + Probability: Simulate and Verify (22 marks)
(a) Write a function (Python) punnett_ratio(p1, p2) that takes two parental genotypes for a single gene (each a 2-character string like "Aa"), returns a dictionary mapping each offspring genotype to its fractional probability. (6 marks)
(b) Extend your logic: write pseudocode/function phenotype_ratio that, given a monohybrid cross and knowing the dominant allele is the uppercase letter, returns the phenotype ratio as simplified integers. Demonstrate its output for . (5 marks)
(c) A test cross is performed between an unknown purple plant and a white () plant. In offspring, are purple and are white. Using a goodness-of-fit test against the hypothesis "unknown is " (expected ), compute and state, using the critical value , whether the data support the hypothesis. (6 marks)
(d) Explain why a test cross with a homozygous recessive parent lets phenotype ratios directly reveal the genotype of the unknown, whereas a cross with a heterozygote does not. (5 marks)
Question 3 — Pedigree Analysis & Proof (16 marks)
The pedigree below tracks a trait. Squares = males, circles = females, filled = affected.
Generation I: I-1 (□ unaffected) —— I-2 (○ affected)
|
Generation II: II-1(■ affected) II-2(○ unaffected)—— II-3(□ unaffected)
|
Generation III: III-1(■ affected) III-2(○ unaffected)
(a) Two unaffected parents (II-2 × II-3) produce an affected son (III-1). Prove that the trait must be recessive, and state the genotypes of II-2 and II-3. (5 marks)
(b) Assuming the trait is autosomal recessive, calculate the probability that III-2 (unaffected) is a carrier (heterozygous). (4 marks)
(c) If III-2's true genotype is unknown and she marries a known carrier (), use conditional probability (product/sum rules) to calculate the probability their first child is affected. (7 marks)
Answer keyMark scheme & solutions
Question 1
(a) (4 marks)
- Law of Independent Assortment: Alleles of different genes segregate independently of one another during gamete formation (so the inheritance of one gene does not affect another). (2)
- Cellular basis: during meiosis I, homologous chromosome pairs align at the metaphase plate in random orientations; genes on different (non-homologous) chromosomes assort independently, making the transmission of alleles at each locus statistically independent — hence the product rule applies. (2)
(b) (8 marks) Each single-gene cross gives:
- , . (1 for stating both)
By the product rule (independence):
- (i) purple & tall (1)
- (ii) purple & short (1)
- (iii) white & tall (1)
- (iv) white & short (1)
Ratio . (2 for correct proof) Sum check: probabilities sum to . (1)
(c) (4 marks) For one locus : offspring genotypes . . (2) By independence, homozygous at both loci . (2)
(d) (6 marks) "Heterozygous at at least one locus" is the complement of "homozygous at both loci."
- (from part c). (2)
- . (3)
- The claim of is FALSE; correct value is . (1)
Question 2
(a) (6 marks)
from fractions import Fraction
def punnett_ratio(p1, p2):
counts = {}
for a in p1:
for b in p2:
geno = ''.join(sorted([a, b], key=str.lower))
counts[geno] = counts.get(geno, 0) + 1
total = sum(counts.values()) # = 4
return {g: Fraction(c, total) for g, c in counts.items()}- Iterate over allele combinations (each parent contributes 1 of 2 gametes → 4 equally likely). (2)
- Canonicalise genotype ordering (e.g.
"aA"→"Aa"). (2) - Return fractions summing to 1. (2)
Example:
punnett_ratio("Aa","Aa")→{'AA':1/4, 'Aa':1/2, 'aa':1/4}.
(b) (5 marks)
from math import gcd
def phenotype_ratio(p1, p2):
genos = punnett_ratio(p1, p2) # fractions
dom, rec = 0, 0
for g, prob in genos.items():
if any(ch.isupper() for ch in g): # at least one dominant allele
dom += prob
else:
rec += prob
# convert to integer ratio over denom 4
d, r = int(dom*4), int(rec*4)
g = gcd(d, r)
return (d//g, r//g)- Classify each genotype: dominant phenotype if any uppercase allele present. (2)
- Sum probabilities and reduce. (2)
- Output for : dominant , recessive → ratio . (1)
(c) (6 marks) Expected under for : purple, white. (1) (3) Since (df), we fail to reject the null. (1) The data are consistent with the unknown being (test cross ratio ). (1)
(d) (5 marks)
- The recessive parent () can only donate a recessive allele, so every offspring's phenotype is determined solely by the allele from the unknown parent. (2)
- Thus offspring phenotypes are a direct 1:1 map to the unknown's gametes: all-dominant offspring ⇒ unknown is ; a ratio ⇒ unknown is . (2)
- A heterozygous test partner () contributes dominant alleles too, masking the recessive contribution — dominant offspring could arise from either parent's dominant allele, so the ratio no longer uniquely reveals the unknown genotype. (1)
Question 3
(a) (5 marks)
- II-2 and II-3 are both unaffected yet produce affected III-1. (1)
- If the trait were dominant, at least one parent would have to carry (and thus express) the dominant allele — contradiction, since both are unaffected. (2)
- Therefore the trait is recessive; the affected child is , receiving one from each parent, so both II-2 and II-3 must carry while being unaffected ⇒ genotype (carriers). (2)
(b) (4 marks) III-2 is unaffected, parents both . Offspring of : . (1) Conditioning on "unaffected" (not ): eligible outcomes and , total . (1) (2)
(c) (7 marks) III-2 partner is . Child affected () requires an allele from each parent.
- ; if , she passes with prob . If (prob ), she passes with prob . (2)
- Partner () passes with prob . (1)
- (3)
- Answer: . (1)
[
{"claim":"9:3:3:1 dihybrid probabilities sum to 1", "code":"p=[Rational(9,16),Rational(3,16),Rational(3,16),Rational(1,16)]; result = sum(p)==1"},
{"claim":"P(het at >=1 locus)=3/4 in AaBb x AaBb", "code":"p_hom_both=Rational(1,2)*Rational(1,2); result = 1-p_hom_both==Rational(3,4)"},
{"claim":"Chi-square for 102:98 vs 100:100 equals 0.08", "code":"chi=Rational((102-100)**2,100)+Rational((98-100)**2,100); result = chi==Rational(8,100)"},
{"claim":"P(first child affected)=1/6", "code":"p=(Rational(2,3)*Rational(1,2)+Rational(1,3)*0)*Rational(1,2); result = p==Rational(1,6)"},
{"claim":"P(III-2 carrier | unaffected)=2/3", "code":"result = (Rational(1,2)/Rational(3,4))==Rational(2,3)"}
]