File:Logisticpdfunction.svg

From Vigyanwiki

Original file(SVG file, nominally 450 × 360 pixels, file size: 40 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: 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 licence:
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 neighbouring 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
current23:18, 13 October 2021Thumbnail for version as of 23:18, 13 October 2021450 × 360 (40 KB)wikimediacommons>AkanoToESmoother curves, updated axis labels and font

The following page uses this file:

Metadata