High-Dimensional Dynamic Covariance Models with Random Forests

Shuguang Yu, Fan Zhou, Yingjie Zhang, Ziqi Chen, Hongtu ZhuarXiv 2025 · DOI

Abstract

Estimating high-dimensional covariance matrices that evolve according to external conditioning variables is a critical challenge in modern statistics. Traditional nonparametric methods, such as kernel-smoothing, suffer from the "curse of dimensionality" when multiple conditioning covariates are present. This paper introduces Forest-based Dynamic Covariance Models (FDCMs), a novel framework that leverages the adaptive nature of random forests to estimate dynamic covariance structures. By integrating "honest forests" with generalized thresholding and eigenvalue adjustments, the FDCM provides a robust, data-driven approach to modeling complex dependencies in high-dimensional settings ($p \gg n$).

Introduction

Covariance matrices are foundational tools for capturing relationships between variables in fields ranging from neuroscience to finance. However, these relationships are rarely static. In financial markets, for instance, the dependencies between stocks shift in response to macroeconomic factors. While dynamic covariance modeling is well-studied for low-dimensional data or single-covariate scenarios, modern applications often involve hundreds of variables and multiple driving factors. This paper addresses the limitations of existing kernel-based methods by proposing a forest-based approach that remains effective even as the number of conditioning variables grows.

The Problem: The Curse of Dimensionality

In high-dimensional settings where the number of variables ($p$) exceeds the number of samples ($n$), the sample covariance matrix is singular and unreliable. Nonparametric estimation typically relies on kernel-smoothing to weight observations based on their proximity to a target covariate value. However, as the number of covariates increases, the "volume" of the space grows exponentially, and geometric distance becomes an uninformative metric—a phenomenon known as the curse of dimensionality. Consequently, kernel methods fail to accurately capture dynamic structures when driven by multiple external factors.

Methodology: Forest-based Dynamic Covariance Models (FDCMs)

The authors propose FDCMs to replace fixed-geometry kernel weights with adaptive, data-driven weights derived from random forests. The methodology consists of three primary components:

1. Honest Forests for Weighting

The algorithm constructs a forest of decision trees to partition the covariate space. Two samples are assigned higher weights if they frequently co-occur in the same leaf nodes. To ensure theoretical validity and prevent overfitting, the authors utilize "honest forests," where the data used to determine tree splits is distinct from the data used to estimate the covariance within those leaves. This allows the model to ignore irrelevant covariates and focus on the factors that truly drive changes in the covariance structure.

2. Generalized Thresholding

To handle the $p \gg n$ regime, the raw forest-based estimates undergo generalized thresholding (e.g., Hard thresholding, Lasso, or SCAD). This process induces sparsity by forcing small, noisy correlation estimates to zero, ensuring the resulting matrix reflects the true underlying connectivity of the system.

3. Positive Definiteness Correction

Because valid covariance matrices must be positive definite, the authors introduce a "Modified FDCM" which includes an eigenvalue-adjustment step. This ensures the estimated matrices are invertible and suitable for practical applications like portfolio optimization.

Theoretical Guarantees

A key contribution of this work is the establishment of strong theoretical foundations for FDCMs. The authors prove uniform consistency, demonstrating that the error bounds hold across the entire range of conditioning covariates even when $p$ grows sub-exponentially relative to $n$. Furthermore, the method is shown to achieve accurate sparsity recovery, meaning it can reliably distinguish between genuinely zero correlations and active relationships in the population matrix.

Empirical Results

Simulation Studies

In controlled simulations featuring dynamic AR(1) structures, FDCMs consistently outperformed static and kernel-based baselines. The model achieved significantly lower Median Frobenius Loss and Median Spectral Loss. Notably, when non-informative "noise" covariates were added to the system, the performance of kernel methods plummeted, while FDCMs remained robust due to their internal feature selection capabilities.

Financial Application: Portfolio Optimization

The authors applied the FDCM to a universe of the 200 largest stocks on the NYSE (2014–2023), using the Fama-French five factors as conditioning covariates. The goal was to construct a daily-updated global minimum-variance portfolio.

  • Modified FDCM Performance: Achieved an Annualized Average Return (AVR) of 6.13%, a Standard Deviation (STD) of 6.15%, and an Information Ratio (IR) of 1.00.
  • Baseline Performance: Traditional static and kernel-based methods failed in this high-dimensional, multi-covariate environment, yielding catastrophic results (e.g., returns between -351% and -450% and extreme volatility). This failure highlights the necessity of the FDCM’s approach to positive definiteness and covariate selection.

Conclusion

Forest-based Dynamic Covariance Models represent a significant advancement in high-dimensional statistics. By marrying the flexibility of random forests with the rigors of covariance thresholding, the authors provide a framework that is both theoretically sound and practically superior for complex, real-world data. Future research may extend this approach to other domains, such as genomics or brain connectivity mapping, where high-dimensional networks are influenced by a multitude of environmental factors.

Summary updated

BibTeX
@misc{yu2025high,
  author = {Shuguang Yu and Fan Zhou and Yingjie Zhang and Ziqi Chen and Hongtu Zhu},
  title = {{High-Dimensional Dynamic Covariance Models with Random Forests}},
  year = {2025},
  eprint = {2505.12444},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.12444},
}
Figure