Modeling Evolution in Excel

Slides:



Advertisements
Similar presentations
(MICROSOFT EXCEL). Is a spreadsheet application designed to take advantage of the windows graphical interface MICROSOFT EXCEL.
Advertisements

2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt E XCEL.
EDCI 570 Tom Fortney. Formula Bar Tool Bars Cell Row Numbers Column Letters.
The essentials managers need to know about Excel
MATHEMATICAL MODELING:HARDY-WEINBERG
Answer "What If" Questions
Functions S S T : S P R E A D S H E E T S SST 5 Spreadsheet 5 Function.
Using spreadsheets.
 Microsoft Excel is an electronic spreadsheet.  As with a paper spreadsheet, you can use Excel to organize your data into rows and columns and to perform.
MS Excel Formulas & Functions. What are formulas & functions?  Formulas are instructions that tell Excel how to perform calculations.  Formulas must.
Microsoft Office XP Microsoft Excel
Microsoft Excel. Click on “Start,” then “Microsoft Office Excel.”
Lab 1: Excel as Calculator. Let’s get started! Open a new Excel spreadsheet. If necessary, hit to maximize the sheet. You may need to move the top bar.
Using Microsoft ® Excel Formulas and Functions Start Microsoft ® Excel. Type data into cells as shown.
IT Cadre 2006 USING PARETO CHARTS IN DATA ANALYSIS.
Introduction to Microsoft Excel 2010 Chapter Extension 3.
Hardy-Weinberg Lab. Materials MS Excel ESTEEM module at: - or-
Working With Excel Coin Density. Calculate Density We are going to select the data you need to use. – From the data table, copy and paste the lines that.
Microsoft Excel Computers Week 4.
Spreadsheet Basics.  Letters are used for columns  Numbers are used for rows  Cells are identified by a combination of letters and numbers ex. B4.
MATHEMATICAL MODELING:HARDY-WEINBERG
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms Psych 209.
Using Excel To help with data. Excel is a spreadsheet program that can interface with Word, or PowerPoint A spreadsheet program has cells (little blocks)
Microsoft Excel. Excel specializes in creating and designing spreadsheets, or worksheets Worksheet – area to insert data Workbook – a set of worksheets.
Excel 2010 ® Business and Personal Finances How can Excel 2010 help you plan a project and chart its progress?
Microsoft Excel Used to organize information for calculations.
EDT 608 Unit 3 Using Microsoft Excel Under “Start”, go to “Programs” and select “Microsoft Excel”. Go the next slide to see the Excel Screen template.
Excel Spreadsheet Project 1. Objective: Begin to see the possibilities of Excel How to gather and organize data Entering formula’s Convert data into graphs.
This is the first sheet of a spreadsheet workbook. The workbook begins initially with 3 work sheets. A spreadsheet is made of columns and rows. The intersection.
The Briefest Excel Tutorial You’ll Ever See. Microsoft Excel, or any spreadsheet for that matter, is an incredibly rich calculation program In this most.
Jeff Martin, 1999 Selections To select an entire column, click on the column letter.
Excel CREATING A WORKSHEET AND CHART. Personal Budget Worksheet We will create a personal budget worksheet that shows you income each month and your expenses.
Microsoft Excel. Excel specializes in creating and designing spreadsheets, or worksheets Worksheet – area to insert data Workbook – a set of worksheets.
Copying and Pasting Formulas and Functions Copying and Pasting Formulas and Functions, Slide 1Copyright © 2004, Jim Schwab, University of Texas at Austin.
Using Google Sheets To help with data. Sheets is a spreadsheet program that can interface with Docs, or Slides A spreadsheet program has cells (little.
Spreadsheets: Part I Creating a Worksheet in MS Excel
Microsoft Excel® can be a very powerful tool for studying mathematics. This presentation will show you how to 1.Input values 2.Create a function that uses.
Lesson 4: Working with Formulas and Functions. Learning Objectives After studying this lesson, you will be able to:  Create formulas to calculate values,
Using Sheets To help with data. Sheets is a spreadsheet program that can interface with forms, docs, or presentations. A spreadsheet program has cells.
Using Microsoft® Excel This presentation is designed for Chapter 1, Section 1.2.
MATHEMATICAL MODELING:HARDY- WEINBERG INVESTIGATION 2 BIG IDEA 1.
How to graph your stock project performance vs. the 3 major indexes.
COMPUTER LITERACY NOTES MS-EXCEL. SPREADSHEETS A spreadsheet is a computer equivalent of a paper ledger sheet. Excel allows you to create spreadsheets.
Working with Equations Mini Activity I. Objectives: The Learner will be able to: 1. Apply Currency formatting to cells in Excel 2. Use the AutoSum tool.
Excel Notes Use the handout given.
Lecturer: Dalia Mirghani
MATHEMATICAL MODELING:HARDY-WEINBERG
Created by Stacey Wilson
Part I – Entering Equations
SCIENCE SKILLS : SPREADSHEETS
Excel 2010.
MS-Excel Part 1.
Spreadsheet Basics.
MATHEMATICAL MODELING:HARDY-WEINBERG
SCIENCE SKILLS : SPREADSHEETS
SCIENCE SKILLS : SPREADSHEETS
ITEC 1001 Test 3 Review 11/8/2018.
SCIENCE SKILLS : SPREADSHEETS
Continuation of Microsoft Excel
Basic terms and structures
Technology ICT Core: Spreadsheets.
SCIENCE SKILLS : SPREADSHEETS
Spreadsheets.
Excel 2010.
Lesson 3: Working with Formulas and Functions
Part I – Entering Equations
Intro to Excel CSCI-150.
Introduction to Excel 2007 Part 3: Bar Graphs and Histograms
Exploring Microsoft Excel 2003
Presentation transcript:

Modeling Evolution in Excel Mathematical models and computer simulations are tools used to explore the complexity of biological systems that might otherwise be difficult or impossible to study. You will build a spreadsheet that models how a gene pool changes from one generation to the next. The model is then modified, allowing you to explore parameters that that affect allele frequencies, such as selection and genetic drift.

Modeling Evolution in Excel For the model, the dominant, or p allele, will be denoted by the letter ‘A’; recessive q will be represented by an ‘B’ (the formulas don’t work with lower case letters! ) • Recall that formulas are written just as in math, except with the equals sign in front of the equation. Type formulas, rather than copy and paste. • Fill cells by dragging down from the bottom right of the cell with the formula • To change the population size, modify rows in the middle of the model; formulas will change automatically

Setting up the Parent generation Insert a frequency p into cell D2. Have Excel calculate the frequency of q by entering into cell D3 the following formula: =SUM(1-D2) Check your model: enter a new p frequency to verify that your q changes too, and the two new values = 1

Randomizing Gametes In cell E5, enter the function; +Rand()

Hit ‘return’ and the RAND command will generate a random number between 0 -1 Highlight the cell again, put the cursor after the formula in the formula bar, and hit return again. What happens? Using this function, our model simulates the “random” choosing of gametes from a gene pool.

=IF(RAND()<=D$2, “A”, “B”) Modify the formula using the following function: =IF(RAND()<=D$2, “A”, “B”) A randomly chosen gamete will be entered in the cell Enter this formula for cell F5 too, to generate the second gamete for the offspring

Recalculate by putting the cursor at the end of the formula in the formula bar and clicking the mouse. What happens to the gametes?

Create the F1 generation Copy the formulas in E5 and F5 down for 50 rows to randomly generate the gametes that will form the offspring of the next generation. Click and hold at the bottom right-hand corner of the cell; drag the downward to copy the formula into all cells + Grab the square with your changed cursor icon

It should look like this

Create the genotypes The next step is to put the zygote in cell G5. In cell G5, enter the function = CONCATENATE(E5,F5) copy this formula down as far as you have gametes

Summing the Data Use columns H, I and J to keep track of the quantity of each genotype. Enter the following functions for each column. The function in cell H is =IF(G5=”AA”,1,0) The function in cell J is =IF(G5=”BB”,1,0) In cell I5, enter this function: =IF(G5=”AB”,1,(IF(G5=”BA”,1,0))) Enter labels for the columns you have created

It should look like this:

Calculate the number of offspring of each genotype in a RESULTS table back at the top in cells M, N Use the SUM button or enter a SUM command for each column: ex: =SUM(H6:H55) Find the frequency of each genotype from the sums: =SUM(H55/(H55+I55+J55)) Cells in color are examples – be sure to refer to the cells your data are in

Calculate the number of each allele via the following functions: =COUNTIF(E7:F56, "A") for the A allele =COUNTIF(E7:F56, “B") for the B allele To calculate the allele frequency of the next generation: =M8/(M8+N8) for p and =N8/(M8+N8) for q (again, the cells in red must be customized according to where the gametes are located in your individual spreadsheet) No SUM in these frequency formulas!

Test the Model • Try recalculating a number of times to make sure everything is working as expected Double click on your initial p value cell and hit return to randomize Verify your formula calculations by hand; make sure they add up If you are using different cells than my model, make sure your formulas reflect your cells Do not use SUM in the frequency calculations • Try different values for p Each time, make sure the number of zygotes, alleles, genotypes and frequencies add up correctly