Hypothesis Tests.FTest Method
Definition
Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
FTest( | Returns an F test for the ratio of the variances of two populations. |
FTest( | 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.
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
FTestAn F test for the ratio of the variances of the two samples.
Exceptions
Argument | sample1 is null. -or- sample2 is null. |
FTest(Double, Double, Double, Double, HypothesisType)
Returns an F test for the ratio of two variances.
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
FTestExceptions
Argument | numeratorDegreesOfFreedom is less than one. -or numeratorVariance is less than zero. -or denominatorDegreesOfFreedom is less than one. -or denominatorVariance is less than zero. |