Generating Random Variables with beta Distribution
Mostrar comentarios más antiguos
I need to generate n random varibales with Beta Distribution with specified mean, variance, meninmum and maximum limit. I would be thankful if you can help me.
Respuestas (1)
Walter Roberson
el 26 de Mzo. de 2019
0 votos
Especially betarnd()
3 comentarios
Mehrnaz Alibeikloo
el 27 de Mzo. de 2019
You write you want to generate random numbers with specified mean and variance.
Mean and variance are functions of alpha and beta:
So solve these relations E[X]=f(alpha,beta), Var[X]=g(alpha,beta) for alpha and beta.
Walter Roberson
el 27 de Mzo. de 2019
The difficulty with the above is that Wikipedia only deals with the case of x ~ [0, 1] or x ~ (0,1) rather than a more generalized range.
Categorías
Más información sobre Inverse Gaussian Distribution en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!