This simulation demonstrates how genetic drift in finite populations decreases heterozygosity over time. In this sense, genetic drift and consanguineous mating have the same impact on heterozygosity.

User-entered parameters are the “Effective population size(N_{e})”, the “Initial allele frequency p(A)”, the “Number of generations” to simulate, and the "Number of replicate populations to plot."

Press *Run* to generate a graph of heterozygosity **(H)** over time in generations.

In a finite population, expected heterozygosity decreases according to **H _{t} = H_{0}(1-^{1}⁄_{2Ne})^{t}** where

There are additional lines on the graph (the number of lines is equal to the value in the text entry box “Number of replicate populations to plot”). These lines each show the heterozygosity over time in a single finite population that has an effective population size equal to the value in the text entry field. Notice that the heterozygosity frequencies in the individual populations varies over time and is often greater or less than the expected heterozygosity. This reinforces that the equation for expected heterozygosity applies to the average of a very large number of replicate populations (it is an ensemble distribution). Individual populations do experience a reduction in heterozygosity over time caused by genetic drift, but the decline in heterozygosity is a random walk.

For more background, see *chapter 3* in Hamilton, 2009.