You are on page 1of 10

Read the accompanying word document "Evolution with Hardy-Weinberg Equation.

doc"
Recap
A is dominant, a is recessive
Gene frequency for A is p, for a is q
Relative proportion of AA, Aa and aa genotypes are p^2 (p squared), 2pq and q^2 (q squared)
p^2 + 2pq + q^2 = 1
Fitness coefficient is s
A is completely dominant. Fitness for AA and Aa are 1+s, fitness for aa is 1
Instead of the relative proportion being p^2, 2pq, q^2, after selection, the relative proportions are p^2(1+s), 2pq(1+s), q^2
p(new) can be calculated by (2 x number of AA individuals + number of Aa individuals) / 2(total number of individuals) [2 x total, b/c each ind'l has 2 all.]
The new population after selection is now p^2(1+s) + 2pq(1+s) + q^2
So, p(new) = {2p^2(1+s) + 2pq(1+s)} / 2{p^2(1+s) + 2pq(1+s) + q^2}
This is surprisingly easy to calculate in excel
Now look at "How the sheet works" page, which explains how the spreadsheet works.
Main worksheet can be manipulated by changing the values of s and starting p
For example, try changing s to a different value
You can also add rows at the bottom to simulate more generations. Select the cells and use Edit->Fill->Down to fill the cells with the formulae.

03 0.97 1 0.97 New gene frequencies Phenotypes new p new q p^2+2pq q^2 1 0. Selection value uses the $B$6 notation.1 <-.99 0.98 0.02 0.99 0.01 0.01 0. Values for subsequent generations are from calculated values in the preceeding rows (see yellow and blue shaded cells) This column shows the generation number … 0.01 <-. This is what's known as the absolute reference in excel.98 1 0.01 0.01 0. The first value is defined by the value set in cell B7 (by using the formula "=$B$7" in cell B11).01 0 0. This is what's known as the absolute reference in excel.03 0.01 0.99 0.01 0 0.01 0.03 0.99 0.02 0.98 0.This sheet describes how this spreadsheet works The pertinent formula is p(new) = {2p^2(1+s) + 2pq(1+s)} / 2{p^2(1+s) + 2pq(1+s) + q^2} 2 cancels to give {p^2(1+s) + pq(1+s)} / (p^2(1+s) + 2pq(1+s) + q^2) T = p^2(1+s) + 2pq(1+s) + q^2 s= starting p = 0.1.01 0.97 0. Selection value uses the $B$6 notation. This is the advantage the dominant form has over the recessive form.01 0.99 0.02 .98 0.02 0.02 0 0.99 0.98 p^2(1+s) T 0.01 0.97 1 0.99 0.99 0. If it's 0.99 0.Here we define the selection coefficient.98 1 0.97 Proportion of recessive phenotype Proportion of dominant phenotype 1-p {p^2(1+s) + pq(1+s)} / T T is the sum of p^2(1+s) + 2pq(1+s) + q^2 Simply calculated from q Calculates the gene frequency from the heterozygous Aa form after selection.01 0. then the advantage is 10%. 0.02 0.01 means it starts at 1% of the gene pool.02 0.01 0.01 0 0.02 0.98 0.98 1 0.02 After selection pq(1+s) q^2 0 0. pq is a calculated value q is a calculated value given by 1-p 1 This is the column for the gene frequency p. 0.01 0.01 0 0.01 0.97 0.01 0. Calculates the gene frequency from the homozygous AA form after selection. generations p 1 2 3 4 5 6 Before selection q pq 0.Here we define the starting gene frequency for the dominant allele A.98 0.

If it's 0.1. . then the advantage is 10%.

02 0.96 0.06 0.99 0.02 0 0.17 0.01 0.01 0.14 0.96 0.88 0.08 0.8 0.11 0.13 0.89 0.03 0.03 0.02 0.81 0.02 0.84 1.72 0.05 0.88 1.89 1.74 1.16 0.8 1.83 0.04 0.01 0.11 0.75 1.95 0.12 0.07 0. 0.19 0.86 0.04 0.78 1.77 1.This is the same sheet as "How the sheet works.94 0.02 0.86 0.1 0.01 0.07 0.19 0.06 0.02 0.8 0.01 0.02 0 0.98 0.02 0.85 0.98 0.01 0.88 0.94 0.09 0.01 0.04 0.03 0 0.92 0.06 0.96 0.17 0.92 0.93 0.04 0.03 0.04 0.94 0.92 0.08 0.92 0.02 0.97 0.83 0.05 0.07 0.78 0.96 0.96 1 0.02 0.06 0 0.97 0.72 1.04 0 0.14 0.99 0.93 0.98 0. then the advantage is 10%.02 0.95 0.97 0.99 0.12 0.06 0.01 0.Here we define the starting gene frequency for the dominant allele A.08 0.02 0.01 0.13 0.94 0.02 0 0.05 0.95 1 0.15 0.04 0.14 0.99 0.02 0 0.08 0.98 0.03 0.15 After selection pq(1+s) q^2 0 0.9 1.98 0.03 0.95 0.02 0 0.83 0.06 0.04 0.14 0.03 0.96 0.34 0.02 0.99 0.11 0.06 0.96 0.11 0.08 0.01 0.2 0.03 0 0.81 p^2(1+s) 0.01 0.07 0.66 .98 1 0.02 0.06 0 0.03 0.02 0.13 0.86 0.03 0.85 1.14 0.28 0.97 0.05 0.92 1.03 0.01 0.04 0.97 0.02 0. The graph on the next sheet plots p vs generations generations p 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 Before selection q pq 0.81 0.97 0.95 0.74 0.03 0.02 0.13 0.01 0.05 0.1 0.84 0.1 0.25 0." except it shows the first 100 generations The pertinent formula is p(new) = {2p^2(1+s) + 2pq(1+s)} / 2{p^2(1+s) + 2pq(1+s) + q^2} 2 cancels to give {p^2(1+s) + pq(1+s)} / (p^2(1+s) + 2pq(1+s) + q^2) T = p^2(1+s) + 2pq(1+s) + q^2 s= 0.23 0.87 0.96 0.03 0.92 0.12 0.04 0.11 0.98 0.07 0.07 0.97 0.02 0.12 0.01 0.98 0.86 1.98 0.Here we define the selection coefficient.08 0.84 0.09 0.01 0.02 0.92 1.15 0.99 0.7 1.01 0.03 0. This is the advantage the dominant form has over the recessive form.01 0.01 0.03 0.77 0.07 0.03 0.02 0.03 0.95 0.01 0.97 1 0.7 0.84 0.97 0.93 0.96 0. If it's 0.15 0.81 1.95 0. starting p = 0.03 0.13 0.02 0.03 0.1 0.08 0.01 0.1 <-.01 0.01 0.2 0.98 1 0.01 0.91 0.95 1.87 0.06 0.98 0.89 0.98 0.97 1 0.04 0 0.07 0.75 0.01 0.94 1.08 0.97 1 0.93 0.01 0.96 1 0.01 0.01 0.04 0.68 0.85 0.01 0 0.03 0 0.93 1.97 0.91 0.01 0 0.03 0.98 0.01 0.97 0.01 0 0.15 0.09 0.09 0.19 0.9 0.02 0.87 1.3 0.89 0.89 0.03 0.01 0.1.02 0.87 0.11 0.01 means it starts at 1% of the gene pool.05 0 0.02 0.16 0.05 0 0.03 0.94 0.9 0.04 0.01 <-.26 0.06 0.93 0.99 0.68 1.05 0.95 1.05 0.03 0.11 0.01 0.97 1 0.94 1.16 0.05 0.89 0.07 0.88 0.66 New gene frequencies Phenotypes new p new q p^2+2pq q^2 1 0.03 0.04 0.95 0.91 1.98 0.98 0.03 0.02 0.17 T 0.32 0.12 0.97 0.02 0.11 0.03 0.01 0 0.85 0.02 0.83 1.91 0.98 1 0.9 0.1 0.17 0.02 0.02 0.09 0.97 0.02 0.02 0 0.01 0.08 0.01 0.92 0.01 0.08 0.16 0.09 0.04 0 0.99 0.22 0.99 0.05 0.94 0.02 0.01 0.14 0.05 0 0.1 0.13 0.

83 0.32 0.54 0.15 0.45 0.09 1.24 0.35 0.23 0.53 0.06 1.3 0.45 0.27 0.41 0.79 0.25 0.23 0.19 0.39 0.47 0.23 0.68 0.55 0.69 0.69 0.57 0.07 1.66 0.25 0.31 0.43 0.14 0.06 1.07 1.09 1.36 0.2 0.08 1.25 0.69 0.09 1.05 0.25 0.42 0.47 0.26 0.86 0.39 0.19 0.8 0.13 0.14 0.2 0.19 0.37 0.04 1.2 0.49 0.08 1.43 0.24 0.68 0.36 0.27 0.73 0.22 0.21 0.53 0.56 0.34 0.28 0.65 0.65 0.27 0.37 0.3 0.24 0.27 0.14 0.26 0.25 0.89 0.53 0.24 0.08 1.71 0.21 0.34 0.05 1.21 0.4 0.84 0.24 0.89 0.38 0.43 0.5 0.24 0.58 0.09 0.65 0.08 1.2 0.67 0.25 0.3 0.59 0.21 0.11 0.51 0.33 0.34 0.08 1.9 0.75 0.63 0.2 0.16 0.57 0.33 0.24 0.56 0.11 0.49 0.51 0.05 1.33 0.07 1.61 0.08 1.9 0.66 0.28 0.08 0.17 0.71 0.85 0.23 0.11 0.71 0.06 1.79 0.41 0.25 0.21 0.61 0.54 0.47 0.57 0.79 0.35 0.25 0.25 0.17 0.09 1.67 0.43 0.67 0.36 0.4 0.58 0.25 0.88 0.19 0.23 0.74 0.2 0.41 0.47 0.32 0.15 0.27 0.59 0.17 0.27 0.26 0.04 1.25 0.21 0.09 1.39 0.69 0.64 0.06 1.31 0.49 0.38 0.11 0.05 1.3 0.08 1.13 0.09 1.62 0.45 0.62 0.44 0.2 0.22 0.11 0.27 0.5 0.08 1.25 0.04 1.09 0.48 0.34 0.47 0.24 0.09 0.56 0.35 0.21 0.18 0.41 0.56 0.68 0.07 1.63 0.59 0.24 0.39 0.52 0.61 0.32 0.29 0.24 0.43 0.5 0.04 1.23 0.78 0.45 0.3 0.45 0.33 0.64 0.61 0.47 0.36 0.33 0.46 0.11 0.07 1.53 0.21 0.59 0.22 0.31 0.33 0.18 0.13 0.25 0.23 0.27 0.67 0.09 1.17 0.24 0.75 0.26 0.82 0.22 0.23 0.27 0.35 0.1 0.36 0.22 0.54 0.47 0.33 0.52 0.09 1.41 0.27 0.23 0.16 0.09 .52 0.39 0.49 0.24 0.6 0.24 0.61 0.86 0.67 0.17 0.35 0.25 0.23 0.31 0.24 0.5 0.7 0.09 1.53 0.5 0.28 0.42 0.27 0.08 0.27 0.26 0.04 1.84 0.05 1.21 0.67 0.36 0.39 0.22 0.08 1.64 0.89 0.28 0.32 0.46 0.34 0.49 0.18 0.24 0.09 1.18 0.56 0.4 0.25 0.14 0.22 0.51 0.33 0.78 0.26 0.23 0.62 0.49 0.53 0.91 0.72 0.39 0.04 0.65 0.21 0.74 0.15 0.24 0.16 0.1 0.12 0.41 0.64 0.19 0.26 0.36 0.4 0.5 0.65 0.07 1.16 0.51 0.27 0.68 0.51 0.33 0.43 0.26 0.37 0.75 0.41 0.6 0.38 0.6 0.72 0.44 0.23 0.49 0.24 0.29 0.25 0.6 0.7 0.1 0.63 0.27 0.37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 0.31 0.27 0.37 0.25 0.38 0.66 0.78 0.61 0.65 0.21 0.58 0.22 0.19 0.69 0.63 0.52 0.17 0.12 0.4 0.09 0.51 0.25 0.64 0.55 0.55 0.46 0.13 0.55 0.56 0.74 0.39 0.81 0.5 0.38 0.87 0.87 0.28 0.09 1.59 0.08 1.24 0.09 1.8 0.18 0.64 0.64 0.76 0.48 0.57 0.05 1.07 1.55 0.29 0.62 0.76 0.6 0.25 0.72 0.6 0.26 0.3 0.62 0.37 0.27 0.32 0.27 0.48 0.7 0.24 0.38 0.8 0.25 0.31 0.26 0.05 0.2 0.06 1.29 0.91 0.57 0.07 0.26 0.25 0.1 0.54 0.25 0.25 0.14 0.7 0.1 0.42 0.61 0.54 0.46 0.09 1.4 0.27 0.76 0.08 1.16 0.11 0.52 0.58 0.5 0.67 0.06 1.27 0.22 0.21 0.44 0.39 0.24 0.23 0.13 0.35 0.44 0.35 0.7 0.22 0.45 0.43 0.26 0.12 0.45 0.06 0.44 0.3 0.48 0.22 0.44 0.

09 1.28 0.55 0.22 0.2 0.66 0.27 0.71 0.26 0.75 0.07 0.23 0.74 0.27 0.93 0.05 0.76 0.1 0.61 0.62 0.72 0.6 0.94 0.2 0.29 0.25 0.75 0.07 0.19 0.25 0.23 0.08 0.23 0.06 0.09 1.07 0.09 1.06 0.72 0.21 0.78 0.09 1.2 0.28 0.09 1.77 0.26 0.23 0.57 0.25 0.09 1.29 0.63 0.93 0.21 0.22 0.19 0.71 0.2 0.06 0.06 0.95 0.22 0.05 1.06 0.08 0.77 0.22 0.19 0.58 0.05 0.07 0.25 0.17 0.22 0.26 0.95 0.73 0.05 .07 0.2 0.76 0.09 1.06 0.94 0.77 0.17 0.75 0.2 0.09 1.75 0.95 0.92 0.06 0.23 0.23 0.09 1.21 0.74 0.08 0.26 0.09 1.06 0.75 0.19 0.78 0.24 0.09 0.29 0.27 0.19 0.07 0.63 0.09 1.28 0.09 1.24 0.18 0.72 0.25 0.94 0.18 0.6 0.21 0.06 0.19 0.76 0.75 0.94 0.2 0.56 0.09 1.73 0.76 0.19 0.09 0.25 0.93 0.94 0.22 0.24 0.22 0.09 1.23 0.05 0.05 0.08 0.21 0.73 0.08 0.05 0.65 0.92 0.73 0.05 0.95 0.74 0.59 0.64 0.08 0.07 0.09 1.18 0.92 0.65 0.77 0.21 0.67 0.19 0.28 0.77 0.72 0.27 0.91 0.74 0.93 0.56 0.24 0.09 1.06 0.18 0.77 0.71 0.2 0.84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 0.07 0.78 0.23 0.

.hen the advantage is 10%.

.

.

6 0.9 Column B 0.Gene Frequency change under selection 1 0.8 Column K 0.7 p 0.1 0 0 20 40 60 Generations 80 100 .4 0.3 0.5 0.2 0.