Biology Genetics Simulation

Breed pea plants: Punnett squares, ratios, gene linkage and a chi-square test.

Controls

Readouts

Independent check

...
The science

Mendel's laws. Each parent passes one allele per gene, chosen at random (segregation). For Aa x Aa the offspring are 1 AA : 2 Aa : 1 aa, i.e. 3 dominant : 1 recessive phenotype. For two unlinked genes the independent assortment of AaBb x AaBb gives 9 : 3 : 3 : 1.

Linked genes. If both genes sit on one chromosome, crossing over in meiosis recombines them with fraction r (r = 50 % looks unlinked). For parents in coupling phase (AB/ab) gametes are AB and ab at (1-r)/2 each, Ab and aB at r/2; the expected ratios are recomputed from that.

Chi-square test. X² = ∑(O-E)²/E, compared with the chi-square distribution (df = classes - 1). p > 0.05 means the data are consistent with the expectation; by chance, 1 in 20 true-model runs still fails.

Honest limits: complete dominance, no mutation, no selection, no sex linkage, random mating of single heterozygous pairs; the pea colours are only a visual label.