5.4 Modeling allele frequencies
In the Wright-Fisher model, we track a population over the course of many generations. Within each generation:
- For every individual, we perform a coin flip to determine whether or not they have the allele.
- Unlike a coin, the probability of receiving an allele is equal to its allele frequency in the current generation.
- The more common an allele is in this generation, the more likely it is that someone in the next generation will also carry it.
After flipping these coins, we know the number of people in the next generation who carry the allele.