Nonparametric Tests

Mann-Kendall Trend Test Table: Critical Values of S for Monotonic Trend

Exact critical values of the Mann-Kendall statistic S for series of 4 to 40 observations, with exact tail probabilities for small n and a calculator with Sen's slope.

  • n = 4 to 40
  • Exact critical S
  • Sen's slope
  • Test your data

Mann-Kendall Table

Jump to a table below. First table: rows n · columns one-sided α · cells the smallest S with P(S ≥ s) ≤ α; "–" means no value of S reaches that level. Second table: exact upper-tail probability P(S ≥ s).

Critical values of S (one-sided)

Critical values of S
One-sided α →
Series length (n) ↓
α = 0.1α = 0.05α = 0.025α = 0.01α = 0.005α = 0.001
466––––
5881010––
6911131315–
7111315171921
8121618202224
9141820242630
10172123272935
11192327313339
12202630363844
13242834404450
14253337434755
15293541495361
16303846525868
17344250586474
18374553636981
19394957677587
20425262728094
214456667886102
224761718391109
235165758999115
2454688094104124
25587286100110132
26617791107117139
27638195113125147
286886100118130156
297090106126138164
307595111131145171
317799117137151181
3282104122144160188
3386108128152166198
3489113133157175207
3593117139165181215
3696122146172190226
37100128152178198234
38105133157185205243
39109139163193213253
40112144170200222264

Exact probability P(S ≥ s), n = 4 to 10

Exact P(S ≥ s)
Series length (n) →
S ↓
n = 4n = 5n = 6n = 7n = 8n = 9n = 10
00.62500.5917––0.54760.5403–
1––0.50000.5000––0.5000
20.37500.4083––0.45240.4597–
3––0.35970.3863––0.4309
40.16670.2417––0.35980.3807–
5––0.23470.2810––0.3637
60.04170.1167––0.27420.3061–
7––0.13610.1907––0.3003
8–0.0417––0.19940.2384–
9––0.06810.1194––0.2422
10–0.0083––0.13750.1792–
11––0.02780.0681––0.1904
12––––0.08940.1298–
13––0.00830.0345––0.1456
14––––0.05430.0901–
15––0.00140.0151––0.1082
16––––0.03050.0597–
17–––0.0054––0.0779
18––––0.01560.0376–
19–––0.0014––0.0542
20––––0.00710.0223–
21–––0.0002––0.0363
22––––0.00280.0124–
23––––––0.0233
24––––0.00090.0063–
25––––––0.0143
26––––0.00020.0029–
27––––––0.0083
28––––0.00000.0012–
29––––––0.0046
30–––––0.0004–
31––––––0.0023
32–––––0.0001–
33––––––0.0011
34–––––0.0000–
35––––––0.0005
36–––––0.0000–
37––––––0.0002
38–––––––
39––––––0.0001
40–––––––
41––––––0.0000
42–––––––
43––––––0.0000
44–––––––
45––––––0.0000

Tip: click any value to highlight its row and column.

How to read this table

  1. Put the observations in time order and compute S = Σ sign(xj − xi) over all pairs i < j.
  2. For a one-sided test of an upward trend, find the row for n and reject if S is at least the tabulated value (for a downward trend, if S is at most its negative).
  3. For a two-sided test at level α, use the column for α/2 and compare |S|.
  4. The values assume no ties. With ties or n above 40, use the normal approximation in the calculator.

Worked example

Twelve annual measurements are 4.1, 4.4, 4.0, 4.9, 5.2, 4.8, 5.6, 5.9, 5.5, 6.3, 6.1, 6.8. Counting, for every later value, whether it is higher (+1) or lower (−1) than each earlier value gives S = 52 out of a maximum of 66.

In the n = 12 row, the one-sided α = 0.025 column gives 30 and the one-sided α = 0.005 column gives 38. Because S = 52 is at least both values, the upward trend is significant at two-sided α = 0.05 and 0.01 (the exact two-sided p-value is 0.0001). Sen's slope is 0.240 units per year.

Click the underlined links to highlight the value in the table.

Calculator

Paste your series in time order. Exact for n up to 40 without ties; otherwise the normal approximation with tie correction.

Formula and how the values were computed

S = Σi<j sgn(xj − xi)  ·  Var(S) = [n(n − 1)(2n + 5) − Σ t(t − 1)(2t + 5)] / 18

S is a linear function of the number of inversions in a random permutation, S = n(n − 1)/2 − 2 × (inversions), whose exact distribution (the Mahonian numbers) is computed by recursion. Each critical value is the smallest attainable S whose exact upper-tail probability does not exceed α, so tabulated tests are conservative. The exact distribution was checked against full enumeration of all permutations for n = 4 to 8.

Frequently asked questions

What does the Mann-Kendall test test?

It tests for a monotonic upward or downward trend in a series over time, without assuming the trend is linear or that the data are normal. The null hypothesis is that the observations are independent and identically distributed.

How are ties handled?

Tied values add nothing to S, but they reduce its variance. The calculator applies the standard tie correction and uses the normal approximation when ties are present.

Does serial correlation matter?

Yes. Positive autocorrelation makes a trend look significant more often than it should. For autocorrelated series consider pre-whitening, a modified Mann-Kendall test or block bootstrap.

What is the relation to Kendall's tau?

Kendall's tau between the observations and their time index equals S divided by n(n − 1)/2 when there are no ties, so the exact critical values here are the same as for tau against time.

Related calculators and tutorials