### Navigation

- index
- modules |
- next |
- previous |
- statsmodels v0.2.0 documentation »
- Generalized Linear Models »
- scikits.statsmodels.family.family.Binomial »

# scikits.statsmodels.family.family.Binomial.deviance

`Binomial.``deviance`(Y, mu, scale=1.0)

  Deviance function for either Bernoulli or Binomial data.

  Parameters: | Y : array-like Endogenous response variable (already transformed to a probability if appropriate). mu : array Fitted mean response variable scale : float, optional An optional scale argument
  Returns: | deviance : float The deviance function as defined below

### Navigation

- index
- modules |
- next |
- previous |
- statsmodels v0.2.0 documentation »
- Generalized Linear Models »
- scikits.statsmodels.family.family.Binomial »