Australian National University · FACULTY OF STATISTICS

BIOL2001 Chap.12 Multiple Regression, Interactions and Model Selection

- one subject, every graph, every model, every mark
8 Chapters6-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 12 of 15 · BIOL2001

Multiple Regression, Interactions and Model Selection

Groups, several covariates and interactions

This chapter extends the linear model in three directions. Binary and categorical covariates enter as dummy variables, with each coefficient a difference from a reference category, and an analysis of variance asks whether a factor matters as a whole. Several covariates enter one model, each coefficient a partial effect with the others held fixed.

Interaction terms, products of covariates, let the effect of one depend on another; a computed figure shows tadpole growth rising more steeply with temperature in temporary than in permanent ponds.

Choosing a model

A worked example reads interaction coefficients by writing one equation per group, and a comparison table covers categorical by continuous, categorical by categorical and continuous by continuous interactions.

Because R-squared rises with every covariate, the chapter introduces adjusted R-squared, AIC and BIC, and works an AIC comparison through weights and an evidence ratio, ending with the rules for keeping factors and main effects together.

In this chapter

What this chapter covers

  • 01

    Binary covariates coded 0 and 1

  • 02

    Dummy variables and the reference category

  • 03

    ANOVA for a factor as a whole

  • 04

    Partial effects in multiple regression

  • 05

    Interaction terms and separate slopes

  • 06

    Adjusted R-squared

  • 07

    AIC, BIC and evidence ratios

  • 08

    Rules for keeping terms together

Worked example · free

Two slopes from one interaction model

Q [4 marks]. Tadpole growth (mg per day) is modelled as 2.0 + 0.30 × temperature + 0.5 × temporary + 0.15 × temperature × temporary, with permanent ponds as the reference. Give each pond type's slope and predicted growth at 20 °C. The practice weighting is assigned by AskSia and is not an official assessment.
Invented tadpole growth against water temperature in permanent and temporary ponds.Invented tadpole growth against water temperature in permanent and temporary ponds. Without an interaction the lines would be parallel; the interaction term gives the temporary ponds a steeper slope, 0.45 against 0.30 mg per day per degree, so the gap widens to 11.5 against 8.0 at 20 degrees.water temperature (°C)growth (mg per day)81216202446810121411.58.0temporary: slope 0.45permanent: slope 0.30
Invented tadpole growth against water temperature in permanent and temporary ponds. Without an interaction the lines would be parallel; the interaction term gives the temporary ponds a steeper slope, 0.45 against 0.30 mg per day per degree, so the gap widens to 11.5 against 8.0 at 20 degrees.
  • 1Permanent ponds set temporary = 0: growth = 2.0 + 0.30 × temperature, slope 0.30.
  • 1Temporary ponds set temporary = 1: growth = 2.5 + 0.45 × temperature, slope 0.30 + 0.15 = 0.45.
  • 1At 20 °C, permanent ponds give 2.0 + 6.0 = 8.0 mg per day.
  • 1At 20 °C, temporary ponds give 2.5 + 9.0 = 11.5 mg per day.
The slopes are 0.30 in permanent ponds and 0.45 in temporary ponds, and the predicted growth at 20 °C is 8.0 against 11.5 mg per day. The temporary-pond advantage grows by the interaction coefficient, 0.15 mg per day, for every degree.
Sia tip — Substitute 0 and then 1 for the dummy and collect every term that multiplies temperature; the slopes then appear without guessing.
Glossary

Key terms

Dummy Variable
A covariate coded 1 for one category and 0 otherwise.
Reference Category
The category without a dummy, against which every dummy coefficient is compared.
Partial Effect
The change in the response for a one-unit change in one covariate with the others held fixed.
Adjusted R-Squared
R-squared penalised for the number of parameters, so it can fall when a useless covariate is added.
Akaike Information Criterion
A model selection measure combining fit and the number of parameters, where smaller values are better.
Evidence Ratio
The ratio of AIC weights showing how much more support one model has than another.
Analysis of Variance
A test of whether the mean response is the same across all categories of a factor.
FAQ

Multiple Regression, Interactions and Model Selection FAQ

How many dummy variables does a factor with k categories need?

It needs k minus 1 dummy variables. The category left without a dummy becomes the reference, and each dummy coefficient is the difference in the mean response between its category and that reference. R builds the dummies itself when the covariate is a factor.

Why can R-squared not be used to choose between models?

R-squared increases whenever a covariate is added, even one that is pure noise, so it always favours the largest model. Adjusted R-squared, AIC and BIC add a penalty for each parameter, so a covariate improves them only if it adds more fit than it costs.

What does an interaction coefficient mean?

It is the amount by which the slope of one covariate changes for each unit of the other, or between a category and the reference. For a dummy interaction, the reference group's slope is the main effect and the other group's slope is the main effect plus the interaction.

Should I keep main effects when an interaction is in the model?

Yes. The lecture's rule is to keep both main effects whenever their product is included, to include or drop all categories of a factor together, and to keep lower polynomial terms such as x and x squared when x cubed is used.

Study strategy

Assessment move

For every model output, write the fitted equation first, then the equation for each category by substituting the dummies. Practise one categorical model, one with two covariates and one with an interaction, interpreting every coefficient with its units and what is held fixed. Compute AIC weights for a set of models by hand once to see how the evidence ratio behaves.

Use the hotel occupation models from the Week 8 workshop as a template: interpret the model with temperature alone, then with city added, then with their interaction, and note how each coefficient's meaning shifts.

Working through Multiple Regression, Interactions and Model Selection in BIOL2001? Sia is AskSia’s AI Statistics tutor — ask any BIOL2001 Multiple Regression, Interactions and Model Selection question and get a clear, step-by-step explanation grounded in how BIOL2001 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 46 of your Australian National University subjects - and 1,000+ Bibles across every Australian university.
Sia - your BIOL2001 tutor, unlimited, worked the way the exam marks it
The full 6-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works