File:Generalized normal cdfs.svg
From Wikimedia Commons, the free media repository
Generalized_normal_cdfs.svg (SVG file, nominally 720 × 540 pixels, file size: 114 KB)
[edit] Summary
| Description |
English: Plots of the cumulative distribution functions for several members of the family of generalized normal probability distributions.
|
|---|---|
| Date |
27 February 2009 |
| Source |
Own work |
| Author | |
| Permission (Reusing this image) |
See below. |
[edit] Licensing
|
## ## Python code to generate density and CDF plots for the ## generalized normal distribution (requires matplotlib, numpy, ## and the special functions module of scipy). ## import matplotlib.pyplot as plt import numpy as np import scipy.special as sp def dens(X, a, b, mu): Y = np.abs(X-mu)/a Y = np.exp(-Y**b) Y = Y*b/(2*a) Y /= np.exp(sp.gammaln(1/float(b))) return Y def cdf(X, a, b, mu): Y = dens(X, a, b, mu) Y = np.cumsum(Y)*(X[1]-X[0]) return Y w = 1.5 X = np.arange(-3, 3, 0.01) plt.clf() colors = ['aqua', 'black', 'lime', 'deeppink', 'darkorange', 'blue'] B = [0.5, 1, 1.5, 2, 3, 8] F = [] for c,b in zip(colors, B): Y = dens(X, 1, b, 0) f = plt.plot(X, Y, '-', color=c, lw=w) F.append(f) plt.hold(True) s = ["$\\beta=%s$" % str(b) for b in B] b = plt.legend(tuple(F), tuple(s), 'upper left') plt.ylabel("Density") b.draw_frame(False) plt.savefig("generalized_normal_densities.svg") plt.savefig("generalized_normal_densities.png") plt.clf() F = [] for c,b in zip(colors, B): Y = cdf(X, 1, b, 0) f = plt.plot(X, Y, '-', color=c, lw=w) F.append(f) plt.hold(True) b = plt.legend(tuple(F), tuple(s), 'upper left') plt.ylabel("Cumulative probability") b.draw_frame(False) plt.ylim(0,1) plt.savefig("generalized_normal_cdfs.svg") plt.savefig("generalized_normal_cdfs.png")
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 04:06, 28 February 2009 | 720×540 (114 KB) | Skbkekas (talk | contribs) | ({{Information |Description={{en|1=Cumulative distribution functions for various generalized normal distributions.}} |Source=Own work by uploader |Author=Skbkekas |Date=2009-02-27 |Permission= |other_versions= }} <!--{{ImageUpload|full}}) |
- Edit this file using an external application (See the setup instructions for more information)
File links
There are no pages that link to this file.
Global file usage
The following other wikis use this file:
- Usage of Generalized normal cdfs.svg on enwiki