11 Generalized linear models

Every model so far has had a response that is, at least approximately, normal with constant variance. Many responses are not. Whether an insect dies, whether a borrower defaults, whether a patient recovers: these are binary responses, \(0\) or \(1\). The number of faults on a machine, of accidents at a junction, of customers in an hour: these are counts. For such responses the mean is restricted (a probability lies between \(0\) and \(1\), a mean count is positive), and the variance depends on the mean. A generalized linear model (GLM) keeps the linear predictor \(\mathbf {x}^\top \boldsymbol \beta \) of regression but connects it to the mean through a link function, and replaces the normal distribution by one suited to the response. This section treats the two most used cases, logistic regression for binary data and Poisson regression for counts, and then the general theory that covers both, and the normal linear model as well.

Questions on this section

Stuck on something here? Ask below and it stays attached to this topic.