共用方式為


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");  

適用於