Message336604
"""
Construct normal probability plot
"""
import math
import scipy.stats as ss
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import prettytable
from random import seed
seed(100)
################
mu = 0.0
sigma = 1.0
x = np.linspace(mu - 5*sigma, mu + 5*sigma, 10)
norm_pdf_x= ss.norm.pdf(x,mu,sigma)
plt.plot(x,norm_pdf_x)
print("The Std. Dev. of normally Dist. x =", np.std(norm_pdf_x))
print()
###########################################
Produces a wrong Result for sigma:
The Std. Dev. of normally Dist. x = 0.13142071847657633
Should be 1.0 |
|
Date |
User |
Action |
Args |
2019-02-26 04:42:25 | nisthesecond | set | recipients:
+ nisthesecond |
2019-02-26 04:42:25 | nisthesecond | set | messageid: <1551156145.2.0.780333517951.issue36113@roundup.psfhosted.org> |
2019-02-26 04:42:25 | nisthesecond | link | issue36113 messages |
2019-02-26 04:42:25 | nisthesecond | create | |
|