Skip to content

JerryLiuMY/Winners

Repository files navigation

Randomization

python  

The repository provides a comparison of three methods for inference on the confidence intervals and median of selected target parameters under the winner's curse:

In particular, we provide a Python implementation of the methods proposed in the paper Inference on Winners authored by Andrews et al. (2021) following the original R implementation.

Winner's Curse: Researchers may be interested in the effectiveness of the best policy found in a randomized trial, or the best-performing investment strategy based on historical data. Such settings give rise to a winner's curse, where conventional estimates are biased and conventional confidence intervals are unreliable.

Coverage Probability

The coverage probability of the methods with ntrials=1000, narms=2, 10, 50 and 50 samples per arm. The mean mu_max of the winning arm ranging from 0 to 8. The mean and covariance being mu, cov = np.array([mu_max] + [0] * (narms-1)), np.ones(narms).

Naive method

alt text

Winners method

alt text

Power

The power of the methods with ntrials=1000, narms=2, 10, 50 and 50 samples per arm. The mean mu_max of the winning arm ranging from 0 to 4. The mean and covariance being mu, cov = np.array([mu_max] + [0] * (narms-1)), np.ones(narms) with null=0.

Naive method

alt text

Winners method

alt text

RD method

For the RD method ntests = 5 and ntrans = 500. alt text

Comparison

Comparison of power between different methods with ntrials=1000, narms=5, nsamples=5000, mu = (np.arange(5) - 3) / 10, cov = np.ones(5). For the RD method ntests_li = [1, 2, 3, 4, 5, 10, 20, 30, 50, 100] and ntrans = 500.

ntests=1, ntrans=500 ntests=2, ntrans=500 ntests=3, ntrans=500 ntests=4, ntrans=500 ntests=5, ntrans=500 ntests=10, ntrans=500 ntests=20, ntrans=500 ntests=30, ntrans=500 ntests=50, ntrans=500 ntests=100, ntrans=500
Naive 0.897 0.876 0.885 0.884 0.906 0.899 0.900 0.898 0.870 0.886
Winners 0.792 0.759 0.789 0.772 0.813 0.800 0.786 0.808 0.777 0.774
RD 0.466 0.548 0.603 0.581 0.608 0.656 0.655 0.661 0.663 0.667

Caveats

  • Winners: Fast computation when mu is known and the quantity to compute is alpha. Slow computation when alpha is known and the quantity to compute is mu.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published