Deviance of (endog,mu) pair.
Deviance is usually defined as twice the loglikelihood ratio.
Parameters: | endog : array-like
mu : array-like
scale : float, optional
|
---|---|
Returns: | Deviance : array
|
Notes
Deviance is defined
\sum_i(2 loglike(y_i, y_i) - 2 * loglike(y_i, mu_i)) / scale
where y is the endogenous variable. The deviance functions are analytically defined for each family.