Abstract
We use available measurements to estimate the unknown parameters (variance, smoothness parameter, and covariance length) of a covariance function by maximizing the joint Gaussian log-likelihood function. To overcome cubic complexity in the linear algebra, we approximate the discretized covariance function in the hierarchical (H-) matrix format. The H-matrix format has a log-linear computational cost and storage $O(kn \log n)$, where the rank $k$ is a small integer and $n$ is the number of locations. The H-matrix technique allows us to work with general covariance matrices in an efficient way, since H-matrices can approximate inhomogeneous covariance functions, with a fairly general mesh that is not necessarily axes-parallel, and neither the covariance matrix itself nor its inverse have to be sparse. We demonstrate our method with Monte Carlo simulations and an application to soil moisture data.
Introduction: The Big Data Bottleneck
In spatial statistics, researchers often model environmental data, such as temperature or soil moisture, as Gaussian Random Fields. To understand underlying patterns, they must estimate parameters like variance, smoothness, and correlation range by maximizing a Gaussian log-likelihood function.
The primary challenge is the covariance matrix $C(\theta)$. For $n$ data points, this matrix is $n \times n$. Evaluating the likelihood requires calculating the matrix inverse and its determinant, which traditionally takes $O(n^3)$ operations and $O(n^2)$ memory. For a dataset with 100,000 locations, this translates to a staggering $10^{15}$ operations. While methods like the Fast Fourier Transform (FFT) can mitigate this, they typically require data to be on a perfectly regular grid—a rarity in real-world environmental monitoring.
Methodology: Hierarchical ($\mathcal{H}$-) Matrices
To bridge the gap between computational feasibility and model complexity, we leverage Hierarchical ($\mathcal{H}$-) matrices. The core insight is that while a covariance matrix may be dense, many of its sub-blocks can be accurately approximated as low-rank.
Our approach involves three main steps:
- Hierarchical Partitioning: The spatial domain is recursively divided using a quadtree-like structure, partitioning the matrix into a hierarchy of blocks.
- Low-Rank Approximation: Blocks representing interactions between distant clusters of points are approximated using a rank $k$ (where $k \ll n$).
- $\mathcal{H}$-Arithmetic: We utilize specialized libraries (HLIBPro) to perform matrix operations, specifically the $\mathcal{H}$-Cholesky decomposition, directly in this compressed format. This allows for the computation of the log-determinant and the quadratic form in $O(k^2 n \log^2 n)$ time.
Key Insights: Structure Over Sparsity
Unlike many "big data" methods that force matrices to be sparse by setting small values to zero (tapering), $\mathcal{H}$-matrices exploit the inherent rank structure of the data. This is physically more meaningful for spatial correlation, which rarely drops abruptly to zero.
Furthermore, the approximation error is controllable. Both theoretical and empirical evidence suggest that the error in estimated parameters is dominated by statistical noise rather than matrix approximation error, provided the hierarchical rank $k$ is chosen appropriately. This method is highly general, accommodating irregular grids and inhomogeneous covariance functions.
Results and Performance
We validated our approach using both synthetic Monte Carlo simulations and a massive real-world dataset of soil moisture from the Mississippi River basin, containing 2 million observations.
- Massive Scaling: We successfully processed the 2-million-point dataset on a 40-core workstation.
- Speed: The $\mathcal{H}$-Cholesky factorization for 2 million points took approximately 1,000 seconds (17 minutes). A standard $O(n^3)$ approach would have taken years.
- Memory Efficiency: Storage requirements grew linearly with $n$. For 2 million points, the compressed matrix required only 30 GB of RAM.
- Accuracy: In simulations, estimated parameters ($ℓ, ν, σ^2$) were highly accurate, with the smoothness parameter $ν$ being particularly well-identified.
Conclusion
By reducing computational complexity from cubic to log-linear, $\mathcal{H}$-matrices enable statistical inference on datasets previously considered computationally impossible. Future work will focus on implementing gradient and Hessian-based optimization to further reduce the total time required for parameter estimation and integrating measurement noise (nugget effects) more deeply into the hierarchical framework.
Summary updated