Skip to content

LogisticDistribution ​

The logistic distribution with location μ\mu and scale β\beta.

LogisticDistribution(mu, beta)an inert distribution object — carries μ,β\mu, \beta, unevaluated.
Typed signatures
TypePackageApplies
(real, real<0..>) -> distributionstatisticsalways

Domain: Statistics

Details
  • PDF(x)=e−(x−μ)/β/(β(1+e−(x−μ)/β)2)PDF(x) = e^{-(x-\mu)/\beta} \big/ \big(\beta(1+e^{-(x-\mu)/\beta})^2\big), exact.
  • CDF(x)=1/(1+e−(x−μ)/β)CDF(x) = 1/(1+e^{-(x-\mu)/\beta}), exact.
  • Mean=μMean = \mu, Variance=β2π2/3Variance = \beta^2\pi^2/3, both exact.
  • RandomVariate samples via inverse transform: μ+βlog⁡(U/(1−U))\mu + \beta\log(U/(1-U)).

Examples

Basic #
live ↗
InPDF⁡(LogisticDistribution(0,1),0)\operatorname{PDF}(\mathrm{LogisticDistribution}(0, 1), 0)Out14\frac{1}{4}
live ↗
InCDF⁡(LogisticDistribution(0,1),0)\operatorname{CDF}(\mathrm{LogisticDistribution}(0, 1), 0)Out12\frac{1}{2}
live ↗
Inmean(LogisticDistribution(0,1))\mathrm{mean}(\mathrm{LogisticDistribution}(0, 1))Out00
live ↗
InVariance(LogisticDistribution(0,1))\mathrm{Variance}(\mathrm{LogisticDistribution}(0, 1))Outπ23\frac{π^2}{3}
About
Examples4

See also: LaplaceDistribution, PDF, CDF