Jump to content

File:Logisticpdfunction.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 450 × 360 pixels, file size: 40 KB)

Summary

Description
English: Probability distribution function of a logistic distribution.
Date
Source Own work
Author Krishnavedala
 
W3C-validity not checked.
Source Code in python:
from numpy import *
from matplotlib.pyplot import *
from mpl_toolkits.axes_grid.axislines import SubplotZero
 
e = lambda mu,s,x: exp( (mu-x)/s )
pdf = lambda mu,s,x: e(mu,s,x) / ( s* (1.+e(mu,s,x) )**2 )

fig = figure(figsize=(6,5))
ax = SubplotZero(fig,111)
fig.add_subplot(ax)
 
ax.grid(True)
ax.minorticks_on()
 
x = linspace(-5,20,100)
mu = [5,9,9,6,2]
s = [2,3,4,2,1]
for b in arange(5):
	ax.plot(x,pdf(mu[b],s[b],x),lw=1.5,label=r'$\mu=%d,\, s=%d$'%(mu[b],s[b]))#'$c={}^1\!/_2$')

ax.set_ylim(0,.3)
ax.set_xlim(-5,20)
ax.legend(loc='upper right',frameon=False)
ax.set_yticks(arange(0,.4,.1))

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

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

25 September 2011

image/svg+xml

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:48, 13 October 2021Thumbnail for version as of 17:48, 13 October 2021450 × 360 (40 KB)AkanoToESmoother curves, updated axis labels and font
18:00, 25 September 2011Thumbnail for version as of 18:00, 25 September 2011480 × 409 (78 KB)Krishnavedala

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata