Logistic distribution¶
The logistic distribution is also known as the sech-squared distribution.
- mpsci.distributions.logistic.cdf(x, loc=0, scale=1)¶
CDF of the logistic distribution.
- mpsci.distributions.logistic.invcdf(p, loc=0, scale=1)¶
Inverse CDF of the logistic distribution.
This function is also known as the quantile function or the percent point function.
- mpsci.distributions.logistic.invsf(p, loc=0, scale=1)¶
Inverse survival function of the logistic distribution.
- mpsci.distributions.logistic.logpdf(x, loc=0, scale=1)¶
Logarithm of the PDF of the logistic distribution.
- mpsci.distributions.logistic.mean(loc=0, scale=1)¶
Mean of the logistic distribution.
- mpsci.distributions.logistic.mle(x)¶
Maximum likelihood estimate for the logistic distribution.
x must be a sequence of numbers.
Returns (loc, scale).
This function uses mp.findroot to numerically solve for the maximum likelihood estimate.
- mpsci.distributions.logistic.mom(x)¶
Method of moments parameter estimation for the logistic distribution.
x must be a sequence of numbers.
Returns (loc, scale).
- mpsci.distributions.logistic.nll(x, loc, scale)¶
Negative log-likelihood function for the logistic equation.
x must be a sequence of numbers.
- mpsci.distributions.logistic.pdf(x, loc=0, scale=1)¶
PDF of the logistic distribution.
- mpsci.distributions.logistic.sf(x, loc=0, scale=1)¶
Survival function of the logistic distribution.
- mpsci.distributions.logistic.support(loc=0, scale=1)¶
Support of the logistic distribution.
- mpsci.distributions.logistic.var(loc=0, scale=1)¶
Variance of the logistic distribution.