Local Polynomial Regression (LPR) is a powerful tool for nonparametric smoothing, yet it traditionally suffers from a "Euclidean tautology": the variables used to define the local neighborhood are identical to those used in the polynomial fit. This restricts its ability to handle complex domains where the regression function varies across non-Euclidean structures, such as graphs, manifolds, or discrete categories, while remaining locally smooth in the primary feature space. We propose Generalized Context-Aware LPR (GC-LPR), a framework that decouples the fitting coordinates ($Z$) from the weighting context ($C$). By adopting a modeling convention where the conditional mean depends jointly on $Z$ and $C$ ($Y = m_C(Z) + \varepsilon$), our estimator acts as a "projected smoother": it isolates a slice of the data on the manifold defined by $C$ via a compound product kernel, and performs polynomial fitting in the $Z$-coordinates within that slice. This enables practitioners to model responses that vary across graphs, networks, or categorical strata while retaining the interpretability and bias properties of LPR in a primary Euclidean feature space. Theoretical analysis clarifies the induced context-smoothed target of GC-LPR and shows that the method preserves the Euclidean bias-reduction properties of standard LPR while allowing arbitrary, non-Euclidean contexts to modulate the local estimation. We demonstrate the efficacy of this approach on geospatial and network-structured datasets.
FKreg: A MATLAB toolbox for fast Multivariate Kernel Regression
The Clinical Hospital of Chengdu Brain Science Institute(成都脑科学研究院临床医院);University of Electronic Science and Technology of China(电子科技大学);Cuban Center for Neuroscience(古巴神经科学中心)
核平滑是数据密度和回归估计的最基本技术。然而,直接评价$N$样本的核光滑性需要进行${O}\left( {{N}^{2}} \right)$运算,这就给实际应用带来了很大的困难。人们已经开发了快速平滑算法,使用的思想,分箱与FFT。不幸的是,准确性是不可控的,和实现多变量和它的带宽选择的快速方法是不可用的。为此,本文提出了一种新的基于非均匀FFT(NUFFT)思想的快速多元核回归MATLAB工具箱,实现了具有${O}\left( N+M\log M \right)$复杂度和精度可控性的$M$网格点算法。带宽选择问题利用快速蒙特卡罗算法来估计自由度(DF),当数据共享相同的网格空间进行多元回归时,可以更好地节省大量的交叉验证时间。到目前为止,这是第一个用于快速合并高维核回归的工具箱。此外,局部多项式回归的估计,异方差模型的条件方差,以及复值数据集也在这个工具箱中实现。通过仿真和在定量脑电信号上的应用,证明了该方法的性能。