Hardy-Weinberg Deviation from Genotype Counts

Hardy-Weinberg Deviation from Genotype Counts

Enter genotype counts for AA, Aa, and aa. The app will calculate population size, observed allele frequencies, expected Hardy-Weinberg frequencies, and a chi-square test for deviation from equilibrium.

p = (2AA + Aa) / 2N   |   q = (2aa + Aa) / 2N   |   N = AA + Aa + aa

p = frequency of the dominant allele (A) in the population   |   q = frequency of the recessive allele (a)   |   N = total number of individuals in the population.

Input

Enter genotype counts to begin.
This version uses genotype counts rather than phenotype counts, so the allele frequencies are calculated directly rather than estimated.

Results

N
p
q
p + q
Observed AA frequency (AA/N)
Observed Aa frequency (Aa/N)
Observed aa frequency (aa/N)
Expected AA (p²)
Expected Aa (2pq)
Expected aa (q²)
Expected AA count
Expected Aa count
Expected aa count
χ² statistic
Hardy-Weinberg test result
Check pending
These values show the genotype frequencies expected under Hardy-Weinberg equilibrium from the calculated allele frequencies p and q, along with a chi-square test comparing observed and expected genotype counts.