Reputation: 55
I'm trying to generate PDF's (or in this case "discrete PDF's").
I'am trying to use the numpy.random.normal(mu,sigma,size) but the function does not take in consideration if the standard deviation was calculated for 68%, 95% or 99%. The webpage says:
The function has its peak at the mean, and its “spread” increases with the standard deviation (the function reaches 0.607 times its maximum at x + sigma and x - sigma
Note: The standard deviation i'm trying to input as argument are actually expanded uncertainties which is why the confidence intervals are needed.
Upvotes: 0
Views: 1041
Reputation: 79441
scipy.stats.norm.pdf
or one of the alternatives to get the values of the normal distribution (as opposed to randomly sampling).Upvotes: 1