Stixbox Function
Last update : 21/4/2006
rbeta - Random numbers from the beta distribution
Calling Sequence
- x = rbeta(n,a,b)
Parameters
-
n : positive integer or a vector [lig,col] of 2 positive integers
-
a,b : positive reals , parameters of the beta distribution (a,b can be scalars or matrix with common size with x).
-
x : n-vector or a n-matrix.
Description
returns random numbers from the beta distribution (inversion method)
with parameters a and b. density:
x.^(a-1).* (1-x).^(b-1)./beta(a,b)1_{0<x<1})
See Also
grand,