File:Levyskew distributionCDF.svg
Summary
Description |
English: CDFs for skewed centered Levy distributions |
Date | |
Source | Original png graphic was made by PAR and can be found at Levyskew distributionCDF.png |
Author | Eitanlees |
SVG development | |
Source code | Python codeimport 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)
beta_list = [0.0, 0.25, 0.50, 0.75, 1.00]
y = [stats.levy_stable.cdf(x, 0.5, beta) for beta in beta_list]
fig, ax = plt.subplots()
c = ['black', 'blue', 'lime', 'red', 'magenta']
for i, data in enumerate(y):
ax.plot(x, data, color=c[i], label=r'$\beta=' + str(beta_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'$\alpha = 0.5$')
plt.plot([], [], ' ', label=r'$c=1$')
plt.plot([], [], ' ', label=r'$\mu=0$')
plt.legend(frameon=False)
fig.savefig('Levyskew_distributionCDF.svg', bbox_inches='tight')
|
}}
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
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.