Hardy-Weinberg Equilibrium & Allele Frequency Calculator | GoToolstack
Core Architecture & Mathematical Formula
p + q = 1; \quad p^2 + 2pq + q^2 = 1; \quad \chi^2 = \sum \frac{(O - E)^2}{E} \quad (df = 1, \text{ critical } \chi^2_{0.05} = 3.841)
Enter the observed population count for homozygous dominant individuals ($N_{AA}$), heterozygous individuals ($N_{Aa}$), and homozygous recessive individuals ($N_{aa}$). Review the calculated allele frequencies ($p$ for dominant allele $A$, $q$ for recessive allele $a$). Inspect the expected Hardy-Weinberg genotype frequencies and expected counts. Evaluate the Chi-Square statistic: if $\chi^2 < 3.841$, fail to reject equilibrium (population is in Hardy-Weinberg equilibrium).
Best Practices & Essential Guidelines
- Hardy-Weinberg equilibrium assumes random mating, infinite population size, no natural selection, no genetic drift, no mutation, and no gene flow (migration).
- A statistically significant deviation ($\chi^2 \ge 3.841$) indicates that one or more evolutionary forces or non-random assortative mating are acting on the locus.
- For small sample sizes ($N < 50$), consider applying Yates' continuity correction to prevent overestimation of statistical significance.