Processed online by Toolvito
Statistical Test Calculator
Choose a test, paste your data (or choose a CSV file) and get the test statistic, degrees of freedom, p-value, critical value, effect size and the decision at your significance level, with the hypotheses and the assumptions of the test written out.
How to use it
- Choose the Test. Not sure? Two independent groups of numbers: the two-sample t test (or Mann–Whitney for ranks). The same subjects twice: the paired t test (or Wilcoxon). Three or more groups: ANOVA (or Kruskal–Wallis). Counts in a table: chi-square (or Fisher’s exact test for small 2 × 2 tables).
- Paste the data: one sample per line such as A: 12 15 11 14, or columns with a header row. Counts for chi-square go in the table box, one row per line. Or choose a CSV file.
- Choose the alternative hypothesis (two-sided, greater or less) and the significance level α (usually 0.05).
- Select Calculate. Read the decision, the p-value, the assumptions and the checks; download the report and the graph of the rejection region.
The tests
- t tests: one sample against a value μ₀; two independent samples (Welch’s test, or the pooled test when the variances are equal); paired samples. Tick From summary statistics to type n, mean and standard deviation instead of the data.
- z tests: one mean or two means with known population standard deviations σ; one proportion (with the exact binomial p-value) and two proportions.
- Counts: chi-square goodness of fit (equal expected counts, or your expected proportions on a second line), chi-square test of independence or homogeneity (Yates’ correction for 2 × 2), Fisher’s exact test for 2 × 2 tables, McNemar’s test for paired yes/no answers.
- Several groups: one-way ANOVA with Tukey’s HSD (which pairs differ) and η²; two-way ANOVA with interaction (type one observation per line: factor A, factor B, value), or with one value per cell as a randomised block design; repeated-measures ANOVA; Kruskal–Wallis and Friedman tests on ranks.
- Ranks and variances: Mann–Whitney U (Wilcoxon rank-sum), Wilcoxon signed-rank, and the F test of two variances.
Reading the result
- The p-value is the chance of data at least this extreme if the null hypothesis H₀ were true. If p < α, H₀ is rejected; if not, the data do not give enough evidence against it, which is not proof that H₀ is true.
- Each test has assumptions (independent observations, roughly normal data for t tests and ANOVA, expected counts of about 5 or more for chi-square). The page lists them with the result; the Statistical Diagnostics Tool checks normality and equal variances.
- Every statistic is recomputed from its textbook formula and every p-value from the distribution with mpmath, independently of SciPy and statsmodels. Not covered: three-way ANOVA, MANOVA, Fisher’s test for tables larger than 2 × 2 and power or sample-size calculations (see the Statistical Power Calculator).