Draw random number from Normal distribution past a threshold value
Show older comments
Hi,
I want to draw values that are larger than 1.96 from a normal distribution. Anyone know how I can do this in matlab. Is there a built-in function to do this?
Note, of course I could use rejection sampling, but I want to draw a vector of 10000 values larger than 1.96 and I want to do this 5000 times. Using rejection sampling could be extremely time-consuming and I want to avoid that.
Thank you very much for your help.
Accepted Answer
More Answers (1)
Walter Roberson
on 22 Jun 2016
0 votes
The method of operation is not documented; it might use a rejection method internally.
Categories
Find more on Random Number Generation 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!