Output as NaN using pearsrnd command ?

조회 수: 3 (최근 30일)
Raj Arora
Raj Arora 2021년 7월 2일
댓글: Thamasha Samarasinghe 2021년 10월 8일
Pearsrnd is used for generating random samples of pearson distribtuion ?
mu = 4.9603;
Sigma = 1.1161;
Skew = -0.5666
kurt = -1.1129
r = pearsrnd(mu,Sigma,Skew,kurt,2000,1)
This command is showing NaN as output can anyone please help me with this,
Is it possible to get random samples for the log pearson type III distribution if I use logarithmic data parameters instead of actual data parameters?

답변 (1개)

Walter Roberson
Walter Roberson 2021년 7월 2일
According to the doc
"Some combinations of moments are not valid; in particular, the kurtosis must be greater than the square of the skewness plus 1."
However that is not the case for your kurt -- negative kurtosis is not greater than the square of any real value.
  댓글 수: 1
Thamasha Samarasinghe
Thamasha Samarasinghe 2021년 10월 8일
then do you know how to solve this? because I have the same problem in my data set.

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

카테고리

Help CenterFile Exchange에서 Probability Distributions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by