This app allows you to explore how natural selection on phenotypes affects the frequencies of alleles and genotypes in populations.

Genotypes


RRR homozygotes
RSHeterozygotes
SSS homozygotes
2. Initial parent genotype frequenciesGeneration 0 - parent generation at birth, before selection, calculated from initial allele frequencies using Hardy-Weinberg.
p2
2pq
q2
3. Relative fitnesses (wi)Relative fitnesses for the genotypes
Relative fitness of RR
Relative fitness of RS
Relative fitness of SS
4. Freq. x fitnessGenotype frequencies multiplied by relative fitnesses



5. Average population fitness (w̄):Weighted average fitness - sum of the Freq. x fitness values
0.95
6. Genotype frequencies of breeders:Genotype frequencies after selection, of the actual breeders. Calculated as Freq. x fitness divided by w̄


Used to calculate allele frequencies of gametes.




8. Offspring genotype frequencies:Generation 1 - offspring generation at birth, using allele frequencies of gametes, Hardy-Weinberg formulas
Gamete p2
Gamete 2pq
Gamete q2

Each generation serves as the parents for the next generation.

Alleles


pFrequency of the R allele
qFrequency of the S allele
← Used to calculate initial parent genotype frequencies
1. Initial allele frequenciesInitial frequencies of alleles for parents at their birth
Initial frequency of S allele (equal to 1-p)












Used to calculate offspring genotype frequencies
7. Allele frequencies of gametesAllele frequencies of gametes produced by breeders, after selection
Frequency of RR + Frequency of RS/2
Frequency of SS + Frequency of RS/2

Number of generations: