Student[Statistics]
ProbabilityTable
return the probability distribution table for a given distribution
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
ProbabilityTable( distribution )
ProbabilityTable( distribution, options )
ProbabilityTable( Normal, x )
distribution
-
name; name of the distribution chosen from Normal, Binomial, or Poisson
x
(optional) numeric; single value lookup from the standard normal distribution table
options
one or more keyword options as described below
x : list; list of values for the rows
parameter1 : list; list of parameter values for the columns
parameter2 : list; list of parameter values for the number of tables to return
noheaders : truefalse; specifies if column and row header information is included. By default this is set to false.
output : identical( matrix, embed ); controls the output of the resulting matrix. If output = embed, then a datatable component containing the matrix of values is returned. By default, output is set to matrix, and a matrix is returned.
A probability distribution table returns values for the probability that a value is less than or equal to a value x. This is analogous to computing the CDF for a given distribution at the point x.
For example, the table for the cumulative standard normal distribution gives
Φ⁡x=∫−∞xⅇ−t22ⅆt2⁢π
For x<0, values of Φ⁡x can be obtained from Φ⁡−x=1−Φ⁡x.
The ProbabilityTable command returns the probability distribution table as a matrix. If embed = true, then a datatable component containing the matrix of values is returned.
with⁡Student:-Statistics:
The values of the cumulative standard normal distribution table can be found directly from the CDF of the standard normal distribution:
Φ≔x↦CDF⁡NormalRandomVariable⁡0,1,x
Φ≔x↦Student:−Statistics:−CDF⁡Student:−Statistics:−NormalRandomVariable⁡0,1,x
evalf⁡Φ⁡1.04
0.850830049669019
The ProbabilityTable command can return the Standard Normal distribution table, which assumes that the parameters of the Normal distribution, the mean and standard deviation, are equal to μ=0 and σ=1 respectively. In this case, this table is dependent on only one parameter, x. It is possible to query for singular values of x by entering a numeric value as the second argument of the ProbabilityTable command. Note that all other probability distributions require that the x parameter is specified as a keyword option, namely x = value.
ProbabilityTable⁡Normal,1.04
The ProbabilityTable command numerically computes the values for the standard normal distribution table using the above CDF. In contrast to traditional printed tables of values in text books, this can return the results with any level of precision, and also makes it possible to return more accurate results in cases where one would otherwise need to interpolate values for entries that are not in the table.
evalf15⁡ProbabilityTable⁡Normal,−1.04
0.149169950330981
To return the cumulative standard normal distribution table as a matrix:
ProbabilityTable⁡Normal
To return a sub-matrix of values from the cumulative standard normal distribution table:
ProbabilityTable⁡Normal,x=seq⁡0...2.0,0.5
To return the Poisson probability distribution table with no headers:
ProbabilityTable⁡Poisson,noheaders
The output option can be used to create a datatable for any of the probability distribution tables:
ProbabilityTable⁡Poisson,output=embed
DT
The probability distribution table for the Poisson distribution depends on one parameter, lambda, as well as a list of values for x. It is also possible to return a sub-matrix for a given distribution by including lists for the value ranges and parameters:
ProbabilityTable⁡Poisson,x=0,1,2,parameter1=0.1,0.2
The binomial distribution is dependent on two parameters, n and p, and can return multiple tables:
ProbabilityTable⁡Binomial,x=seq⁡1..3,parameter1=seq⁡0.1..0.4,0.1,parameter2=4,5
table⁡4.=,5.=
The Student[Statistics][ProbabilityTable] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Student[Statistics][CriticalTable]
Download Help Document