Guide
Which statistical test should you use for your project?
Choose the test from two things: the question you are asking (a difference, a relationship or a prediction) and the type of data you have (categories or scores). Two groups and a score: t-test. Three or more groups and a score: one-way ANOVA. Two categories: chi-square. Two scores: Pearson correlation. One score predicting another: simple linear regression.
Your examiner will ask why you used that test. A clear answer is one sentence: “I had two groups and one score, so I used a t-test.” The table below gives you that sentence for the five tests students use most.
A note on Likert data: students often add several Likert items into one scale score, then use that score in these tests. This is common and accepted in most departments. A single Likert item on its own is ordinal, so use it with care.
How to choose
- Write your hypothesis in one sentence. For example: “There is no significant difference between male and female students in their satisfaction.”
- Name the type of each variable. A category is a label such as gender, level or faculty. A score is a number, such as a total or mean from a scale, or age.
- Count the groups. How many groups are you comparing? Two, or three or more? Or are you looking at two scores for the same people?
- Match the question to the table. Find the row that fits your question and your variable types.
- Check the assumptions. Each test expects certain things of the data. The notes under the table list the main ones.
- Run the test and read three things. The test statistic, the degrees of freedom and the p value. At the 0.05 level, a p value below 0.05 means you reject the null hypothesis.
- Report the size, not just the p value. Say how big the difference or relationship is, and explain it in plain words.
The decision table
| Your question | Your variables | Test | What you report |
|---|---|---|---|
| Do two groups differ on a score? | One category with 2 groups, one score | Independent samples t-test (paired t-test if the same people are measured twice) | t, degrees of freedom, p, and the two means |
| Do three or more groups differ on a score? | One category with 3 or more groups, one score | One-way ANOVA | F, two degrees of freedom, p. If p is below 0.05, add a post hoc test such as Tukey to see which groups differ |
| Are two categories related? | Two categories | Chi-square test of independence | Chi-square, degrees of freedom, p, and the contingency coefficient |
| Are two scores related? | Two scores | Pearson correlation (Spearman if the data are ranks or clearly skewed) | r, degrees of freedom (n minus 2), p |
| Does one score predict another? | One score as predictor, one score as outcome | Simple linear regression | The slope, R squared, F, p |
Notes for each test
- t-test and ANOVA. The groups should be separate people, and the scores should be roughly normal in each group. For ANOVA, the groups should also have a similar spread. If the data fail badly, the usual alternatives are the Mann-Whitney U test (for two groups) and the Kruskal-Wallis test (for three or more).
- Chi-square. It works on counts, not on means. Each person should appear once. The usual rule is that no more than 20% of cells have an expected count below 5, and none below 1. The degrees of freedom are (rows minus 1) times (columns minus 1).
- Contingency coefficient. It shows the strength of a chi-square result. C equals the square root of chi-square divided by (chi-square plus N). It is always below 1, and its top value depends on the size of the table, so describe it in words and do not compare it across tables of different sizes.
- Pearson correlation. It measures a straight-line relationship between two scores, from -1 to +1. A common guide for size is about 0.1 for small, 0.3 for medium and 0.5 for large. A strong correlation does not prove that one thing causes the other.
- Simple regression. R squared is the share of the variation in the outcome that the predictor accounts for. With one predictor, R squared equals r squared.
A short example
Suppose you want to know whether satisfaction scores differ between male and female students. That is two groups and one score, so you use an independent samples t-test. If instead you want to know whether gender is related to choice of faculty, those are two categories, so you use chi-square.
For the chi-square case, with an illustrative chi-square of 6.0 from 100 students, C equals the square root of 6.0 divided by 106, which is 0.24. In Chapter 4 you would write the test, the statistic, the degrees of freedom and the p value, and say in one sentence what it means for your hypothesis.
For reference, the tests that rsch covers are descriptives, reliability (Cronbach’s alpha), Pearson and Spearman correlation, chi-square, t-tests, one-way ANOVA and linear regression.
Common questions
What is the difference between a t-test and ANOVA?
A t-test compares two groups. ANOVA compares three or more. With exactly two groups, both normally lead to the same conclusion, so the choice is made by the number of groups.
When can I not use chi-square?
Do not use it on scores or means, only on counts of categories. Also be careful when many cells have a small expected count, because the result becomes unreliable.
Does a p value below 0.05 mean the result is important?
No. It means the result is unlikely to be down to chance alone at the 0.05 level. How big or useful the result is depends on its size, so report the means, r or R squared as well.
Can I use Pearson correlation on Likert data?
It is usually used on scale scores made from several Likert items. If your data are single ordinal items or clearly skewed, Spearman correlation is the safer choice.