statsmodels.discrete.discrete_model.Poisson.loglike

method

Poisson.loglike(params)[source]

Loglikelihood of Poisson model

Parameters
paramsarray-like

The parameters of the model.

Returns
loglikefloat

The log-likelihood function of the model evaluated at params. See notes.

Notes

\[\ln L=\sum_{i=1}^{n}\left[-\lambda_{i}+y_{i}x_{i}^{\prime}\beta-\ln y_{i}!\right]\]