[SciPy-User] Trying to understand Distributions
Keith Sloan
keith at sloan-home.co.uk
Tue Jul 13 00:14:54 EDT 2021
Again another unsuccessful attempt trying to follow Roberts advice
Data is astronomic so loc = 0 is not okay
ax4 = fig.add_subplot(4, 1, 4)
ag2, bg2, cg2 =stats.gamma.fit(RErange1[xfield].data)
print(ag2, bg2, cg2)
x0, x1 = stats.gamma.ppf([0.1, 0.99], ag2, scale=cg2)
x = np.linspace(stats.gamma.ppf(x0,x1, int(ag2)))
ax4.plot(x, stats.gamma.pdf(x, ag2, scale = cg2),'r-', lw=5, alpha=0.6,
label='gamma pdf')
plt.show()
--
========== Art & Ceramics ===========
https://www.instagram.com/ksloan1952/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scipy-user/attachments/20210713/d954b5ae/attachment.html>
More information about the SciPy-User
mailing list