Compute the parameters shape1
and shape2
of the beta distribution
using method of moments given the mean and standard
deviation of the random variable of interest.
mom_beta(mean, sd)
Mean of the random variable.
Standard deviation of the random variable.
A list containing the parameters shape1
and shape2
.
If μ is the mean and
σ is the standard deviation of the random variable, then the method
of moments estimates of the parameters shape1
= α>0 and
shape2
= β>0 are:
α=μ(μ(1−μ)σ2−1)
and
β=(1−μ)(μ(1−μ)σ2−1)