File:Skew normal cdfs.svg
From Wikimedia Commons, the free media repository
Skew_normal_cdfs.svg (SVG file, nominally 720 × 540 pixels, file size: 95 KB)
[edit] Summary
| Description |
English: Plots of the cumulative distribution functions for several members of the skew normal family of probability distributions.
|
|---|---|
| Date |
1 March 2009 |
| Source |
Own work |
| Author | |
| Permission (Reusing this image) |
See below. |
[edit] Licensing
|
## ## Python code used to generate this plot. ## 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): Y = 2*np.exp(-X**2/2)/np.sqrt(2*np.pi) Y *= sp.ndtr(a*X) return Y def cdf(X, a): Y = dens(X, a) Y = np.cumsum(Y)*(X[1]-X[0]) return Y w = 1.5 X = np.arange(-3, 3, 0.01) plt.clf() colors = ['aqua', 'lime', 'deeppink', 'darkorange', 'blue'] B = [-4, -1, 0, 1, 4] F = [] for c,b in zip(colors, B): Y = dens(X, b) f = plt.plot(X, Y, '-', color=c, lw=w) F.append(f) plt.hold(True) s = ["$\\alpha=%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("skew_normal_densities.svg") plt.savefig("skew_normal_densities.png") plt.clf() F = [] for c,b in zip(colors, B): Y = cdf(X, b) 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("skew_normal_cdfs.svg") plt.savefig("skew_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 | 06:10, 1 March 2009 | 720×540 (95 KB) | Skbkekas (talk | contribs) | ({{Information |Description={{en|1=Plots of the cumulative distributions for several members of the skew normal family of probability distributions.}} |Source=Own work by uploader |Author=Skbkekas |Date=2009-03-01 |Permission= |other_vers) |
- 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 Skew normal cdfs.svg on enwiki