StatisticFormula.ZTest(Double, Double, Double, Double, String, String) 方法

定义

Z 检验公式使用正态分布执行 Z 检验。

public:
 System::Web::UI::DataVisualization::Charting::ZTestResult ^ ZTest(double hypothesizedMeanDifference, double varianceFirstGroup, double varianceSecondGroup, double probability, System::String ^ firstInputSeriesName, System::String ^ secondInputSeriesName);
public System.Web.UI.DataVisualization.Charting.ZTestResult ZTest (double hypothesizedMeanDifference, double varianceFirstGroup, double varianceSecondGroup, double probability, string firstInputSeriesName, string secondInputSeriesName);
member this.ZTest : double * double * double * double * string * string -> System.Web.UI.DataVisualization.Charting.ZTestResult
Public Function ZTest (hypothesizedMeanDifference As Double, varianceFirstGroup As Double, varianceSecondGroup As Double, probability As Double, firstInputSeriesName As String, secondInputSeriesName As String) As ZTestResult

参数

hypothesizedMeanDifference
Double

各数据组的平均值之间的假设差值。

varianceFirstGroup
Double

第一组数据的方差。

varianceSecondGroup
Double

第二组数据的方差。

probability
Double

Alpha 值。 可接受的范围为 0 到 1。

firstInputSeriesName
String

Series 对象的名称,该对象存储第一个组的数据。

secondInputSeriesName
String

Series 对象的名称,该对象存储第二个组的数据。

返回

ZTestResult 对象。

示例

以下代码演示如何使用此公式。

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

适用于