Choosing the Right Statistical Test

A decision framework for quantitative analysis, match your test to your variables, groups and assumptions, from t-tests to regression.

The most common statistics error in student research is not miscalculation, it is choosing the wrong test. Test selection follows logically from three things: the type of your variables, how many groups you compare, and whether your data meet the test's assumptions. Get those right and the test almost picks itself.

Step 1: Identify Your Variable Types

Your outcome and predictor variable types are the first fork in the decision tree.

Step 2: Comparing Groups on a Continuous Outcome

Step 3: Relationships Between Variables

Step 4: Check the Assumptions

Parametric tests (t-test, ANOVA, Pearson, linear regression) assume roughly normal distributions and, often, equal variances. Check normality (Shapiro-Wilk, Q-Q plots) and homogeneity of variance (Levene's test). If assumptions fail and cannot be remedied, switch to the non-parametric equivalent, this is a judgement you must report, not hide.

Report the Choice, Not Just the Result

Markers want to see reasoning: "Because the outcome was continuous and normally distributed across two independent groups, an independent-samples t-test was used." That single sentence earns method marks the result alone does not.

Checklist

The Decision Table

Most student analyses resolve to one of the rows below. Find your outcome type on the left, then read across to what you are doing with it.

OutcomeComparison or relationshipParametric testNon-parametric alternative
ContinuousTwo independent groupsIndependent-samples t-testMann-Whitney U
ContinuousTwo related measuresPaired t-testWilcoxon signed-rank
ContinuousThree or more independent groupsOne-way ANOVAKruskal-Wallis
ContinuousThree or more related measuresRepeated-measures ANOVAFriedman
ContinuousAssociation with another continuous variablePearson correlationSpearman rho
ContinuousPrediction from one or more variablesLinear regressionRobust or quantile regression
BinaryPrediction from one or more variablesLogistic regressionExact logistic regression for small samples
CategoricalAssociation with another categorical variableChi-square test of independenceFisher's exact test
CountPrediction from one or more variablesPoisson regressionNegative binomial where overdispersed

Assumptions, and What Actually Happens When They Fail

TestKey assumptionsIf violated
t-testNormality of the outcome, equal variances, independent observationsUse Welch's t-test for unequal variances, Mann-Whitney for marked non-normality
ANOVANormality, homogeneity of variance, independenceWelch's ANOVA, or Kruskal-Wallis
Pearson correlationLinear relationship, roughly bivariate normal, no strong outliersSpearman rho on ranks
Linear regressionLinearity, independent errors, constant variance, normal residualsTransform the outcome, or use robust standard errors
Chi-squareExpected count of at least five in most cellsFisher's exact test
Logistic regressionIndependence, no perfect separation, adequate events per predictorReduce predictors, or use penalised estimation

One caution about normality testing. Shapiro-Wilk becomes very sensitive in large samples, flagging trivial departures as significant, while in small samples it can miss real ones. Look at a Q-Q plot and a histogram alongside the test rather than treating the p-value as the verdict.

Report an Effect Size, Not Only a p-Value

A p-value tells you how surprising the data would be if there were no effect. It does not tell you how large the effect is. Most marking schemes now expect both, and APA style requires an effect size wherever one is available.

TestUsual effect size
t-testCohen's d
ANOVAEta squared or partial eta squared
Correlationr itself, and r squared
Linear regressionR squared, and standardised coefficients
Logistic regressionOdds ratio with a confidence interval
Chi-squareCramer's V, or phi for a two-by-two table

Three Worked Decisions

Reading the table is easier than applying it, so here are three ordinary student scenarios worked through.

Scenario one. You surveyed 140 undergraduates and want to know whether wellbeing scores differ between students living at home and students in halls. The outcome is a summed wellbeing scale, so continuous. There are two groups, and they are independent, since nobody is in both. That points to an independent-samples t-test. You check the distributions, find them acceptably symmetric, but Levene's test flags unequal variances, so you use Welch's version and report Cohen's d alongside the p-value.

Scenario two. You measured anxiety in the same 40 participants before and after an eight-week programme. The outcome is continuous, but the two measurements come from the same people, so they are not independent. That is a paired t-test. The paired structure matters enormously here, because treating the measurements as independent throws away the very information that gives the design its power, and usually understates the effect.

Scenario three. You want to know whether course choice is associated with whether students used the library's study-skills service. Both variables are categorical, so a chi-square test of independence fits. One cell has an expected count of three, below the usual threshold, so you switch to Fisher's exact test and report Cramer's V as the effect size. Note that you decided this from the expected counts, not the observed ones.

In all three, the reasoning came before the software. That order is what a marker is looking for.

Common Mistakes and Fixes

MistakeFix
Multiple t-tests instead of one ANOVARun the ANOVA, then post-hoc tests with a correction
Treating a Likert item as continuous without commentJustify it, or use ordinal methods, and say which you chose
Ignoring paired structure in the dataUse the paired or repeated-measures version of the test
Reading correlation as causationDescribe association, and reserve causal language for designs that support it
Reporting "p < .05" onlyGive the exact value, the test statistic, degrees of freedom and an effect size
Running every test and reporting the significant onePre-specify the analysis, and disclose exploratory tests as exploratory

Discipline Notes

Where Ethical Support Fits

Most universities run a statistics advisory service, and using it is expected rather than exceptional. Asking whether your design calls for a repeated-measures model, or how to read a diagnostic plot, is ordinary research training.

What stays yours is running the analysis, reading the output and writing the interpretation. If a result is not significant, that is your result. Reporting it plainly is better research than searching for a test that produces a more agreeable number.

Frequently Asked Questions

Can I treat Likert data as continuous?

Single items are ordinal. Summed multi-item scales are commonly treated as continuous, and that is widely accepted where the scale has several items and behaves reasonably. Whichever you choose, state the choice and the reason.

What if my data are not normally distributed?

Check how far from normal, and how large your sample is. Parametric tests are fairly robust in larger samples. If the departure is severe, use the non-parametric equivalent and report why.

Do I need to correct for multiple comparisons?

If you are running many tests on the same data, yes. Bonferroni is the simplest and the most conservative. Whatever you use, name it.

How big does my sample need to be?

That comes from a power calculation using your expected effect size, alpha and desired power, not from a round number. Run it before collecting data if you can.

My result is not significant. Have I failed?

No. A well-designed study with a null result is a legitimate contribution. What weakens a dissertation is not the null result but a failure to discuss it, including whether the study was powered to detect the effect at all.

Which software should I use?

Whichever your department teaches and supports. SPSS, R, Stata and Python will all run these tests. Marks come from justification and interpretation, not from the software name.

Your Next Step Today

Write one sentence for each analysis in your results chapter, in this form: because the outcome was X and I compared Y, I used Z, having checked assumption A. If you cannot complete the sentence, the test choice is not yet defensible, and that is the thing to fix before you run anything else.

Trusted Sources

Conventions differ by discipline and by supervisor. Where this guide and your department's guidance differ, follow your department.

Related services

Related guides

All academic writing guides or browse our academic writing services.