5 Simulating evolution

In this lab, we’ll build a simulation to explore genetic drift using the Wright-Fisher model.

5.0.0.1 Learning objectives

After completing this chapter, you’ll be able to:

  1. Describe the phenomenon of genetic drift.
  2. Explain why random draws from a binomial distribution are a good way to mimic the effect of drift.
  3. Interpret allele frequency patterns that occur as a result of drift.
  4. Write a for loop in R.
  5. Write a function to run code multiple times with different parameters.