File:Levy0 distributionPDF.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 413 × 419 pixels. Other resolutions: 237 × 240 pixels | 473 × 480 pixels | 757 × 768 pixels | 1,009 × 1,024 pixels | 2,019 × 2,048 pixels.
Original file (SVG file, nominally 413 × 419 pixels, file size: 51 KB)
File information
Structured data
Captions
Summary
[edit]DescriptionLevy0 distributionPDF.svg | |
Date | |
Source | Own work |
Author | Krishnavedala |
Python source code
|
---|
from numpy import *
from matplotlib.pyplot import *
from mpl_toolkits.axes_grid.axislines import SubplotZero
pdf = lambda c,m,x: sqrt(c/(2.*pi)) * exp(-c*.5 / (x-m)) / (x-m)**1.5
fig = figure(figsize=(5,5))
ax = SubplotZero(fig,111)
fig.add_subplot(ax)
for direction in ["xzero","yzero"]:
ax.axis[direction].set_visible(True)
ax.axis[direction].set_axisline_style("->")
for direction in ["top","bottom","left","right"]:
ax.axis[direction].set_visible(False)
ax.axis["yzero"].set_axis_direction("left")
ax.grid(False)
ax.minorticks_on()
x = linspace(.001,3,150)
ax.plot(x,pdf(.5,0.,x),'r',lw=2,label=r'$c=1/2$')#'$c={}^1\!/_2$')
ax.plot(x,pdf(1.,0.,x),'k',lw=2,label=r'$c=1$')
ax.plot(x,pdf(2.,0.,x),'c',lw=2,label=r'$c=2$')
ax.plot(x,pdf(4.,0.,x),'b',lw=2,label=r'$c=4$')
ax.plot(x,pdf(8.,0.,x),'g',lw=2,label=r'$c=8$')
ax.set_ylim(0,1.01)
ax.set_xlim(0,3)
ax.legend(loc=0,frameon=False)
ax.axis["xzero"].label.set_text(r'x')
#ax.axis["yzero"].label.set_text(r'$f_x(x;\mu,\sigma)=\frac{1}{x\sigma\sqrt{2\pi}}e^{-\frac{\left(\ln x-\mu\right)^2}{2\sigma^2}}$')
fig.savefig("Levy0_distributionPDF.svg",bbox_inches="tight",pad_inches=.15)
|
Licensing
[edit]I, the copyright holder of this work, hereby publish it under the following license:
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 17:57, 22 September 2011 | 413 × 419 (51 KB) | Krishnavedala (talk | contribs) |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on ca.wikipedia.org
- Usage on en.wikipedia.org
- Usage on es.wikipedia.org
- Usage on fa.wikipedia.org
- Usage on hu.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on sq.wikipedia.org
- Usage on uk.wikipedia.org