Estimating Mutual Information for Discrete-Continuous Mixtures

Weihao Gao, Sreeram Kannan, Sewoong Oh, Pramod Viswanath

Introduction

Mutual Information (MI) is a fundamental metric in machine learning used to quantify the relationship between two variables. While reliable methods exist for calculating MI in purely discrete or purely continuous datasets, real-world data often presents as a "mixture." For example, a sensor might return a continuous value most of the time but show a massive spike at exactly zero when it is inactive.

Standard MI estimators typically rely on the "3H-principle," which calculates MI by summing three entropy terms: $I(X;Y) = H(X) + H(Y) - H(X,Y)$. However, for mixed distributions, entropy is not well-defined. Common workarounds, such as binning continuous data or adding noise (dithering) to discrete data, often introduce high bias and lead to the loss of critical information.

Example of a discrete-continuous mixed distribution where X is discrete and Y is continuous.

Methods

This paper introduces a novel, mathematically consistent estimator that bypasses the need for individual entropy calculations. Instead, the authors focus on directly estimating the Radon-Nikodym derivative, which represents the ratio between the joint probability measure and the product of the marginal measures.

The proposed algorithm utilizes a $k$-nearest neighbor ($k$-NN) search. For each data point, it finds the distance to its $k$-th nearest neighbor in the joint space. A key innovation is how the algorithm handles "ties"—instances where the distance is zero due to multiple samples at the same discrete point. By adjusting $k$ to account for these overlaps and counting points within the same distance in individual $X$ and $Y$ spaces, the estimator can seamlessly transition between discrete and continuous regimes. The authors provide a rigorous proof that this estimator is $\ell_2$ consistent, meaning it converges to the true value as the sample size increases.

Key Results

The researchers evaluated the estimator against common heuristics like partitioning and "noisy KSG" across various synthetic and real-world benchmarks, including the DREAM5 gene regulatory network challenge.

Mean squared error (MSE) vs. sample size across different mixed distribution models. The proposed method (black line) consistently achieves lower error and demonstrates convergence.

As shown in the performance plots, the proposed estimator's Mean Squared Error (MSE) steadily decreases as the sample size grows, confirming its consistency. In contrast, standard KSG and noisy heuristics often plateau or exhibit significant bias. In practical applications like gene network reconstruction, the proposed method achieved a higher AUROC (Area Under the ROC Curve) than competing methods, particularly in scenarios with high "dropout" rates (where data is forced to zero).

Conclusion

By targeting the Radon-Nikodym derivative directly, this approach avoids the mathematical pitfalls of undefined entropy in mixed distributions. The $k$-NN based method is robust to the curse of dimensionality and provides a reliable tool for fields like single-cell RNA sequencing, where discrete-continuous mixtures are prevalent due to experimental noise and biological dropouts.

Summary updated

BibTeX
@inproceedings{gao2017estimating,
  author = {Weihao Gao and Sreeram Kannan and Sewoong Oh and Pramod Viswanath},
  title = {{Estimating Mutual Information for Discrete-Continuous Mixtures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=BkEqPPbuWB},
}
Figure