Probability density function of the logistic distribution
MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
stats::logisticPDF(m, s) returns the probability
of the logistic distribution with mean
s > 0.
f := stats::logisticPDF(m, s) can
be called in the form
f(x) with an arithmetical
x. The return value of
either a floating-point number or a symbolic expression:
x is a floating-point number and
be converted to floating-point numbers, then
a positive floating-point number.
f( infinity ) and
f(- infinity ) return
In all other cases, the expression is returned symbolically.
Numerical values for
only accepted if they are real and
s is positive.
The function is sensitive to the environment variable
determines the numerical working precision.
We evaluate the probability density function with
m = 0 and
s = 1 at
f := stats::logisticPDF(0, 1): f(1/2), f(0.5), f(x)
We use symbolic arguments:
f := stats::logisticPDF(m, s): f(x), f(3)
When numerical values are assigned to
f starts to produce numerical values:
m := 0: s := 1: f(3), f(3.0)
delete f, m, s:
The mean: an arithmetical expression representing a real value
The standard deviation: an arithmetical expression representing a positive real value