I tried to compare the results for the values of cdf from cumsum of pdf and cdf of scipy.stats.norm. Why these are different?
#%%
import numpy as np
from scipy.stats import norm
x=np.arange(10)
m=np.mean(x) # mean of x
v=np.var(x,ddof=1) # variance of x
s=np.std(x,ddof=1) # standard deviation of x
x1=np.linspace(min(x),max(x),10)
y=norm.pdf(x1, loc=m, scale=s)
y=np.cumsum(y)
y=y/y[-1]
print(f'y is : {y}')
y1=norm.cdf(x1, loc=m, scale=s)
y1=y1/y1[-1]
print(f'y1 is : {y1}')
y is : [0.04835861 0.12317281 0.22695357 0.35603744 0.5 0.64396256
0.77304643 0.87682719 0.95164139 1. ]
y1 is : [0.07365228 0.13295909 0.21954114 0.33299004 0.46641076 0.60724152
0.74066224 0.85411114 0.94069318 1. ]