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

Online Help

All Products    Maple    MapleSim


Statistics

  

ProbabilityFunction

  

compute the probability function

 

Calling Sequence

Parameters

Description

Computation

Options

Examples

References

Calling Sequence

ProbabilityFunction(X, t, options)

Parameters

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

Description

• 

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

Computation

• 

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.

• 

For more information about computation in the Statistics package, see the Statistics[Computation] help page.

Options

  

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.

Examples

withStatistics:

Compute the probability function of the Geometric distribution with parameters p and q.

ProbabilityFunctionGeometric13,i

0i<023i3otherwise

(1)

Use numeric parameters.

ProbabilityFunctionGeometric13&comma;5

32729

(2)

ProbabilityFunctionGeometric13&comma;5&comma;numeric

0.04389574760

(3)

References

  

Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.

See Also

Statistics

Statistics[Computation]

Statistics[Distributions]

Statistics[RandomVariables]