ProbabilityFunction - 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]

  

ProbabilityFunction

  

compute the probability function

 

Calling Sequence

Parameters

Description

Computation

Examples

References

Compatibility

Calling Sequence

ProbabilityFunction(X, t, numeric_option,output_option)

Parameters

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

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 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.

Computation

• 

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.

Examples

withStudentStatistics:

Compute the value of the probability function of the binomial random variable with parameters n and p.

ProbabilityFunctionBinomialRandomVariablen,p,x

0x<0nxpx1pnxotherwise

(1)

Use numeric parameters.

ProbabilityFunctionBinomialRandomVariable10&comma;13&comma;5

8966561

(2)

ProbabilityFunctionBinomialRandomVariable10&comma;13&comma;5&comma;numeric

0.1365645480

(3)

Use the output = plot option.

ProbabilityFunctionBinomialRandomVariable10&comma;13&comma;5&comma;output=plot

Compute the value of the probability function of a continuous random variable at the specified point, and it should always be 0.

ProbabilityFunctionBetaRandomVariable2&comma;3&comma;5

0

(4)

ProbabilityFunctionNormalRandomVariable8&comma;5&comma;2

0

(5)

Define a new random variable, and use the inert option.

XBinomialRandomVariable7&comma;12+NegativeBinomialRandomVariable3&comma;12&colon;

ProbabilityFunctionX&comma;2&comma;inert

u1=00u1<02+u1u112u18otherwise0u1<−272u1122u1125+u1otherwise

(6)

evalfProbabilityFunctionX&comma;2&comma;inert

0.03222656250

(7)

ProbabilityFunctionX&comma;2&comma;numeric

0.03222656250

(8)

Now we use the output = both option on a Poisson random variable, which is discrete.

probability,graphProbabilityFunctionPoissonRandomVariable4&comma;7&comma;output=both&colon;

probability

1024&ExponentialE;−4315

(9)

graph

References

  

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][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]

Student[Statistics][RandomVariable]