Beta {base} | R Documentation |
dbeta(x, a, b)
pbeta(q, a, b)
qbeta(p, a, b)
rbeta(n, a, b)
x , q |
vector of quantiles. |
p |
vector of probabilities. |
n |
number of observations to generate. |
a , b |
positive parameters of the beta distribution. |
These functions provide information about the Beta distribution
with parameters a
and b
. dbeta
gives the density,
pbeta
the distribution function, qbeta
the
quantile function and rbeta
generates random deviates.
The Beta distribution has density
f(x) =
\frac{\Gamma (a + b )}{\Gamma (a) \Gamma (b)}
{x}^{a} {(1-x)}^{b}
for a > 0
,
b > 0
and
0 < x < 1
.
beta
for the beta function, and dgamma
for the
Gamma distribution.
x <- seq(0,1, length=21)
dbeta(x, 1, 1)
pbeta(x, 1, 1)