Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: (theoretical) noncentrality parameter implied by model, data generating process #7824

Open
josef-pkt opened this issue Oct 28, 2021 · 0 comments

Comments

@josef-pkt
Copy link
Member

I'm using now Monte Carlo simulations to check how good hypothesis tests are.

AFAIK, we don't have anything to compute the theoretical noncentrality parameter for a parametrically specified model DGP used in simulations.

example

The return of Hosmer-Lemeshow type test for poisson includes several estimates of nc.
Test method delegates to statsmodels.stats.diagnostic_gen.test_chisquare_binning

Why is nc_umvue negative and much smaller than the other estimates?
I guess the theoretical nc=0 in this simulations which is under the null of correct specification.

noncentrality = <class 'statsmodels.tools.testing.Holder'>
    nc = 0.0
    confint = array([1.0000000000000e-100, 8.0294528361405e+000])
    nc_umvue = -1.8074724688857908
    nc_lzd = 0.5320879218523682
    nc_krs = 0.9121507231754883
    nc_median = 1e-100
    name = 'Noncentrality for chisquare-distributed random variable'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant