File:Loglogisticcdf.svg

From Vigyanwiki

Original file(SVG file, nominally 485 × 425 pixels, file size: 64 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: log-logistic distribution function.
Date

13 February 2008 (original upload date)

(Original text: 2008-02-09)
Source Own work (Original text: self-made)
Author Qwfp (talk)
 
W3C-validity not checked.
Source code using en:gnuplot 4.2.2:
 cdf(x,a,b) = (x/a)**b/(1+(x/a)**(b))
 set samples 1001
 set terminal svg enhanced  size 1300 975  linewidth 5 font "Times,36" 
 set output "loglogisticcdf.svg"
 #set terminal windows color enhanced
 set ytics 0.5
 
 f(x,y,z) = cdf(x,y,z)
 set key top left reverse Left
 
 plot [0:2] [0:1] \
  f(x, 1, .5)    title "1/2", \
  f(x, 1, 1)     title "1", \
  f(x, 1, 2)     title "2", \
  f(x, 1, 4)     title "4", \
  f(x, 1, 8)     title "8"
  
 set output
Source code for python:
from numpy import *
from matplotlib.pyplot import *
from mpl_toolkits.axes_grid.axislines import SubplotZero
 
cdf = lambda a,b,x: 1./ (1. + (x/a)**(-b) )

fig = figure(figsize=(6,5))
ax = SubplotZero(fig,111)
fig.add_subplot(ax)
ax.grid(True)
ax.minorticks_on()
 
x = linspace(0,2)
B = [1.,2.,4.,8.]
ax.plot(x,cdf(1.,.5,x),lw=1.5,label=r'$\beta=1/2$')
for b in B:
	ax.plot(x,cdf(1.,b,x),lw=1.5,label=r'$\beta=%d$'%b)

ax.set_ylim(0,1)
ax.set_xlim(0,2)
ax.legend(loc='upper left',frameon=False)
ax.set_yticks(arange(0,1.1,.25))
ax.set_yticklabels((r'0',r'0.25',r'0.5',r'0.75',r'1'))
ax.set_xticks((0,.5,1,1.5,2))
ax.set_xticklabels((r'0',r'0.5',r'1',r'1.5',r'2'))
ax.set_xlabel(r'x $-\!\rightarrow$')

fig.savefig("Loglogisticcdf.svg",bbox_inches="tight",pad_inches=.15)

Licensing

Qwfp at English Wikipedia, the copyright holder of this work, hereby publishes it under the following licences:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported licence.
Attribution: Qwfp at English Wikipedia
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 licence, 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 licence as the original.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation Licence, 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 licence is included in the section entitled GNU Free Documentation Licence.
You may select the licence of your choice.

Original upload log

The original description page was here. All following user names refer to en.wikipedia.
  • 2008-02-13 12:15 Qwfp 1300×975× (74524 bytes) {{Information |Description=log-logistic distribution function |Source=self-made |Date=2008-02-13 |Location= |Author=~~~ |Permission= |other_versions= }}
  • 2008-02-09 18:30 Qwfp 600×480× (73664 bytes) {{Information |Description=log-logistic distribution function |Source=self-made |Date=2008-02-09 |Location= |Author=~~~ |Permission= |other_versions= }}

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

13 February 2008

File history

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

Date/TimeThumbnailDimensionsUserComment
current22:36, 25 September 2011Thumbnail for version as of 22:36, 25 September 2011485 × 425 (64 KB)wikimediacommons>Krishnavedalacreated using python, with valid SVG, corrected characters.

The following page uses this file: