フィルターのクリア

Transform Mean and standard deviation that follow normal distribution into Mi and Sigma that follow Logarithmic normal distribution (Log-Normal)

17 ビュー (過去 30 日間)
As the title described, I have a problem with reliability with Mean Time To Repair (MTTR) with Mean = 550 e Standard derivation = 27 hours (Normal distribution). But, The maintenance is better represented as a Lognormal distribution and not Normal Distribution.
How can I convert Mi and Standart Derivation used into Normal Distribution to use it in Lognormal distribution.
Cheers

採用された回答

Jeff Miller
Jeff Miller 2018 年 7 月 10 日
finalmu = 550;
finalsigma = 27;
lnsigma = sqrt( log( finalsigma^2 / finalmu^2 + 1) );
lnmu = log( finalmu/exp(0.5*lnsigma^2) );
  4 件のコメント
yogan sganzerla
yogan sganzerla 2018 年 7 月 12 日
Thanks Jeff, I accept your first answer.
I still don't understand the reason that my graphics look like the same. Both have in x_axes the mean equal to 550. What the mean of the second plot isn't the variable "lnmu" that is 6.3087.
My other question is: Why the first answer, from Shashank Prasanna, he used this code to convert Mean and std that follow normal distriution into Mean and Std that follow lognormal distribution? This is the code:
m=31.59299751;
s=69.72271594;
mu = log(m^2/sqrt(s+m^2))
sigma = sqrt(log(1+s/m^2))
lognrnd(mu,sigma)
Why it is different that I am using, or they are the same?
Cheers
Jeff Miller
Jeff Miller 2018 年 7 月 12 日
> the mean of the second plot isn't the variable "lnmu" that is 6.3087.
This is because the lognormal distribution is a transformation of a normally distributed variable. Specifically, if X is normal, then Y=exp(X) has a lognormal distribution. (That is, the distribution of log(Y) is normal.) In your case, the mean of X is 6.3087. But you are plotting the distribution of Y, and its mean is closer to exp(6.3087)--not exactly the same because exp() is a nonlinear transformation.
If you plotted X=log(Y), then you would see a normal with mean 6.3087 as I guess you are expecting.
I am not sure about the earlier equations. They are not the same, but maybe the earlier s was variance rather than standard deviation?

サインインしてコメントする。

その他の回答 (0 件)

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by