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

p-value computation for two-tailed test with distribution fitting #89

Open
clescoat opened this issue Sep 16, 2020 · 3 comments
Open

p-value computation for two-tailed test with distribution fitting #89

clescoat opened this issue Sep 16, 2020 · 3 comments
Assignees
Labels

Comments

@clescoat
Copy link
Collaborator

Calcul à revoir pour des distributions skewed

@clescoat clescoat self-assigned this Sep 16, 2020
@tigloo123
Copy link
Collaborator

A mon avis la version two-tailed devrait etre celle par défaut.

@tigloo123
Copy link
Collaborator

The statistically correct solution for two-tailed test is to correctly compute the area under the curve for the both sides of the distribution:

q_val_right = best_dist.ppf(0.95, **args)
q_val_left = best_dist.ppf(0.05, **args)

p_right = 1 - best_dist.cdf(expr, **args)
p_left = best_dist.cdf(expr, **args)

@tigloo123
Copy link
Collaborator

tigloo123 commented Jan 20, 2021

@Claire : please make a test using normal distribution for two-tailed outlier testing

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

No branches or pull requests

2 participants