Student[Statistics]
CriticalTable
return the critical table of values for a given distribution
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
CriticalTable( distribution )
CriticalTable( distribution, options )
distribution
-
name; name of the distribution chosen from ChiSquare, FRatio, Gamma, or StudentT
options
one or more keyword options as described below
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.
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 F⁡x for a t-distribution with ν degrees of freedom.
For x<0 values of F⁡x can be obtained from F⁡−x=1−F⁡x. 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+12⁢hypergeom⁡12,ν2+12,32,−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.
with⁡Student:-Statistics:
The values of the critical t-distribution table can be found directly from the CDF of the t-distribution:
CDF⁡StudentTRandomVariable⁡ν,x
12+x⁢Γ⁡ν2+12⁢hypergeom⁡12,ν2+12,32,−x2νπ⁢ν⁢Γ⁡ν2
For a significance level of 5% we have α=0.95, and with 2 degrees of freedom, ν=2, then:
fsolve⁡0.95=12+x⁢Γ⁡12⋅2+12⁢hypergeom⁡12,12⋅2+12,32,−x22sqrt⁡π⋅2⁢Γ⁡12⋅2,x
2.919985580
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⁡StudentT,α=0.95,parameter1=2,noheaders
CriticalTable⁡StudentT,α=0.80,parameter1=100
To return a section from the critical t-distribution table as a matrix:
CriticalTable⁡StudentT,α=0.95,0.99,parameter1=seq⁡1..10
To return the typical critical t-distribution table as a matrix:
CriticalTable⁡StudentT
To return a single column from the critical chi-square distribution table for the alpha level of 0.95:
CriticalTable⁡ChiSquare,α=0.95
To return a section from the FRatio distribution table with no headers:
CriticalTable⁡FRatio,α=0.975,parameter1=seq⁡1..5,parameter2=seq⁡1..2,noheaders
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⁡Gamma,α=0.95,parameter1=seq⁡1..5,parameter2=1,2
The output option can be used to create a datatable for any of the critical value tables:
CriticalTable⁡Gamma,α=0.975,output=embed
DT
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]
Download Help Document