Cumulative distribution function for a standard normal distribution.
(x)
| 85 | |
| 86 | |
| 87 | def normal_cdf(x): |
| 88 | """Cumulative distribution function for a standard normal distribution.""" |
| 89 | return 0.5 + 0.5 * np.vectorize(math.erf)(x / math.sqrt(2)) |
| 90 | |
| 91 | |
| 92 | def anderson_darling(x): |
no outgoing calls