Step 12: Choosing and Running Statistical Tests
- A hypothesis test asks: if there were really no effect (\( H_0 \)), how surprising would my data be? The answer is the p-value.
- If \( p < 0.05 \), the result is called statistically significant: the data are unlikely under \( H_0 \).
- Choose the test from three facts: the type of outcome, the number of groups, and whether groups are independent or paired.
- Common choices: chi-square for two categorical variables, t-test for two group means, ANOVA for three or more, correlation for two numeric variables, and non-parametric versions when assumptions fail.
- Always report an effect size alongside \( p \): significance says an effect is probably real, effect size says whether it matters.
The logic of a test
You suspect working students score lower. In your sample they do, by a few marks. But samples vary by chance: if you drew another sample, the gap might shrink or grow. A test asks how often a gap at least this big would appear by chance alone if, in the whole population, there were no difference at all.
Which test? A decision table
| Question | Outcome | Groups / variables | Parametric test | Non-parametric alternative |
|---|---|---|---|---|
| Are two categorical variables related? | Categorical | Two categorical variables | Chi-square test of independence (Fisher’s exact test for small counts) | |
| Do two independent groups differ? | Numeric | 2 independent groups | Independent t-test | Mann–Whitney U |
| Did the same people change? | Numeric | 2 paired measurements | Paired t-test | Wilcoxon signed-rank |
| Do three or more groups differ? | Numeric | 3+ independent groups | One-way ANOVA | Kruskal–Wallis |
| Do two numeric variables move together? | Numeric | Two numeric variables | Pearson correlation | Spearman correlation |
| Does X predict Y, controlling for others? | Numeric (or binary) | Several predictors | Regression (Step 13) | |
Use the non-parametric version when the outcome is ordinal, or when groups are small and the data are strongly skewed or have outliers.
Example 1: chi-square test
Of 100 first-year students, 30 have a job; of 100 final-year students, 50 have a job. Is having a job related to year of study?
Example 2: independent t-test
Ten students working 15+ hours have marks 62, 58, 71, 65, 60, 55, 68, 63, 59, 64. Ten non-working students have 70, 66, 74, 61, 72, 69, 75, 67, 71, 68. Do the means differ?
These small illustrative samples keep the arithmetic visible; a real dissertation would use far more students.
Effect sizes and power
With a big enough sample, even a trivial difference becomes “significant”. Effect sizes tell you how big a difference is. Rough guides: Cohen’s \( d \) of 0.2 small, 0.5 medium, 0.8 large; correlation \( r \) of 0.1 small, 0.3 medium, 0.5 large. Power is the chance of detecting a real effect of a given size; studies are usually planned for 80% power. To detect a medium effect (\( d = 0.5 \)) between two groups at \( \alpha = 0.05 \) with 80% power you need about 64 per group.
Practise: 6 questions
Try each one on paper first, then check the worked answer.
EasyQ1. Choose the test: (a) Is gender related to whether a student has a job? (b) Do marks differ between three faculties? Show worked answer
EasyQ2. The same 40 students take a stress survey before and after exams. Which test compares the scores? Show worked answer
MediumQ3. Observed counts are 18 and 32 in one row; expected counts are 25 and 25. Calculate these two cells’ contribution to \( \chi^2 \). Show worked answer
MediumQ4. Two groups differ by 3 marks and the pooled SD is 12. Calculate Cohen’s \( d \) and interpret. Show worked answer
MediumQ5. A study of 20,000 students finds \( p < 0.001 \) and \( r = 0.04 \) between commuting time and marks. What should you conclude? Show worked answer
ExamQ6. Explain the difference between statistical significance and practical importance, with an example. [5] Show worked answer
Check yourself
1. To compare mean marks of two independent groups, use
2. The non-parametric alternative to Pearson correlation is
3. A Type I error is
Your score: 0 out of 3
The short version
- Choose the test from outcome type, number of groups, and independent vs paired.
- Chi-square, t-tests, ANOVA and correlation cover most dissertations; switch to non-parametric tests when assumptions fail.
- Report the statistic, df, exact p, an effect size and a plain sentence.
- Significant is not the same as important; association is not causation.
Studying more than one subject? The Complete Book Bundle includes every Economics, Statistics, Mathematics, Econometrics and Research Methods book.
Statistical Test Chooser · $5Decision flowchart, test lookup table and reporting templates. Free sample on the product page. Or get all 7 research kits for $19.
