Population Genetics: Hardy-Weinberg Equilibrium with Two Loci

In population genetics, the distribution of genotypes and phenotypes in many instances follows a Hardy-Weinberg equilibrium. If represents the frequency of a dominant allele and is the frequency of the corresponding recessive allele , the genotypes , , and occur in the ratios , persisting from generation to generation. Since both the homozygous phenotype and the heterozygous (hybrid) phenotype will exhibit the dominant trait, the fractional occurrence of the dominant and recessive traits occurs in the ratio . Thus, contrary to some early misconceptions, a recessive trait can persist in a population. The principle was discovered independently by Wilhelm Weinberg, a German physician, and G. H. Hardy, the famous British mathematician (who took pride in the belief that none of his work would ever find practical application). Deviation from H–W equilibrium can be caused by one of several perturbing factors, including constrained mating, occurrence of mutations, random genetic drift, and natural selection.
The Hardy-Weinberg equilibrium can be generalized to haplotypes involving two (or more) loci. When there is no linkage between the alleles, say and with dominant frequencies and , respectively, the genotypes and phenotypes are simply products of two independent H–W distributions. Linkage disequilibrium can occur if the allele frequencies influence one another. This can be quantified by a parameter , such that the composite haplotype frequencies are given by , , , and . If no linkage occurs, . In this Demonstration, the 16 possibilities for offspring genotypes are plotted on a two-dimensional bar chart. Because the maximum possible value for cannot exceed any allele frequency, the slider will sometimes move as you drag an allele frequency slider.
For purposes of illustration, the two traits are chosen to be hair color (brown or blond) and eye color (brown or blue), with brown dominant in both cases. This is actually a gross oversimplification: in real life, the genetics of hair and eye color are much more complex. (For example, coauthor S. M. Blinder, offspring of parents with blue and brown eyes, finds himself with green eyes!)



  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


Snapshot 1: a single-locus Hardy-Weinberg distribution pertaining to eye color
Snapshot 2: with equal genetic frequencies, a 9:3:3:1 distribution of phenotypes
Snapshot 3: a possible haplotype distribution in central parts of Norway, Sweden, and Finland, where at least 80% of the population is blond and blue-eyed
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+