HypothesisTests.TTest Method

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

TTest(Vector<Double>, Double, HypothesisType) Returns a new OneSampleTTest for the mean of a population.
TTest(Double, Double, Int32, Double, HypothesisType) Returns a OneSampleTTest for the mean of a population based on properties of a sample from the population.

TTest(Vector<Double>, Double, HypothesisType)

Returns a new OneSampleTTest for the mean of a population.
C#
public static OneSampleTTest TTest(
	Vector<double> sample,
	double mean = 0,
	HypothesisType type = HypothesisType.TwoTailed
)

Parameters

sample  Vector<Double>
A vector that contains a sample from the population.
mean  Double  (Optional)
The proposed population mean.
type  HypothesisType  (Optional)
A HypothesisType value that specifies whether the test is two-tailed (the default) or one-tailed.

Return Value

OneSampleTTest
A one sample t test for the specified sample.

TTest(Double, Double, Int32, Double, HypothesisType)

Returns a OneSampleTTest for the mean of a population based on properties of a sample from the population.
C#
public static OneSampleTTest TTest(
	double sampleMean,
	double sampleStandardDeviation,
	int sampleSize,
	double mean = 0,
	HypothesisType type = HypothesisType.TwoTailed
)

Parameters

sampleMean  Double
The mean of the sample.
sampleStandardDeviation  Double
The standard deviation of the sample.
sampleSize  Int32
The size of the sample.
mean  Double  (Optional)
The proposed population mean.
type  HypothesisType  (Optional)
A HypothesisType value that specifies whether the test is two-tailed (the default) or one-tailed.

Return Value

OneSampleTTest
A one sample t test using the specified sample properties.

See Also