File:Loglogisticcdf.svg

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.Category:Unchecked SVG validity
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 licenses:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
Attribution:
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.
Category:CC-BY-SA-3.0#Loglogisticcdf.svg
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.
Category:License migration redundant#Loglogisticcdf.svgCategory:GFDL#Loglogisticcdf.svg
You may select the license of your choice.
Category:Self-published work

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= }}
Category:Probability distributions
Category:CC-BY-SA-3.0 Category:GFDL Category:License migration redundant Category:Probability distributions Category:Self-published work Category:Unchecked SVG validity