In population genetics, if 'A' and ‘a’ are the two alleles of a gene then p and q will represent the frequency of 'A' and 'a' allele respectively.
The Hardy-Weinberg equation is:
In the equation, is the frequency of the dominant individual, is the frequency of the recessive individual and is the frequency of the heterozygote individual.
Also, where p is the frequency of the dominant allele and q is the frequency of the recessive allele.