Kernel mean embedding of probability measures and its applications to functional data analysis

Saeed Hayati, Kenji Fukumizu, Afshin ParvardehScandinavian 2020

TL;DR

This paper introduces a novel framework for Functional Data Analysis (FDA) by representing probability measures in infinite-dimensional spaces as "kernel mean embeddings." By treating these embeddings as a pseudo-likelihood, the authors develop new, high-performance statistical tests for regression and ANOVA that consistently outperform traditional methods in both accuracy and statistical power.

What Problem Does This Paper Address?

In standard statistics, we deal with data points in finite-dimensional space (like height and weight). We have well-defined "densities" (like the Bell Curve) because we have a reference measure (Lebesgue measure) that works perfectly in $\mathbb{R}^n$.

However, in Functional Data Analysis (FDA), each data point is a function (e.g., a growth curve over time or a weather pattern). These functions live in infinite-dimensional "Hilbert spaces." A major mathematical hurdle in FDA is that there is no equivalent to the Lebesgue measure in these infinite dimensions. This makes it incredibly difficult to define a "likelihood function," which is the bread and butter of traditional statistical inference (like Maximum Likelihood Estimation).

Previous attempts to get around this, such as "small-ball probability" approximations, often suffer from poor precision or can only be used for specific types of problems. The authors aim to bridge this gap using tools from machine learning.

Methods

The authors leverage Kernel Mean Embedding (KME). Instead of trying to define a density function directly, they map the entire probability distribution into a high-dimensional (or infinite-dimensional) feature space called a Reproducing Kernel Hilbert Space (RKHS).

Key technical contributions include:

  • Maximum Kernel Mean (MKM) Estimation: They propose a "pseudo-likelihood" approach where parameters are estimated by maximizing the kernel mean function. Interestingly, they prove that for Gaussian models, this approach leads to the same location estimators as Ordinary Least Squares (OLS), providing a solid theoretical foundation.
  • Characteristic Kernels: They provide new proofs showing that Gaussian kernels are "characteristic" for certain infinite-dimensional spaces. This is crucial because it ensures that the mapping from a probability distribution to its embedding is unique (injective).
  • MMD-Based Testing: Using Maximum Mean Discrepancy (MMD)—a distance metric between distributions in the RKHS—they develop new hypothesis tests for three major FDA problems:
  • Function-on-Scalar Regression: Testing if a set of predictors actually influences a functional response.
  • Functional One-Way ANOVA: Testing if the mean functions of several groups are equal.
  • Equality of Covariance Operators: Testing if different groups share the same internal variability structure.

Datasets

The paper evaluates the proposed methods using:

  1. Extensive Simulations: The authors generated functional data with varying levels of smoothness (using Matérn covariance families), different sample sizes, and varying numbers of observation points per curve.
  2. Medfly Data: A real-world dataset containing the mortality rates of approximately 7,200 Mediterranean fruit flies. The goal was to test for differences in the "variability" (covariance) of mortality patterns across four groups defined by gender and diet (sugar vs. protein).

Key Insights and Ideas

  • Embeddings as Densities: The "aha moment" is realizing that a kernel mean function can act as a proxy for a density function. It reflects the concentration of probability in small neighborhoods, allowing researchers to perform "likelihood-like" inference without a formal Lebesgue measure.
  • Superior Error Control: Traditional FDA tools (like the pffr package in R) often suffer from "inflated" Type-I errors—meaning they find "significant" results where none exist, especially as the data becomes more complex. The MMD-based tests maintain much tighter control over these errors.
  • Kernel Flexibility: The authors introduce two types of kernels for product spaces: the sum-kernel and the product-kernel. They show that the choice between these can affect the "power" of the test depending on how many points are sampled per curve.

Key Results

  • Regression Testing: In simulations, the MMD tests (MMDS and MMDP) were far more reliable than the standard pffr approach. While pffr's error rate spiked as more points were sampled per curve, the MMD tests stayed near the intended 0.05 significance level.
  • ANOVA and Covariance: The MMD tests consistently showed higher statistical power (the ability to detect a real effect) than $L^2$-norm tests, $F$-type tests, and $F_{max}$ tests. In many scenarios, the MMD test reached 100% power while competitors were still struggling around 60-80%.
  • Medfly Analysis: When applied to the Medfly data, the MMD test produced significantly lower p-values for pairwise comparisons than existing methods, suggesting it is more sensitive to subtle differences in how mortality rates fluctuate between groups.

Limitations and Future Work

  • Bandwidth Selection: Like many kernel methods, the performance depends on the "bandwidth" parameter ($\sigma$). While the authors suggest using a "maximal RKHS distance" approach, a definitive, automated way to choose $\sigma$ for FDA remains an open area for research.
  • Computational Cost: While not explicitly detailed as a failure, kernel methods involving large matrices can be computationally intensive compared to simple $F$-tests.
  • Smoothing Dependencies: The current framework assumes functions are observed fully. In practice, we observe discrete points and "smooth" them into functions. While the authors' simulations show their method is robust to this, the theoretical impact of different smoothing techniques on the MMD distribution could be explored further.

Summary updated

BibTeX
@inproceedings{hayati2020kernel,
  author = {Saeed Hayati and Kenji Fukumizu and Afshin Parvardeh},
  title = {{Kernel mean embedding of probability measures and its applications to functional data analysis}},
  booktitle = {Scandinavian},
  year = {2020},
}
Figure