Which statistical test should I use for my MD/MS thesis?

By Dr. Harshad Ramineni · Updated 1 October 2026
In short

The test follows from four facts about your primary outcome: its data type (a measurement, a category or a time to an event), how many groups you compare, whether those groups are independent or paired, and, for measurements, whether the data are normally distributed. Answer those four and the tables below name the test.

Four questions that pick the test

Ask them of each objective in your synopsis, starting with the primary one.

  1. What type of data is the outcome?Continuous: a measurement such as blood pressure, HbA1c or a scale score. Categorical: yes/no (responder, ADR present) or several categories (blood group). Ordinal: ordered categories such as NYHA class or a single Likert item. Time-to-event: time to relapse, to an ADR, or survival. Count: ADRs per patient.
  2. How many groups?One group against a known value, two groups, or three or more.
  3. Independent or paired?Different patients in each group are independent. The same patients measured twice (before and after), or matched pairs, are paired.
  4. Is it normally distributed?For continuous outcomes only. Normal data take the parametric test; clearly non-normal data in a small sample, and ordinal data, take the non-parametric alternative.

The decision tables

A · Continuous outcome
ComparisonNormal data (parametric)Not normal, or ordinal (non-parametric)
One group against a known valueOne-sample t-testWilcoxon signed-rank test
Two independent groups (drug A vs drug B)Independent-samples (Student’s) t-testMann-Whitney U test
Two paired measurements (before and after, matched pairs)Paired t-testThe differences must be normal.Wilcoxon signed-rank test
Three or more independent groupsOne-way ANOVAKruskal-Wallis test
Three or more measurements on the same patientsRepeated-measures ANOVA, or a mixed modelFriedman test
Association between two continuous variablesPearson correlation (r)Both variables normal.Spearman correlation (ρ)
B · Categorical outcome (yes/no, or several categories)
ComparisonTest
Two independent groups, comparing proportionsChi-square test, if every expected cell count is 5 or more; Fisher’s exact test if not
Two paired measurements (the same patients before and after)McNemar’s test
Three or more groups, or more than two categoriesChi-square test for an r×c table
Three or more paired measurements of a yes/no outcomeCochran’s Q test
A trend across ordered groups (such as age bands)Chi-square test for trend (Cochran-Armitage)
Ordinal outcome (NYHA class, pain bands, a Likert item)Mann-Whitney U for two groups, Kruskal-Wallis for three or more, Wilcoxon signed-rank if paired
C · Time-to-event, counts, and adjusting for other factors
QuestionMethod
Describe survival, or time to an event, over follow-upKaplan-Meier curve
Compare time to an event between groupsLog-rank test
Time to an event, adjusting for age, sex and other factorsCox proportional hazards regression (hazard ratio)
Continuous outcome, adjusting for other factorsMultiple linear regression
Yes/no outcome, adjusting for other factorsLogistic regression (odds ratio)
Count outcome (number of ADRs per patient)Poisson regression; negative binomial regression if the variance is much larger than the mean

Survival, regression and repeated-measures models have assumptions of their own to check. For these, involve a statistician.

Is my data normal?

Which groups differ? Post-hoc tests

A significant ANOVA or Kruskal-Wallis test says the groups are not all alike. It does not say which ones differ. Run one global test first, then a post-hoc test:

Running a separate t-test or chi-square test for every pair instead inflates the chance of a false positive (type 1 error).

What to report

Descriptive statistics

Normally distributed data as mean ± SD; skewed or ordinal data as median (IQR); categories as number (%). Match the summary to the test: mean ± SD beside a t-test, median (IQR) beside a Mann-Whitney U test.

P-values with confidence intervals and effect sizes

A p-value says how surprising the difference would be by chance alone, not how big it is. Report the size of the effect with its 95% confidence interval:

Effect size to report
AnalysisEffect size
Two meansMean difference with 95% CI; Cohen’s d
Two proportionsRisk difference, relative risk or odds ratio, with 95% CI
Correlationr (Pearson) or ρ (Spearman)
Chi-square testCramér’s V, or phi for a 2×2 table
ANOVAη² (eta squared) or partial η²
Mann-Whitney U testr = Z/√n, or the rank-biserial correlation
Cox regressionHazard ratio with 95% CI

Large samples make trivial differences “significant”, and small samples miss important ones. The confidence interval shows both, so judge clinical relevance as well as p.

Common mistakes examiners spot

Software residents use

Excel suits the master chart (one row per participant, one column per variable, coded consistently), but run the tests in a statistics package and name it, with its version, in your methods.

Worked examples: from objective to test

These are illustrations of the method, not results or topics to copy.

Illustration 1 · Continuous outcome
Objective
To compare the fall in HbA1c at 12 weeks between adults with type 2 diabetes on metformin plus sitagliptin and those on metformin plus glimepiride.
Four answers
Continuous outcome (change in HbA1c); two groups; independent between groups, paired before and after within each group; normality to check.
Test
Check the change in each group with Shapiro-Wilk and a Q-Q plot. Between groups: independent-samples t-test if normal, Mann-Whitney U if not. Within a group, before against after: paired t-test, or Wilcoxon signed-rank.
Report
Mean ± SD, or median (IQR), in each group, and the mean difference between groups with its 95% CI.
Illustration 2 · Yes/no outcome
Objective
To compare the incidence of postoperative nausea and vomiting (PONV) in the first 24 hours between patients given ondansetron and those given dexamethasone before laparoscopic cholecystectomy.
Four answers
Categorical outcome (PONV yes/no); two groups; independent; normality does not apply.
Test
Chi-square test if every expected count in the 2×2 table is 5 or more; Fisher’s exact test if any is smaller, which is likely when PONV is uncommon and the groups are small. A secondary objective comparing nausea severity on a 0–3 scale is ordinal: Mann-Whitney U.
Report
Number (%) with PONV in each group, and the risk difference or relative risk with its 95% CI.

Want your analysis done, and a statistician’s certificate?

Descriptive and inferential statistics for every objective, with tables, charts and a note on the test used for each, for your viva. The statistician review certificate many colleges ask for at IEC submission is also available. We report what your data shows.

See statistics support →

Need a sample size first?

The test and the sample size are planned together, in the synopsis. Work out a first figure with the free calculator, then confirm the assumptions with your guide.

Open the calculator →

Need help with more than the statistics? See thesis support.

Questions

Which test compares two groups?
It depends on the outcome and on whether the groups are independent or paired. For a normally distributed measurement, use the independent-samples t-test, or the paired t-test when the same patients are measured twice. For a skewed or ordinal outcome, use the Mann-Whitney U test, or the Wilcoxon signed-rank test if paired. For a yes/no outcome, use the chi-square test or Fisher’s exact test, or McNemar’s test if paired.
When do I use a non-parametric test?
When the outcome is ordinal, such as NYHA class or a single Likert item, or when a continuous outcome is clearly not normally distributed in a small sample, roughly under 30 per group. Check with the Shapiro-Wilk test and a Q-Q plot. With larger samples, t-tests and ANOVA tolerate mild non-normality, and heavily skewed values can sometimes be log-transformed instead.
Chi-square or Fisher’s exact test?
Use the chi-square test when every expected cell count in your 2×2 table is 5 or more, and Fisher’s exact test when any expected count is smaller, which often happens with thesis-sized samples. The rule is about the expected counts your software reports, not the counts you observed.
Do I need a statistician for my thesis?
Not always. A straightforward analysis can be run in SPSS, Jamovi or JASP with your guide’s help. A statistician is most useful early, when the sample size and analysis plan are fixed in the synopsis, and for complex analyses such as survival models, multivariable regression or repeated measures. Some colleges also ask for a statistician’s certificate with the synopsis at ethics committee submission, so check with your department.

Sources

  1. Indrayan A, Malhotra RK. Medical Biostatistics. 4th ed. Boca Raton: CRC Press; 2018.
  2. Mahajan BK. Methods in Biostatistics for Medical Students and Research Workers. New Delhi: Jaypee Brothers.
  3. Whitley E, Ball J. Statistics review 6: Nonparametric methods. Crit Care. 2002;6(6):509–13. PubMed 12493072
  4. Bewick V, Cheek L, Ball J. Statistics review 8: Qualitative data – tests of association. Crit Care. 2004;8(1):46–53. PubMed 14975045
  5. Bewick V, Cheek L, Ball J. Statistics review 9: One-way analysis of variance. Crit Care. 2004;8(2):130–6. PubMed 15025774
  6. Ghasemi A, Zahediasl S. Normality tests for statistical analysis: a guide for non-statisticians. Int J Endocrinol Metab. 2012;10(2):486–9. PubMed 23843808