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 Function ZTest (
	hypothesizedMeanDifference As Double,
	varianceFirstGroup As Double,
	varianceSecondGroup As Double,
	probability As Double,
	firstInputSeriesName As String,
	secondInputSeriesName As String
) As ZTestResult

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.

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

.NET Framework
Available since 4.0
Return to top
Show: