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

ZeroDivisionError: 0.0 cannot be raised to a negative power #2

Open
ahbon123 opened this issue Nov 29, 2021 · 1 comment
Open

ZeroDivisionError: 0.0 cannot be raised to a negative power #2

ahbon123 opened this issue Nov 29, 2021 · 1 comment

Comments

@ahbon123
Copy link

Sorry,

It raises the following error while I running DM test:

 DM_stat=V_d**(-0.5)*mean_d
ZeroDivisionError: 0.0 cannot be raised to a negative power

Could you help to handling this? Thanks.

@ZeliTheZealot
Copy link

It means that your variance estimate, V_d, is zero. According to the paper, in rare cases this can happen (negative or zero variance estimate). In this case you should simply immediately reject the null hypothesis.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants