Abstract
The restricted maximum likelihood (REML) method has become the standard for variance component analysis, particularly in large-scale unbalanced datasets common in biological research and uncertainty quantification. Estimating unknown variance parameters via REML typically necessitates nonlinear iterative algorithms. Consequently, the availability of precise formulae for the log-likelihood function and its derivatives is critical for practical algorithm design. This paper provides a comprehensive mathematical introduction to the REML method, offering self-contained derivations of the formulae used in modern computational algorithms, alongside new proofs for established results.
Introduction
Linear Mixed Models (LMMs) are fundamental to modern genomics, ecology, and social sciences, providing a framework to partition variation into fixed effects (e.g., experimental treatments) and random effects (e.g., genetic variation or environmental noise). To utilize these models, researchers must estimate variance components—parameters that quantify the contribution of different sources to the total observed variation.
While Maximum Likelihood (ML) is a standard estimation tool, it is notoriously biased in the context of variance components because it fails to account for the degrees of freedom lost when estimating fixed effects. Restricted Maximum Likelihood (REML) addresses this bias by transforming the data such that the fixed effects are eliminated from the likelihood. However, this correction introduces significant computational complexity, requiring sophisticated nonlinear optimization to find the maximum of the likelihood surface.
The Computational Challenge
Efficiently navigating the likelihood surface—typically using Newton-type methods—requires the second derivative of the log-likelihood, known as the Hessian. For large-scale datasets, calculating the exact Hessian (the Observed Information Matrix, $I_O$) or its expected value (the Fisher Information Matrix, $I$) is computationally prohibitive.
For a dataset with $n$ observations, these calculations often involve finding the trace of products of large matrices, a process with $O(n^3)$ complexity. In the era of high-throughput biological data, where $n$ can reach hundreds of thousands or millions, such operations are infeasible. This paper addresses this bottleneck by providing a streamlined derivation of the "Average Information" (AI) matrix, which transforms these prohibitive calculations into efficient sparse matrix operations.
Mathematical Framework and the AI Matrix
The paper establishes a "unified theory" of REML through several key mathematical contributions:
1. Equivalent Likelihood Formulations
The authors prove the mathematical identity of three commonly used, yet seemingly distinct, formulas for the REML log-likelihood. This unification ensures that regardless of the starting point, the resulting variance estimates remain consistent.
2. The Information Hierarchy
The paper compares three methods for approximating the curvature of the likelihood surface:
- Observed Information ($I_O$): The exact negative Hessian, which is computationally expensive.
- Fisher Information ($I$): The expected value of $I_O$. While statistically robust, it still requires expensive trace calculations.
- Average Information ($I_A$): The "secret sauce" of modern REML algorithms. It is defined as the average of the Observed and Fisher Information matrices.
3. The AI Splitting Theorem
A central insight of the work is Theorem 6, which demonstrates that the average of the Observed and Fisher information can be decomposed into the Average Information matrix ($I_A$) and a remainder matrix ($I_Z$). Crucially, the expectation of this remainder is zero. This implies that $I_A$ serves as a statistically sound and computationally efficient proxy for the Fisher Information.
Numerical Optimization and Algorithm 5
The transition from theoretical derivation to practical application occurs through the realization that the $I_A$ matrix can be computed using quadratic forms (e.g., $y^T Ay$) rather than matrix traces. This allows the optimization problem to be solved using sparse $LDL^T$ factorization and the Mixed Model Equations (MME) with multiple right-hand sides.
By shifting the computational burden from dense matrix algebra to highly optimized sparse linear solvers, the complexity is reduced from $O(n^3)$ to a series of matrix-vector multiplications. The paper culminates in Algorithm 5, an 8-step blueprint for computing the AI matrix, providing a clear path for software developers to implement these efficiencies in packages like ASReml.
Discussion and Limitations
While the AI matrix approach offers a massive leap in efficiency, its performance is contingent on two factors:
- Linearity: The most efficient versions of these formulae assume the variance-covariance matrix $V$ depends linearly on the variance parameters. This is standard in most LMMs but may require adaptation for complex non-linear spatial or temporal models.
- Sparsity: The speed gains rely on the sparsity of the design matrices ($X$ and $Z$). If these matrices are dense, the computational advantages of the AI method are diminished.
Conclusion
This work provides the rigorous mathematical foundation necessary for scaling variance component estimation to the "big data" requirements of modern science. By simplifying the proofs for score functions and information matrices, the authors bridge the gap between abstract statistical theory and high-performance algorithmic implementation. These derivations not only benefit LMM practitioners but also offer potential insights into the scaling of Gaussian Processes in machine learning.
Summary updated