共用方式為


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

定義

t 測試配對公式會使用學生具有配對樣本的 t 分佈來執行 t 測試。 在樣本中觀察到自然配對時 (例如樣本群組已測試兩次時),便可使用這個公式。

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

參數

hypothesizedMeanDifference
Double

資料群組的假設平均差。

probability
Double

Alpha 值。 可接受的範圍介於 0 和 1 之間。

firstInputSeriesName
String

Series 物件的名稱,這個物件會儲存第一個群組的資料。

secondInputSeriesName
String

Series 物件的名稱,這個物件會儲存第二個群組的資料。

傳回

TTestResult 物件。

範例

下列程式碼示範如何使用此公式。

Dim result As TTestResult = Chart1.DataManipulator.Statistics.TTestPaired(0.2, 0.05, "Series1", "Series2")  
TTestResult result = Chart1.DataManipulator.Statistics.TTestPaired(0.2, 0.05, "Series1", "Series2");  

適用於