7.2.3.3.4.1. statsmodels.genmod.families.family.Gaussian.deviance¶
-
Gaussian.
deviance
(endog, mu, scale=1.0)[source]¶ Gaussian deviance function
Parameters: endog : array-like
Endogenous response variable
mu : array-like
Fitted mean response variable
scale : float, optional
An optional scale argument
Returns: deviance : float
The deviance function at (endog,mu) as defined below.
Notes
deviance = sum((endog-mu)**2)