How to create a skewed distribution that is truncated?
조회 수: 13 (최근 30일)
이전 댓글 표시
Hello,
I am trying to make a right skewed truncated distribution with a mean of 75 and SD of 15 that does not produce values outside of 0 and 100.
I understand that you can truncate a normale distribution probability object with... t = truncate(pd,lower,upper)
Meanwhile, I know that you can also create a skewed distribution with: pearsrnd(mean,sd,skew,kurt,trials,col)
However, I am not sure how you create both a skewed distribution and extract values from it that also is truncated? Can anyone assist me with this?
댓글 수: 3
Adam Danz
2019년 10월 15일
Great! I'll copy my comment as an answer below so your question appears as solved. Note that this method biases the distribution which could result in distribution that doesn't maintain the properties of the actual desired distribution. But that's at least partial true of any bounded distribution.
채택된 답변
Adam Danz
2019년 10월 15일
(continuing from the comments under the question)
One solution is to just truncate the distribution yourself by producing the distribution, cutting out values beyond your bounds, and replacing them with a new draw of numbers from the same distribution. That process could be set up in a while-loop that ends when the number of accepted values reaches your specification. Note that this could bias your distribution as is discussed in the comments under the question.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!