File:Skew normal densities.svg
From Wikimedia Commons, the free media repository
Skew_normal_densities.svg (SVG file, nominally 720 × 540 pixels, file size: 91 KB)
[edit] Summary
| Description |
English: Plot of densities for several members of the skew normal family.
|
|---|---|
| Date |
1 March 2009 |
| Source |
Own work |
| Author | |
| Permission (Reusing this image) |
See below. |
[edit] Licensing
|
## ## Python code to generate this plot. ## Requires numpy, matplotlib, and the special functions module from 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:05, 1 March 2009 | 720×540 (91 KB) | Skbkekas (Talk | contribs) | ({{Information |Description={{en|1=Plot of densities for several members of the skew normal family.}} |Source=Own work by uploader |Author=Skbkekas |Date=2009-03-01 |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 Skew normal densities.svg on enwiki