Using the Normal CDF Function
SciPy NormalCDF/Plotting functions
This is a simple example of the normal CDF (cumulative distribution function) function in SciPy, as well as a simple example of the plt.plot
function from MatPlotLib.
from scipy import stats
from matplotlib import pyplot as plt
cdf = stats.norm.cdf
x = []
y = []
for i in range(1000):
this_x = (i - 500)/100
x.append(this_x)
y.append(cdf(this_x))
plt.plot(x, y)