statsmodels.discrete.discrete_model.NegativeBinomialPResults.resid# NegativeBinomialPResults.resid# Residuals The residuals for Count models are defined as \[y - p\] where \(p = \exp(X\beta)\). Any exposure and offset variables are also handled.