You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: add Log-Likelihood to eval_measures.py #1282
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.
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)
Activity
josef-pkt commentedon Jan 1, 2014
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)
dfrusdn commentedon Jan 1, 2014
Just using it to build summary using AIC and it was one of the requirements. I just did not want to import another library