Click or drag to resize
Accord.NET (logo)

TwoSampleZTest Constructor (Double, Double, Int32, Double, Double, Int32, Double, TwoSampleHypothesis)

Constructs a Z test.

Namespace:  Accord.Statistics.Testing
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public TwoSampleZTest(
	double mean1,
	double var1,
	int samples1,
	double mean2,
	double var2,
	int samples2,
	double hypothesizedDifference = 0,
	TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example View Source

Parameters

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.
hypothesizedDifference (Optional)
Type: SystemDouble
The hypothesized sample difference.
alternate (Optional)
Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also