Begin by opening a new spreadsheet file. Following the Hardy-Weinberg equation where p is the frequency of a dominant allele A in a population, and q is defined as the frequency of a recessive allele B, input frequency p of allele A into cell B2, and frequency q of allele B into cell B3.
Assign the value 0.5 to cell C2.
Following the 1 – p = q equation, enter the formula “= 1 – C2” into cell C3 to calculate the frequency q of allele B. NOTE: Cells C2 and C3 will represent the gene pool used in the next few steps.
Label cells E2 and F2 “Allele 1” and “Allele 2” respectively, then enter the RAND code for random formula into cell E3. =IF (RAND()
Select cell E3 and drag the bottom right corner of the cell down to E27 to duplicate the formula into 25 cells, creating an allele for the other offspring, and enter the same formula that was used in cell E3 into cell F3.
Add a third column of data starting with the description “Genotype” in cell G2, and add the CONCATENATE function to cell G3 to combine the two randomly generated alleles and to create a genotype.
Drag this formula down for 25 cells and label cells H2, I2, and J2 AA, AB, and BB respectively.
Then, input one IF function as shown here into cells H3, I3, and J3. Drag the formulas down for 25 rows per column. The formulas will return a 1 if the genotype in this row matches the genotype in the header row, and a 0 if the genotype in this row is one of the other two genotypes. H3: = IF (G3=”AA”,1,0) I3: =IF(OR(G3=”AB,G3=”BA”),1,0) J3: =IF(G3=”BB”,1,0)
Then, label cell D28 as “SUM”, add the formula to cell H28, and drag the formula to cells I28 and J28 to get the total number of each genotype.
Next, label cells H30 and J30 “A” and “B” respectively and label cell D31 “Number of alleles”.
Add code to cells H31 and J31 to obtain the total number of alleles in the simulated generation, which is two times the frequency of the respective homozygous genotype, plus the frequency of the heterozygous genotype.
Then, label cell E32 “Next gen allele frequency” and add code to cells H32 and J32 to obtain the ratio of alleles in the next generation.
Using the gene frequencies generated in the mathematical model you just built, adjust the gene pool values in cells C2 and C3 to those from H32 and J32, and run 10 more generations, updating the gene pool with the resulting allele frequency each time.
Record the ratio of the two variables at each time point in the spreadsheet on the table, and create a line graph to see how a small population changes over time. Hypotheses: The experimental hypothesis in this study is that smaller populations will deviate more from the Hardy-Weinberg expected frequencies of the alleles than will larger populations, because smaller populations are more susceptible to genetic drift. The null hypothesis is that the allele frequencies within the populations will not differ from the Hardy-Weinberg equilibrium equation expected frequencies, meaning that the allele frequencies will be the same from generation to generation.
Set the frequency of gene A to 0.3 and gene B to 0.7, and run the model 10 more times, recording the ratio of the genes in the next generation in the table after each run.
Then, drag the formulas for the cells further down to alter the model to include 100 zygotes and run the model another 10 times.
After the last run, save all of the working data to a personal storage device and exit the spreadsheet program.