Gratis å bruke, uten konto

Wilcoxon-test for fortegnede rangeringer

Sammenlign parede målinger før og etter med en tosidig Wilcoxon-test med fortegnede ranger. Forskjeller på null utelates, like absolutte forskjeller får gjennomsnittlig rangering, og kalkulatoren viser alle rangeringene og tilbyr lokal CSV-eksport.

Skriv inn ett par per linje som før, etter. Skill verdiene med komma, semikolon eller mellomrom; bruk punktum som desimalskilletegn. Skriv inn 2–500 par.

Forskjellene beregnes som etter minus før. Nullforskjeller utelates; like absolutte forskjeller får gjennomsnittsrangeringene for plassene de opptar. Testen er tosidig. Den eksakte metoden brukes for opptil 25 ikke-null par; større utvalg bruker en normaltilnærming med kontinuitetskorreksjon. Tolk resultatene bare når det parede studiedesignet og testforutsetningene er passende; dette fastslår ikke årsakssammenheng.

Hvordan bruker jeg Wilcoxon-kalkulatoren for fortegnede ranger?

Skriv inn ett par med før- og etterverdier på hver linje. Kalkulatoren rangerer de ikke-null absolutte forskjellene, viser positive og negative rangsummer og beregner en tosidig p-verdi. Små utvalg bruker en eksakt fortegnsfordeling; større utvalg bruker en normaltilnærming med kontinuitetskorreksjon.

Veiledning

Slik bruker du Wilcoxon-test for fortegnede rangeringer

The Wilcoxon Signed Rank Test Calculator compares paired before-and-after measurements. You paste one pair per line, and it works out each difference, ranks the sizes of the differences, adds up the ranks for increases and decreases, and gives a two-sided p-value. It shows every rank in a table. It does not prove that one thing caused another, and it does not check your study design.

Slik gjør du

  1. Type or paste one pair per line, written as before then after. Separate the two numbers with a comma, a semicolon or a space, and use a period for decimals.
  2. Enter between 2 and 500 pairs. Press Load example if you want to see a filled-in sample first.
  3. Press Run test. The page shows the number of pairs, zero differences, tied rank groups, the two rank sums, the p-value and the method used.
  4. Read the table of signed ranks to see how each pair was treated. Press Clear to start again.

Eksempler

The built-in sample

Du skriver inn
Par
12, 15 / 18, 20 / 10, 10 / 22, 19 / 16, 18 / 14, 17
Du får
Null-differanser
1
Grupper med like ranger
2
Positiv rangsum
11
Negativ rangsum
4
P-verdi
0.4375
Metode
Tosidig normaltilnærming med kontinuitetskorreksjon

The differences (after minus before) are 3, 2, 0, -3, 2 and 3. The zero is left out. The sizes 2, 2 share rank 1.5, and the three 3s share rank 4. The increases add up to 11 and the one decrease to 4, so the p-value is high.

Kjørt med verktøyets egen kode.

Every pair goes up by one

Du skriver inn
Par
1, 2 / 2, 3 / 3, 4 / 4, 5 / 5, 6 / 6, 7
Du får
Positiv rangsum
21
Negativ rangsum
0
Grupper med like ranger
1
P-verdi
0.03125

All six differences are +1 and share the average rank 3.5. Out of 64 equally likely sign patterns only two are this extreme, and 2 divided by 64 is 0.03125.

Kjørt med verktøyets egen kode.

No change at all

Du skriver inn
Par
5 5 / 7 7
Du får
Melding
All paired differences are zero. No test statistic or p-value is available.

Every difference is zero and zeros are omitted, so there is nothing to rank. The tool shows this message and no p-value.

Kjørt med verktøyets egen kode.

A bigger sample

Du skriver inn
Par
30 pairs where each after value is 1 to 7 above its before value
Du får
Par uten null-differanse
30
Positiv rangsum
465
P-verdi
0.000001727014
Metode
Two-sided normal approximation with continuity correction

With more than 25 nonzero pairs the tool switches from the exact method to a normal approximation with a continuity correction. All 30 differences are increases, so the positive rank sum is 1 + 2 + ... + 30 = 465.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Compare scores from the same people before and after a course, a change in routine or a new method.
  • Check paired measurements from one process, such as a machine measured before and after an adjustment.
  • Analyze a small sample when you do not want to assume the differences follow a bell curve.
  • Check a classroom exercise and see the ranks and the rank sums step by step.

Begrensninger

  • The tool is for paired data only, with 2 to 500 pairs, and every value must be between -1,000,000,000,000 and 1,000,000,000,000. Each line needs exactly two numbers.
  • Differences are after minus before. Pairs with no difference are left out, and tied sizes get average ranks. It reports a two-sided test only.
  • Up to 25 nonzero pairs it uses the exact distribution. Beyond that it uses a normal approximation with a continuity correction, which is an approximation.
  • With very few pairs the p-value cannot be small. For example, five nonzero pairs that all go up give 0.0625, which is the lowest value possible with five pairs.
  • The result does not establish causation and does not check your study design. Use it only when the paired design and the test's assumptions fit your data.

Tips

  • Keep the before value first on every line. Swapping them flips the sign of every difference and swaps the two rank sums.
  • Look at the table of signed ranks and not only at the p-value, to see which pairs drove the result.
  • Write down the sample size and the p-value together when you report a result, because the same p-value means something different with 6 pairs and with 300.

Kilder

Vanlige spørsmål

How do I use the Wilcoxon signed-rank test calculator?

Enter one before and after pair on each line, then press Run test. The tool ranks the sizes of the nonzero differences, reports the positive and negative rank sums and calculates a two-sided p-value, exact for small samples.

What does the Wilcoxon signed-rank test do?

It tests whether the differences between paired values tend to go in one direction. It uses the ranks of the sizes of the differences instead of the raw values, so it does not assume the differences follow a normal curve.

What happens to pairs where before and after are equal?

They have a difference of zero and are left out of the ranking. The page counts them in the line called Zero differences omitted. If every pair is equal, no p-value is given.

How are tied differences ranked?

When several differences have the same size, ignoring the sign, each one gets the average of the ranks they would take. The line called Tied rank groups tells you how many such groups there were.

When does the tool use the exact method and when the approximation?

It uses the exact distribution when there are 25 or fewer nonzero pairs, and a normal approximation with continuity correction when there are more. The page states which method was used for your data.

Does a small p-value prove my treatment worked?

No. The test only tells you how unusual your pattern of differences would be if increases and decreases were equally likely. It cannot show a cause, and it relies on a sound paired design.

Are my numbers uploaded?

No. The page says the calculation happens in your browser and your entered values are not uploaded or saved by the tool.

Hvordan bruker jeg Wilcoxon-kalkulatoren for fortegnede ranger?

Skriv inn ett par med før- og etterverdier på hver linje. Kalkulatoren rangerer de ikke-null absolutte forskjellene, viser positive og negative rangsummer og beregner en tosidig p-verdi. Små utvalg bruker en eksakt fortegnsfordeling; større utvalg bruker en normaltilnærming med kontinuitetskorreksjon.

Lastes de parede målingene mine opp?

Nei. Beregningen og eventuell CSV-fil opprettes i denne nettleseren. Verktøyet laster ikke opp eller lagrer verdiene du oppgir.

Når bør jeg bruke Wilcoxon-testen for fortegnede rangeringer?

Bruk den for parede målinger når du sammenligner plasseringen til forskjellene og forutsetningene for rangtesten er rimelige. Den er ikke en test for uavhengige grupper.

Hvordan håndteres nullforskjeller og like verdier?

Par uten endring utelates fra rangeringen. Like ikke-null absolutte forskjeller deler gjennomsnittsrangeringene for plassene de opptar.

Hva betyr p-verdien?

Den oppsummerer hvor uvanlige de observerte fortegnede rangeringene ville vært dersom det ikke var noen systematisk endring i parene. Den er ikke sannsynligheten for at denne antakelsen er sann, og måler ikke effektstørrelse eller beviser årsakssammenheng.