| beta_dist | R Documentation |
Creates an S3 object representing a beta distribution with shape
parameters shape1 and shape2. The PDF on (0, 1) is
f(x) = \frac{x^{a-1}(1-x)^{b-1}}{B(a,b)}
where a = shape1, b = shape2, and B(a,b)
is the beta function.
beta_dist(shape1, shape2)
shape1 |
First shape parameter, must be a positive scalar. |
shape2 |
Second shape parameter, must be a positive scalar. |
A beta_dist object with classes
c("beta_dist", "univariate_dist", "continuous_dist", "dist").
x <- beta_dist(shape1 = 2, shape2 = 5)
mean(x)
vcov(x)
format(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.