HypothesisTests.TwoSampleZTest Method

Constructs a new TwoSampleZTest(ICategoricalVector, ICategoricalVector, Double, HypothesisType) for the specified samples.

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static TwoSampleZTest TwoSampleZTest(
	ICategoricalVector sample1,
	ICategoricalVector sample2,
	double difference = 0,
	HypothesisType type = HypothesisType.TwoTailed
)

Parameters

sample1  ICategoricalVector
A vector containing a sample from the first population.
sample2  ICategoricalVector
A vector containing a sample from the second population.
difference  Double  (Optional)
The proposed difference between the two proportions.
type  HypothesisType  (Optional)
A HypothesisType value that specifies whether the test is two-tailed (the default) or one-tailed.

Return Value

TwoSampleZTest

Exceptions

ArgumentNullExceptionsample1 is null.

-or-

sample2 is null.

See Also