Biology · Simulator 032
Choose the genotypes of two parents for one or two genes. The Punnett square gives the expected offspring ratios, then you breed a random sample of offspring and see how closely real counts follow the prediction.
Class 9–10Class 11–12Class 10 Science: Heredity; Class 12 Biology: Principles of Inheritance and Variation
Each parent carries two alleles of each gene and passes one, chosen at random, to each offspring (Mendel's law of segregation). With two genes on different chromosomes, the choices are independent (law of independent assortment).
A Punnett square lists every combination of parental gametes. With uppercase alleles dominant:
Real families are small samples, so counts scatter around these ratios. The simulator draws offspring with a seeded random generator and computes a chi-square statistic,
χ² = Σ (observed − expected)² / expected
, to show whether the deviation is larger than chance would usually produce.
Assumes complete dominance, unlinked genes and equal survival of all genotypes. Many real traits involve many genes, incomplete dominance or linkage.
A dog with a dominant black coat is crossed with a recessive brown dog. Of 8 puppies, 4 are black and 4 brown. What was the black parent's genotype, and how sure can you be?
A BB parent could only give black puppies, so any brown puppy proves the black parent is Bb; this is a test cross giving 1 : 1. One brown puppy is enough for certainty, whatever the ratio.
Cross: Aa × Aa, 200 offspring. Expected 3 : 1, so 150 dominant and 50 recessive.
Observed: 160 dominant and 40 recessive. Is that still 3 : 1?
Chi-square: χ² = (160 − 150)² / 150 + (40 − 50)² / 50 = 0.67 + 2.00 = 2.67.
Decision: with one degree of freedom the 5% critical value is 3.84. Since 2.67 is below it, the difference is small enough to be chance, so the data fit 3 : 1.
Dihybrid: in AaBb × AaBb the chance of a double recessive aabb is ¼ × ¼ = 1/16, so in 160 offspring expect about 10. Breed 200 from Aa × Aa and compare your χ² with 3.84.
A grid of every combination of the parents' gametes. Each box is equally likely, so counting boxes gives the expected ratio of offspring genotypes.
The four equally likely combinations are AA, Aa, aA and aa. Three contain at least one dominant A and show the dominant trait; only aa shows the recessive one.
Whether observed counts differ from expected ones by more than chance usually produces. Below the critical value (3.84 for two categories at 5%) the data are consistent with the expected ratio.