Papers
Topics
Authors
Recent
Search
2000 character limit reached

Scaled MAD Global Envelope Test

Updated 19 December 2025
  • Scaled MAD GET is a non-parametric, simulation-based methodology that uses the maximum absolute deviation with pointwise scaling to assess global hypotheses in multivariate and functional data.
  • The test produces a graphical envelope that highlights regions of significant deviation, offering both rigorous family-wise error control and clear visual diagnostics.
  • It is widely applicable in spatial statistics, image analysis, and permutation-based inference, underpinned by robust computational techniques and simulation approaches.

The Scaled Maximum Absolute Difference (MAD) Global Envelope Test (GET) is a non-parametric, simulation-based hypothesis testing framework for multivariate or functional data. It enables simultaneous global inference for an entire vector or curve by comparing an observed function or test-statistic vector to an ensemble of replicates simulated under a null reference model. By scaling the maximum absolute deviation pointwise, the procedure accommodates heteroskedasticity and spatiotemporal dependence, and provides both a global p-value with rigorous family-wise error control and a graphical envelope indicating the regions of significant deviation. The test has wide applicability in spatial statistics, image analysis, non-parametric function comparison, and permutation-based inference for general linear models (Myllymäki et al., 2013, Myllymäki et al., 2019, Mrkvicka et al., 2019, Tivenan et al., 17 Dec 2025).

1. Formal Hypothesis Framework

The core object is a set of multivariate or functional test-statistic vectors {Ti}\{T_i\}, each of length dd (or functions evaluated on a grid). The test addresses the global hypothesis: H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d, where TobsT_\text{obs} is the observed data vector or curve and TT is a null-distribution sample (e.g., from a fitted model, permutation, or parametric bootstrap). The alternative is that there is at least one kk where this equality fails.

There are two common scenarios:

  • Simple null: All TiT_i are generated under a specified H0H_0 distribution.
  • Composite null: Plug-in parameter estimates are used both for the observed and simulated curves, ensuring exchangeability.

For regime comparison, e.g., in spatial boundary change detection, Tobs(x)=y^(A)(x)y^(B)(x)T_\text{obs}(x) = \hat{y}^{(A)}(x) - \hat{y}^{(B)}(x) can represent a difference of predicted functions from separate periods (Tivenan et al., 17 Dec 2025).

2. Scaled MAD Statistic and Envelope Construction

The procedure centers on the "maximum absolute deviation" (MAD), a reduction of each vector or function to a single number, and its scaled variants (Myllymäki et al., 2013, Myllymäki et al., 2019, Tivenan et al., 17 Dec 2025). The general scaled MAD statistic is: Mi=maxk=1,,dTikT0ksk,M_i = \max_{k=1,\ldots,d} \frac{|T_{ik} - T_{0k}|}{s_k}, where dd0 is the pointwise center (often the Monte Carlo mean) and dd1 is the local scale, which can be chosen according to three main options:

Scaling Type Scale Factor dd2 R Package Type
Unscaled dd3 "unscaled"
Studentized Monte Carlo standard deviation dd4 "st"
Directional-quantile dd5 or dd6 "qdir"
  • Studentized scaling: dd7, robust against nonconstant variance.
  • Directional-quantile scaling: dd8 is the upper or lower Monte Carlo quantile distance, capturing skew or tail behavior.
  • Unscaled: rarely recommended, as it fails when variability is not constant (Myllymäki et al., 2019).

After computing the MAD for all dd9 replicates, the critical value H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,0 is the H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,1-quantile of H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,2. The global envelope at each H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,3 is: H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,4 with modifications for directional-quantile scaling.

3. Monte Carlo Test and Family-Wise Error Rate Control

The test implements a Monte Carlo hypothesis test based on the exchangeability of the observed H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,5 and simulated H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,6 under H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,7 (Myllymäki et al., 2013, Myllymäki et al., 2019, Mrkvicka et al., 2019):

  • Compute the MAD statistic H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,8 for the data and H0:Tobs=DT,for all k=1,,d,H_0: T_\text{obs} \stackrel{\mathcal{D}}{=} T, \quad \text{for all } k=1,\ldots,d,9 for the nulls.
  • Compute the (Monte Carlo) p-value:

TobsT_\text{obs}0

  • Reject TobsT_\text{obs}1 at level TobsT_\text{obs}2 if TobsT_\text{obs}3, or equivalently, if TobsT_\text{obs}4.
  • The procedure controls the (simultaneous) family-wise error rate (FWER) exactly at TobsT_\text{obs}5, even for highly dependent or heteroskedastic statistics.

For permutation-GLM applications, indexing follows the same pattern with TobsT_\text{obs}6 permutations; the critical MAD value TobsT_\text{obs}7 is selected as the TobsT_\text{obs}8-quantile among TobsT_\text{obs}9 exchangeable TT0 (Mrkvicka et al., 2019).

4. Graphical Envelope and Intrinsic Graphical Interpretation

A distinctive feature of the scaled MAD GET is the intrinsic graphical interpretation (IGI) property (Myllymäki et al., 2019): the observed vector or function crosses the global envelope at a location TT1 if and only if the global test rejects at level TT2. The envelope band is thus both a confidence region and a visual diagnostic highlighting the precise locations contributing to overall significance.

This graphical property means one can:

  • Identify which regions or coordinates drive rejection.
  • Visualize departures in multivariate, functional, or spatial settings (e.g., distances, spatial coordinates, time-points).

5. Algorithmic and Computational Considerations

The practical implementation follows:

  1. Simulate TT3 null replicates TT4.
  2. Calculate pointwise mean TT5 and scale TT6.
  3. For each TT7, compute TT8.
  4. Sort TT9; set kk0 as the kk1 quantile.
  5. Construct the envelope kk2.
  6. Evaluate p-value; plot data vs. envelope for interpretation.

Key computational properties:

  • Number of replicates: hundreds to thousands needed for stable quantiles, especially with kk3.
  • For high-dimensional data (e.g., imaging), running-sums and in-place accumulation enable large-scale application.
  • Each replicate's computational cost is dominated by simulation or permutation steps; envelope construction is kk4 (Mrkvicka et al., 2019).
  • The approach is implemented and optimized in the R package GET, as detailed in (Myllymäki et al., 2019).

6. Applications and Extensions

Scaled MAD GETs have been used in:

A representative workflow is implemented in GET: TiT_i1

7. Theoretical and Practical Considerations

Essential validity conditions include:

  • Exchangeability: Replicates and observed values must be exchangeable under kk8, satisfied by permutation or parametric simulation strategies.
  • Scale-robustness: Studentized or quantile-based scaling protects against inhomogeneity in variance, skew, or high-dimensional dependence.
  • Bandwidth/interval choice: The envelope protects over the entire grid or region of interest; choice of this region should reflect all plausible departures (Myllymäki et al., 2013).
  • Computational efficiency: For large kk9, per-location accumulation significantly reduces memory demands; in one-dimensional domains, Cholesky or state-space GP simulation enables rapid null curve generation (Tivenan et al., 17 Dec 2025).
  • Interpretation: IGI ensures that graphical envelope crossings correspond exactly to statistical rejection.

Common pitfalls include:

  • Unscaled MAD tests under heteroskedasticity.
  • Insufficient replicates for high-precision p-values at small TiT_i0.
  • Failure to use the same estimator or processing pipeline for both observed and null replicates.

The scaled MAD GET offers a unified framework for global, interpretable, and robust hypothesis testing in high-dimensional, functional, or spatial contexts, with rigorous error control and strong interpretability (Myllymäki et al., 2013, Myllymäki et al., 2019, Mrkvicka et al., 2019, Tivenan et al., 17 Dec 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Scaled Maximum Absolute Difference (MAD) Global Envelope Test (GET).