|
TwoSampleTTest Constructor (Double, Double, Int32, Double, Double, Int32, Boolean, Double, TwoSampleHypothesis)
|
Tests whether the means of two samples are different.
Namespace:
Accord.Statistics.Testing
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public TwoSampleTTest(
double mean1,
double var1,
int samples1,
double mean2,
double var2,
int samples2,
bool assumeEqualVariances = true,
double hypothesizedDifference = 0,
TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Public Sub New (
mean1 As Double,
var1 As Double,
samples1 As Integer,
mean2 As Double,
var2 As Double,
samples2 As Integer,
Optional assumeEqualVariances As Boolean = true,
Optional hypothesizedDifference As Double = 0,
Optional alternate As TwoSampleHypothesis = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example
View SourceParameters
- mean1
- Type: SystemDouble
The first sample's mean. - var1
- Type: SystemDouble
The first sample's variance. - samples1
- Type: SystemInt32
The number of observations in the first sample. - mean2
- Type: SystemDouble
The second sample's mean. - var2
- Type: SystemDouble
The second sample's variance. - samples2
- Type: SystemInt32
The number of observations in the second sample. - assumeEqualVariances (Optional)
- Type: SystemBoolean
True assume equal variances, false otherwise. Default is true. - hypothesizedDifference (Optional)
- Type: SystemDouble
The hypothesized sample difference. - alternate (Optional)
- Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also