Student[Statistics]
ProbabilityFunction
compute the probability function
Calling Sequence
Parameters
Description
Computation
Examples
References
Compatibility
ProbabilityFunction(X, t, numeric_option,output_option)
X
-
algebraic; random variable
t
algebraic; point (assumed to be an integer)
numeric_option
(optional) equation of the form numeric=value where value is true or false
output_option
(optional) equation of the form output=x where x is value, plot, or both
inert_option
(optional) equation of the form inert=value where value is true or false
The ProbabilityFunction function computes the probability function of the specified discrete random variable at the specified point.
The first parameter can be either a discrete random variable, or a continuous random variable.
If the option inert is not included or is specified to be inert=false, then the function will return the actual value of the result. If inert or inert=true is specified, then the function will return the formula of evaluating the actual value.
By default, all computations involving random variables are performed symbolically (see option numeric below).
If the option numeric is included, then the computation is done in floating point. Otherwise the computation is exact.
If the first parameter is a continuous random variable, then the result is always 0.
By default, the probability function of the specified random variable at the specified point is computed according to the rules mentioned above. To always compute the value numerically, specify the numeric or numeric = true option.
with⁡StudentStatistics:
Compute the value of the probability function of the binomial random variable with parameters n and p.
ProbabilityFunction⁡BinomialRandomVariable⁡n,p,x
0x<0nx⁢px⁢1−pn−xotherwise
Use numeric parameters.
ProbabilityFunction⁡BinomialRandomVariable⁡10,13,5
8966561
ProbabilityFunction⁡BinomialRandomVariable⁡10,13,5,numeric
0.1365645480
Use the output = plot option.
ProbabilityFunction⁡BinomialRandomVariable⁡10,13,5,output=plot
Compute the value of the probability function of a continuous random variable at the specified point, and it should always be 0.
ProbabilityFunction⁡BetaRandomVariable⁡2,3,5
0
ProbabilityFunction⁡NormalRandomVariable⁡8,5,2
Define a new random variable, and use the inert option.
X≔BinomialRandomVariable⁡7,12+NegativeBinomialRandomVariable⁡3,12:
ProbabilityFunction⁡X,2,inert
∑u1=0∞⁡0u1<02+u1u1⁢12u18otherwise⁢0−u1<−272−u1⁢122−u1⁢125+u1otherwise
evalf⁡ProbabilityFunction⁡X,2,inert
0.03222656250
ProbabilityFunction⁡X,2,numeric
Now we use the output = both option on a Poisson random variable, which is discrete.
probability,graph≔ProbabilityFunction⁡PoissonRandomVariable⁡4,7,output=both:
probability
1024⁢ⅇ−4315
graph
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
The Student[Statistics][ProbabilityFunction] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
Statistics[ProbabilityFunction]
Student
Student[Statistics][RandomVariable]
Download Help Document