Student[Statistics] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Packages : Statistics : Student/Statistics/ProbabilityTable

Student[Statistics]

  

ProbabilityTable

  

return the probability distribution table for a given distribution

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

ProbabilityTable( distribution )

ProbabilityTable( distribution, options )

ProbabilityTable( Normal, x )

Parameters

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

Options

• 

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.

Description

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.

Examples

withStudent:-Statistics&colon;

The values of the cumulative standard normal distribution table can be found directly from the CDF of the standard normal distribution:

&Phi;x&rarr;CDFNormalRandomVariable0&comma;1&comma;x

&Phi;x&rarr;Student:-Statistics:-CDFStudent:-Statistics:-NormalRandomVariable0&comma;1&comma;x

(1)

evalf&Phi;1.04

0.850830049669019

(2)

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&apos;Normal&apos;&comma;1.04

0.850830049669019

(3)

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.  

evalf15ProbabilityTable&apos;Normal&apos;&comma;1.04

0.149169950330981

(4)

To return the cumulative standard normal distribution table as a matrix:

ProbabilityTable&apos;Normal&apos;

x0.0.010.020.030.040.050.060.070.08...0.0.5000000000000000.5039893563146310.5079783137169020.5119664734141120.5159534368528310.5199388058383720.5239221826541070.5279031701805210.531881372013987...0.10.5398278372770290.5437953125423170.5477584260205840.5517167866545610.5556700048059070.5596176923702430.5635594628914330.5674949316750390.571423715900901...0.20.5792597094391030.5831661634824420.5870644226482150.5909541151420060.5948348716977960.5987063256829240.6025681132017600.6064198731980400.610261247555797...0.30.6179114221889530.6217195218220190.6255158347233200.6293000189406540.6330717360360280.6368306511756190.6405764332179910.6443087548005470.648027292424163...0.40.6554217416103240.6590970262276770.6627572731517500.6664021794045420.6700314463394060.6736447797120800.6772418897496520.6808224912174440.684386303483777...0.50.6914624612740130.6949742691024810.6984682124530340.7019440346051240.7054014837843020.7088403132116540.7122602811509730.7156611509536760.719042691101435...0.60.7257468822499260.7290690962169940.7323711065310170.7356527078843230.7389137003071390.7421538891941350.7453730853286640.7485711049046900.751747769546430...0.70.7580363477769270.7611479319100130.7642375022207490.7673049076991030.7703500028352090.7733726476231320.7763727075624010.7793500536573510.782304562414267...0.80.7881446014166030.7910299121283980.7938919464141870.7967306081719320.7995458067395500.8023374568773080.8051054787481920.8078497978963040.810570345223288...`:``:``:``:``:``:``:``:``:``:`41 × 11 Matrix

(5)

To return a sub-matrix of values from the cumulative standard normal distribution table:

ProbabilityTable&apos;Normal&apos;&comma;x&equals;seq0.0..2.0&comma;0.5

x0.0.010.020.030.040.050.060.070.08...0.0.5000000000000000.5039893563146310.5079783137169020.5119664734141120.5159534368528310.5199388058383720.5239221826541070.5279031701805210.531881372013987...0.50.6914624612740130.6949742691024810.6984682124530340.7019440346051240.7054014837843020.7088403132116540.7122602811509730.7156611509536760.719042691101435...1.00.8413447460685430.8437523549787460.8461357696272650.8484949972116560.8508300496690190.8531409436241040.8554277003360900.8576903456440610.859928909911231...1.50.9331927987311420.9344782879110840.9357445121810640.9369916355360220.9382198232881880.9394292419979410.9406200594052070.9417924443614470.942946566762246...2.00.9772498680518210.9777844055705690.9783083062323530.9788217303573280.9793248371339300.9798177845942960.9803007295906230.9807738277724830.981237233565062...6 × 11 Matrix

(6)

To return the Poisson probability distribution table with no headers:

ProbabilityTable&apos;Poisson&apos;&comma;noheaders

0.9048374193108580.8187307552104600.7408182219286230.6703200574353360.6065306631481240.5488116523022810.9953211598577360.9824769058260560.9630636881331380.9384480649542310.9097959930044400.8780986187174140.9998453469479150.9988515188082990.9964005068583320.9920736686370820.9856123222039960.9768847132143390.9999961531663070.9999431597604930.9997341888517400.9992237486448830.9982483776169140.9966419312035370.9999999233219860.9999977418094710.9999842149606980.9999387566736280.9998278843777880.9996055140341630.9999999987251010.9999999250914560.9999992165284610.9999959573175550.9999858350629990.999961143924463

(7)

The output option can be used to create a datatable for any of the probability distribution tables:

ProbabilityTable&apos;Poisson&apos;&comma;output&equals;embed

DT

(8)

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&apos;Poisson&apos;&comma;x&equals;0&comma;1&comma;2&comma;parameter1&equals;0.1&comma;0.2

x\lambda0.10.20.0.9048374193108580.8187307552104601.0.9953211598577360.9824769058260562.0.9998453469479150.998851518808299

(9)

The binomial distribution is dependent on two parameters, n and p, and can return multiple tables:

ProbabilityTable&apos;Binomial&apos;&comma;x&equals;seq1..3&comma;parameter1&equals;seq0.1..0.4&comma;0.1&comma;parameter2&equals;4&comma;5

table5.&equals;x\p0.10.20.30.41.0.9185400000016500.7372800000053230.5282200000095580.3369599999931732.0.9914400000218700.9420800001479820.8369200004166580.6825600008110373.0.9995400000000090.9932800000001360.9692200000006240.912960000001763&comma;4.&equals;x\p0.10.20.30.41.0.9477000000667720.8192000002308280.6517000004446760.4751999993933092.0.9963000000047240.9728000000347260.9163000001068600.8208000002287863.0.9999000000000020.9984000000000310.9919000000001580.974400000000500

(10)

Compatibility

• 

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]