Abstract
Estimation of density derivatives is a versatile tool in statistical data analysis. A naive approach is to first estimate the density and then compute its derivative. However, such a two-step approach does not work well because a good density estimator does not necessarily mean a good density-derivative estimator. In this paper, we give a direct method to approximate the density derivative without estimating the density itself. Our proposed estimator allows analytic and computationally efficient approximation of multi-dimensional high-order density derivatives, with the ability that all hyper-parameters can be chosen objectively by cross-validation. We further show that the proposed density-derivative estimator is useful in improving the accuracy of non-parametric KL-divergence estimation via metric learning. The practical superiority of the proposed method is experimentally demonstrated in change detection and feature selection.
Introduction
In statistical machine learning, the derivatives of probability density functions $p(x)$ are essential for various tasks, such as finding clusters via the mean shift algorithm or correcting biases in entropy estimation. Traditionally, these derivatives are estimated using a two-step "naive" approach: first estimating the density $\hat{p}(x)$ (e.g., via Kernel Density Estimation) and then differentiating that estimate. However, smoothing parameters optimized for density estimation often fail to capture the sharp changes required for accurate derivative estimation—a problem that worsens with higher-order derivatives and higher-dimensional data.
This paper introduces MISED (Mean Integrated Squared Error for Derivatives), a method that bypasses intermediate density estimation to estimate derivatives directly from data. By focusing representational power solely on the derivative, MISED achieves higher accuracy and better scalability.
Methodology: The MISED Approach
The core objective of MISED is to minimize the Mean Integrated Squared Error (MISE) between a model $g(x)$ and the true unknown derivative $p^{(k)}(x)$. The authors employ an integration-by-parts "trick" to rewrite the objective function, expressing the error in terms of the expectation of the model's derivative over the true density $p(x)$. This expectation is then approximated using the sample average of the available data.
By utilizing a Gaussian kernel model and $\ell_2$ regularization, the optimal parameters for the estimator are found analytically through a system of linear equations. Furthermore, a specialized cross-validation score allows for objective hyperparameter selection, ensuring the model is tuned specifically for derivative accuracy rather than density fit.
Experimental Evaluation
The performance of MISED was validated against synthetic and real-world datasets. Synthetic tests using Normal and Generalized Gaussian distributions (ranging from 1 to 7 dimensions) demonstrated that MISED significantly outperforms standard KDE-based methods, particularly for second-order derivatives where traditional methods often fail to capture the underlying structure.
In real-world applications, MISED was applied to:
- Distributional Change Detection: Using tri-axial accelerometer data from the HASC 2011 dataset, MISED achieved an AUC of 0.839, outperforming parametric and nearest-neighbor approaches in identifying activity transitions.
- Information-Theoretic Feature Selection: On high-dimensional gene expression datasets (nearly 20,000 features), MISED effectively identified relevant genes for breast cancer prognosis, matching or exceeding established algorithms like mIMR.
Discussion and Conclusion
A key insight of this work is the synergy between direct derivative estimation and metric learning. The authors demonstrate that the bias in Nearest-Neighbor KL-divergence estimation is governed by the Hessian of the density. By using MISED to accurately estimate this Hessian, they can "warp" the feature space to drastically reduce estimation bias.
While computationally efficient for moderate datasets, the $O(n^3)$ complexity of the analytic solution suggests using a subset of samples as kernel centers for very large $n$. Additionally, the method assumes that densities vanish at boundaries, which is standard for many distributions but may require care for bounded support. Overall, MISED provides a robust, scalable framework for high-dimensional statistical analysis by avoiding the pitfalls of intermediate density estimation.
Summary updated