scale = ram.std()
x = np.asarray([-1, 0, 2, 3, 4, 5, 100])
cdf_val = stats.norm.cdf(x, loc=loc, scale=scale)
Calculate how a value differs from the average of values using the Gaussian Kernel Density (Python)