statsmodels.genmod.families.varfuncs.Binomial.deriv#

Binomial.deriv(mu)[source]#

Derivative of the variance function V’(mu).

For the Binomial variance V(mu) = p*(1 - p)*n where p = mu/n, the derivative with respect to mu is dV/dmu = 1 - 2*p.