The Hardy-Weinberg principle is a mathematical model that predicts the frequencies of alleles in a population that won't change from one generation to the next. There are certain conditions that must be met by the population for Hardy-Weinberg to work e.g. There must be random mating amongst the populatione.g. There must be no immigration or emigration in and out of the population.p2 + 2pq + q2 = 1..where p= the frequency of the dominant alleleq= the frequency of the recessive allele[p2 = frequency of homozygous dominant genotype][2pq = frequency of heterozygous genotype][q2 = frequency of homozygous recessive genotype]Using this equation, you can input known values of frequency of alleles or of genotype to find the frequency of genotype of another category of the population.