Which Statistical Test Should I Use? A Simple Guide for Medical Students
"Which test should I run?" is the question every medical student asks at 2 a.m. the night before a synopsis deadline. The good news: choosing a test is not a matter of taste or seniority. It follows from two plain facts about your data — the type of your outcome variable and the number (and arrangement) of your groups. Answer those two questions honestly and the test chooses itself. This guide gives you the framework, a mapping table you can bookmark, and three worked scenarios in the style of real student projects.
Step 1: What Type Is Your Outcome Variable?
Your outcome variable (also called the dependent variable) is the thing you are measuring or counting — the result you want to compare or relate. Almost everything in student research falls into three types:
- Categorical — the answer is a label, not a measurement: recovered/not recovered, smoker/non-smoker, aware/not aware, hostel/day-scholar. You count how many people fall in each box.
- Numeric — the answer is a real measurement on a scale: haemoglobin (g/dL), blood pressure, BMI, age, blood sugar. You can meaningfully calculate a mean.
- Ordinal or skewed numeric — numbers, but not well-behaved ones: pain scores (0–10), satisfaction ratings (1–5), length of hospital stay, income. These are heavily skewed or are really ranked categories wearing a number's clothing. Treat them with the "safer" rank-based tests below.
A quick test of type: if the average of the answer would be a meaningless sentence — "the average patient was 1.7 smokers" — the variable is categorical. If the average is a sensible clinical statement — "mean Hb was 11.8 g/dL" — it is numeric.
Step 2: How Many Groups — and Are They Paired?
Next, look at the grouping variable — the thing you are comparing across (treatment group, gender, college) — and ask three things:
- How many groups? Two (drug vs. placebo) or three or more (three colleges, four wards)?
- Are the groups independent or paired? Independent groups contain different people. Paired data come from the same people measured twice — before/after treatment, right eye vs. left eye, a case matched to a control. Pairing is powerful: each person acts as their own control, so paired tests are used whenever the design is paired, even if a two-group test "also runs".
- Or is there no grouping at all? Sometimes you simply have two numeric measurements on the same people (age and blood pressure) and want to know if they move together — that is correlation, not a group comparison.
One more honest check for numeric outcomes: is the data roughly bell-shaped (normal), or badly skewed with extreme outliers? Small student samples with skewed data — pain scores, hospital stay, income — are safer with the rank-based (non-parametric) tests, which compare medians/ranks rather than means.
The Mapping Table
Put Step 1 and Step 2 together and you get this table. Find your row, and you have your test:
| Your situation | Use this test |
|---|---|
| 2 independent groups, numeric outcome, roughly normal | Independent (unpaired) t-test |
| 2 independent groups, numeric outcome skewed or ordinal (e.g. pain, satisfaction) | Mann–Whitney U test |
| Same people measured twice (before/after), differences roughly normal | Paired t-test |
| Same people measured twice, ordinal or skewed differences | Wilcoxon signed-rank test |
| 3 or more independent groups, numeric outcome, roughly normal | One-way ANOVA |
| 3 or more independent groups, skewed or ordinal outcome | Kruskal–Wallis test |
| Two categorical variables — is there an association? | Chi-square test (Fisher's exact test if any expected count < 5) |
| Two numeric variables — do they move together? (data roughly linear/normal) | Pearson correlation |
| Two numeric/ordinal variables, skewed or ranked data | Spearman correlation |
| Is my questionnaire scale internally consistent? | Cronbach's alpha (a reliability coefficient, not a group test) |
Notice the pattern: every "roughly normal" test has a rank-based partner for skewed data — t-test ↔ Mann–Whitney, paired t ↔ Wilcoxon, ANOVA ↔ Kruskal–Wallis, Pearson ↔ Spearman. Learn the pairs and you have learned the whole map.
Three Worked Scenarios
Scenario 1: Mean haemoglobin in two colleges
"I measured Hb (g/dL) in 60 students from College A and 55 students from College B. Is the mean Hb different?"
Outcome: Hb — numeric, and Hb values in a healthy student population are roughly bell-shaped. Groups: two, and they are different people, so independent. Chosen test: independent t-test. It compares the two means and gives a p-value for the difference. (Full walkthrough: our t-test guide.) If the Hb data had been badly skewed — say, a mixed patient sample with extreme values — the safer choice would be the Mann–Whitney U test, which compares ranks instead of means.
Scenario 2: Pain score before and after treatment
"Thirty patients rated their pain on a 0–10 scale before physiotherapy and again after four weeks. Did pain improve?"
Outcome: pain score — a 0–10 rating, which is ordinal and usually skewed (lots of low scores after treatment, a few stubborn high ones). Arrangement: the same patients measured twice — paired. Chosen test: Wilcoxon signed-rank test, the paired, rank-based option. A paired t-test would treat the 0–10 ratings as if they were precise measurements and can mislead on skewed differences; Wilcoxon only asks whether the after-scores tend to rank lower than the before-scores. The lesson: "before/after on the same people" always means a paired test — never an independent t-test on the two columns.
Scenario 3: Hostel residence and dengue awareness
"I surveyed 200 students: hostel residents vs. day scholars, and whether each student was 'aware' or 'not aware' of dengue prevention. Is awareness associated with residence?"
Outcome: awareness — categorical (aware/not aware). Grouping variable: also categorical (hostel/day scholar). Two categorical variables and a question about association: chosen test: chi-square test of independence on the 2×2 table. If any expected cell count drops below 5 (a tiny subgroup, e.g. only a handful of unaware day scholars), switch to Fisher's exact test. (Full walkthrough with numbers: our chi-square guide.)
Two Special Cases Students Forget
Comparing three or more groups. The moment you have three colleges, three diets, or three wards, stop reaching for the t-test. Running three t-tests (A vs B, B vs C, A vs C) triples your false-positive risk. Use ANOVA first (or Kruskal–Wallis for skewed data) — one test asking "is there any difference among these groups?" — and only then look at which pairs differ. Our ANOVA guide explains it with a worked example.
Checking a questionnaire before you analyze it. If your outcome is a total score built from several Likert items (a knowledge score, an attitude scale), first check the items hang together: that is Cronbach's alpha, covered in our Cronbach's alpha guide. And if your question is "do two measurements move together" — hours of study vs. marks, age vs. blood pressure — that is correlation; our Pearson vs. Spearman guide shows how to pick between them.
A 30-Second Checklist Before You Run Anything
When you are staring at your data at the analysis stage, run through these five questions in order:
- What am I measuring? Name the outcome variable and its type — categorical, numeric, or ordinal/skewed.
- What am I comparing across? Name the grouping variable, or admit there is none (then you probably want correlation).
- How many groups? Two, or three or more (three or more rules out the plain t-test immediately).
- Same people or different people? Before/after or matched data always means a paired test.
- Is my numeric data roughly normal? If it is badly skewed, or it is really a rating scale, switch to the rank-based partner test.
Write these five answers in your notebook before you touch any software. Ninety percent of "wrong test" errors in student projects come from skipping question 1 or question 4 — running a chi-square on means, or an independent t-test on before/after data. The checklist takes thirty seconds and prevents both.
Still Unsure? Let the App Ask You the Questions
FormStat has this exact framework built in. Open the app and tap "Which test?": the wizard asks you the same two questions from this guide — what type is your outcome, how many groups, paired or not — and lands on the right test, which you can then run on your data in one tap. There is also an AI recommendation option: describe your study in your own words ("I want to compare stress scores between hostel students and day scholars") and it suggests the appropriate test from the same map, with the reasoning shown. Use the wizard to confirm your own reasoning — that habit, not any single test, is what examiners are really looking for.
What to write in your methodology section
One honest sentence per analysis is enough, for example: "Means between the two colleges were compared with the independent t-test; associations between categorical variables were assessed with the chi-square test (Fisher's exact test where expected counts were below 5), with statistical significance set at p < 0.05." Naming the test, the reason it fits, and your significance level is the whole job.
Run It Free on Your Phone
You do not need SPSS or a laptop for any of this. Open FormStat free — use the "Which test?" wizard or AI recommendation to pick your test, then run it on your own data instantly, with the statistic, p-value, and a plain-English interpretation.
Run this analysis in seconds with the FormStat app. No signup, no laptop, works offline.