Skip to content

Feature: add Log-Likelihood to eval_measures.py  #1282

Open

Description

@dfrusdn

For convenience can someone add Log-Likelihood to eval_measures.py? It would make it more convenient to use eval_measures.py to produce model summaries.

Activity

  1. josef-pkt commented on Jan 1, 2014

    @josef-pkt
    Member

    log-likelihood are model specific and don't really fit in eval_measures.py IMO.
    As eval measure, they are available in the LikelihoodModels as llf.
    What's your use case?

    For generic access, the scipy.stats distributions define logpdf, e.g. stats.norm.logpdf(x, loc=loc, scale=scale)
    However, I thought of adding a generic log-likelihood for the normal distribution that doesn't require scipy.stats (and it's overhead) somewhere for reuse in models, e.g. in statsmodels.distributions.

    aside: models like the RegressionModel use the concentrated Likelihood for the normal distribution (concentrating out the scale)

  2. dfrusdn commented on Jan 1, 2014

    @dfrusdn
    Author

    Just using it to build summary using AIC and it was one of the requirements. I just did not want to import another library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions