This article describes an analytical approximation of normal CDF:
The approximation uses the arctangent function, which is also numerically approximated. I found some discussions about the algorithm of arctan functions in general, and it seems pretty convoluted. In comparison, the source code of pnorm()
in R seems pretty straight forward, though it may not be as efficient.
Is there any computational advantage of using atan()
instead of pnorm()
in R, especially with large data and high parameter space when there is already a bunch of other numerical calculations based off the normal PDF already?
Thanks!