NetLogo banner

Home
Download
Help
Forum
Resources
Extensions
FAQ
NetLogo Publications
Contact Us
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Web
Printable
Chinese
Czech
Farsi / Persian
Japanese
Spanish

  Donate

NetLogo Models Library:
Curricular Models/CT-STEM

(back to the library)

Hardy Weinberg Equilibrium

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

WHAT IS IT?

This model allows users to explore the inheritance of fur coat color in a population of rock pocket mice to investigate the Hardy-Weinberg Principle. Users can set up the initial genetic composition of the mouse population and then can track genotype and phenotype frequencies in the population as the mice reproduce obeying the assumptions underlying Hardy- Weinberg equilibrium. As the populations reproduce, after just a few generations, the population reaches Hardy-Weinberg equilibrium.

The context for this model is the evolution of fur coat color in rock pocket mice that are mainly found in rocky outcrops in the deserts of the southwestern United States and Mexico. This context is developed into a lesson plan by the [Howard Hughes Medical Institute] (https://www.biointeractive.org/classroom-resources/making-fittest-natural-selection-and-adaptation). The genetics is modeled on the basis of the research on the rock pocket mice populations. The specifics of the model are designed on the basis of an Advanced Placement (AP) Biology Lab, so that students can computationally investigate the emergence of Hardy-Weinberg equilibrium values in a population that obeys Hardy-Weinberg equilibrium assumptions.

HOW IT WORKS

Mice in this model can have two fur colors, dark and light. This fur color is decided by their genotypes. Homozygous dominant and heterozygous mice have dark fur color, whereas homozygous recessive mice have light fur color. The fur color is determined by genes at a particular locus for which there are two alleles - A and a. A is a dominant allele, whereas a is a recessive allele. p is a frequency of the dominant allele (A) and q is a frequency of the recessive allele (a).

Each clock tick is a generation in this model.

At each generation, the following happens: - a mouse moves in a random direction - if it finds a partner, - it produces 2 offspring with the partner - the mouse and its partner both die

Hardy-Weinberg values, p and q, and phenotype frequencies are calculated for every generation.

Inheritance of the fur coat color genes is modeled based on the laws of Mendelian inheritance.

Each mating pair produces two children. Each child receives one of the alleles from the mother and one of the alleles from the father. Both parents die after reproduction. For simplicity, there are no overlapping generations.

HOW TO USE IT

  1. First, set the initial population by adjusting the following sliders:
    • INITIAL-HOMOZYGOUS-DOMINANT-MALES (AA males)
    • INITIAL-HETEROZYGOUS-MALES (Aa/aA males)
    • INITIAL-HOMOZYGOUS-RECESSIVE-MALES (aa males)
    • INITIAL-HOMOZYGOUS-DOMINANT-FEMALES (AA females)
    • INITIAL-HETEROZYGOUS-FEMALES (Aa/aA females)
    • INITIAL-HOMOZYGOUS-RECESSIVE-FEMALES (aa females)
  2. Press the SETUP button
  3. Press the GO-ONCE button to advance one generation. Press the GO-FOREVER button to observe the passage of many generations.
  4. Watch the monitors and plots to see allele frequencies, phenotype frequencies, and population count
  5. Watch the monitors to the right of the VIEW to see Hardy-Weinberg values, genotype frequencies, and a counter for phenotypes

INITIAL-HOMOZYGOUS-DOMINANT-MALES, INITIAL-HETEROZYGOUS-MALES, INITIAL-HOMOZYGOUS-RECESSIVE-MALES, INITIAL-HOMOZYGOUS-DOMINANT-FEMALES, INITIAL-HETEROZYGOUS-FEMALES, and INITIAL-HOMOZYGOUS-RECESSIVE-FEMALES are all sliders that determine the initial population of the mice population, these sliders can range from 0 to 200.

When you click GO-ONCE, the model simulates the change of a generation. You can click GO-FOREVER, to observe the passage of many generations.

THINGS TO NOTICE

Take note of the Hardy-Weinberg values after setup. Run the model slowly by pressing the GO-ONCE button multiple times. Notice, how the genotype and the phenotype frequencies change after each generation.

THINGS TO TRY

Start with a completely heterozygous population. How does the population look 100 generations later? What about 1000 generations later?

Try out different initial compositions of the population. Are there any compositions where the allele frequencies are stable and don't change after thousands of generations? What about unstable compositions?

CURRICULAR USE

This model is used in CT-STEM lesson Hardy Weinberg Equilibrium.

In this lesson, students can use this model to investigate the mechanism of inheritance and come to understand the basic idea of Hardy Weinberg Equilibrium. Students can also learn to calculate phenotype frequencies both mathematically and computationally (using a computational model). Students are encouraged to ask questions and then state an answer in the form of a hypothesis. Then to test this hypothesis, students can design and conduct an experiment, collect data, and analyze the data to come to a conclusion backed with evidence to support a claim.

This unit is intended to be taught to Advance Placement (AP) and university biology students.

This lesson is part of the unit Evolution of Populations to Speciation (Advanced). The curricular unit is designed for students to investigate and learn how populations evolve by studying the case of pocket mice. Students use computational models to explain the connection between genetic drift, natural selection, and speciation.

EXTENDING THE MODEL

Try modifying the model in a way where the mice generations overlap.

Could you add an extra allele of the gene, similar to how human blood type has three different alleles?

Think about how you could add another gene into this model and how that gene's allele frequencies would look.

How about simulating the inheritance of two traits that are genetically not linked? Or linked?

RELATED MODELS

Look at GenEvo 2 Genetic Drift, GenEvo 2 Natural Selection, Mendelian Inheritance, and Natural Selection - Camouflage.

CREDITS AND REFERENCES

HOW TO CITE

If you mention this model or the NetLogo software in a publication, we ask that you include the citations below.

For the model itself:

Please cite the NetLogo software as:

This model was developed as part of the CT-STEM Project at Northwestern University and was made possible through generous support from the National Science Foundation (grants CNS-1138461, CNS-1441041, DRL-1020101, DRL-1640201 and DRL-1842374) and the Spencer Foundation (Award #201600069). Any opinions, findings, or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the funding organizations. For more information visit https://ct-stem.northwestern.edu/.

Special thanks to the CT-STEM models team for preparing these models for inclusion in the Models Library including: Kelvin Lao, Jamie Lee, Sugat Dabholkar, Sally Wu, and Connor Bain.

COPYRIGHT AND LICENSE

Copyright 2020 Uri Wilensky.

CC BY-NC-SA 3.0

This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-sa/3.0/ or send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.

Commercial licenses are also available. To inquire about commercial licenses, please contact Uri Wilensky at uri@northwestern.edu.

(back to the NetLogo Models Library)