Generate a population that fits Hardy-Weinberg expectations, calculate allele frequencies, expected genotypes, and interpret χ².
Generate genotype counts, estimate p and q, calculate expected values, and test whether the population fits equilibrium.