We now turn to an arbitrary GLM. The first issue is to decide which parameters in a GLM need to be indexed by . Here is the indexed diagram for a GLM:
Unnumbered Figure: Link
The key is that is common to all observations. The likelihood combines the information about from all observations because the responses , are observed independently.
The pmf/pdf of , , conditional on the explanatory variables, is in the EF with mean . For discrete observations the the likelihood is exactly , the joint mass function evaluated at the data. For continuous observations the likelihood is proportional to the joint density function evaluated at the data. Hence
The likelihood could be written as a function of the coefficients , the only unknown parameters that need estimating. Equivalently we write as a function from as this notation allows us to compare different models. The saturated and null models are taken as and respectively.
Exercise 4.38
Write down the log-likelihood for observations from the exponential distribution with mean , . Find the log-likelihood for the null and saturated models.
Exercise 4.39
Maximise this log-likelihood for the null and saturated models based on this exponential pdf.