Thanks,Marcel Salathé @marcelsalathe
[no image]
Setting up: The "Hello, nature" example
Our first line of JavaScript
Calculating allele frequencies from genotype frequencies
Calculating genotype frequencies in the next generation
The final Hardy Weinberg code
Generating random numbers
Coin tossing example
Testing the prediction that 10 coin tosses will yield 8 heads and 2 tails 4.39% of the time
Genetic Drift
Genetic Drift Visualized
Genetic Drift: The Effect of Population Size
Effective population size, with a bottleneck of N=10 every 10th generation
Effective population size as a function of the sex ratio
Mutation of the genetic code
Genetic variance: population size and mutation rate
A spatial model of inbreeding
Evolution by natural selection
Directional selection
Balancing selection
Disruptive selection
Frequency-dependent selection: coevolution
Epidemics: a spatial simulation
Epidemics: a spatial simulation (small world)
Evolution of Cooperation, Part 1: Cooperators vs Defectors
Evolution of Cooperation, Part 2: Introducing Tit-for-Tat
Evolution of Cooperation, Part 3: Introducing Win-Stay, Lose-Shift