Statistics
ProbabilityFunction
compute the probability function
Calling Sequence
Parameters
Description
Computation
Options
Examples
References
ProbabilityFunction(X, t, options)
X
-
algebraic; random variable or distribution
t
algebraic; point (assumed to be an integer)
options
(optional) equation of the form numeric=value; specifies options for computing the probability function of a random variable
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 distribution (see Statistics[Distribution]) or a discrete random variable
By default, all computations involving random variables are performed symbolically (see option numeric below).
For more information about computation in the Statistics package, see the Statistics[Computation] help page.
The options argument can contain one or more of the options shown below. More information for some options is available in the Statistics[RandomVariables] help page.
numeric=truefalse -- By default, the probability function is computed using exact arithmetic. To compute the probability function numerically, specify the numeric or numeric = true option.
mainbranch - returns the main branch of the distribution only.
with⁡Statistics:
Compute the probability function of the Geometric distribution with parameters p and q.
ProbabilityFunction⁡Geometric⁡13,i
0i<023i3otherwise
Use numeric parameters.
ProbabilityFunction⁡Geometric⁡13,5
32729
ProbabilityFunction⁡Geometric⁡13,5,numeric
0.04389574760
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
See Also
Statistics[Computation]
Statistics[Distributions]
Statistics[RandomVariables]
Download Help Document