I seem to recall, but am not sure and can’t find a reference for it, that the original intention was that loglikelihood
would differ in that:
- it could act on arrays, and would reduce via
sum
(i.e. would be the log-likelihood of iid samples) - it could drop any terms that don’t depend on the parameters (e.g. the factorial in the Poisson distribution)