# Statistical Testing under Distributional Shifts

arXiv: https://arxiv.org/abs/2105.10821 · HTML: https://mlsanity.com/paper/2105.10821/

## Key facts

- Cited by 6 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 22 May 2021.

## Built on by (most cited first, 6 of 6)

- [A Survey on Causal Reinforcement Learning](https://mlsanity.com/paper/2302.05209/) (2023)
- [Invariant Policy Learning: A Causal Perspective](https://mlsanity.com/paper/2106.00808/) (2021)
- [On Testability of the Front-Door Model via Verma Constraints](https://mlsanity.com/paper/2203.00161/) (2022)
- [RCT Rejection Sampling for Causal Estimation Evaluation](https://mlsanity.com/paper/2307.15176/) (2023)
- [Unraveling the Interplay between Carryover Effects and Reward Autocorrelations in Switchback Experiments](https://mlsanity.com/paper/2403.17285/) (2024)
- [Invariant Ancestry Search](https://mlsanity.com/paper/2202.00913/) (2022)

## Abstract (arXiv)

In this work, we introduce statistical testing under distributional shifts. We are interested in the hypothesis P^* ∈ H0 for a target distribution P^*, but observe data from a different distribution Q^*. We assume that P^* is related to Q^* through a known shift τ and formally introduce hypothesis testing in this setting. We propose a general testing procedure that first resamples from the observed data to construct an auxiliary data set and then applies an existing test in the target domain. We prove that if the size of the resample is at most o(√n) and the resampling weights are well-behaved, this procedure inherits the pointwise asymptotic level and power from the target test. If the map τ is estimated from data, we can maintain the above guarantees under mild conditions if the estimation works sufficiently well. We further extend our results to finite sample level, uniform asymptotic level and a different resampling scheme. Testing under distributional shifts allows us to tackle a diverse set of problems. We argue that it may prove useful in reinforcement learning and covariate shift, we show how it reduces conditional to unconditional independence testing and we provide example applications in causal inference.
