Mann-Kendall trend test
Mann-Kendall trend test is used to detect statistically significant decreasing or increasing trends in long-term temporal data. It is based on two hypotheses: one is null hypothesis (H0), which specifies the absence of a trend, and the other is alternate hypothesis (H1), which expresses a significant increasing or decreasing trend in data over a time period.[1]
The Mann-Kendall trend test is a non-parametric test, meaning that this test is applicable to all types of distributions.[2]
It can be applied to any data set containing a number of data points greater than four, but sometimes with a smaller number of samples, the test has a higher chance of not finding a trend, even if one exists, if more data points were considered.

This test is widely used on real-world data like hydrological data, climate data, and environmental data.[4]
The idea behind the test is that it looks for all possible differences between the relative magnitude of one sample and other successive samples, and if the differences consistently increase or decrease, it signifies the presence of a trend.
Mathematically, this idea is expressed with the Mann-Kendall statistic (S).
Initially, it is assumed that there is no trend, meaning the value of S is assumed to be equal to 0. If the value of the data point at the next time period is greater than the value of the data point at the earlier time period, 1 is added to the value of S. Otherwise, if it is lower, 1 is subtracted from the value of S.
Mann-Kendall statistic [5]
The Mann-Kendall statistic is denoted by ‘S’ and is defined as
Where, n is the total number of data points in the dataset, and x1, x2, x3, x4, x5, …………. xn are the values of the data points.
For an increasing trend, the value of the Mann-Kendall statistic (S) should be a high positive value. And for a decreasing trend, the value of S should be a low negative value. To statistically express the significance of the trend, it is necessary to calculate the probability associated with the Mann-Kendall statistic.
Calculation of p-value associated with Mann-Kendall statistic(S)[5]
The distribution of the dataset can be assumed to be a normal distribution if the number of data points in the dataset is greater than 10 and the number of tied values inside the dataset is low.
Variance of the Mann-Kendall statistic is given as
Where,
n is the total number of data points in a dataset, p is the number of tied groups (a set of sample data having equal value), and ti is the total number of data points in the ith tied group.
Z-value associated with S
Probability (p-value) can be calculated using the z-table.
Based on a 5% significance level, if the p-value is less than or equal to 0.05, then the alternate hypothesis is accepted, which signifies the presence of a trend, and if the p-value is greater than 0.05, then the null hypothesis is accepted, which indicates the absence of a trend in the data.
Limitations[6]
- This test is not suitable for data having a seasonal effect. So, to make the test more effective, it is recommended to remove the seasonal effect before applying the test.
- Often, this test gives negative results for time series having fewer data points.
References
- ↑ Stephanie (2016-08-22). "Mann Kendall Trend Test: Definition, Running the Test". Statistics How To. Retrieved 2020-11-20.
- ↑ https://www.statisticshowto.com/parametric-and-non-parametric-data/
- ↑ "5) Rainfall in India , Sub Divisional Monthly Rainfall From 1901 to 2017". open government data (OGD) platform India. 2020-11-20. Unknown parameter
|url-status=ignored (help) - ↑ Alemu, Zinabu Assefa; Dioha, Michael O. (2020-10-10). "Climate change and trend analysis of temperature: the case of Addis Ababa, Ethiopia". Environmental Systems Research. 9 (1): 27. doi:10.1186/s40068-020-00190-5. ISSN 2193-2697. Unknown parameter
|s2cid=ignored (help) - ↑ 5.0 5.1 Khambhammettu, Prashanth (2020-11-20). ""Mann-Kendall Analysis for the Fort Ord Site", HydroGeoLogic, Inc.-OU-1 2004 Annual Groundwater Monitoring Report-Former Fort Ord, California, 2005" (PDF). Unknown parameter
|url-status=ignored (help) - ↑ "Mann-Kendall Test (mkt) — Mann-Kendall Test 1.0.1 documentation". up-rs-esp.github.io. Retrieved 2020-11-20.
This article "Mann-Kendall trend test" is from Wikipedia. The list of its authors can be seen in its historical and/or the page Edithistory:Mann-Kendall trend test. Articles copied from Draft Namespace on Wikipedia could be seen on the Draft Namespace of Wikipedia and not main one.
