Jump to content

File:Frechet pdf.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 640 × 489 pixels, file size: 95 KB)

Summary

Description A plot of the probability density function of the Fréchet distribution.
Date
Source Self-made using python with numpy and matplotlib.
Author user:Arthena

Python Code

from matplotlib.pyplot import *
from numpy import linspace, exp

def calc_frechet_pdf(x,a,s):
    y = (a/s) * ((x/s)**(-1-a)) * exp(- (x/s)**(-a) )
    return y
 
x = linspace(0,4,10**5)
 
fig = figure()
ax = fig.add_subplot(111)
ax.plot(x,calc_frechet_pdf(x,1.,1.),label=r'$\alpha=1;$ $s=1$', linewidth=2)
ax.plot(x,calc_frechet_pdf(x,2.,1.),label=r'$\alpha=2;$ $s=1$', linewidth=2)
ax.plot(x,calc_frechet_pdf(x,3.,1.),label=r'$\alpha=3;$ $s=1$', linewidth=2)
ax.plot(x,calc_frechet_pdf(x,1.,2.),label=r'$\alpha=1;$ $s=2$', linewidth=2)
ax.plot(x,calc_frechet_pdf(x,2.,2.),label=r'$\alpha=2;$ $s=2$', linewidth=2)
ax.plot(x,calc_frechet_pdf(x,3.,2.),label=r'$\alpha=3;$ $s=2$', linewidth=2)
ax.grid(True)
ax.minorticks_on()
ax.legend(loc=1)
ax.set_xlim(0,4)
ax.set_ylim(0,1.5)
ax.set_xlabel("x")
ax.set_ylabel("PDF")
fig.savefig("Frechet_pdf.svg",bbox_inches="tight", pad_inches=.15)

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic 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.
You may select the license of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

9 July 2011

File history

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

Date/TimeThumbnailDimensionsUserComment
current21:16, 9 July 2011Thumbnail for version as of 21:16, 9 July 2011640 × 489 (95 KB)Arthena== Summary == {{Information |Description= A plot of the probability density function of the Fréchet distribution. |Source= Self-made using python with numpy and matplotlib. |Date= July 9

The following page uses this file:

Global file usage

The following other wikis use this file: