Binomial.resid_dev(endog, mu, var_weights=1.0, scale=1.0)
The deviance residuals
Parameters: 


Returns: 
resid_dev – Deviance residuals as defined below. 
Return type: 
float 
The deviance residuals are defined by the contribution D_i of observation i to the deviance as
D_i is calculated from the _resid_dev method in each family. Distributionspecific documentation of the calculation is available there.
© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.genmod.families.family.Binomial.resid_dev.html