Abstract
Modeling correlation (and covariance) matrices can be challenging due to the positive-definiteness constraint and potential high-dimensionality. Our approach is to decompose the covariance matrix into the correlation and variance matrices and propose a novel Bayesian framework based on modeling the correlations as products of unit vectors. By specifying a wide range of distributions on a sphere (e.g. the squared-Dirichlet distribution), the proposed approach induces flexible prior distributions for covariance matrices (that go beyond the commonly used inverse-Wishart prior). For modeling real-life spatio-temporal processes with complex dependence structures, we extend our method to dynamic cases and introduce unit-vector Gaussian process priors in order to capture the evolution of correlation among components of a multivariate time series. To handle the intractability of the resulting posterior, we introduce the adaptive $\Delta$-Spherical Hamiltonian Monte Carlo. We demonstrate the validity and flexibility of our proposed framework in a simulation study of periodic processes and an analysis of rat's local field potential activity in a complex sequence memory task.
Introduction
In statistical modeling, capturing the relationships between variables through a covariance matrix is fundamental. However, these matrices must adhere to strict mathematical constraints: they must be symmetric and positive-definite. Traditional Bayesian approaches often rely on the inverse-Wishart distribution as a prior. While mathematically convenient, the inverse-Wishart is notoriously rigid; it uses a single parameter to control the uncertainty of all matrix elements, preventing the expression of nuanced prior knowledge—such as expecting specific variables to be highly correlated while others remain independent.
Furthermore, in dynamic environments like neuroscience or finance, these relationships are not static but evolve over time. Ensuring positive-definiteness at every time point in a dynamic model presents significant computational and mathematical challenges. This paper introduces a flexible framework to address these limitations.
Methodology
The proposed framework utilizes a "separation strategy," decomposing the covariance matrix into individual variances and a correlation matrix. The core innovation lies in the geometric representation of the correlation structure.
Sphere-Product Representation and Flexible Priors
The authors represent the Cholesky factor of the correlation matrix as a product of unit vectors. Since these vectors are constrained to the surface of a sphere (having a length of 1), the resulting matrix is guaranteed to be positive-definite by construction. To introduce flexibility, the framework employs squared-Dirichlet priors on the sphere. Unlike the rigid inverse-Wishart, this allows for "nudging" the model toward specific structures, such as sparsity.
Dynamic Modeling and Inference
To capture time-varying dependencies, the model incorporates Unit-Vector Gaussian Processes (uvGP). This extends standard Gaussian Processes by constraining them to a spherical surface, ensuring the validity of the correlation structure as it evolves. To perform inference on these curved geometries, the authors developed Adaptive $\Delta$-Spherical Hamiltonian Monte Carlo ($\Delta$-SphHMC), a specialized sampling algorithm that efficiently navigates spherical surfaces.
Experimental Evaluation
The framework was validated through three primary studies:
- Simulated Normal-inverse-Wishart: A sanity check confirming the model can replicate standard results.
- Periodic Process Simulations: Synthetic data with time-varying means and correlations tested the model's ability to recover complex periodic patterns. The framework successfully scaled to 100-dimensional systems using a "banded" structure.
- Rat Local Field Potential (LFP): Analysis of neural activity from 24 electrodes in a rat's hippocampus during a sequence memory task. The model identified distinct correlation patterns between "in-sequence" and "out-of-sequence" trials, detecting cognitive shifts before the rat's physical response.
Conclusion
By shifting the problem of covariance modeling into a spherical coordinate system, this framework bypasses traditional algebraic constraints and offers unprecedented flexibility. The decoupling of mean, variance, and correlation allows for the detection of subtle changes in connectivity that latent factor models often miss. While current applications show promise in neuroscience, future work will focus on scaling to ultra-high dimensions and generalizing the model across multiple subjects.
Summary updated