Keep a linear predictor while using a distribution and link suited to probabilities, counts, and other outcomes.
Ordinary linear regression can predict impossible probabilities below 0 or above 1, and it does not match the changing variance of binary or count outcomes.
A generalized linear model preserves a linear combination of predictors but connects it to the outcome mean through a suitable probability distribution and link function.
Key question
How can one regression framework handle continuous, binary, and count outcomes without forcing them into the same error model?
What does a GLM extend?
Generalized linear model
g(E[Y|X]) = β₀ + β₁x₁ + … + βₖxₖ
The right side remains a linear combination. The link g converts the conditional mean—such as a probability or expected count—into a scale on which that linear predictor can operate.
Where a straight line fails
0 – 1A line keeps going, so it predicts probabilities below 0 and above 1.
The link function
g(E[Y]) = Xβg moves the mean onto a scale where the predictors can act linearly.
A distribution per outcome
familyContinuous, binary and count outcomes each need their own family.
Why is a link function needed?
| Outcome | Common link | What it accomplishes |
|---|---|---|
| Continuous | identity | leaves the mean on its original scale |
| Binary | logit or probit | maps probabilities between 0 and 1 to an unbounded scale |
| Count | log | keeps expected counts positive |
What are the components of a GLM?
How do we choose a model?
| Outcome pattern | Common model |
|---|---|
| Unbounded continuous outcome | Gaussian GLM / linear regression |
| 0–1 response | binomial logistic or probit regression |
| Nonnegative count | Poisson or negative-binomial regression |
| Positive right-skewed continuous outcome | Gamma GLM |
Model choice is not only about the label
Check whether the implied variance, link, and residual behavior fit the data rather than choosing a family from the outcome name alone.
Change the distribution and link
Switch among outcome families and links, then observe how the same linear predictor is translated into a mean, probability, or expected count.
η = Xβ
0.80
Link
identity
Expected outcome
0.800
What to watch
The coefficients live on the link scale. Their practical meaning changes with the distribution–link combination.