Wolfram Computation Meets Knowledge

Computational Biology

Model, simulate, and visualize biological and biochemical systems. Model and simulate reaction kinetics.

Hardy–Weinberg Equilibrium

The Hardy–Weinberg principle is a fundamental principle in population genetics. It describes populations that are no longer undergoing evolution and thus reach a steady state. In this virtual lab, you will learn to construct a genetic inheritance model and analyze scenarios when the assumptions of Hardy–Weinberg equilibrium are violated.


The model diagram shows the different states used in the model and transitions between them. There are three main states—Healthy, Carrier and Affected. The arrows represent a transition from one state to another. The Birth state adds new members to the population, while the Death state removes members from the population.

A basic genetic inheritance model of an autosomal recessive disease.


Migration leads to either the influx of alleles into or efflux of alleles from a population, which generates a change in the gene pool. A change in the gene pool of a population can lead to significant changes in the proportion of individuals with each trait and lead to violation of Hardy–Weinberg equilibrium.


Use the Wolfram Language to carry out parametric analysis.

Effect of migration on genetic inheritance.

Explore the College Biology Labs to learn more