Hypothesis Tests.TTest 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
TTest( | Returns a new OneSampleTTest for the mean of a population. |
TTest( | 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.
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
OneSampleTTestA 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.
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
OneSampleTTestA one sample t test using the specified sample properties.