Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I'm writing an article, and I'm on a deadline so please be kind to me, I'd like to test for statistical significance of the difference before and after an intervention but I'm no real math genious

My sample size is 63 pre and post-intervention interviews, and I have two different mean scores of 134,192 and 178,324

Are these significantly different? How do I do it? In excel or anywhere else is fine. Thanks a whole bunch.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You need to perform the following hypothesis test:

\begin{align} H_0 &: \mu_1 = \mu_2 \\ H_a &: \mu_1 \neq \mu_2 \end{align}

where $H_0$ and $H_a$ are the null and alternate hypothesis respectively. $\mu_1$ and $\mu_2$ are the means of the two samples. You will have to compute the following test statistic:

\begin{align} t &= \frac{\hat{\mu}_d}{\sqrt{\hat{s}_d^2/n}} \end{align}

where $n$ is the number of samples ($63$ in your case), $\hat{\mu}_d$ and $\hat{s}_d^2$ are the sample mean and sample variance of the difference between the paired readings.

The above test statistic has $n-1$ degrees of freedom. So assuming you want to check for significance of the difference between the two means at $5\%$ level, you will have to:

  1. Compute the statistic using your data.
  2. Compare the resulting number to $2$.
  3. If your statistic is greater than $2$, the null hypothesis is rejected and there exists a significant difference between the two means at the $5\%$ level. Else, you cannot reject the null hypothesis.

In (2), I have given you the critical value by reading off the t-distribution table here: http://www.math.unb.ca/~knight/utility/t-table.htm. I suggest you to review basic statistical hypothesis testing from a standard text book (e.g. Hogg) in case you want a more detailed understanding.

share|improve this answer
@Jakob, you will have to take $\hat{s}_{d}^2$ from the literature if you don't know it from your observations. –  Roman Luštrik Sep 3 '12 at 9:40
@RomanLuštrik: Quick question - how can one use the sample variance from the literature? –  Kartik Audhkhasi Sep 3 '12 at 14:26
I misread the question, sorry. Of course, OP has all the data needed to perform the test. Thanks for noticing! –  Roman Luštrik Sep 3 '12 at 19:47

The paired t test described by Kartik is what you should use when the data is normally distributed or at least approximately so. But if the normality assumption fails a nonparametric paired test such as the Wilcoxon signed-rank test is what you should use.

share|improve this answer
Right. But with 63 samples, I expect that a non-parametric test might not be needed, and the normal assumption might be pretty good. –  Kartik Audhkhasi Sep 3 '12 at 14:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.