Click or drag to resize
Accord.NET (logo)

TTestStatisticToPValue Method (Double, TDistribution, DistributionTail)

Converts a given test statistic to a p-value.

Namespace:  Accord.Statistics.Testing
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double StatisticToPValue(
	double t,
	TDistribution distribution,
	DistributionTail type
)
Request Example View Source

Parameters

t
Type: SystemDouble
The value of the test statistic.
distribution
Type: Accord.Statistics.Distributions.UnivariateTDistribution
The test distribution.
type
Type: Accord.Statistics.TestingDistributionTail
The tail of the test distribution.

Return Value

Type: Double
The p-value for the given statistic.
See Also