Appendix A. Beta-distribution moments and parameter estimation.
The mean and variance of the beta-distribution are related to the shape parameters α and β as

and

These relationships may be inverted to obtain the following relationships for parameter estimation

and

where
and s2 are the sample mean and the baised sample varianve given by

and
