Student[Statistics] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

Student[Statistics]

  

CriticalTable

  

return the critical table of values for a given distribution

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

Calling Sequence

CriticalTable( distribution )

CriticalTable( distribution, options )

Parameters

distribution

-

name; name of the distribution chosen from ChiSquare, FRatio, Gamma, or StudentT

options

-

one or more keyword options as described below

Options

• 

alpha : float or list; the level of significance

• 

parameter1 : list; list of parameter values

• 

parameter2 : list; list of parameter values

• 

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

Critical values are used in hypothesis testing to specify a cut-off value for computed test statistics, which defines the statistical significance of the test. The α level is the maximum probability that would result in the null hypothesis being rejected if the null hypothesis is true. Critical values can be found by solving the equation α = CDF of a given distribution in terms of x for x, or directly from the Quantile command.

For example, the critical t-distribution table gives x for given values of the distribution function Fx for a t-distribution with ν degrees of freedom.

• 

For x<0 values of Fx can be obtained from Fx=1Fx. The values in the critical t-distribution table can be found by solving the equation α = CDF for the t-distribution for x:

α=12+xΓν2+12hypergeom12&comma;ν2+12&comma;32&comma;x2νπνΓν2

• 

The CriticalTable command returns the critical table of values 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 critical t-distribution table can be found directly from the CDF of the t-distribution:

CDFStudentTRandomVariable&nu;&comma;x

12&plus;x&Gamma;12&nu;&plus;12hypergeom12&comma;12&nu;&plus;12&comma;32&comma;x2&nu;&pi;&nu;&Gamma;12&nu;

(1)

For a significance level of 5% we have α=0.95, and with 2 degrees of freedom, ν=2, then:

fsolve0.95&equals;12&plus;xGAMMA122&plus;12hypergeom12&comma;122&plus;12&comma;32&comma;x22Pi2GAMMA122&comma;x

2.919985580

(2)

The CriticalTable command computes the values in the critical t-distribution table numerically solving 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.

CriticalTable&apos;StudentT&apos;&comma;&alpha;&equals;0.95&comma;parameter1&equals;2&comma;noheaders

2.91998558035372

(3)

CriticalTable&apos;StudentT&apos;&comma;&alpha;&equals;0.80&comma;parameter1&equals;100

&nu;0.80100.0.845230424491434

(4)

To return a section from the critical t-distribution table as a matrix:

CriticalTable&apos;StudentT&apos;&comma;&alpha;&equals;0.95&comma;0.99&comma;parameter1&equals;seq1..10

&nu;0.950.991.6.3137515146750431.82051595377392.2.919985580353726.964556734283273.2.353379317412244.540703179814864.2.131822837432773.746954149339715.2.015042560328083.364829914783586.1.943178418483003.142638113058307.1.894577886938772.997940317236418.1.859547719841312.896454609310779.1.833112776710222.82143560256431`:``:`11 × 3 Matrix

(5)

To return the typical critical t-distribution table as a matrix:

CriticalTable&apos;StudentT&apos;

&nu;0.950.9750.990.99516.3137515146750412.706204736174731.820515953773963.656741162871522.919985580353724.302652729749466.964556734283279.9248432009182932.353379317412243.182449024176594.540703179814865.8409094107581142.131822837432772.776346490589633.746954149339714.6040967052556952.015042560328082.570558957000233.364829914783584.0321586288799261.943178418483002.446904716895813.142638113058303.7073513590445671.894577886938772.364621546088232.997940317236413.4994552258736781.859547719841312.306002952997112.896454609310773.3553753911169091.833112776710222.262156588114962.821435602564313.24982986145654`:``:``:``:`31 × 5 Matrix

(6)

To return a single column from the critical chi-square distribution table for the alpha level of 0.95:

CriticalTable&apos;ChiSquare&apos;&comma;&alpha;&equals;0.95

&nu;0.9513.8414560658027825.9914645471079837.8147282880362649.48772903678116511.0704974062099612.5915872437440714.0671405764057815.5073130558655916.9189774487099`:`31 × 2 Matrix

(7)

To return a section from the FRatio distribution table with no headers:

CriticalTable&apos;FRatio&apos;&comma;&alpha;&equals;0.975&comma;parameter1&equals;seq1..5&comma;parameter2&equals;seq1..2&comma;noheaders

647.789011477866799.500000000017864.162972163493899.583310177867921.84790329967438.506329113924039.000000000000039.165494564013839.248417658131439.2982277754032

(8)

The Gamma distribution depends on two parameters, b, the scale parameter, and c, the shape parameter. To return a sub-matrix of values from the Gamma distribution:

CriticalTable&apos;Gamma&apos;&comma;&alpha;&equals;0.95&comma;parameter1&equals;seq1..5&comma;parameter2&equals;1&comma;2

c\b1.2.3.4.5.1.2.995732273553995.991464547107988.9871968206619711.982929094216014.97866136776992.4.743864518390589.4877290367811614.231593555171718.975458073562323.7193225919529

(9)

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

CriticalTable&apos;Gamma&apos;&comma;&alpha;&equals;0.975&comma;output&equals;embed

DT

(10)

Compatibility

• 

The Student[Statistics][CriticalTable] command was introduced in Maple 2015.

• 

For more information on Maple 2015 changes, see Updates in Maple 2015.

See Also

Student[Statistics][ProbabilityTable]