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!