QERM 598: Computational Methods in Quantitative Ecology
(→QERM 598: Computational Methods in Quantitative Ecology (Winter Quarter, 2008)) |
|||
Line 9: | Line 9: | ||
* '''Target Audience:''' First-year [http://depts.washington.edu/qerm/ QERM] students and other qualified students interested in Quantitative Ecology. | * '''Target Audience:''' First-year [http://depts.washington.edu/qerm/ QERM] students and other qualified students interested in Quantitative Ecology. | ||
* '''Prerequisites:''' Statistical Inference (STAT 512), Mathematical biology (AMATH 420) | * '''Prerequisites:''' Statistical Inference (STAT 512), Mathematical biology (AMATH 420) | ||
+ | |||
+ | |||
+ | === The Course === | ||
+ | <img src="/f/SuperMosaic.png" ALIGN=right Width=400> | ||
+ | |||
+ | * This course is designed to introduce students to computational methods in '''Ecological Modeling'''. Commonly used techniques in '''Applied Statistics''' will be covered, as well as some deterministic and stochastic models encountered in '''Mathematical Biology'''. While we cover the mechanics of doing various statistical analyses, the goal of the course is to develop the ability to use computational tools creatively to help visualize and grasp statistical concepts and modeled processes. There will be lots of emphasis on '''simulation''' and '''graphical visualization''', since these are such an important tools in practice but scantily touched upon in other courses. | ||
+ | |||
+ | * Our primary tool will be [http://cran.r-project.org/ '''R''']. | ||
+ | |||
+ | * Each week will consist of a lecture, an R lab and an assignment. One of the practical goals is to create a body of labs, assignments and datasets that can be used as a basis for a continuation of this course in years to come. All of these materials will be stored on this website on [HomeWorksAndLabs this page]. | ||
+ | |||
+ | * There will be a final project involving some combination of analysis and presentation using R. These will be presented on the last day of class, aka: <a href="http://qerm.pbwiki.com/FinalProjects">Annual QERM Miniconference on Computational Methods in Quantitative Ecology </a>. | ||
+ | |||
+ | --- | ||
+ | === Week by Week: Homeworks, Labs, Data and Notes for QERM 598 === | ||
+ | <img src="/f/boxplot.jpg" ALIGN=right Width=400> | ||
+ | <toc> | ||
+ | |||
+ | (For an archived version of this page from last year, see HomeWorksAndLabs2007.) | ||
+ | |||
+ | ==== Week 0: Basic Introduction to R ==== | ||
+ | |||
+ | If you don't have '''R''' already, you can download it from [http://cran.r-project.org this website]. You'll need to download the executable binaries: For Windows users they are [http://cran.r-project.org/bin/windows/base/ here]; for MacOS users they are [http://cran.r-project.org/bin/macosx/ here]. Install '''R''' and run it. | ||
+ | |||
+ | '''R''' is an open source program, which means it's free, efficient and no-frills. It also means that documentation is patchy at best and learning how to use it involves poking around the internet, blindly groping around the internal help file, and, whenever possible, stealing other people's code. | ||
+ | |||
+ | Thankfully, there is lots of expertise at QERM! To start off, download or open the file below, print it out, read it, and walk through the examples. There is a brief assignment at the end of the lab for practice. | ||
+ | |||
+ | * <a href="/f/LabHomework0.txt"> Lab/Homework 0</a> (due Wednesday, January 9). | ||
+ | |||
+ | ==== Week 1: Distributions and the Central Limit Theorem ==== | ||
+ | Obtaining quantiles and p-values from distributions. Plotting cdfs and pdfs. Generating random data. Introducing plotting functions and loops. Illustrating the Central Limit Theorem numerically. | ||
+ | |||
+ | * <a href="/f/Week01_DistributionsAndCLT.r"> In-class lecture/lab 1</a> | ||
+ | * <a href="/f/Homework01.pdf"> Homework 1</a> (due Wednesday, January 16). | ||
+ | |||
+ | |||
+ | ==== Week 2: Comparing two samples: Monte Carlo and t-tests ==== | ||
+ | |||
+ | * Lecture presentation on comparing two samples of ant-size data: <a href="/f/TwoSamples.pdf">TwoSamples.pdf</a> | ||
+ | * R Lab on loading data and comparing samples: <a href="/f/Week02_TwoSampleComparison.r">Week02_TwoSampleComparison.r</a> | ||
+ | * Homework: <a href="/f/HW2.pdf">HW2.pdf</a> | ||
+ | |||
+ | You will need to download the following data files to perform the lab and the homeworks. | ||
+ | * Single column of weight data: <a href="/f/Weight.dat">Weight.dat</a>: | ||
+ | * Comma-delimited data file: <a href="/f/ants.csv"> ants.csv</a> | ||
+ | * Space-delimited data file: <a href="/f/ants.dat"> ants.dat</a> | ||
+ | You will also need to read Mike Keim's <a href="/f/NoteOnNonparametricTests.pdf"> notes on non-parametric tests</a>. | ||
+ | |||
+ | |||
+ | ==== Week 3: Introduction to Analysis of Variance ==== | ||
+ | |||
+ | * Lecture presentation: <a href="/f/ANOVA.pdf">ANOVA.pdf</a> | ||
+ | * In-class R lab: <a href="/f/Week03_IntroToAnova.r">Week03_IntroToANOVA.r</a> | ||
+ | * Homework: <a href="/f/HW3.pdf">HW3.pdf</a> | ||
+ | * Sea Lion data for homework: <a href="/f/SeaLionBirth.dat">SeaLionBirth.dat</a> | ||
+ | * Math Facts for ANOVA: <a href="/f/MathFacts.pdf">MathFacts.pdf</a> | ||
+ | |||
+ | |||
+ | ==== Week 4: Linear Regression ==== | ||
+ | |||
+ | * Lecture presentation: <a href="/f/LinearRegression.pdf">LinearRegression.pdf</a> | ||
+ | * In-class R lab: <a href="/f/Week04_LinearRegression.r">Week04_LinearRegression.r</a> | ||
+ | * Data files for lab: <a href="/f/Sleep.dat">Sleep.dat</a> and <a href="/f/PieSleep.dat">PieSleep.dat</a> | ||
+ | * Homework: <a href="/f/HW4.pdf">HW4.pdf</a> | ||
+ | * Sea Lion inter-parturition data for homework: <a href="/f/SealionIPP.dat">SealionIPP.dat</a> | ||
+ | |||
+ | |||
+ | ==== Week 5: Chi-squared Contingency Tables ==== | ||
+ | |||
+ | * Lecture presentation: <a href="/f/Chi2.pdf">Chi2.pdf</a> | ||
+ | * In-class R lab: <a href="/f/Week05_ChiSquared.r">Week05_ChiSquared.r</a> | ||
+ | * Data files for lab: <a href="/f/Clams.csv">Clams.csv</a> and <a href="/f/KurilBirths.csv">KurilBirths.csv</a> | ||
+ | * Homework: <a href="/f/HW5.pdf">HW5.pdf</a> | ||
+ | There is, by the way, a great explanation/derivation of the theory behind Chi-Squared contingency tests and other applications of the central limit theorem <a href="http://www.cefe.cnrs.fr/BIOM/pdf/mt2004-part2.pdf"> here</a>. | ||
+ | |||
+ | ==== Week 6: Introduction to Stochastic Modelling ==== | ||
+ | |||
+ | * Lecture presentation: <a href="/f/StochasticModelling.pdf">StochasticModelling.pdf</a> | ||
+ | * In-class R codes: <a href="/f/MarkovMatrix.r">MarkovMatrix.r</a> and <a href="/f/RandomWalks.r">RandomWalks.r</a> | ||
+ | * Homework: <a href="/f/HW6.pdf">HW6.pdf</a> | ||
+ | |||
+ | ==== Week 7: Population Dynamics Models and MCMC ==== | ||
+ | |||
+ | * Lecture presentation: <a href="/f/Week7_Ian.pdf">Week7_Ian.pdf</a> | ||
+ | * In-class R codes: <a href="/f/fibo.r">fibo.r</a> | ||
+ | * No homework | ||
+ | |||
+ | ==== Week 8: Project Discussions ==== | ||
+ | |||
+ | * a super-brief intro to times series: <a href="/f/SuperBriefIntroToTimeSeries.r">SuperBriefIntroToTimeSeries.r</a> | ||
+ | |||
+ | |||
+ | ==== Week 9: Fitting models and optimization ==== | ||
+ | |||
+ | * Lecture: <a href="/f/Fitting.pdf">Fitting.pdf</a> | ||
+ | * Cassava disease data for in-class lab: <a href="/f/CassavaDisease.csv">CassavaDisease.csv</a> | ||
+ | * White fly data for in-class lab: <a href="/f/WhiteFly.csv">WhiteFly.csv</a> | ||
+ | * Rough R-code for Cassava analysis: <a href="/f/CassavaCode.r">CassavaCode.r</a> | ||
+ | |||
+ | ==== Week 10: Final project presentations ==== | ||
+ | |||
+ | * Please visit the FinalProjects page to browse through final project presentations and R code. |
Revision as of 22:12, 20 March 2008
Computational Methods in Quantitative Ecology (Winter Quarter, 2008)
Overview
- Location: Odegaard Undergraduate Library Computer Lab 102
- Times: Wednesday - 1:30-3:30
- Instructor: Eli Gurarie with the possible participation of guest lecturers, under the benevolent auspices of Dr. Tilmann Gneiting.
- Office Hours: all day Wednesday in Loew 328 and by appointment.
- Target Audience: First-year QERM students and other qualified students interested in Quantitative Ecology.
- Prerequisites: Statistical Inference (STAT 512), Mathematical biology (AMATH 420)
The Course
<img src="/f/SuperMosaic.png" ALIGN=right Width=400>
- This course is designed to introduce students to computational methods in Ecological Modeling. Commonly used techniques in Applied Statistics will be covered, as well as some deterministic and stochastic models encountered in Mathematical Biology. While we cover the mechanics of doing various statistical analyses, the goal of the course is to develop the ability to use computational tools creatively to help visualize and grasp statistical concepts and modeled processes. There will be lots of emphasis on simulation and graphical visualization, since these are such an important tools in practice but scantily touched upon in other courses.
- Our primary tool will be R.
- Each week will consist of a lecture, an R lab and an assignment. One of the practical goals is to create a body of labs, assignments and datasets that can be used as a basis for a continuation of this course in years to come. All of these materials will be stored on this website on [HomeWorksAndLabs this page].
- There will be a final project involving some combination of analysis and presentation using R. These will be presented on the last day of class, aka: <a href="http://qerm.pbwiki.com/FinalProjects">Annual QERM Miniconference on Computational Methods in Quantitative Ecology </a>.
---
Week by Week: Homeworks, Labs, Data and Notes for QERM 598
<img src="/f/boxplot.jpg" ALIGN=right Width=400> <toc>
(For an archived version of this page from last year, see HomeWorksAndLabs2007.)
Week 0: Basic Introduction to R
If you don't have R already, you can download it from this website. You'll need to download the executable binaries: For Windows users they are here; for MacOS users they are here. Install R and run it.
R is an open source program, which means it's free, efficient and no-frills. It also means that documentation is patchy at best and learning how to use it involves poking around the internet, blindly groping around the internal help file, and, whenever possible, stealing other people's code.
Thankfully, there is lots of expertise at QERM! To start off, download or open the file below, print it out, read it, and walk through the examples. There is a brief assignment at the end of the lab for practice.
- <a href="/f/LabHomework0.txt"> Lab/Homework 0</a> (due Wednesday, January 9).
Week 1: Distributions and the Central Limit Theorem
Obtaining quantiles and p-values from distributions. Plotting cdfs and pdfs. Generating random data. Introducing plotting functions and loops. Illustrating the Central Limit Theorem numerically.
- <a href="/f/Week01_DistributionsAndCLT.r"> In-class lecture/lab 1</a>
- <a href="/f/Homework01.pdf"> Homework 1</a> (due Wednesday, January 16).
Week 2: Comparing two samples: Monte Carlo and t-tests
- Lecture presentation on comparing two samples of ant-size data: <a href="/f/TwoSamples.pdf">TwoSamples.pdf</a>
- R Lab on loading data and comparing samples: <a href="/f/Week02_TwoSampleComparison.r">Week02_TwoSampleComparison.r</a>
- Homework: <a href="/f/HW2.pdf">HW2.pdf</a>
You will need to download the following data files to perform the lab and the homeworks.
- Single column of weight data: <a href="/f/Weight.dat">Weight.dat</a>:
- Comma-delimited data file: <a href="/f/ants.csv"> ants.csv</a>
- Space-delimited data file: <a href="/f/ants.dat"> ants.dat</a>
You will also need to read Mike Keim's <a href="/f/NoteOnNonparametricTests.pdf"> notes on non-parametric tests</a>.
Week 3: Introduction to Analysis of Variance
- Lecture presentation: <a href="/f/ANOVA.pdf">ANOVA.pdf</a>
- In-class R lab: <a href="/f/Week03_IntroToAnova.r">Week03_IntroToANOVA.r</a>
- Homework: <a href="/f/HW3.pdf">HW3.pdf</a>
- Sea Lion data for homework: <a href="/f/SeaLionBirth.dat">SeaLionBirth.dat</a>
- Math Facts for ANOVA: <a href="/f/MathFacts.pdf">MathFacts.pdf</a>
Week 4: Linear Regression
- Lecture presentation: <a href="/f/LinearRegression.pdf">LinearRegression.pdf</a>
- In-class R lab: <a href="/f/Week04_LinearRegression.r">Week04_LinearRegression.r</a>
- Data files for lab: <a href="/f/Sleep.dat">Sleep.dat</a> and <a href="/f/PieSleep.dat">PieSleep.dat</a>
- Homework: <a href="/f/HW4.pdf">HW4.pdf</a>
- Sea Lion inter-parturition data for homework: <a href="/f/SealionIPP.dat">SealionIPP.dat</a>
Week 5: Chi-squared Contingency Tables
- Lecture presentation: <a href="/f/Chi2.pdf">Chi2.pdf</a>
- In-class R lab: <a href="/f/Week05_ChiSquared.r">Week05_ChiSquared.r</a>
- Data files for lab: <a href="/f/Clams.csv">Clams.csv</a> and <a href="/f/KurilBirths.csv">KurilBirths.csv</a>
- Homework: <a href="/f/HW5.pdf">HW5.pdf</a>
There is, by the way, a great explanation/derivation of the theory behind Chi-Squared contingency tests and other applications of the central limit theorem <a href="http://www.cefe.cnrs.fr/BIOM/pdf/mt2004-part2.pdf"> here</a>.
Week 6: Introduction to Stochastic Modelling
- Lecture presentation: <a href="/f/StochasticModelling.pdf">StochasticModelling.pdf</a>
- In-class R codes: <a href="/f/MarkovMatrix.r">MarkovMatrix.r</a> and <a href="/f/RandomWalks.r">RandomWalks.r</a>
- Homework: <a href="/f/HW6.pdf">HW6.pdf</a>
Week 7: Population Dynamics Models and MCMC
- Lecture presentation: <a href="/f/Week7_Ian.pdf">Week7_Ian.pdf</a>
- In-class R codes: <a href="/f/fibo.r">fibo.r</a>
- No homework
Week 8: Project Discussions
- a super-brief intro to times series: <a href="/f/SuperBriefIntroToTimeSeries.r">SuperBriefIntroToTimeSeries.r</a>
Week 9: Fitting models and optimization
- Lecture: <a href="/f/Fitting.pdf">Fitting.pdf</a>
- Cassava disease data for in-class lab: <a href="/f/CassavaDisease.csv">CassavaDisease.csv</a>
- White fly data for in-class lab: <a href="/f/WhiteFly.csv">WhiteFly.csv</a>
- Rough R-code for Cassava analysis: <a href="/f/CassavaCode.r">CassavaCode.r</a>
Week 10: Final project presentations
- Please visit the FinalProjects page to browse through final project presentations and R code.