12.2 Examples
12.2.1 Linear regression
The linear regression has the form:
where , and we see that
Hence:
12.2.2 Binomial regression
If the response variable is the number of success in trials, we can use the binomial regression:
We see that binary logistic regression is the special case when .
The log pdf is:
where , and
We rewrite this in GLM form:
with
Hence:
12.2.3 Poisson regression
If the response variable is an integer count, , we can use the Poisson regression:
where:
The Poisson distribution is highly used in bio-stats application, where might represent the number of diseases at a given place.
The log pdf is:
where , and
Hence: