Quantcast
Viewing all articles
Browse latest Browse all 11560

Re: Random number generation of Beta distribution on [Z1,Z2] (not [0,1])

AlanStevens wrote:

 

Z1 + (Z2 - Z1)*rbeta(n,a,b)

 

Alan

better

rAlanStevens(n, α, β, a, b) := a + (b - a)*rbeta(n, α , βImage may be NSFW.
Clik here to view.

 

I have saw in one sheet 100*runif(n, 0, 1)

 

And the second.

Do you know why we have rbeta, rgamma but not ralpha?


Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>