Let be a RKHS with Mercer kernel . The MMD (maximum mean discrepancy) is the integral probability metric over the unit ball .

If the data come in pairs , the MMD has the following plug-in estimator

which is a second-order v-statistic. Because the MMD is a convex distributional distance, we can develop confidence sequences for convex functionals for it. The Kernel MMD also plays a big role in two-sample testing.