Skip to main content
Advanced statistics
Lesson 42 of 75
Easy practice

Generalised linear models

Objective. Link response distributions to linear predictors.

  1. 1. Learn
  2. 2. Worked example
  3. 3. Practice
  4. 4. Feedback
  5. 5. Continue

Learn: the key idea

A generalised linear model links a response variable's mean to a linear predictor through a chosen link function, extending ordinary regression beyond normal errors. The response is assumed to come from an exponential-family distribution, such as Binomial or Poisson, with mean μ related to the linear predictor η = Xβ via g(μ) = η for link function g. For binary data, the logit link log(μ/(1−μ)) = Xβ gives logistic regression; for counts, the log link log(μ) = Xβ gives Poisson regression. Parameters are fitted by maximum likelihood using iteratively reweighted least squares, since no closed form exists in general. For example, modelling disease presence (0/1) against age uses logistic regression, where coefficients describe changes in log-odds per unit age increase.

Worked example

In a generalised linear model for count data with log link, log(μ) = 1.2 + 0.5x. Find μ when x = 2.

1.20.52
Bar chart of the values 1.2, 0.5, 2
  1. 1Linear predictor: η = 1.2 + 0.5(2) = 2.2
  2. 2Log link means log(μ) = η
  3. 3So μ = e^2.2
  4. 4Evaluate: μ ≈ 9.03

Answer: μ ≈ 9.03

Concept mastery

Based on your past attempts at this lesson — the question types to practise again come first.

Complete a practice set to see your concept breakdown here.

Practice

Practice happens on its own screen, one question at a time. Answers stay hidden until you submit yours, and you can stop and pick up at the same question later.

Start practising

Common mistake. Students fit a generalised linear model then interpret coefficients as if on the response scale, e.g. reading a logistic regression β as a probability change; it is a change in log-odds, so exponentiate for an odds ratio before interpreting.

Your progress

Tick each step as you finish it. Your exact reading position is saved automatically, so Continue drops you back on the same line.

0 of 5 steps complete

Your place saves automatically as you read.

My dashboard