### Navigation

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

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

`Binomial.``deviance`(Y, mu)

  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
  Returns: | deviance : float The deviance function as defined below

### Navigation

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