This website accompanies the paper:

- The conditional permutation test.

Thomas B. Berrett, Yi Wang, Rina Foygel Barber, Richard J. Samworth. arXiv:1807.05405

This paper proposes a non-uniform permutation test for testing

the hypothesis that two variables X and Y are independent conditional on confounding variables Z,

assuming that we have access to an estimate of the conditional distribution of X | Z.

Here we provide code to reproduce the empirical results and plots in the paper.

- R script for simulations: Simulation1.R
- Python notebook for Capital Bikeshare data experiment: Bikeshare1.ipynb

View code & results as HTML: Bikeshare1.html