StatisticFormula.ZTest Method (Double, Double, Double, Double, String, String)

.NET Framework (current version)
 

The Z-test formula performs a Z-test using normal distribution.

Namespace:   System.Web.UI.DataVisualization.Charting
Assembly:  System.Web.DataVisualization (in System.Web.DataVisualization.dll)

public ZTestResult ZTest(
	double hypothesizedMeanDifference,
	double varianceFirstGroup,
	double varianceSecondGroup,
	double probability,
	string firstInputSeriesName,
	string secondInputSeriesName
)

Parameters

hypothesizedMeanDifference
Type: System.Double

Hypothesized difference between the means of the data groups.

varianceFirstGroup
Type: System.Double

Variance within the first group of data.

varianceSecondGroup
Type: System.Double

Variance within the second group of data.

probability
Type: System.Double

Alpha value. The acceptable range is between 0 and 1.

firstInputSeriesName
Type: System.String

Name of the Series object that stores the first group's data.

secondInputSeriesName
Type: System.String

Name of the Series object that stores the second group's data.

The following code demonstrates how to use this formula.

ZTestResult result = Chart1.DataManipulator.Statistics.ZTest(0.2, 2.5, 4.5, 0.05, "Series1", "Series2");

.NET Framework
Available since 4.0
Return to top
Show: