Student[Statistics] - Maple Programming Help

Home : Support : Online Help : Education : Student Packages : Statistics : Random Variable Distributions : Student/Statistics/BinomialRandomVariable

Student[Statistics]

 BinomialRandomVariable
 binomial random variable

 Calling Sequence BinomialRandomVariable(n, p)

Parameters

 n - number of trials p - probability of success

Description

 • The binomial random variable is a discrete probability random variable with probability function given by:

$f\left(t\right)=\left\{\begin{array}{cc}0& t<0\\ \left(\genfrac{}{}{0}{}{n}{t}\right){p}^{t}{\left(1-p\right)}^{n-t}& \mathrm{otherwise}\end{array}\right\$

 subject to the following conditions:

$0

 • The binomial random variable is used for the estimation of probabilities in a set of success or failures.  The binomial variate indicates the number of successes in a set of n Bernoulli trials, each with probability of success p.

Notes

 • The Quantile function applied to a binomial distribution uses a sequence of iterations in order to converge upon the desired output point.  The maximum number of iterations to perform is equal to 100 by default, but this value can be changed by setting the environment variable _EnvStatisticsIterations to the desired number of iterations.

Examples

 > $\mathrm{with}\left(\mathrm{Student}\left[\mathrm{Statistics}\right]\right):$
 > $X≔\mathrm{BinomialRandomVariable}\left(n,p\right):$
 > $\mathrm{ProbabilityFunction}\left(X,u\right)$
 $\left\{\begin{array}{cc}{0}& {u}{<}{0}\\ \left(\genfrac{}{}{0}{}{{n}}{{u}}\right){}{{p}}^{{u}}{}{\left({1}{-}{p}\right)}^{{n}{-}{u}}& {\mathrm{otherwise}}\end{array}\right\$ (1)
 > $\mathrm{ProbabilityFunction}\left(X,1\right)$
 ${n}{}{p}{}{\left({1}{-}{p}\right)}^{{n}{-}{1}}$ (2)
 > $\mathrm{Mean}\left(X\right)$
 ${p}{}{n}$ (3)
 > $\mathrm{Variance}\left(X\right)$
 ${n}{}{p}{}\left({1}{-}{p}\right)$ (4)
 > $Y≔\mathrm{BinomialRandomVariable}\left(10,\frac{2}{5}\right):$
 > $\mathrm{ProbabilityFunction}\left(Y,x,\mathrm{output}=\mathrm{plot}\right)$
 > $\mathrm{CDF}\left(Y,3,\mathrm{numeric}\right)$
 ${0.382280601592232}$ (5)
 > $\mathrm{CDF}\left(Y,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][BinomialRandomVariable] command was introduced in Maple 18.