Step 1: define what you are trying to estimate
Before choosing a test, write the research question as a comparison or relationship. Are you comparing two group means, estimating an association between two continuous variables, comparing proportions, modelling a binary outcome, or studying time until an event?
This step prevents a common mistake: choosing a method because its name appears in a lecture rather than because it estimates the quantity your question needs.
- Continuous outcome: mean differences or regression coefficients may be natural targets.
- Binary outcome: proportions, odds, risks or predicted probabilities may be relevant.
- Count outcome: rates or count models may be more appropriate than ordinary linear regression.
- Time-to-event outcome: censoring usually requires survival-analysis methods.
Step 2: check whether observations are independent
Two datasets can contain the same variables but require different methods because of the design. If the same participant is measured twice, the observations are paired. If students are nested within schools, observations may be clustered. Repeated measures over time create within-person dependence.
Ignoring dependence usually makes the uncertainty calculation wrong, even if the estimated mean or proportion looks sensible.
A paired t-test and an independent-samples t-test answer similar-looking questions but use different information because the data structure is different.
Step 3: use common methods as starting points, not automatic rules
For two independent groups and a continuous outcome, a two-sample t-test or linear regression may be appropriate. For paired continuous measurements, a paired t-test or a repeated-measures model may be more appropriate. For several groups, ANOVA is closely related to linear regression with categorical predictors.
For two categorical variables, a chi-square test can assess association when expected counts are adequate. For a binary outcome with predictors, logistic regression often gives a more informative adjusted analysis.
Step 4: check assumptions and reporting needs
Assumptions should be connected to the model and the inferential quantity. For example, a t-test is more robust to moderate non-normality than many students expect, especially with reasonable sample sizes, but severe skew, extreme outliers or very small samples can still matter.
Also ask what you need to report. If you need an adjusted effect estimate with confidence intervals, regression may be preferable to a simple unadjusted test even when both are mathematically related.
