# Genotype and allele frequencies on a De Finetti diagram

This module illustrates a tri-axis plot of the frequencies of the AA, A, and aa genotypes at a diallelic locus when Hardy-Weinberg genotype frequencies are met for all possible frequencies of the A and a alleles.

The horizontal axis gives the frequency of the A allele. The three dashed lines perpendicular to each of the sides of the triangle represent the frequencies of the aa, Aa, and AA genotypes. The distance from where the dashed line is perpendicular to a side of the triangle gives the frequency of a given genotype.

Hardy-Weinberg expected genotype frequencies are represented by the blue parabola.

The module lets users generate a point on the graph to see how one set of genotype frequencies compares to the Hardy-Weinberg expected genotype frequencies at the same allele frequencies.

Use the sliders to set the frequencies of AA and Aa genotypes (the frequency of aa genotypes is determined by subtraction).

Press OK to display the entered genotype frequencies on the graph. Look for a small red dot on the graph. The horizontal position of the point will depend on the allelic frequencies, while the position of the point inside the triangle depends on the genotype frequencies. If the point falls on the parabola, then the genotype frequencies match Hardy-Weinberg expected genotype frequencies.
Mating models: Random mating means that mating pairs of genotypes are expected to occur at a frequency equal to the product of their genotype frequencies. For example, if the AA genotype has a frequency of 0.25 and the Aa genotype has a frequency of 0.5, then the expected frequency of a AA x Aa mating is 0.25 x 0.5 = 0.125.

Positive assortative mating means that only like genotypes mate, such as AA with AA.

Positive without dominance simulates positive assortative mating (like phenotypes mate exclusively, such as AA with AA) where the phenotypic values of all three genotypes are distinct.

Negative assortative mating (also called disassortative mating) permits matings among unlike genotypes only. The permitted mating are AA x aa, Aa x aa, aa x AA and aa x Aa. This model of negative assortative mating illustrates that certain forms of non-random mating can actually change allele frequencies in a population, in contrast to positive assortative mating, which only alters genotype frequencies.

To see how the negative assortative mating works, let d = f(AA), h = f(Aa) and r = f(aa). The recursion equations for negative assortative mating are then dt+1 = 0, ht+1 = (d+0.5h)/(d+h) and rt+1 = 0.5h/(d+h) (see Workman PL. 1968. The maintenance of heterozygosity by partial negative assortative mating. Genetics 50:1369-1382.). These recursions can be derived by tabulating the permitted matings and then summing the relative frequencies of the progeny of each permitted mating.

For more background, see chapter 2 in Hamilton, 2009.

### Mating Model

Enter values for the frequencies of AA, Aa, and aa genotypes in the boxes to the left of the window.

 Radom Mating Positive Assortative Negative Assortative

Frequency of
 AA: 0 1 0.25 Aa: 0 1 0.5 aa: 0.25

Generations to simulate