The gist of solving GLMs.

  1. Formulate a minimum deviance residual problem (a nonlinear version of least squares that corresponds to a maximum likelihood solution).
  2. Minimizing the deviance residual is a nonlinear least squares problem. Calculus!
  3. Find where the first derivative is zero and iterate -- Gradient descent.
  4. Alternatively use a quasi-Newton solver.
  5. Use a quadratic approximation (1st and 2nd derivatives) -- Newton's method.
  6. Green, Nelder, McCullagh noticed that in special cases Newton's method is a weighted least squares problem -- IRWLS.
(IRWLS = iteratively re-weighted least squares)
29/42