Distribution shifts are a serious concern in modern statistical learning as they can systematically change the properties of the data away from the truth. We focus on Wasserstein distribution shifts, where every data point may undergo a slight perturbation, as opposed to the Huber contamination model where a fraction of observations are outliers. We consider perturbations that are either independent or coordinated joint shifts across data points. We analyze several important statistical problems, including location estimation, linear regression, and non-parametric density estimation. Under a squared loss for mean estimation and prediction error in linear regression, we find the exact minimax risk, a least favorable perturbation, and show that the sample mean and least squares estimators are respectively optimal. For other problems, we provide nearly optimal estimators and precise finite-sample bounds. We also introduce several tools for bounding the minimax risk under distribution shift, such as a smoothing technique for location families, and generalizations of classical tools including least favorable sequences of priors, the modulus of continuity, as well as Le Cam's, Fano's, and Assouad's methods.
To reproduce the simulations in the paper, run the following:
python3 run_all_experiments.py
This runs the Gaussian and Uniform problems, as well as the Linear Regression problem under homoskedastic and heteroskedastic noise and both squared and prediction error. The uniform experiment takes the bulk of computational runtime due to computing many estimators and perturbations.
The outputs are saved in the Images
folder.
It is also possible to run individual simulations with custom parameters. In run_experiments.ipynb
, one may choose the statistical problem, parameters loss function, and number of simulated copies.
The codebase may be modified to different statistical problems and estimators. These may be added in statistical_problems.py
and estimators.py
.
For any questions, feel free to contact us at [email protected]
.
@misc{chao2023statistical,
title={Statistical Estimation Under Distribution Shift: Wasserstein Perturbations and Minimax Theory},
author={Patrick Chao and Edgar Dobriban},
year={2023},
eprint={2308.01853},
archivePrefix={arXiv},
primaryClass={stat.ML}
}