PDF download Download Article PDF download Download Article

The two-sample t-test is one of the most common statistical tests used. It is applied to compare whether the averages of two data sets are significantly different, or if their difference is due to random chance alone. It could be used to determine if a new teaching method has really helped teach a group of kids better, or if that group is just more intelligent. Or, as in the example at the bottom, it could be used to determine if the new faster cars used for delivering pizzas really helped speed up delivery times!

    • In general, the null hypothesis will state that the two populations being tested have no statistically significant difference.
    • The alternate hypothesis will state that there is one present.
  1. [1]
    • We will call this the alpha (α) level. The typical value is 0.05. This means that there is 95% confidence that the conclusion of this test will be valid.
    Advertisement
    • These values will need to be distinct when using the equation.
    • These are equal to the two sample sizes, or the number of data points in each population.
  2. [2]
    • We will call this the k value. On the t-distribution table below, this value is referred to as df.
    • To calculate this value, add both of the n values together and subtract 2.
  3. [3]
    • We will call these xÌ„1 and xÌ„2.
    • This is calculated by adding all of the data points in each sample set together, then dividing by the number of data points in the set (the corresponding n value).
  4. [4]
    • We will call these the S-values.
    • This is a number that describes how much the data varies inside its own sample set. Use the following formula.
  5. [5]
    • If the calculated t-statistic is greater than the critical t-value, the test concludes that there is a statistically significant difference between the two populations.
      • Therefore, you reject the null hypothesis that there is no statistically significant difference between the two populations.
    • In any other case, there is no statistically significant difference between the two populations.
      • The test fails to reject the null hypothesis.
  6. Advertisement


Community Q&A

Search
Add New Question
  • Question
    Is this for Independent samples t-test or paired samples t-test?
    Community Answer
    Independent. Paired samples would have a "before" and "after" type of set-up where the sample sizes would be the same.
  • Question
    What if x1-x2 (in step 8) gives a negative value? Mine is -1.5.
    Community Answer
    That means you'll have a negative t-statistic. If your alternate hypothesis is that the first population mean is less than the second population mean (or that the two population means are equal), your critical t value (what you compare the t-statistic to) is negative. You'll reject the null hypothesis if the t-statistic is less than (more negative) than the (negative) t-statistic.
  • Question
    Are you rejecting the null or accepting since there is no significance?
    Venatrixx
    Community Answer
    If the two populations are not sufficiently different to produce a significant result, you will fail to reject the null hypothesis. The null hypothesis is never accepted; we can't prove that the populations are the same, so it remains a hypothesis. The two options are: 1. Reject the null hypothesis. (We do this when it's very unlikely that the differences are du to random chance alone.) 2. Fail to reject the null hypothesis. (There's not enough evidence that something other than random chance is causing the differences.)
Ask a Question
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      Advertisement

      Things You'll Need

      • Calculator
      • 2 sets of data
      • T-distribution table

      Expert Interview

      Thanks for reading our article! If you’d like to learn more about teaching, check out our in-depth interview with Joseph Quinones .

      About This Article

      Thanks to all authors for creating a page that has been read 131,326 times.

      Reader Success Stories

      • Zenebe Gezahagn

        Mar 12, 2018

        "I have high interest to know about how to calculate and interpret T-value. I have the answers from this article. ..." more
      Share your story

      Did this article help you?

      Advertisement