Maths4UBETA

Signed ranks for one population

Use magnitudes through their ranks, while retaining signs and the correct alternative.

Try the quick check →
Lesson 2 of 4

Section 1 of 6 · Core · about 6 min

What differences do I rank?

Subtract the hypothesised median from each reading.

Worked example

Observation magnitude ranks from unsorted differences

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
14545
23131
34747
41717
53939
64949
71515
84343

Find the magnitude rank of observation 2.

  1. Rank the absolute differences from smallest to largest. Give each rank the sign of the original difference.

    ObservationSigned differenceAbsolute difference rank
    1111144
    2−3-311
    3131355
    4−17-1777
    55522
    6151566
    7−19-1988
    89933

    P=20,Q=16,T=16P=20,\quad Q=16,\quad T=16.

  2. Use the upper including the observed test value. Under the null, the tail contains 108108 of 256256 equally likely patterns. The resulting probability is 2764\frac{27}{64}.

  3. There is insufficient evidence that the population median process time is greater than 34 minutes.

Worked example

Two rank sums from the same sample

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
14949
22323
33939
43737
52121
64343
74141

Find both signed rank sums.

Try it on paper first.

  1. Rank the absolute differences from smallest to largest. Give each rank the sign of the original difference.

    ObservationSigned differenceAbsolute difference rank
    1151577
    2−11-1155
    35522
    43311
    5−13-1366
    69944
    77733

    P=17,Q=11,T=11P=17,\quad Q=11,\quad T=11.

  2. Use the upper including the observed test value. Under the null, the tail contains 4444 of 128128 equally likely patterns. The resulting probability is 1132\frac{11}{32}.

  3. There is insufficient evidence that the population median process time is greater than 34 minutes.

Your turn

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
14343
21919
33737
43939
52121
64141
74545
85151
95353

Find the magnitude rank of observation 1.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 2 of 6 · Core · about 7 min

What do the two rank sums tell me?

The magnitude matters through the rank.

Worked example

Check the rank-sum total

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
14747
22727
34949
43737
52525
62929
75151
85353

Find both signed rank sums.

  1. Rank the absolute differences from smallest to largest. Give each rank the sign of the original difference.

    ObservationSigned differenceAbsolute difference rank
    1131355
    2−7-733
    3151566
    43311
    5−9-944
    6−5-522
    7171777
    8191988

    P=27,Q=9,T=9P=27,\quad Q=9,\quad T=9.

  2. Use the upper including the observed test value. Under the null, the tail contains 3232 of 256256 equally likely patterns. The resulting probability is 18\frac{1}{8}.

  3. There is insufficient evidence that the population median process time is greater than 34 minutes.

Your turn

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
13737
22525
35151
44545
54747
64949
72929
84141

Find both signed rank sums.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 3 of 6 · Core · about 7 min

Why does the method require symmetry?

Under the null symmetry makes each sign equally likely, even at a particular magnitude.

Worked example

Turn the smaller signed sum into T

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
13939
21717
31515
44141
54343
64545
74747
83131

Find the smaller of the two signed rank sums.

  1. Rank the absolute differences from smallest to largest. Give each rank the sign of the original difference.

    ObservationSigned differenceAbsolute difference rank
    15522
    2−17-1777
    3−19-1988
    47733
    59944
    6111155
    7131366
    8−3-311

    P=20,Q=16,T=16P=20,\quad Q=16,\quad T=16.

  2. Use the upper including the observed test value. Under the null, the tail contains 108108 of 256256 equally likely patterns. The resulting probability is 2764\frac{27}{64}.

  3. There is insufficient evidence that the population median process time is greater than 34 minutes.

Your turn

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
13939
21717
34141
44545
54747
64949
72525
83737

Find the smaller of the two signed rank sums.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 4 of 6 · Core · about 7 min

What happens with a directional claim?

The smaller sum TT can be used with the MF19 tables.

Worked example

Identify the direction despite a small other sum

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
15151
23737
34545
43939
54141
62525
74747
84949

Which tail of the positive rank sum gives evidence for the alternative?

  1. Rank the absolute differences from smallest to largest. Give each rank the sign of the original difference.

    ObservationSigned differenceAbsolute difference rank
    1171788
    23311
    3111155
    45522
    57733
    6−9-944
    7131366
    8151577

    P=32,Q=4,T=4P=32,\quad Q=4,\quad T=4.

  2. Use the upper including the observed test value. Under the null, the tail contains 77 of 256256 equally likely patterns. The resulting probability is 7256\frac{7}{256}.

  3. There is sufficient evidence that the population median process time is greater than 34 minutes.

Your turn

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
13939
23131
34343
44141
54545
64747
74949
85151
95353

Which tail of the positive rank sum gives evidence for the alternative?

Tail

Section 5 of 6 · Core · about 7 min

How do I reach a conclusion in context?

The signed-rank test concerns a population location under the symmetry assumption.

Worked example

Use an exact two-sided signed-rank law

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is different from 34 minutes.

ReadingTime (minutes)
13939
24141
34545
44949
54747
64343
75151
83131

Find the exact p-value from the equally likely sign patterns.

  1. Rank the absolute differences from smallest to largest. Give each rank the sign of the original difference.

    ObservationSigned differenceAbsolute difference rank
    15522
    27733
    3111155
    4151577
    5131366
    69944
    7171788
    8−3-311

    P=35,Q=1,T=1P=35,\quad Q=1,\quad T=1.

  2. Use the two equal extreme tails including the observed test value. Under the null, the tail contains 44 of 256256 equally likely patterns. The resulting probability is 164\frac{1}{64}.

  3. There is sufficient evidence that the population median process time is different from 34 minutes.

Your turn

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
14949
21717
33737
43939
54141
62121
72323
84343

Choose the conclusion at 5%. Use the exact null distribution.

Conclusion

Section 6 of 6 · Extension · about 6 min

How can I estimate a tail in a large sample?

For larger nn the normal approximation describes a specified rank sum such as PP.

Worked example

Continuity-correct one side of a rank-sum tail

Assume independent observations from a continuous symmetric population.

Test whether the population median process time is greater than 34 minutes.

The data give 2424 distinct nonzero magnitudes and positive rank sum 210210.

Give the continuity-corrected boundary of the observed tail.

  1. Rank the absolute differences from smallest to largest. Give each rank the sign of the original difference.

    P=210,Q=90,T=90P=210,\quad Q=90,\quad T=90.

  2. The null distribution has mean 150150 and variance 12251225.

    Use the continuity boundary 4192\frac{419}{2}.

    The relevant normal tail P(Z≥4192−15035)\mathrm P(Z\ge \frac{\frac{419}{2}-150}{35}) gives 0.04460.0446.

  3. There is sufficient evidence that the population median process time is greater than 34 minutes.

Your turn

Assume independent observations from a continuous symmetric population.

Test whether the population median process time is greater than 34 minutes.

The data give 2626 distinct nonzero magnitudes and positive rank sum 238238.

Find the p-value to 4 decimal places using a normal approximation.

Keep intermediate values unrounded. Round the final answer to 4 decimal places.

Give your answer to 4 decimal places.

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

Every rank and both sign sums

7 marks

Four non-zero deviations are (−.3,1.2,.6,−.9)(-.3,1.2,.6,-.9). Rank their absolute magnitudes, from smallest to largest. Give every rank in the original order, W₊, W₋ and T=min(W₊,W₋).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter the value on its own or write T = … . Fractions and exact square roots are accepted.

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Count the rank signs after comparing values

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is different from 34 minutes.

ReadingTime (minutes)
13737
21515
35151
41919
54747
62323
74343
82727
93939

Find both signed rank sums.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Choose the direction if larger is the alternative

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is greater than 34 minutes.

ReadingTime (minutes)
15151
23939
34141
43131
54545
64747
74949
84343

Which tail of the positive rank sum gives evidence for the alternative?

Tail

Calculate the exact probability for an extreme outcome

A random sample of process times is compared with a proposed population median of 34 minutes. Assume a continuous symmetric distribution.

Test whether the population median process time is different from 34 minutes.

ReadingTime (minutes)
13939
25151
34141
44343
54545
64747
74949
83131
95353

Find the exact p-value from the equally likely sign patterns.

Enter the value on its own or write p = … . Fractions and exact square roots are accepted.

Find both normal parameters

Assume independent observations from a continuous symmetric population.

Test whether the population median process time is greater than 34 minutes.

The data give 2828 distinct nonzero magnitudes and positive rank sum 250250.

Give the exact mean and variance of the positive rank sum under the null hypothesis.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Correct the boundary of a large-sample upper tail

Assume independent observations from a continuous symmetric population.

Test whether the population median process time is greater than 34 minutes.

The data give 3030 distinct nonzero magnitudes and positive rank sum 323323.

Give the continuity-corrected boundary of the observed tail.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Interpret a large-sample two-sided test

Assume independent observations from a continuous symmetric population.

Test whether the population median process time is different from 34 minutes.

The data give 3030 distinct nonzero magnitudes and positive rank sum 330330.

Choose the conclusion at 5%. Use a normal approximation.

Conclusion

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.