A perfect rising order
Du skriver inn
- Parverdier
- 1, 10
2, 20
3, 30
4, 40
5, 50
Both columns are already in the same order, so the ranks match exactly: 1 to 5 for x and 1 to 5 for y. This is the pair set the Load example button fills in.
Kjørt med verktøyets egen kode.
One extreme value
Du skriver inn
- Parverdier
- 1, 1
2, 100
3, 2
4, 3
5, 4
Du får
- Rho
- 0.4
- Rangering y
- 1, 5, 2, 3, 4
The big 100 only counts as the highest rank, 5. The squared rank gaps are 0, 9, 1, 1 and 1, so rho is 1 minus 6 times 12 over 5 times 24, which is 0.4.
Kjørt med verktøyets egen kode.
A tie in the y values
Du skriver inn
- Parverdier
- 1, 2
2, 2
3, 3
4, 5
5, 4
Du får
- Rho
- 0.8720816
- Rangering y
- 1.5, 1.5, 3, 5, 4
The two 2s fill rank places 1 and 2, so each gets 1.5. The page shows 7 significant digits, and a note says average ranks were used.
Kjørt med verktøyets egen kode.
A series with no variation
Du skriver inn
- Parverdier
- 1, 3
2, 3
3, 3
Du får
- Melding
- Check that every line has two valid values and neither series is constant.
Every y is 3, so all ranks are equal and the correlation is undefined. The tool shows a message and no rho.
Kjørt med verktøyets egen kode.