In addition, the sum of the allele frequencies for all the alleles at the locus must be 1, so p + q = 1. ... In population genetics studies, the Hardy-Weinberg equation can be used to measure whether the observed genotype frequencies in a population differ from the frequencies predicted by the equation