Negative binomial deviance

ID: negative-binomial-deviance

With known size , the mean-dependent log mass of a negative binomial distribution is . Its derivative is , so the saturated mean is , including its boundary value zero. Subtracting the fitted log mass from that maximum gives the displayed deviance. This formula needs no fitted-intercept cancellation. As , its second term tends to and it becomes the full Poisson deviance.

New to topics? Read the docs here!