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
(random idea for evaluating how well a distribution matches the data)
In GLM models like tweedie or gamma or Poisson, the error is not additive as in a gaussian model (linear or nonlinear least squares), instead we specify the distribution of endog given exog directly.
If we want to predict more than the mean, then we need a distribution of the predictions.
relatively simple would be the cdf(y | x), similar to discrete probability (pmf) in Poisson e.g. in Vuong test.
e.g. What's the population prediction for observing endog > some_number, which can compare model implied with data frequencies.
similar for OLS or models with additive residuals:
The distribution is not relevant for asymptotics for the parameter and expected value/mean estimates, but is for predictive distribution (prediction intervals) and for small sample properties.
And if the gof test fails for the use case, then we need alternative, which? (quantile or expectile estimators?)
The new count models, like zero inflated models, have several statistics as option in predict. This has not been extended to older models in discrete or GLM.
I have a notebook in a gist comparing predicted probabilities for the sample with the actual frequencies.
I put some code in discrete._diagnostic_count for this, but it's not yet public.
Activity
josef-pkt commentedon Feb 5, 2017
get_distributionwas added to GLM and linear RegressionModel as part of Mediation PR #2352josef-pkt commentedon Mar 24, 2017
similar for OLS or models with additive residuals:
The distribution is not relevant for asymptotics for the parameter and expected value/mean estimates, but is for predictive distribution (prediction intervals) and for small sample properties.
And if the gof test fails for the use case, then we need alternative, which? (quantile or expectile estimators?)
josef-pkt commentedon Jun 7, 2017
discrete.Poisson has method
predict_prob(I think added by Skipper for Vuong test)added with discussion in #1088
josef-pkt commentedon Feb 17, 2019
The new count models, like zero inflated models, have several statistics as option in predict. This has not been extended to older models in discrete or GLM.
I have a notebook in a gist comparing predicted probabilities for the sample with the actual frequencies.
I put some code in discrete._diagnostic_count for this, but it's not yet public.