BetaRandomVariable - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

Student[Statistics]

 BetaRandomVariable
 beta random variable

 Calling Sequence BetaRandomVariable(nu, omega)

Parameters

 nu - first shape parameter omega - second shape parameter

Description

 • The beta distribution is a continuous probability distribution with probability density function given by:

$f\left(t\right)=\left\{\begin{array}{cc}0& t<0\\ \frac{{t}^{-1+\mathrm{\nu }}{\left(1-t\right)}^{-1+\mathrm{\omega }}}{\mathrm{Β}\left(\mathrm{\nu },\mathrm{\omega }\right)}& t<1\\ 0& \mathrm{otherwise}\end{array}\right\$

 subject to the following conditions:

$0<\mathrm{\nu },0<\mathrm{\omega }$

 • The beta random variable is related to the independent Gamma variates Gamma(1,nu) and Gamma(1,omega) by the formula Beta(nu,omega) ~ Gamma(1,nu)/(Gamma(1,nu)+Gamma(1,omega)).

Examples

 > $\mathrm{with}\left(\mathrm{Student}\left[\mathrm{Statistics}\right]\right):$
 > $X≔\mathrm{BetaRandomVariable}\left(\mathrm{\nu },\mathrm{\omega }\right):$
 > $\mathrm{PDF}\left(X,u\right)$
 $\left\{\begin{array}{cc}{0}& {u}{<}{0}\\ \frac{{{u}}^{{-}{1}{+}{\mathrm{\nu }}}{}{\left({1}{-}{u}\right)}^{{-}{1}{+}{\mathrm{\omega }}}}{{\mathrm{Β}}{}\left({\mathrm{\nu }}{,}{\mathrm{\omega }}\right)}& {u}{<}{1}\\ {0}& {\mathrm{otherwise}}\end{array}\right\$ (1)
 > $\mathrm{PDF}\left(X,0.5\right)$
 $\frac{{{0.5}}^{{-}{1.}{+}{\mathrm{\nu }}}{}{{0.5}}^{{-}{1.}{+}{\mathrm{\omega }}}}{{\mathrm{Β}}{}\left({\mathrm{\nu }}{,}{\mathrm{\omega }}\right)}$ (2)
 > $\mathrm{Mean}\left(X\right)$
 $\frac{{\mathrm{\nu }}}{{\mathrm{\nu }}{+}{\mathrm{\omega }}}$ (3)
 > $\mathrm{Variance}\left(X\right)$
 $\frac{{\mathrm{\nu }}{}{\mathrm{\omega }}}{{\left({\mathrm{\nu }}{+}{\mathrm{\omega }}\right)}^{{2}}{}\left({\mathrm{\nu }}{+}{\mathrm{\omega }}{+}{1}\right)}$ (4)
 > $Y≔\mathrm{BetaRandomVariable}\left(4,7\right):$
 > $\mathrm{PDF}\left(Y,x,\mathrm{output}=\mathrm{plot}\right)$
 > $\mathrm{CDF}\left(Y,x\right)$
 $\left\{\begin{array}{cc}{0}& {x}{<}{0}\\ {210}{}{{x}}^{{4}}{}{\mathrm{hypergeom}}{}\left(\left[{-6}{,}{4}\right]{,}\left[{5}\right]{,}{x}\right)& {x}{<}{1}\\ {1}& {\mathrm{otherwise}}\end{array}\right\$ (5)
 > $\mathrm{CDF}\left(Y,0.5,\mathrm{output}=\mathrm{plot}\right)$

References

 Evans, Merran; Hastings, Nicholas; and Peacock, Brian. Statistical Distributions. 3rd ed. Hoboken: Wiley, 2000.
 Johnson, Norman L.; Kotz, Samuel; and Balakrishnan, N. Continuous Univariate Distributions. 2nd ed. 2 vols. Hoboken: Wiley, 1995.
 Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998.  Vol. 1: Distribution Theory.

Compatibility

 • The Student[Statistics][BetaRandomVariable] command was introduced in Maple 18.
 • For more information on Maple 18 changes, see Updates in Maple 18.

 See Also