The Ttest function in Excel computes the probability associated with the Student’s T Test, which is often used to determine if two data sets are common from the same two underlying samples with the same mean.
Syntax :
=TTEST( array1, array2, tails, type )
Parameters :
array1 – The initial data collection.
array2 – the next data set (must have the same length as array1).
tails – The distribution’s number of tails. This must be either:
1 – Employs the one-tailed distribution
2 – Makes use of the two-tailed distribution –
type – An integer indicating the kind of t-test. This might be either:
1 – Paired T-TestExample :
For the two arrays of data, the probability associated with the Student’s paired t-test with a one-tailed distribution may be determined using the Excel Ttest function as follows:
=TTEST(B1:B13,A1:A13,1,1)
This yields the value 0.367357504.
The following formula calculates the probability associated with the Student’s paired t-test using a two-tailed distribution for the identical two data arrays:
=TTEST(A2:A10,B2:B10,2,1)
This yields the value 0.455366344.
#N/A – Occurs if the lengths of the two given arrays disagree.
#NUM! – If any of the following criteria is encountered: The tails argument given can have any value other than 1 or 2. or The given type parameter is not one of one, two, or three.
#VALUE! – Occurs when either the supplied tails or type arguments are non-numeric.
Ask Your Query