This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nisthesecond
Recipients nisthesecond
Date 2019-02-26.04:42:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1551156145.2.0.780333517951.issue36113@roundup.psfhosted.org>
In-reply-to
Content
"""
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
History
Date User Action Args
2019-02-26 04:42:25nisthesecondsetrecipients: + nisthesecond
2019-02-26 04:42:25nisthesecondsetmessageid: <1551156145.2.0.780333517951.issue36113@roundup.psfhosted.org>
2019-02-26 04:42:25nisthesecondlinkissue36113 messages
2019-02-26 04:42:25nisthesecondcreate