필터 지우기
필터 지우기

Moment of Lognormal distribution

조회 수: 5 (최근 30일)
Daniel Amankwah
Daniel Amankwah 2023년 9월 19일
편집: Torsten 2023년 9월 19일
How do I compute the mth moment of the lognormal distribution?

답변 (2개)

Torsten
Torsten 2023년 9월 19일
편집: Torsten 2023년 9월 19일
or with MATLAB (the second result looks wrong to me):
syms x mu real
syms sigma real positive
syms k integer positive
f = exp(k*x)/(sqrt(2*sym(pi))*sigma)*exp(-(x-mu)^2/(2*sigma^2));
moment_k = int(f,x,-Inf,Inf)
moment_k = 
double(subs(moment_k,[k mu sigma],[4 0.2 0.3]))
ans = 4.5722
f1 = x^k/(sqrt(2*sym(pi))*sigma*x)*exp(-(log(x)-mu)^2/(2*sigma^2));
moment1_k = int(f,x,0,Inf)
moment1_k = 
double(subs(moment1_k,[k mu sigma],[4 0.2 0.3]))
ans = 4.4306
  댓글 수: 3
Torsten
Torsten 2023년 9월 19일
There is an additional x in the denominator.
Bruno Luong
Bruno Luong 2023년 9월 19일
Oh I miss it.

댓글을 달려면 로그인하십시오.


Bruno Luong
Bruno Luong 2023년 9월 19일
"All moments of the log-normal distribution exist and"
  댓글 수: 3
Bruno Luong
Bruno Luong 2023년 9월 19일
mu = 0.2;
sigma = 0.3;
n = 4;
Mn = exp(n*mu + (n*sigma)^2/2)
Mn = 4.5722
Torsten
Torsten 2023년 9월 19일
:-)

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by