Rediger

Del via


StatisticFormula.TTestPaired(Double, Double, String, String) Method

Definition

The t-test paired formula performs a t-test using Student's t-distribution with paired samples. This is useful when there is an observed natural pairing in samples (for example, when a sample group is tested twice).

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

Parameters

hypothesizedMeanDifference
Double

Hypothesized difference between the means of the data groups.

probability
Double

Alpha value. The acceptable range is between 0 and 1.

firstInputSeriesName
String

Name of the Series object that stores the first group's data.

secondInputSeriesName
String

Name of the Series object that stores the second group's data.

Returns

A TTestResult object.

Examples

The following code demonstrates how to use this formula.

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

Applies to