Open
Description
Description
The implementation for normal_lcdf
has been improved significantly following #1284 by introducing a polynomial approximation of the Mills ratio based on a paper by Cody (1969). It looks like normal_lccdf
has not been updated accordingly and instead still uses the older and much less accurate solution.
Incidentally, I also noticed that normal_lcdf
and std_normal_lcdf
implement the same solution with very similar code. I wonder if one could retain the current implementation of std_normal_lcdf
and write std_normal_lccdf
, normal_lcdf
and normal_lccdf
to simply call std_normal_lcdf
with appropriate parameters (-x, (x-mu)/sigma, (mu-x)/sigma, respectively).
Current Version:
v3.2.0