Learning Objectives
This document describes the learning objectives for BIO144: Data Analysis in Biology.
The learning objectives describe what you must be able to do, and so what could appear in the exam. As well as the learning objectives, the content of each chapter of the course book is “must know”.
Course-level learning objectives
After successfully completing BIO144, students will be able to:
- Translate a biological question into a statistical model by identifying the response variable, the explanatory variables and the structure of the data.
- Choose an appropriate model (linear model, generalised linear model, mixed model or ordination) for a given question, type of response variable and study design, and justify the choice.
- Explain degrees of freedom, calculate them for the models used in the course, and work out the residual degrees of freedom expected from a planned study design and model before the data are collected.
- Use R and RStudio to import, explore, manipulate and visualise biological data in a reproducible script.
- Fit these models in R and obtain parameter estimates, their uncertainty, predictions and hypothesis tests.
- Use diagnostics to evaluate whether model assumptions are reasonably met, and judge the consequences of violations for the conclusions.
- Interpret model results quantitatively and in biological terms, focusing on effect sizes and their uncertainty rather than on p-values alone.
- Evaluate whether an analysis supports a stated biological claim, recognising limitations such as correlation versus causation, extrapolation and pseudoreplication.
- Recognise clear, correct and complete reporting of statistical results in text, tables and figures.
Unit-level learning objectives
Introduction (Chapter 1)
After this unit, students will be able to:
- Describe how the lectures, course book, practicals, homework, weekly quizzes and final exam of BIO144 fit together. (not examined)
- Identify the prior knowledge and skills assumed at the start of the course, and where to revise them. (not examined)
- Describe the steps of a data analysis workflow, from formulating a question to communicating the answer, and explain why the presentation and analysis should be planned before the data are collected.
- Describe the four principles for high-quality data analysis: a focused question with planned sampling and analysis; a model that accounts for the distribution and dependence of the data; emphasis on effect sizes and biological relevance; and reporting that makes the research reproducible.
- Explain the advantages of doing a data analysis with a script in R, such as being repeatable, readable and sharable.
- Distinguish appropriate from inappropriate uses of AI assistants in learning data analysis and in BIO144 assessments.
- Recognise and use the course notation for samples, populations and linear models (e.g. the sample mean, sample and population standard deviation, parameter estimates and residuals).
R and RStudio (Chapter 2)
After this unit, students will be able to:
- Explain the purpose of the script, the console and the environment in RStudio.
- Write and run R code in a script, using objects, functions and arguments correctly.
- Install and load add-on packages, and explain the difference between installing and loading a package.
- Use R’s help system and other resources to find out how a function works and what arguments it takes.
- Import a dataset into R and inspect its structure, including the variable names and variable types.
- Convert variables to factors, and set or change the reference level of a categorical variable.
- Manipulate data in R: select variables, filter observations, create new variables, and calculate summaries by group.
- Produce exploratory graphs (e.g. histograms, scatterplots, box plots) to inspect distributions of and relationships between variables.
- Identify and fix common errors in R code (e.g. typos, misspelled variable names, packages not loaded).
- Organise an analysis as a script within an RStudio project, with meaningful names for datasets and model objects, that reproduces all results when run from top to bottom.
Simple linear regression – Part 1 (Chapter 3)
After this unit, students will be able to:
- Explain when simple linear regression is an appropriate tool for a biological question.
- Write the simple linear regression model as an equation, and identify the intercept, slope and error term.
- Explain the least squares principle by which the intercept and slope are estimated.
- Calculate fitted values and residuals from a regression equation and data.
- Explain what degrees of freedom are: the number of independent pieces of information left for estimating variation after the model parameters have been estimated, so that the residual degrees of freedom equal the number of observations minus the number of estimated parameters.
- Explain why the residual variance of a simple linear regression is estimated by dividing the residual sum of squares by n − 2, and calculate the residual degrees of freedom.
- Explain why few residual degrees of freedom are a problem: imprecise estimates of the residual variance, larger critical t-values and so wider confidence intervals and less power, a risk of fitting noise, and difficulty checking assumptions.
- Describe how the error term is modelled: normally distributed, with mean zero and constant variance.
- State the assumptions of simple linear regression.
- Use R to fit a simple linear regression with
lm()and obtain the estimated intercept and slope. - Use diagnostic plots to judge whether the assumptions of a linear regression are reasonably met, and identify which assumption is violated if not.
- Explain leverage and Cook’s distance, and identify influential observations.
- Identify common problems in a regression (e.g. non-linearity, non-constant variance, influential observations) and select an appropriate remedy (e.g. a transformation).
- Interpret the coefficients of a regression with a log-transformed response and/or explanatory variable (e.g. as proportional or multiplicative effects).
- Explain what makes a model linear (linear in its parameters), so that models with transformed variables can still be fitted with
lm().
Simple linear regression – Part 2 (Chapter 4)
After this unit, students will be able to:
- Explain what the correlation coefficient (r) and R² each measure, and how they differ.
- Explain R² as the proportion of the total sum of squares explained by the model, and calculate it from the sums of squares.
- Use R to obtain r and R² for a simple linear regression, and interpret their values.
- Identify the null hypothesis tested by the t-test of a regression slope.
- Explain what a p-value is, and calculate the t-statistic of a slope as its estimate divided by its standard error.
- Explain how the number of degrees of freedom changes the t-distribution, and why fewer residual degrees of freedom give wider confidence intervals and larger p-values for the same t-statistic.
- Use R to test whether the estimated slope is compatible with zero or another specified value, and draw the appropriate conclusion.
- Use the residual degrees of freedom (n − 2) to obtain the critical t-value for a confidence interval and the p-value for a slope, and identify the degrees of freedom in R output.
- Use R to obtain a 95% confidence interval for the slope and intercept, and interpret it.
- Distinguish a confidence band from a prediction band, and explain why the prediction band is wider.
- Use
predict()to calculate the expected value of the response, with its confidence interval or prediction interval, for a new value of the explanatory variable. - Interpret the slope and intercept in the biological units of the study, including whether the intercept is biologically meaningful.
- Recognise a correct and complete statement of regression results that reports the estimate, its uncertainty and the test result.
- Evaluate whether a regression analysis supports a stated biological claim, considering R² versus statistical significance, extrapolation beyond the data, model diagnostics, and correlation versus causation.
One-way ANOVA (Chapter 5)
After this unit, students will be able to:
- Explain one-way ANOVA as a linear model with a single categorical explanatory variable.
- Explain how the total variation is partitioned into between-group and within-group components, and how the F statistic is calculated from them.
- Calculate the total, model and residual degrees of freedom of a one-way ANOVA (n − 1, k − 1 and n − k), and explain why they add up.
- Explain why sums of squares are divided by their degrees of freedom to give mean squares, and identify the two degrees of freedom of the F-distribution.
- Calculate missing entries in an ANOVA table (degrees of freedom, sums of squares, mean squares, F).
- Use R to fit a one-way ANOVA with
lm()and obtain the ANOVA table. - Use R to test whether the group means differ, and draw the appropriate conclusion.
- Interpret the coefficients of a model with a categorical explanatory variable: the reference level and the differences from it.
- Use R to obtain group means and the estimated differences between groups, with their uncertainty.
- Use diagnostic plots to judge whether the assumptions of a one-way ANOVA are reasonably met.
- Explain why testing many pairs of groups inflates the probability of a false positive, and use a correction for multiple comparisons (e.g. Bonferroni, Tukey HSD).
- Decide whether one-way ANOVA is appropriate for a described study design and response variable.
- Recognise a correct and complete statement of one-way ANOVA results.
Multiple regression (Chapter 6)
After this unit, students will be able to:
- Identify biological questions that require a model with more than one explanatory variable.
- Write the multiple regression model as an equation, and explain what each coefficient represents.
- Use R to fit a multiple regression with
lm(). - Use diagnostic plots to judge whether the assumptions of a multiple regression are reasonably met.
- Calculate the model and residual degrees of freedom of a multiple regression, counting k − 1 degrees of freedom for a categorical explanatory variable with k levels, and use them in the F-test and in adjusted R².
- Use the overall F-test to judge whether the explanatory variables together explain variation in the response.
- Interpret each coefficient as the association between that explanatory variable and the response with the other explanatory variables held constant, including its direction and size.
- Use R to obtain R² and adjusted R², and explain why adjusted R² is needed when comparing models with different numbers of explanatory variables.
- Compare the importance of explanatory variables measured on different scales using standardised coefficients, and explain what is lost by standardising.
- Use
predict()to make predictions for given values of all explanatory variables. - Explain what collinearity is, detect it (e.g. correlations among explanatory variables, variance inflation factors), and describe its consequences for coefficient estimates and their uncertainty.
- Use the residual degrees of freedom of two nested models in an F-test comparing them.
- Explain what a confounding variable is, how including a measured confounder in a multiple regression reduces bias in the estimated effect of another variable, and why this cannot prove causation.
- Recognise a correct and complete statement of multiple regression results.
Interactions (Chapter 7)
After this unit, students will be able to:
- Explain what an interaction between two explanatory variables means, both biologically and in the model equation.
- Distinguish additive from interactive effects using graphs of data or of model predictions.
- Explain why one model with several explanatory variables (and their interaction) is preferable to several separate single-variable analyses.
- Use R to fit models with interactions between two categorical variables (two-way ANOVA), a categorical and a continuous variable (ANCOVA), and two continuous variables.
- Interpret interaction coefficients, including how the meaning of the main-effect coefficients changes when an interaction is in the model.
- Use R to calculate and plot how the effect of one explanatory variable depends on the value of another.
- Test whether an interaction is needed, and judge whether it is biologically meaningful.
- Calculate the degrees of freedom of main effects and interaction terms, and the residual degrees of freedom, from the number of parameters a model estimates.
- Recognise a correct and complete statement of results from a model with an interaction.
Generalised linear models for count data (Chapter 8)
After this unit, students will be able to:
- Identify biological questions and study designs in which the response variable is a count.
- Explain why linear models with normal errors are often inappropriate for count data (counts are non-negative integers, and their variance tends to increase with the mean).
- Describe the three components of a generalised linear model: the linear predictor, the distribution family and the link function.
- Use R to fit a Poisson regression with
glm(). - Explain null and residual deviance as measures of fit for a GLM, analogous to sums of squares in a linear model.
- Check the assumptions of a Poisson GLM using diagnostic plots, recognising that QQ-plots of deviance residuals are interpreted differently from those of a linear model.
- Interpret coefficients on the log (link) scale, and back-transform them to multiplicative effects on the expected count.
- Use R to calculate predicted counts for given values of the explanatory variables.
- Use deviance-based tests to judge whether explanatory variables are associated with the response.
- Explain that in a chi-squared (likelihood ratio) test between nested GLMs, the degrees of freedom equal the difference in the number of estimated parameters.
- Detect overdispersion and select an appropriate response to it (e.g. a quasi-Poisson or negative binomial model).
- Recognise zero inflation in count data, and that it requires models beyond the Poisson GLM.
- Recognise a correct and complete statement of results from a Poisson regression.
Generalised linear models for binary data (Chapter 9)
After this unit, students will be able to:
- Identify binary response variables (e.g. presence–absence, success–failure) in described biological studies.
- Distinguish individual-level binary data from aggregated binomial data (number of successes out of a number of trials).
- Explain why linear regression on proportions, or Poisson regression on the number of successes, is unsuitable for binary and binomial responses.
- Explain the logit link and the relationship between probability, odds and log-odds.
- Convert between probabilities, odds and log-odds.
- Use R to fit a logistic regression with
glm(). - Use R to fit a binomial GLM to aggregated data, specifying the numbers of successes and failures.
- Interpret coefficients as changes in log-odds, and back-transform them to odds ratios.
- Use R to calculate predicted probabilities and plot the fitted relationship.
- Use deviance-based tests to judge whether explanatory variables are associated with the response.
- Check a binomial GLM before interpreting it, using the GLM checklist, and recognise which checks are hard to interpret for individual-level 0/1 data.
- Use the ratio of residual deviance to residual degrees of freedom to check aggregated binomial data for overdispersion, use a quasibinomial model as a pragmatic fix, and recognise that this check is not informative for individual-level binary data.
- Recognise separation in a logistic regression from its symptoms (e.g. very large coefficient estimates and standard errors).
- Recognise a correct and complete statement of results from a logistic regression.
Ordination and multivariate data (Chapter 10)
After this unit, students will be able to:
- Recognise when a biological question involves many response variables, and explain the limitations of analysing each one separately.
- Reshape multivariate data between wide and long format, and explain which format is needed for which task.
- Explain the aim of ordination: to summarise similarity among observations measured on many variables using a few axes.
- Explain why variables are centred, and usually scaled, before a PCA.
- Use R to perform a principal component analysis (PCA) and obtain the proportion of variation explained by each axis.
- Interpret PCA loadings and biplots to identify which variables contribute most to each axis.
- Choose a distance measure for NMDS appropriate to the data (e.g. Euclidean distance on scaled numeric variables).
- Use R to perform a non-metric multidimensional scaling (NMDS) and obtain its stress value.
- Interpret ordination plots in terms of similarities and differences among observations.
- Distinguish PCA from NMDS, and choose between them for a given dataset.
- Evaluate what an ordination does and does not show (e.g. it summarises patterns but does not by itself test hypotheses; tests need separate methods).
- Choose an appropriate approach to test whether groups differ in multivariate composition (MANOVA, PERMANOVA) and in multivariate spread (PERMDISP), and to relate an explanatory variable to an ordination (envfit, ordisurf).
- Use principal components as explanatory variables in a regression, as one way to deal with collinearity.
Mixed models (Chapter 11.1)
After this unit, students will be able to:
- Recognise grouped, nested or hierarchical data in biological study designs (e.g. repeated measures, individuals within populations, sites within regions).
- Explain why ignoring grouping in the data leads to pseudoreplication and overconfident conclusions.
- Explain why averaging the repeated measurements within each group before using
lm()is sometimes acceptable but often throws away information. - Recognise pseudoreplication when a model’s residual degrees of freedom are much larger than the number of independent units (e.g. individual plants) in the study.
- Distinguish fixed effects from random effects, and decide which is appropriate for a variable in a described study.
- Distinguish random intercept models from random slope models, and nested from crossed random effects, and write the corresponding
lmer()formula. - Explain partial pooling, and how it shrinks group-level estimates towards the overall mean.
- Use R to fit linear mixed models with random intercepts, and with random slopes, using
lmer()from thelme4package. - Use R output to obtain the fixed-effect estimates and the variance components.
- Interpret mixed model output in biological terms, including what the variance components say about variation among groups.
- Explain why degrees of freedom, and so p-values, for fixed effects in mixed models are not straightforward, and that several approximations exist (e.g. Satterthwaite’s method).
- Identify limitations and assumptions of mixed models in a described analysis.
- Recognise a correct and complete statement of results from a mixed model.
What next? (Chapter 11.2)
After this unit, students will be able to:
- Describe which kinds of data the methods in BIO144 can analyse: data that meet the assumptions of linear models, count and binary data using generalised linear models, grouped or repeated-measures data using mixed models, and many variables at once using ordination.
- Explain why data collected over time or across space often violate the assumption of independent observations, and so require specialised methods (time series analysis, spatial analysis).
- Recognise features of a research question or dataset that call for methods beyond BIO144, such as non-independent observations, non-linear relationships, abrupt changes in a relationship, many interrelated variables, time-to-event responses, or results from multiple studies.
- Match a described research situation to a suitable family of methods: time series analysis, spatial analysis, non-linear regression, breakpoint analysis, generalised additive models, structural equation modelling, machine learning, meta-analysis, survival analysis, non-parametric methods, power analysis or Bayesian statistics.
- Explain why the analysis, including the sample size needed (power analysis), should be planned when the study is designed.
- Explain why the choice of analysis should be driven by the research question rather than by the techniques available.
Review: planning and implementing statistical analyses (Chapter 12)
After this unit, students will be able to:
- Write a planning sentence for a described study, stating the question, the type of response variable, the data structure, the explanatory variables, the planned model and the expected residual degrees of freedom.
- Choose a model (linear model, binomial GLM, Poisson GLM, mixed model or ordination) from the type of response variable, the explanatory variables and the data structure of a described study.
- Identify the experimental unit in a described study, and recognise pseudoreplication.
- Explain the roles of replication, randomisation, controls, blocking and balance in study design.
- Count the parameters a planned model will estimate, calculate the expected residual degrees of freedom, and judge whether they are enough.
- Explain how sample size affects the precision of estimates and the power of a study, and what a power analysis is for.
- Decide which terms to include in a model from the question and the design (variables of interest, planned interactions, design variables, potential confounders), and explain why trying many models or using stepwise selection gives misleading p-values.
- Check a fitted model before interpreting it, make explicit predictions from it, and plot the predictions together with the data.
- Recognise a report that gives both the statistical result and its biological meaning.