How to implement this random distribution operation with matlab(beta disturbution)
Show older comments
Satisfy beta distribution
mean:0.362
std:0.245
A:2
B:0.98
3 Comments
Walter Roberson
on 18 Apr 2022
YANZHI YANG
on 18 Apr 2022
mean = A/(A+B)
std = sqrt(A*B/((A+B+1)*(A+B)^2))
If mean and std are given, you can "invert" the formulae to get the A and B values for MATLAB's "betarnd".
Answers (1)
the cyclist
on 18 Apr 2022
0 votes
You can calculate the parameters of the beta distribution from the mean and variance. The formula for doing this is on the Wikipedia page for the beta distribution. There is also a good description of the process here.
1 Comment
YANZHI YANG
on 19 Apr 2022
Categories
Find more on Beta Distribution in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!