Everyday tool

Statistical Test Calculator

Choose a statistical test and enter the matching sample or group data.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

Statistical Test Calculator made simple.

Results are model-based and assume independent observations; the tests also have method-specific assumptions. This tool does not decide whether a test is suitable for your study.

Guide

Using Statistical Test Calculator

The Statistical Test Calculator runs one of three classic tests on numbers you type in: a one-sample t-test, a chi-square goodness-of-fit test or a one-way ANOVA. It shows the test statistic, the degrees of freedom and an approximate p-value. It does not choose the right test for you, check that your data fit the assumptions, or tell you whether a result matters in real life.

How to use it

  1. Pick the test from the list. The boxes below change to match: sample values for the t-test, counts for chi-square, groups for ANOVA.
  2. For the t-test, type at least two values separated by commas or spaces, and the mean you want to compare with. For chi-square, type observed and expected counts in the same order.
  3. For ANOVA, type each group on its own, with commas between values and semicolons between groups. Use 2 to 20 groups with at least two values each.
  4. Press Calculate, read the statistic, degrees of freedom and p-value, then read the assumptions line and decide what the p-value means for your question.

Worked examples

One-sample t-test on three values

You enter
Test
t
Sample
2, 4, 6
Mu0
0
You get
Sample mean
4
T statistic
3.464102
Degrees of freedom
2
P value
0.0741799

The mean is 4 and the sample variance is 4, so t is 4 divided by the square root of 4/3, which is 3.464. With 2 degrees of freedom the two-sided p-value is 0.0742. I checked this against an exact formula for 2 degrees of freedom.

Run through the tool’s own code.

Chi-square on six die rolls

You enter
Test
chi
Observed
18, 22, 20, 25, 15, 20
Expected
20, 20, 20, 20, 20, 20
You get
Chi square
2.9
Degrees of freedom
5
P value
0.71539951

The squared gaps divided by 20 are 0.2, 0.2, 0, 1.25, 1.25 and 0, which add up to 2.9. With 5 degrees of freedom the p-value is about 0.715, so these counts sit well within what equal chances would produce.

Run through the tool’s own code.

One-way ANOVA on three groups

You enter
Test
anova
Groups
5, 6, 7, 8; 6, 7, 8, 9; 9, 10, 11, 12
You get
F statistic
10.4
Degrees of freedom
2, 9
P value
0.00457213

The group means are 6.5, 7.5 and 10.5. The between-group mean square divided by the within-group mean square gives F = 10.4 with 2 and 9 degrees of freedom. The p-value of 0.0046 says at least one group mean looks different, not which one.

Run through the tool’s own code.

When it helps

  • Check whether a sample average differs from a target value, such as a stated specification.
  • Test whether counts across categories match the shares you expected, for instance rolls of a die.
  • Compare the averages of several groups, such as results from three methods, in one test.
  • Work through a textbook exercise and compare your hand calculation with the output.

Limits to keep in mind

  • The t-test is one-sample and two-sided only. There is no paired or two-sample version, no one-sided p-value and no confidence interval.
  • Chi-square uses the expected counts exactly as typed. It does not check that the totals match or that each expected count is at least 5, which NIST gives as a condition for the approximation. For example, observed 30, 10 against expected 25, 25 is accepted although the totals are 40 and 50.
  • ANOVA accepts 2 to 20 groups with at least two values each, and reports one overall F test. It does not say which groups differ.
  • The p-values are labelled approximate. Statistics show six decimals and p-values eight, so a very small p-value can show as 0.

Tips

  • Choose the test and your significance level before looking at the data, so the choice is not steered by the result.
  • Look at the raw numbers or a plot as well. With very few values the t-test and ANOVA lean heavily on the assumption of roughly normal data.
  • Report the statistic, the degrees of freedom and the exact p-value, not only the words significant or not significant.

Sources

Common questions

About Statistical Test Calculator.

What does a p-value tell me?

It is the probability of seeing a result at least as extreme as yours if the null hypothesis were true. It is not the probability that the hypothesis is true, and it says nothing about how large or important an effect is.

Which test should I pick?

Use the t-test to compare the mean of one sample with a fixed number. Use chi-square goodness of fit to compare counts in categories with the counts you expected. Use ANOVA to compare the means of two or more groups.

How do I enter expected counts?

Type counts, not percentages, in the same order as the observed counts and with the same number of categories. Every expected count must be above zero. If you expect equal shares, repeat the same number in each position.

Why is the p-value called approximate?

The tool computes it with numerical routines for the t, chi-square and F distributions, not with lookup tables. The examples on this page matched exact or independent calculations to the digits shown, but a tiny p-value is rounded.

What do the assumptions at the bottom mean?

The t-test needs independent observations and, for small samples, a roughly normal population. ANOVA assumes similar things plus similar spread in each group. The tool cannot test these for you.

Why does the t-test refuse my numbers?

It needs at least two values that are not all the same. Three equal values such as 3, 3, 3 have no variation, so the tool shows a message instead of dividing by zero.

Is my data uploaded?

No. The page says the values are processed locally in your browser, and the tests are computed on your device.

How do I use Statistical test calculator?

Choose a statistical test and enter the matching sample or group data.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.