Mann Kendall Test

Introduction

The Mann-Kendall (MK) trend analysis is a statistical method used to assess if there is a monotonic (increasing or decreasing) trend in a time series data. It is non-parametric, meaning it does not assume a specific distribution of the data, and can be applied to irregular or missing data. The test calculates a Kendall's tau statistic, which measures the strength and direction of the trend, and a p-value, which indicates the significance of the trend. The Mann-Kendall test is commonly used in fields such as hydrology, meteorology, and environmental science.

The Mann-Kendall test is a hypothesis where the null hypothesis for this test is that there is no monotonic trend in the series. The alternate hypothesis is that a trend exists. This trend can be positive, negative, or non-null. A detailed introduction can be found on wikitia

Requirements

The Mann Kendall test requires a date type column in the dataset. This columns must be mapped to the sample_date system parameter as discussed in the Data-Field Mapping section. The dataset must also include at least one numeric variable.

Analysis Settings

  • Group by parameter: An uploaded dataset may include various grouping parameters, which group the samples accourding to a specific property. The Mann-Kendall may be performed for each of these groups. The station is the most common group by parameter used for this purpose, but other parameters may be used in a special setting. For example, if all records originate from the same station and your dataset only include the date and corresponding value, the group by parameter may even be left empty.

  • Analysis Parameter: This is the numeric analysis, for which fontus performs the MK test.

  • Minimum Number of Points: The MK test accounts for the number of data points used in the test. The fewer points the hight the evidence for a trend result must be. However, you may set a limit of points. Stations that do not reach this threshold, will not be processed and can be hiddedn from the selection grid of stations.

  • Hide Samples with Unsufficient Points: Stations which do not attain the required minimum number of points as discussed above, can be hidden from the selection grid. This allows the user to focus on stations, that have sufficiently long time series.

  • Prediction Type: Fontus calculates a linear regression for every time series. This line may be used for value prediction. Two types available: Fpr the Predict time when the specified value is reached, a value must be specified. Typically this is the guideline value. For example, for nitrate, it may be the WHO guideline of 50 mg/L as nitrate ion (equivalent to 11 mg/L as Nitrate-nitrogen). Fontus calculates the date when the extrapolated regression line intersects this guideline value. The second estimate allows the user to select a year in the future and calculates the value reached for this date.

  • Time Series Plot Options: The Y-axis range can be set to constant values for all time series. Without this setting, the time series plot adjusts its y-axis range to the minimum and maximum value in the dataset. Using a constant y-axis range may prove helpful to render the plot output more comparable. For example, it is easier to spot low or high variability in two-time series if both plots share the same time y-axis range.

Running a Mann Kendall Test

To run the MK test, verify and adapt the system default settings and press on the Show Analysis tab. Fontus displays a selection grid with one row per unique value of the group-by-parameter (normally the station). When a record is selected, the following screen will show. Fontus shows calculated statistical values in a grid and plots the time series diagram to the right of this table. The calculated output includes the following values:

Parameter Description
station name of selected station
count number of datapoints
trend trend result: increasing, decreasing, no trend
p probablilty value of
tau Kendall Tau, measure for the correlation between 2 parameters
s Mann-Kendal’s score,
sen_slope median slope for the connecting lines in the time series
sen intercept intercept for sens line
regr intercept intercept for linear regression line
regr_slope slope of linear regression line
regr_rvalue correlation coefficient for linerar regression

Below each MK output the data can be viewed by expanding the initially collapsed box names View Values. At the bottom of this box, a download button allows the user to download the data to a comma seperated text file.