Skip to content

Conversation

@samir-nasibli
Copy link

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