Last active
September 1, 2017 12:31
-
-
Save volf52/fa61d3f040b84beb9e3e3cc3026ebf31 to your computer and use it in GitHub Desktop.
Cumulative Distribution Function for Normal Distributions in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import erf | |
def F(x, mew, sd): | |
return 0.5 * (1 + erf((x-mew)/(sd * pow(2, 0.5)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment