MATLAB Answers

0

Exponential Distribution for random number

Asked by Aftab Ahmed Khan on 7 Nov 2015
Latest activity Commented on by Star Strider
on 7 Nov 2015
Hi, How can i generate an exponential distributed random integer from the interval [1 16]. Thank you so much.

  0 Comments

Sign in to comment.

1 Answer

Answer by Star Strider
on 7 Nov 2015
 Accepted Answer

I need a bit of clarification. Are the means on the interval [1 16], do you want the output to be on the interval 1 16, or a row vector of 16 exponentially distributed random variables? You have to specify a mean (or an array of means) in the second and third instances. (You can do any of these easily enough, but the output are no longer strictly exponentially distributed in the second instance.)

  6 Comments

Your non-uniform random variate question turned out to be much more involved than I can answer here, and even Wikipedia avoids it. The short answer appears to be that it is any distribution that is not uniform, not a specific distribution named ‘non-uniform’.
I did an online search to be certain. A comprehensive discussion is at NON-UNIFORM RANDOM VARIATE GENERATION. (Other discussions I found online are as involved.) The same author has published a book on the subject.
Hi, Thank you for it. Take care & good nite.
My pleasure.
Thank you. You, too!

Sign in to comment.