This method performs a T Test using Students distribution (T distribution) with equal variances.
Two-Sample Assuming Equal Variances - This analysis tool performs a two-sample student's t-test. This t-test form assumes that the means of both data sets are equal; it is referred to as a homoscedastic t-test. You can use t-tests to determine whether two sample means are equal.
Syntax
Visual Basic (Usage) |
Copy Code |
Dim instance As Statistics
Dim hypothesizedMeanDifference As Double
Dim probability As Double
Dim firstInputSeriesName As String
Dim secondInputSeriesName As String
Dim value As TTestResult
value = instance.TTestEqualVariances(hypothesizedMeanDifference, probability, firstInputSeriesName, secondInputSeriesName)
|
Parameters
- hypothesizedMeanDifference
- The hypothesized difference between the means of the data groups.
Hypothesized Mean Difference
- probability
- The alpha value (probability that the hypothesis is rejected).
Probability
- firstInputSeriesName
- The name of the Series object that stores the first group of data. Data must be stored in the first Y-values of the series' data points.
First Input Series Name
- secondInputSeriesName
- The name of the Series object that stores the second group of data. Data must be stored in the first Y-values of the series' data points.
Second Input Series Name
Return Value
Returns Result class from T Test
Example
The following sample performs a T test with equal variances for two groups of data represented by Series1 and Series2. The results are returned in a
TTestResult object.
Visual Basic |
Copy Code |
Imports Dundas.Charting.WebControl<CRLF>...<CRLF><CRLF> |
C# |
Copy Code |
using Dundas.Charting.WebControl;<CRLF>...<CRLF><CRLF>// Perform the test<CRLF>TTestResult result = Chart1.DataManipulator.Statistics.TTestEqualVariances(0.2,0.05,"Series1","Series2"); |
Remarks
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also