Learn R Programming

DescTools (version 0.99.60)

mbeta: Mean and Variance of the Beta Distribution

Description

Formula: \(\mu = \frac{\alpha}{\alpha + \beta}\) \(\mathrm{Var}(X) = \frac{\alpha \cdot \beta}{(\alpha + \beta)^2 (\alpha + \beta + 1)}\)

Usage

mbeta(shape1, shape2)

Value

List with mean and variance

Arguments

shape1

Alpha parameter

shape2

Beta parameter

See Also

Examples

Run this code
mbeta(shape1 = 2, shape2 = 3)

Run the code above in your browser using DataLab