Approximate Shapley value estimation using sampling without replacement and variance estimation via the new Symmetric bootstrap and the Doubled half bootstrap
Fredrik Lohne Aanes
TL;DR
This work integrates finite-population sampling theory with KernelSHAP to enable sampling without replacement for coalition estimation, aided by Wallenius' noncentral hypergeometric distribution to allocate counts across coalition groups. It introduces two variance estimators—the Symmetric bootstrap and the Doubled half bootstrap—and demonstrates their effectiveness through two simulation studies, finding performance on par with the shapr implementation that relies on with-replacement sampling. A Horvitz-Thompson–style estimator is discussed but deemed invalid in this context, while carefully derived bootstrap conditions ensure valid variance estimation under finite-population constraints. Overall, the proposed method delivers comparable Shapley value estimation accuracy to KernelSHAP while providing straightforward, fast, and statistically grounded variance estimates suitable for finite populations.
Abstract
In this paper I consider improving the KernelSHAP algorithm. I suggest to use the Wallenius' noncentral hypergeometric distribution for sampling the number of coalitions and perform sampling without replacement, so that the KernelSHAP estimation framework is improved further. I also introduce the Symmetric bootstrap to calculate the standard deviations and also use the Doubled half bootstrap method to compare the performance. The new bootstrap algorithm performs better or equally well in the two simulation studies performed in this paper. The new KernelSHAP algorithm performs similarly as the improved KernelSHAP method in the state-of-the-art R-package shapr, which samples coalitions with replacement in one of the options
