Jump to content

File:Levy distributionCDF.svg

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (SVG file, nominally 460 × 310 pixels, file size: 54 KB)

Summary

Description
English: CDFs for symmetric α-Levy distributions
Date
Source Original png graphic was made by PAR and can be found at Levy distributionCDF.png
Author Eitanlees
SVG development
InfoField
 
The SVG code is valid.
 
This plot was created with Matplotlib.
Source code
InfoField

Python code

import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
from matplotlib.ticker import MultipleLocator

plt.rcParams.update({
    "text.usetex": True,
    "font.family": "serif",
})

x = np.linspace(-4, 4, 500)

alpha_list = [2.0, 1.5, 1.0, 0.5]

y = [stats.levy_stable.cdf(x, alpha, 0.0) for alpha in alpha_list]

fig, ax = plt.subplots()

c = ['black', 'blue', 'lime', 'red']
for i, data in enumerate(y):
    ax.plot(x, data, color=c[i], label=r'$\alpha=' + str(alpha_list[i]) + r'$')
    
ax.xaxis.set_minor_locator(MultipleLocator(.25))
ax.xaxis.set_major_locator(MultipleLocator(2))
ax.yaxis.set_minor_locator(MultipleLocator(.025))
ax.tick_params(axis='both', which='both', direction='in', top=True, right=True)
ax.set(ylim=(0, 1), xlim=(-4, 4))
plt.plot([], [], ' ', label=r'$\beta = 0$')
plt.plot([], [], ' ', label=r'$c=1$')
plt.plot([], [], ' ', label=r'$\mu=0$')
plt.legend(frameon=False)
fig.savefig('Levy_distributionCDF.svg', bbox_inches='tight')

}}

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

20 October 2020

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:40, 20 October 2020Thumbnail for version as of 21:40, 20 October 2020460 × 310 (54 KB)EitanleesReduce the number of y tick marks.
20:54, 20 October 2020Thumbnail for version as of 20:54, 20 October 2020460 × 310 (75 KB)EitanleesUploaded own work with UploadWizard

The following 2 pages use this file:

Global file usage

The following other wikis use this file:

Metadata