Click or drag to resize
Accord.NET (logo)

TwoProportionZTest Constructor (Double, Int32, Double, Int32, TwoSampleHypothesis)

Creates a new Z-Test for two sample proportions.

Namespace:  Accord.Statistics.Testing
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public TwoProportionZTest(
	double proportion1,
	int sampleSize1,
	double proportion2,
	int sampleSize2,
	TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example View Source

Parameters

proportion1
Type: SystemDouble
The proportion of success observations in the first sample.
sampleSize1
Type: SystemInt32
The total number of observations in the first sample.
proportion2
Type: SystemDouble
The proportion of success observations in the second sample.
sampleSize2
Type: SystemInt32
The total number of observations in the second sample.
alternate (Optional)
Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also