Skip to content

Instantly share code, notes, and snippets.

@volf52
Last active September 1, 2017 12:31
Show Gist options
  • Save volf52/fa61d3f040b84beb9e3e3cc3026ebf31 to your computer and use it in GitHub Desktop.
Save volf52/fa61d3f040b84beb9e3e3cc3026ebf31 to your computer and use it in GitHub Desktop.
Cumulative Distribution Function for Normal Distributions in Python
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