statsmodels.discrete.discrete_model.MNLogit.loglike

MNLogit.loglike(params)[source]

Log-likelihood of the multinomial logit model.

Parameters:params (array-like) – The parameters of the multinomial logit model.
Returns:loglike – The log-likelihood function of the model evaluated at params. See notes.
Return type:float

Notes

lnL=ni=1Jj=0dijln(exp(βjxi)Jk=0exp(βkxi))

where dij=1 if individual i chose alternative j and 0 if not.