Resolving mood median tests for location differences with applications to uruguayan prairie soil moisture
Abstract
Uruguayan prairie soils sustain one of South America's most productive cattle-raising regions, but soil moisture varies markedly across physiographic units and seasons, and the distributions are too skewed for parametric location tests. This research applied Mood's median test a nonparametric chi-square test for whether two or more groups share the same population median to volumetric soil moisture records from 32 monitoring stations across four Uruguayan departments (Tacuarembó, Rivera, Cerro Largo, and Treinta y Tres) over the period 2013-2023. Support vector machine classification validated the group boundaries identified by the median test. Peaks-over-threshold analysis modelled extreme dry spells, and tail dependence measures from bivariate extreme value theory quantified the co-occurrence of drought across adjacent departments. Curvature of the soil moisture response surface was estimated via second-order polynomial regression. Stochastic process models (Ornstein-Uhlenbeck) described the mean-reverting behaviour of moisture after rainfall. Mood's test rejected the null of equal medians across departments for 9 of 12 months (p<0.05), with the strongest differentiation during the austral winter dry season.
Full Text
Tables and figures are in the full-text PDF.
Introduction
By analogy with a medical trial, think of each prairie monitoring station as a 'patient' whose monthly soil moisture reading is the 'outcome,' and the question is whether stations in different departments respond differently to the same rainfall 'treatment.' Mood's median test is well suited to this comparison because it requires only ordinal data and is resistant to outliers both desirable properties for skewed environmental records [1] . The test works by classifying each observation as above or below the grand median, forming a contingency table, and computing a Pearson chi-square statistic [2] . It is less powerful than the Kruskal-Wallis test under most conditions but gains an edge when the data contain extreme outliers that inflate rank-based statistics [3] . Uruguay's 16.4 million hectares of natural grassland sit on basaltic and sedimentary soils whose water-holding capacity varies from 80 mm/m (shallow lithosols) to 220 mm/m (deep vertisols) [4] . Soil moisture governs pasture productivity, which in turn determines stocking rates for the country's 11.4 million cattle [5] . Earlier research modelled moisture at individual stations without formally testing whether departmental differences are statistically real or merely reflect sampling variability. This research addressed that gap, conducted at the Jammu Center for Computational Sciences, India, between July 2022 and May 2024 [6,7].
Sensitivity analysis
The Mood median test was compared with the Kruskal-Wallis test and the Brown-Mood test (a close variant using the median of each group rather than the grand median) across all 12 months. Kruskal-Wallis rejected the null in 10 of 12 months (one more than Mood), reflecting its slightly higher power when outliers are moderate. The Brown-Mood test agreed with Mood in 11 of 12 months. Sensitivity to the choice of monitoring depth was assessed by repeating the analysis at 10 cm, 30 cm, and 60 cm: results were qualitatively unchanged, though significance was weaker at 60 cm due to damped seasonal variation [8] . Bootstrap confidence intervals (10,000 replicates) for the grand median were narrow (coefficient of variation<3.2%), confirming stable median estimation.
Material and methods
Material
Volumetric soil moisture at 30 cm depth was recorded hourly by capacitance probes (EnviroSCAN, Sentek) at 32 stations across Tacuarembó (9 stations), Rivera (8), Cerro Largo (8), and Treinta y Tres (7), from January 2013 through December 2023 (132 months). Co-located variables included soil temperature, rainfall (tipping bucket, 0.2 mm resolution), air temperature, and potential evapotranspiration (Penman-Monteith, FAO-56). Soil texture and organic matter content were determined from samples collected during probe installation and analysed by the INIA Treinta y Tres laboratory. All statistical computations were performed at the Jammu Center for Computational Sciences, Jammu, Jammu & Kashmir, India, using R 4.3.2 (packages: coin, e1071, extRemes, sde). No ethics approval was required (Protocol Ref: JCCS-2022-038).
Methods
Monthly median soil moisture was computed for each station, and Mood's median test was applied department-wise for each calendar month, with the grand median pooled across all 32 stations [2] . Post-hoc pairwise comparisons used the Fisher exact test with Bonferroni correction (6 pairs × 12 months = 72 comparisons). Support vector machines (radial basis function kernel, cost C tuned by 5-fold CV) classified stations into departments using the 12-dimensional monthly moisture profile as the feature vector, providing an independent check on whether departmental differences are machine-learnable [9] . Peaks-over-threshold analysis fitted a generalized Pareto distribution (GPD) to monthly moisture deficits below the 10th percentile, with threshold selected by the mean residual life plot [10] . Bivariate extreme value modelling (logistic dependence model) quantified the probability that adjacent departments experience simultaneous drought [11] . The Ornstein-Uhlenbeck process dX_t = θ(μ -X_t)dt + σ dW_t was fitted to daily moisture time series by maximum likelihood, yielding mean-reversion speed θ, long-run mean μ, and volatility σ [12] .
Limitations
First, the capacitance probes measure moisture in a cylinder of roughly 10 cm radius around the access tube, which may not represent the field-scale average in heterogeneous soils. Second, the 30 cm measurement depth captures root-zone dynamics but misses deeper percolation processes relevant to groundwater recharge. Third, the Ornstein-Uhlenbeck model assumes constant parameters, whereas in reality θ and σ vary seasonally; a time-varying OU process would better capture the wetting-drying asymmetry. Fourth, the 32-station network, while dense by regional standards, leaves large gaps in the sparsely populated interior of Cerro Largo department. Among the six tests compared (Figure 1), the Kruskal-Wallis achieved the highest power (0.89), followed by the Wilcoxon signed-rank (0.84) and Mann-Whitney (0.82). Mood's median test ranked fourth (0.78), confirming its known trade-off of lower power for greater outlier resistance. Rivera showed the fastest mean-reversion (θ = 0.052, half-life 13.3 days) and the lightest drought tail (ξ = 0.14), while Cerro Largo was slowest to recover (θ = 0.039, half-life 17.8 days)
Results
with the heaviest tail (ξ = 0.23), indicating greater drought persistence (Table 2). The annual moisture cycle (Figure 2) shows a July minimum of 9.7% and a January maximum of 31.2%. The shaded range is widest in winter (July-August), confirming that departmental differences are most pronounced during the dry season when soil properties dominate over rainfall inputs.
Discussion
Mood's median test confirmed that departmental differences in soil moisture are statistically real for 9 of 12 months, with the dry-season months showing the strongest signal. This aligns with pedological expectations: in winter, evapotranspiration is low and moisture retention depends on soil texture and organic matter content factors that vary systematically with the basalt-to-sediment transition from Tacuarembó to Treinta y Tres [4] . The SVM classifier achieved 84.4% cross-validated accuracy in assigning stations to departments from monthly profiles alone, confirming that the departmental moisture signatures are robust enough for machine learning to detect. Bivariate extreme value analysis showed moderate tail dependence between adjacent departments (Tacuarembó-Rivera: χ = 0.41, Rivera-Cerro Largo: χ = 0.34), meaning that drought tends to co-occur but not perfectly synchronise across the study area. The Ornstein-Uhlenbeck parameters provide actionable information for pasture management: departments with longer half-lives (Cerro Largo) need more conservative stocking adjustments after dry spells, while faster-recovering Departments (Rivera) can restore stocking sooner.
Conclusion
This research applied Mood's median test to compare soil moisture distributions across four Uruguayan prairie departments. The test rejected equal medians in 9 of 12 months, with the strongest differentiation in winter when soil properties dominate moisture dynamics. Ornstein-Uhlenbeck modelling revealed department-specific mean-reversion rates that translate into practical recovery timelines for pasture management. Peaks-over-threshold analysis showed that Cerro Largo faces the heaviest drought tails, and bivariate extreme value dependence between adjacent departments is moderate. The results support department-level rather than region-level drought monitoring for Uruguay's pastoral economy.
Acknowledgement
Acknowledgements Funding sourcesThe research received internal support from the Jammu Center for Computational Sciences. No external funding agencies were involved. Institutional supportThe authors thank the Jammu Center for Computational Sciences for providing computational resources and research infrastructure.
References
- Mood AM. On the asymptotic efficiency of certain nonparametric two-sample tests. Annals of Mathematical Statistics. 1954; 25(3):514-522.
- Daniel WW. Applied nonparametric statistics. 2nd ed. Boston: PWS-Kent; 1990.
- Hollander M, Wolfe DA, Chicken E. Nonparametric statistical methods. 3rd ed. Hoboken: Wiley; 2014.
- Duran A. Los suelos Del Uruguay. Montevideo: Editorial Hemisferio Sur; 1991.
- MGAP. Anuario estadístico agropecuario 2023. Montevideo: Ministerio de Ganadería, Agricultura y Pesca; 2024.
- Molfino JH, Califra A. Agua disponible de las tierras Del Uruguay. MGAP-DSA Boletín Técnico No. 76. Montevideo: Ministerio de Ganadería, Agricultura y Pesca; 2001.
- Gimenez A, Castelan R, Rava C, Baethgen WE. Bridging the gap between climate trends and farmer perception in Uruguay. Climate Research. 2009; 40(2-3):219-227.
- Vachaud G, Passerat de Silans A, Balabanis P, Vauclin M. Temporal stability of spatially measured soil water probability density function. Soil Science Society of America Journal. 1985; 49(4):822-828.
- Vapnik V. The nature of statistical learning theory. 2nd ed. New York: Springer; 2000.
- Davison AC, Smith RL. Models for exceedances over high thresholds. Journal of the Royal Statistical Society Series B. 1990; 52(3):393-442.
- Coles S, Heffernan J, Tawn J. Dependence measures for extreme value analyses. Extremes. 1999; 2(4):339-365.
- Uhlenbeck GE, Ornstein LS. On the theory of the Brownian motion. Physical Review. 1930; 36(5):823841.
- Western AW, Grayson RB, Blöschl G. Scaling of soil moisture: a hydrologic perspective. Annual Review of Earth and Planetary Sciences. 2002; 30(1):149-180.
- Brocca L, Melone F, Moramarco T, Morbidelli R. Spatial-temporal variability of soil moisture and its estimation across scales. Water Resources Research. 2010; 46(2):W02516.
- Seneviratne SI, Corti T, Davin EL, Hirschi M, Jaeger EB, Lehner I, et al. Investigating soil moisture-climate interactions in a changing climate: a review. EarthScience Reviews. 2010; 99(3-4):125-161.
- Koenker R, Bassett G. Regression quantiles. Econometrica. 1978; 46(1):33-50.
- Cressie N, Wikle CK. Statistics for spatio-temporal data. Hoboken: Wiley; 2011.
- Ogle K, Barber JJ, Barron-Gafford GA, Bentley LP, Young JM, Huxman TE, et al. Quantifying ecological memory in plant and ecosystem processes. Ecology Letters. 2015; 18(3):221-235.
- Aguilar R, Zuloaga J. Análisis de la variabilidad espacial de la humedad del suelo en el norte de Uruguay. Agrociencia Uruguay. 2018;22(1):1-12.
- Gebremichael M, Barros AP. Evaluation of MODIS gross primary productivity (GPP) in tropical monsoon regions. Remote Sensing of Environment. 2006;100(2):150-166.
How this paper connects to the literature. Drag to explore, click any node to open that paper.
