Hverdag · verktøy

Kalkulator for statistiske tester

Velg en statistisk test, og oppgi tilhørende utvalgs- eller gruppedata.

Kjøres i nettleseren. Ingen opplasting.

Values are processed locally in this browser.

Result

—

Om verktøyet

Kalkulator for statistiske tester sem complicação.

Resultatene bygger på en modell og forutsetter uavhengige observasjoner. Testene har også egne metodeforutsetninger. Verktøyet avgjør ikke om en test passer for studien din.

Veiledning

Slik bruker du Kalkulator for statistiske tester

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.

Slik gjør du

  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.

Eksempler

One-sample t-test on three values

Du skriver inn
Test
t
Utvalg
2, 4, 6
Mu0
0
Du får
Utvalgsgjennomsnitt
4
t-statistikk
3.464102
Frihetsgrader
2
p-verdi
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.

Kjørt med verktøyets egen kode.

Chi-square on six die rolls

Du skriver inn
Test
chi
Observert
18, 22, 20, 25, 15, 20
Forventet
20, 20, 20, 20, 20, 20
Du får
Kji-kvadrat
2.9
Frihetsgrader
5
p-verdi
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.

Kjørt med verktøyets egen kode.

One-way ANOVA on three groups

Du skriver inn
Test
anova
Grupper
5, 6, 7, 8; 6, 7, 8, 9; 9, 10, 11, 12
Du får
F-statistikk
10.4
Frihetsgrader
2, 9
p-verdi
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.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • 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.

Begrensninger

  • 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.

Kilder

Vanlige spørsmål

Sobre Kalkulator for statistiske tester.

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.

Hvordan bruker du Kalkulator for statistiske tester?

Velg en statistisk test, og oppgi tilhørende utvalgs- eller gruppedata.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.