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

FIX: mkl_random.noncentral_chisquare when df==1 #17

Merged
merged 1 commit into from
Feb 9, 2021

Conversation

samir-nasibli
Copy link
Contributor

Description

This PR fix mkl_random.noncentral_chisquare behaviour when df param is equal 1.0

was: noncentral_chisquare(1, nonc) ~ sqrt(nonc)*(-1)^[U<0.5] + Z
proposed: noncentral_chisquare(1, nonc) ~ (Z + sqrt(nonc))**2 for df == 1

This bug was early discussed.

@samir-nasibli samir-nasibli force-pushed the samir-nasibli/fix/noncentral_chisquare branch from 41d6e28 to 91dce74 Compare February 5, 2021 10:27
@oleksandr-pavlyk oleksandr-pavlyk merged commit 9cfe52b into master Feb 9, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the samir-nasibli/fix/noncentral_chisquare branch February 9, 2021 20:48
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

Successfully merging this pull request may close these issues.

2 participants