CDF for Loglogistic distribution

11 views (last 30 days)
What is the Cumulative Distribution Function for Loglogistic distribution? I only found the Probability Density Function in the following link: https://www.mathworks.com/help/stats/loglogistic-distribution.html.
  2 Comments
Walter Roberson
Walter Roberson on 8 Nov 2018
https://en.m.wikipedia.org/wiki/Log-logistic_distribution
Zhengpu Chen
Zhengpu Chen on 8 Nov 2018
Edited: Walter Roberson on 8 Nov 2018
Thank you for the reply. The expression of the function in Wiki and the one in Matlab documentation https://www.mathworks.com/help/stats/loglogistic-distribution.html seem to be not the same. I don't know if they are equivalent.

Sign in to comment.

Accepted Answer

David Goodmanson
David Goodmanson on 9 Nov 2018
Edited: David Goodmanson on 9 Nov 2018
Hello ZC,
They are equivalent. In Matlab
cdf = e^z / (1+e^z) % the missing one
pdf = (1/(sigma*x))*e^z / (1+e^z)^2
where
z = (log(x)-mu)/sigma
When you make the substitution (as mentioned in wikipedia, where they use s in place of sigma)
beta = 1/sigma e^mu = alpha
then
e^z = (x/alpha)^beta
and for wiki,
cdf = (x/alpha)^beta) /(1+(x/alpha)^beta)
pdf = (beta/alpha)*(x/alpha)^(beta-1)/(1+(x/alpha)^beta)^2

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!