Function Repository Resource:

# MannKendallZ

Compute the z-statistic for the Mann-Kendall test

Contributed by: Rauan Kaldybayev
 ResourceFunction["MannKendallZ"][data] computes the z-statistic for the Mann–Kendall test.

## Details

The Mann–Kendall test allows the determination of any apparent trend in a time series. A positive z-statistic indicates an upward trend, a negative z-statistic indicates a downward trend and a zero z-statistic indicates a lack of trend.
The data can be a List of real numbers or a TimeSeries object.

## Examples

### Basic Examples (2)

Compute the z-statistic for a list of data points:

 In[1]:=
 Out[1]=

The statistic is negative, indicating a downward trend:

 In[2]:=
 Out[2]=

### Scope (2)

Various sets of data demonstrating negative, zero and positive trends, along with their corresponding z-statistics:

 In[3]:=
 Out[3]=

Compute the z-statistic of a TimeSeries object:

 In[4]:=
 Out[4]=

### Applications (3)

Use MannKendallZ to determine the general trend of the GDP of Kazakhstan from 1991 to 2019:

 In[5]:=
 Out[5]=
 In[6]:=
 Out[6]=

The plot confirms the generally positive trend of the data:

 In[7]:=
 Out[7]=

Compute the corresponding p-value for a two-sided test:

 In[8]:=
 Out[8]=

## Publisher

Wolfram Summer Camp

## Version History

• 1.0.0 – 13 July 2021