Certifying total-variation contamination by betting on trimmed kernel witnesses
Abstract
Two laws share a common component after each discards a fraction of its mass, a trimming, exactly when their total variation is at most , so the contamination level is the share of each population without counterpart in the other. We bound it from below from two samples on any space with a bounded characteristic kernel. The kernel mean embeddings of all such trimmings of a law form a convex region, the regions of two laws first touch at , and in every direction a region reaches as far as a trimmed mean. The difference of their closest points, the witness, selects the trimming. We fit a ramp of the witness on part of the data and bet on the rest, at each level of a grid. The bound is valid at every sample size. The cut points of the tested level carry most of its finite-sample gain over an untrimmed witness, while refitting the witness at that level makes it consistent, gives its rates and returns the trimming. When a function of the kernel's Hilbert space separates the parts of the two laws without counterpart, the bound is within order of on a grid of that mesh, which is minimax over such pairs. When these parts touch, a margin condition guarantees a polynomial rate for Sobolev kernels and a logarithmic rate for the Gaussian kernel. For the Laplace kernel on the line this guarantee is not sharp: the witness stays between its two cut points, and for densities that cross once, with a likelihood ratio bounded away from one off the crossing, the error on such a grid is again of that order up to logarithmic factors. No informative upper bound exists without assumptions. On the Right Heart Catheterization data, with confidence , each arm must lose more than a fraction of its patients, if both lose the same fraction, before their covariate distributions can coincide.