The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information.... 
Home MathPack Statis Functions Perform2SampleTTest  
See also: tDistriQuantile, tDistriIntegral, TtTestVersion, PerformMannWhitneyUTest  
Perform2SampleTTest 

The function Perform2SampleTTest returns the probability associated with a 2sample ttest (probability which indicates the likelihood that two samples have come from the same two underlying populations having the same mean). It is available in two overloaded versions: version [1] mimics the function TTEST of Microsofts Excel, version [2] returns a lot more details of the ttest calculation. The parameters Data1 and Data2 contain the data as a TVector. Note that the number of elements of the two vectors have to be equal if a paired ttest is to be performed. The parameter TestType determines the type of ttest to be performed. The parameter OneSided has to be TRUE for onesided tests, or FALSE for twosided tests. Version [2] of the function returns additional parameters obtained during the ttest calculation:
