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:
- Describe the phenomenon of genetic drift.
- Explain why random draws from a binomial distribution are a good way to mimic the effect of drift.
- Interpret allele frequency patterns that occur as a result of drift.
- Write a for loop in R.
- Write a function to run code multiple times with different parameters.