Click or drag to resize
Accord.NET (logo)

TwoProportionZTest Constructor (Int32, Int32, Int32, 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(
	int successes1,
	int trials1,
	int successes2,
	int trials2,
	TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent
)
Request Example View Source

Parameters

successes1
Type: SystemInt32
The number of successes in the first sample.
trials1
Type: SystemInt32
The total number of trials (observations) in the first sample.
successes2
Type: SystemInt32
The number of successes in the second sample.
trials2
Type: SystemInt32
The total number of trials (observations) in the second sample.
alternate (Optional)
Type: Accord.Statistics.TestingTwoSampleHypothesis
The alternative hypothesis (research hypothesis) to test.
See Also