First, set up. Choose the number of individuals of each genotype. Click set-up to create a population of diploids. You'll see what looks like one individual. That's actually every individual created, all stacked up on one spot. The pink trait is dominant to green. There is full dominance, so heterozygotes are phenotypically indistinguishable from homozygous dominants.
In each generation, the diploids disperse, then create haploid gametes. The gametes then combine to form the next generation of diploids. Genotype frequencies are tracked on the plot.
Can you predict the genotype frequencies using the Hardy-Weinberg
model? Does the simulation behave as you expect? If not, what assumptions
of the Hardy-Weinberg model does the simulation violate? Why is this one worse?
created with
NetLogo
view/download model file:
hw-sm.nlogo