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.
- Parameters:
- muarray_like
mean parameters
- Returns:
- V’
ndarray The value of the derivative of the binomial variance function
- V’