HypothesisTests.FTest Method

Definition

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

Overload List

FTest(Vector<Double>, Vector<Double>, HypothesisType) Returns an F test for the ratio of the variances of two populations.
FTest(Double, Double, Double, Double, HypothesisType) Returns an F test for the ratio of two variances.

FTest(Vector<Double>, Vector<Double>, HypothesisType)

Returns an F test for the ratio of the variances of two populations.
C#
public static FTest FTest(
	Vector<double> sample1,
	Vector<double> sample2,
	HypothesisType type = HypothesisType.TwoTailed
)

Parameters

sample1  Vector<Double>
A vector containing a sample from the first population.
sample2  Vector<Double>
A vector containing a sample from the second population.
type  HypothesisType  (Optional)
A HypothesisType value that specifies whether the test is two-tailed (the default) or one-tailed.

Return Value

FTest
An F test for the ratio of the variances of the two samples.

Exceptions

ArgumentNullException

sample1 is null.

-or-

sample2 is null.

FTest(Double, Double, Double, Double, HypothesisType)

Returns an F test for the ratio of two variances.
C#
public static FTest FTest(
	double numeratorDegreesOfFreedom,
	double numeratorVariance,
	double denominatorDegreesOfFreedom,
	double denominatorVariance,
	HypothesisType type = HypothesisType.OneTailedUpper
)

Parameters

numeratorDegreesOfFreedom  Double
The degrees of freedom of the numerator.
numeratorVariance  Double
The variance in the numerator.
denominatorDegreesOfFreedom  Double
The degrees of freedom of the denominator.
denominatorVariance  Double
The variance in the denominator.
type  HypothesisType  (Optional)
A HypothesisType value that specifies whether the test is one-tailed (the default) or two-tailed.

Return Value

FTest

Exceptions

ArgumentOutOfRangeException

numeratorDegreesOfFreedom is less than one.

-or

numeratorVariance is less than zero.

-or

denominatorDegreesOfFreedom is less than one.

-or

denominatorVariance is less than zero.

See Also