The all-lags Yue–Wang modified Mann–Kendall test in common software: a persistent default that inflates trend significance

The Yue and Wang (2004) variance-corrected Mann–Kendall test is widely used to account for serial correlation in hydroclimatic trend analysis. In the two most widely used free implementations, the Python package pymannkendall (yue_wang_modification_test, default lag=None) and the R package modifiedmk (mmky, versions 1.1.0 onward), the correction factor is built from the sample autocorrelation of the detrended series at every lag from 1 to n−1, with no screening. We show that this estimator does not measure serial dependence. It equals a scaled sum of squared partial sums of the residuals, has expectation (n+1)/(3n) ≈ 1/3 for independent data before detrending, and falls further (median ≈ 0.13 at n = 100) after Sen-slope detrending. In trend-free Monte Carlo experiments the default flags 43–49% of white-noise series as significant at the 5% level, and 46–59% of AR(1) series, compared with about 5% for the uncorrected test on white noise. The problem was reported in simulation by O'Brien et al. (2021), but both software defaults remain unchanged. A citation search identified 85 candidate studies; about 17 distinct analyses rest headline significance claims on the default, two confirmed from the authors' public code. Re-running one of them, a satellite study of chlorophyll trends in the German Bight, reduces the area of significant decline from 55% to 23–25% with calibrated tests, and to 14–18% with field-significance control. We recommend changing both defaults and re-examining affected results.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-06
DOI
https://doi.org/10.5281/zenodo.24015742
Primary Topic
Climate variability and models
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

The all-lags Yue–Wang modified Mann–Kendall test in common software: a persistent default that inflates trend significance

Mark L. Morrissey
Zenodo (CERN European Organization for Nuclear Research)
Climate variability and models
preprint

The all-lags Yue–Wang modified Mann–Kendall test in common software: a persistent default that inflates trend significance

Mark L. Morrissey
preprint en

Abstract

The Yue and Wang (2004) variance-corrected Mann–Kendall test is widely used to account for serial correlation in hydroclimatic trend analysis. In the two most widely used free implementations, the Python package pymannkendall (yue_wang_modification_test, default lag=None) and the R package modifiedmk (mmky, versions 1.1.0 onward), the correction factor is built from the sample autocorrelation of the detrended series at every lag from 1 to n−1, with no screening. We show that this estimator does not measure serial dependence. It equals a scaled sum of squared partial sums of the residuals, has expectation (n+1)/(3n) ≈ 1/3 for independent data before detrending, and falls further (median ≈ 0.13 at n = 100) after Sen-slope detrending. In trend-free Monte Carlo experiments the default flags 43–49% of white-noise series as significant at the 5% level, and 46–59% of AR(1) series, compared with about 5% for the uncorrected test on white noise. The problem was reported in simulation by O'Brien et al. (2021), but both software defaults remain unchanged. A citation search identified 85 candidate studies; about 17 distinct analyses rest headline significance claims on the default, two confirmed from the authors' public code. Re-running one of them, a satellite study of chlorophyll trends in the German Bight, reduces the area of significant decline from 55% to 23–25% with calibrated tests, and to 14–18% with field-significance control. We recommend changing both defaults and re-examining affected results.

Zenodo (CERN European Organization for Nuclear Research)
University of Oklahoma (US)
Climate variability and models
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon