With the negative-binomial size held fixed, collect all mean-independent terms into . The cell log-likelihood is
Its derivative is
For it is positive below and negative above , so the saturated maximum is at . For , the maximum is the boundary limit . Evaluating the saturated-minus-fitted log-likelihood gives the negative binomial deviance
All gamma-function and factorial terms cancel because the same known is used in both models. The zero-count logarithmic term is interpreted as zero; its remaining cell contribution is . No intercept score cancellation is required for this formula, so it applies to the specified design whether or not its covariates include an intercept.
For completeness, the fitted coefficients obey the score equations of the fixed-size negative binomial generalized linear model,
The logarithmic link is not the canonical link for this family, but it produces the requested positive means. As a check, when ,
so the formula tends to the full Poisson deviance, including the linear terms when an intercept-balance equation is unavailable. The size used here is the negative-binomial size parameter; it is distinct from the random-multiplier variance denoted by the same letter in Question 4.