How to get just positive numbers which follows normal distribution?
Show older comments
Hello all,
I am generating random samples of Weibull distribution. The shape and scale parameter for this Weibull distribution are itself normally distributed. In particular, the shape parameter has mean of 1 and standard deviation of 5. So I first generate sample pairs of shape and scale parameters and then I generate samples of Weibull distribution corresponding to each pair. So I am interested in knowing that how to ensure that output of normrnd function will always be positive especially when mean is 1 and standard deviation is 5? I mean how to get normally distributed samples which will always be positive. The reason I need this is because these samples are for Shape parameters. And shape parameter of Weibull distribution is always positive, else wblrnd function gives error. Any guidance in this regard will be highly appreciated, Thanks in advance,
Nikhil
Accepted Answer
More Answers (0)
Categories
Find more on Weibull Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!