Statistical Test Calculator
Choose the right test for your data, then compute the test statistic, critical value, and decision
Which Test Does Your Data Need?
Choosing the test is the part that gets marked wrong. Work down three questions: what type is the response, how many groups, and are the groups paired?
| Situation | Test | Statistic |
|---|---|---|
| One mean, known | one-sample -test | |
| One mean, unknown | one-sample -test, | |
| One proportion | one-proportion -test | |
| Two independent means | two-sample (Welch) -test | |
| Paired measurements | paired -test on the differences | |
| Counts in categories | chi-square test |
Note the proportion test uses , the null value, in the standard error — not . That differs from the interval formula, which uses .
Running the Test and Reading the Result
The five steps
- State and , and whether is one- or two-sided.
- Check conditions (below) and fix , usually .
- Compute the test statistic from the table above.
- Compare it to the critical value, or compare the -value to .
- Conclude in context — "reject ", never "prove ".
Critical values you will reuse
| Two-sided | |||
|---|---|---|---|
| 0.10 | 1.645 | 1.729 | 1.711 |
| 0.05 | 1.96 | 2.093 | 2.064 |
| 0.01 | 2.576 | 2.861 | 2.797 |
The matching interval
Every two-sided test has a companion interval: estimate (critical value) (standard error). A two-sided test at rejects exactly when the interval excludes , so the two approaches never disagree. The interval's endpoints are the confidence limits.
Conditions and Common Mistakes
Every test above assumes:
- Random sampling or random assignment. Without it the sampling distribution is undefined and no -value means anything.
- Independent observations, with of the population when sampling without replacement. Paired data violate independence between groups on purpose — that is why the paired test analyses the differences.
- Approximate normality: the population is roughly normal, or so the Central Limit Theorem applies. For a proportion, check and . Chi-square needs every expected count .
Frequent errors
- Using because "feels" big while is estimated by — the -test is the correct choice regardless of .
- Running a two-sample test on paired data, which throws away the pairing and inflates the standard error.
- Halving or doubling the -value in the wrong direction between one- and two-sided tests.
- Reporting "fail to reject" as " is true". It only means the evidence was insufficient.
Examples
Frequently Asked Questions
It depends on the standard deviation, not the sample size. Use z only when the population σ is genuinely known, which is rare outside textbook problems. Whenever you compute s from the sample, use t with df = n − 1; for large n the two give nearly identical results anyway.
The confidence limits are the two endpoints of a confidence interval — the lower limit and the upper limit. For a mean they are x̄ − t*·s/√n and x̄ + t*·s/√n. The interval is the range between them, so "95% confidence limits" and "95% confidence interval" describe the same result.
Not for a two-sided test built from the same standard error. A test at level α rejects H₀ precisely when the (1 − α) interval excludes the null value, so they are two views of one calculation. Disagreement usually signals a mismatch — a one-sided test, or a proportion test that uses p₀ in the standard error while the interval uses p̂.
A paired t-test. Compute the difference for each subject, then run a one-sample t-test on those differences against a null of zero, with df = n − 1. Treating the two columns as independent samples discards the pairing and usually inflates the standard error enough to hide a real effect.
Related Solvers
Related Guides
Try AI-Math for Free
Get step-by-step solutions to any math problem. Upload a photo or type your question.
Start Solving