Generating Random Variables with beta Distribution
이전 댓글 표시
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.
답변 (1개)
Walter Roberson
2019년 3월 26일
0 개 추천
Especially betarnd()
댓글 수: 3
Mehrnaz Alibeikloo
2019년 3월 27일
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
2019년 3월 27일
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.
카테고리
도움말 센터 및 File Exchange에서 Inverse Gaussian Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!