StatisticFormula.ZTest(Double, Double, Double, Double, String, String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 之間。
傳回
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");