C# Class Accord.Statistics.Testing.TwoProportionZTest

Inheritance: TwoSampleZTest
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
TwoProportionZTest ( double proportion1, int sampleSize1, double proportion2, int sampleSize2, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System

Creates a new Z-Test for two sample proportions.

TwoProportionZTest ( int successes1, int trials1, int successes2, int trials2, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System

Creates a new Z-Test for two sample proportions.

Protected Methods

Method Description
Compute ( int successes1, int trials1, int successes2, int trials2, TwoSampleHypothesis alternate ) : void

Computes the Z-test for two sample proportions.

Method Details

Compute() protected method

Computes the Z-test for two sample proportions.
protected Compute ( int successes1, int trials1, int successes2, int trials2, TwoSampleHypothesis alternate ) : void
successes1 int
trials1 int
successes2 int
trials2 int
alternate TwoSampleHypothesis
return void

TwoProportionZTest() public method

Creates a new Z-Test for two sample proportions.
public TwoProportionZTest ( double proportion1, int sampleSize1, double proportion2, int sampleSize2, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System
proportion1 double The proportion of success observations in the first sample.
sampleSize1 int The total number of observations in the first sample.
proportion2 double The proportion of success observations in the second sample.
sampleSize2 int The total number of observations in the second sample.
alternate TwoSampleHypothesis The alternative hypothesis (research hypothesis) to test.
return System

TwoProportionZTest() public method

Creates a new Z-Test for two sample proportions.
public TwoProportionZTest ( int successes1, int trials1, int successes2, int trials2, TwoSampleHypothesis alternate = TwoSampleHypothesis.ValuesAreDifferent ) : System
successes1 int The number of successes in the first sample.
trials1 int The total number of trials (observations) in the first sample.
successes2 int The number of successes in the second sample.
trials2 int The total number of trials (observations) in the second sample.
alternate TwoSampleHypothesis The alternative hypothesis (research hypothesis) to test.
return System