Allele frequencies determine expected genotype frequencies under the Hardy-Weinberg model.

highlighted = computed this step

Counts determine allele frequencies

From genotype counts AA=9, Aa=12, aa=4, the allele frequencies are p=3/5 and q=2/5.

p=35,q=25p=\frac{3}{5},\quad q=\frac{2}{5}
Allele frequenciesAllele frequencies are computed from genotype counts.QuantityValuecounts AA, Aa, aa9, 12, 4p3/5q2/5

Hardy-Weinberg predicts genotype frequencies

With those allele frequencies, the equilibrium table sums to 1.

p2+2pq+q2=1p^2+2pq+q^2=1
Hardy-Weinberg frequenciesEquilibrium genotype frequencies are computed from p and q.GenotypeEquilibrium frequencyAA9/25Aa12/25aa4/25