Statistics guides: which test should I use?
Each guide explains when to use a test, its assumptions, how to run it and how to read the result, and opens straight into DATAJIN with that test selected.
Quick chooser
| Your question | Normal data | Not normal / ordinal |
|---|---|---|
| Two independent groups | Unpaired t test | Mann–Whitney |
| Two paired measurements | Paired t test | Wilcoxon signed-rank |
| Three or more independent groups | One-way ANOVA | Kruskal–Wallis |
| Three or more repeated measurements | ANOVA (with subject factor) | Friedman |
| Relationship between two variables | Pearson correlation | Spearman correlation |
| Two categorical variables (counts) | Chi-square / Fisher’s exact test | |
| Yes/no outcome from predictors | Logistic regression | |
| Time until an event | Kaplan–Meier + log-rank | |
Not sure if your data are normal? Run a normality test first.
All guides
Descriptive
Descriptive statistics calculatorMean, SD, SEM, median, quartiles, 95% CI, skewness and kurtosis.Normality test (Shapiro–Wilk and D’Agostino–Pearson)Shapiro–Wilk and D’Agostino–Pearson tests for each column.
Compare two groups
t test calculator (unpaired, Welch and paired)Student's, Welch's or paired t test with 95% CI and Cohen's d.One-sample t test calculatorCompare one column’s mean to a hypothesised value.Mann–Whitney U test calculatorNonparametric comparison of two independent groups.Wilcoxon signed-rank test calculator (matched pairs)Nonparametric test for paired measurements.
Compare 3+ groups
One-way ANOVA calculator with post hoc testsCompare 3+ group means, with Tukey, Holm–Šídák or Bonferroni.Kruskal–Wallis test calculator with Dunn’s post testNonparametric one-way ANOVA with Dunn’s multiple comparisons.Friedman test calculatorNonparametric repeated-measures test for 3+ treatments.Two-way ANOVA calculatorTwo factors plus their interaction on one numeric outcome.
Correlation & regression
Correlation coefficient calculator (Pearson and Spearman)Pearson r or Spearman ρ between two columns, with p-value.Correlation matrix calculatorPairwise Pearson correlations across many columns.Simple linear regression calculatorFit Y = a + b·X with slope, intercept, R² and p-value.Multiple linear regression calculatorPredict one column from several predictors.Polynomial regression calculatorQuadratic, cubic or higher-degree curve fits.Nonlinear regression and curve fittingDose–response (4PL, EC50), exponential and Michaelis–Menten fits.Logistic regression calculator (binary outcome)Predict a 0/1 outcome; coefficients and odds ratios.
Categorical
Survival
Diagnostic
ROC curve and AUC calculatorAUC with 95% CI and the best cut-off threshold.Principal component analysis (PCA) onlineEigenvalues, variance explained and loadings.
Charts
Cluster dendrogramAgglomerative clustering with three linkage methods and optional feature standardization.SunburstNested rings sized by row counts or summed weights.Sankey diagramFlows through two or more stages, weighted or counted.TreemapNested rectangles sized by category totals.Icicle chartExplore hierarchy levels in stacked bands.Donut chartCompare categories as shares of the total.Pareto chartRank category totals and trace their cumulative share.Waterfall chartSee signed changes and their net total.Normal Q–Q plotCompare observed quantiles with a normal distribution.2D density contoursInspect joint frequencies of two numeric variables.XY scatter plot with trendlineTwo numeric columns with an optional least-squares line and R².Column (bar) chart with error barsGroup means with SD, SEM or 95% CI error bars and optional individual points.Box and whisker plotMedian, quartiles and outliers for each column.Violin plotFull distribution shape with an embedded box plot and mean line.HistogramFrequency distribution of one or more columns.Line chartValues by row, for time series and repeated measurements.Regression residual plotResiduals against fitted values from a simple linear regression.ROC curveSensitivity against false positive rate across score thresholds, with area under the curve.Correlation heatmapColour-coded Pearson correlation matrix.Raincloud plotHalf violins, quartiles and individual observations for each group.Cumulative distributionThe observed proportion at or below every value.Paired changesConnect each matched pair across two conditions.Bland–Altman agreementPaired differences against means with bias and limits of agreement.Bubble plotEncode a third variable in marker area.Kaplan–Meier curveEvent-free survival by group with censor marks.