-
Notifications
You must be signed in to change notification settings - Fork 106
Inverse gamma cdf numerical problems #373
Copy link
Copy link
Open
Description
The inverse gamma cdf introduced in #227 does not work on all inputs.
For example
let gamma = Gamma::new(0.18,0.18).unwrap();
gamma.inverse_cdf(0.25);
we get Nan
I see that this is numerically tricky, but for example scipy has no problem giving the correct answer of 0.0016167, even in way more extreme cases is still gives finite answers.
I will try looking into this myself, but maybe someone has more experience with this. It seems the newton iterations are not working anymore. I also don't know in which range the cdf function is correctly working.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels