HypothesisTests.TwoSampleZTest Method

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

Definition

Namespace: Numerics.NET.Statistics
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0
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

ArgumentNullException

sample1 is null.

-or-

sample2 is null.

See Also