homechevron_rightProfessionalchevron_rightStatistics

Two samples t-Test

The calculator to perform t-Test for the Significance of the Difference between the Means of Two Independent Samples

The calculator below implements most known statistical test, namely, Independent Samples t-test or Two samples t-test. t-test also known as Student's t-test, after William Sealy Gosset. "Student" was his pen name.

The test deals with null hypothesis such that the means of two populations are equal. To put it in another words, difference we find between the means of the two samples should not significantly differ from zero.

Again, test works only if certain assumptions are met. These are:

  • That the two samples are independently and randomly drawn from the source population(s).
  • That the scale of measurement for both samples has the properties of an equal interval scale.
  • That the source population(s) can be reasonably supposed to have a normal distribution.
  • And, for this particalar implementation of test, that the variance of each population is the same

The calculator displays level of confidence for both directional and non-directional tests. Let's say, you get the result of 96%. Essentially this means that you have 96% confidence that the obtained difference shows something more than simple luck. The chance that you can get the obtained difference and the means of the two sample are the same is only 4%. This is the level of significance you calculate. Now, depending on your chosen level of significance you can reject or fail to reject your null hypothesis.

To estimate the confidence we need to calculate t-value, and then lookup the inverse of CDF of Student's t-distribution with (N_a-1)+(N_b-1) degrees of freedom. N_a is the size of sample A and N_b is the size of sample B.

To find t-value you start from calculating the mean M_x and sum of squared deviations, or sum of squares SS=\sum{(X_i-M_x)^2 for each sample.

Then you estimate the variance of the source population as
\{s^{2}_p\}=\frac{SS_a+SS_b}{(N_a-1)+(N_b-1)}
This estimation is called pooled variance and it is a method for estimating variance of several different populations when the mean of each population may be different, but one may assume that the variance of each population is the same.

Then you estimate the standard deviation of the sampling distribution of sample-mean differences (the "standard error" of M_X_a-M_X_b) as
est.\sigma_{M-M}=\sqrt{\frac{\{s^{2}_p\}}{N_a}+\frac{\{s^{2}_p\}}{N_a}}.

Finally, you calculate t as
t=\frac{M_X_a-M_X_b}{est.\sigma_{M-M}}

If you care to find more, you can read excellent explanation here, starting from Chapter 9.

PLANETCALC, Two samples t-Test

Two samples t-Test

Digits after the decimal point: 1
Mean of sample A
 
Mean of sample B
 
t-Value
 
Non-directional hypothesis
 
Level of confidence for two-tail test of significance
 
Directional hypothesis
 
Level of confidence for one-tail test of significance
 
Save the calculation to reuse next time, to extension embed in your website or share share with friends.

Comments