FormulaCamp
Completed
12. Statistics and Data Analysis · Hypothesis Testing · 30 min

8. t-Test: Is the Difference in Means Significant?

Lesson 8 of 11
Task 1 of 6
  1. In E2:F4, calculate each group's number of participants, average score, and variance (VAR.S).

Lesson theory

The new method produced an average score of 75 and the old one 69. Is that a real effect, or is it chance: with another group of students the numbers could have come out the other way round? Student's t-test answers how large the difference in means is compared with the spread inside the groups.

The logic of any hypothesis test:

  1. The null hypothesis H₀: there is no difference, and the population means are equal;
  2. We calculate a test statistic. Here t = (mean₂ - mean₁) / standard error of the difference;
  3. The p-value is the probability of getting a difference this large or larger if H₀ is true;
  4. If p is below a significance level α chosen in advance (usually 5%), we reject H₀: the difference is significant.

For two independent groups with similar spread, use the pooled variance s² = ((n₁-1)·s₁² + (n₂-1)·s₂²) / (n₁+n₂-2), the standard error √(s²·(1/n₁ + 1/n₂)), and n₁+n₂-2 degrees of freedom.

  • T.DIST.2T(|t|, deg_freedom) gives the two-tailed p-value from a finished statistic;
  • T.INV.2T(probability, deg_freedom) gives the critical t: if |t| is larger, the difference is significant;
  • T.TEST(array1, array2, tails, type) gives the p-value straight from the raw data. Tails: 2 tests for a difference in either direction, 1 only in one direction. Type: 1 is paired data (the same people before and after), 2 is independent groups with equal variances, and 3 is independent groups with unequal variances (Welch's test).

If you aren't sure the variances are equal, use type 3, which is the safer choice. And "not significant" doesn't mean "no effect": there may just not be enough data.

Test yourself

1. The same 15 employees were tested before and after a training course. Which T.TEST type fits?
2. The p-value is 0.03 at α = 5%. What do you do?
3. The test shows p = 0.4. Which conclusion is correct?

Practice is part of Pro

The live spreadsheet, task checking and .xlsx files in all 170 lessons. Your progress is saved in this browser; sync across devices is coming soon.