**Try these parameter values:**

**Linkage Equilibrium**

f(A): 0.05

f(a): 0.95

f(B): 0.05

f(b): 0.95

------- wAA wAa waa

wBB 0.75 0.90 0.95

wBb 0.65 0.80 0.85

wbb 0.55 0.70 0.75

**Linkage Disequilibrium**

f(A): 0.05

f(a): 0.95

f(B): 0.05

f(b): 0.95

------- wAA wAa waa

wBB 0.75 0.90 0.95

wBb 0.65 1.00 0.85

wbb 0.55 0.70 0.75

Two loci are in** linkage equilibrium** if genotype frequencies at one locus are independent of genotype frequencies at the second locus, otherwise the two loci are in linkage disequilibrium. Linkage disequilibrium can arise from physical linkage, genetic drift, and selection on multilocus genotypes.

One can test whether or not two loci are in linkage equilibrium by comparing known two-locus genotype frequencies with two-locus genotype frequencies calculated from one-locus genotype frequencies. A chi-square test can be performed to determine if the known and expected differ significantly.

**D, the coefficient of disequilibrium** measures the amount of disequilibrium between two loci. The coefficient of disequilibrium is calculated as:

D=ru-st

where ru is one half of the coupling heterozygote frequency (AB/ab), and st is one half of the repulsion heterozygote (Ab/aB).

**Adjust the initial allelic frequencies and the two-locus fitness values to the right:**

For best results, begin by setting the fitness values to 1.0, and initial allelic frequencies to 0.5. Then, decrease one or more of the fitness values by a small amount.

Both the observed and expected genotype frequencies are presented above the graph.

The two loci may be in linkage equilibrium or disequilibrium, depending on the fitness values chosen. During the simulation the current state is displayed above the graph.

The population represented to the right consists of 5000 randomly mating individuals.