Algorithm 3.
Sample-split, cross-fitted inference on VIM value ψ0,s
1: | generate by sampling uniformly from {1, …, 2K} with replacement, and for j = 1, …, 2K, denote by Dj the set of observations with index in and ; |
2: | for k = 1, …, 2K do |
3: | using only data in , construct estimators fk,n of f0 and fk,n,s of f0,s; |
4: | using only data in Dk, construct estimator Pn,k of P0; |
5: | if k is odd, compute and ; |
6: | if k is even, compute and ; |
7: | end for |
8: | compute , and estimator of ψ0,s; |
9: | compute , and estimator of the variance of ; |
10: | to test vs at level 1−α, reject H0 in favor of H1 iff with and Φ the standard normal distribution function. |