Skip to main content
QUICK REVIEW

[Paper Review] Derivation of an EM algorithm for constrained and unconstrained multivariate autoregressive state-space (MARSS) models

Elizabeth E. Holmes|arXiv (Cornell University)|Feb 16, 2013
Bayesian Modeling and Causal InferenceComputer Science14 references33 citations
TL;DR

This paper presents a general Expectation-Maximization (EM) algorithm for maximum-likelihood estimation in constrained and unconstrained multivariate autoregressive state-space (MARSS) models, enabling flexible parameter constraints via a linear reparameterization. The method handles missing data, time-varying parameters, and degenerate (partially deterministic) systems, with improved robustness to initial state prior misspecification by treating initial states as estimated parameters rather than random effects.

ABSTRACT

This report presents an Expectation-Maximization (EM) algorithm for estimation of the maximum-likelihood parameter values of constrained multivariate autoregressive Gaussian state-space (MARSS) models. The MARSS model can be written: x(t)=Bx(t-1)+u+w(t), y(t)=Zx(t)+a+v(t), where w(t) and v(t) are multivariate normal error-terms with variance-covariance matrices Q and R respectively. MARSS models are a class of dynamic linear model and vector autoregressive state-space model. Shumway and Stoffer presented an unconstrained EM algorithm for this class of models in 1982, and a number of researchers have presented EM algorithms for specific types of constrained MARSS models since then. In this report, I present a general EM algorithm for constrained MARSS models, where the constraints are on the elements within the parameter matrices (B,u,Q,Z,a,R). The constraints take the form vec(M)=f+Dm, where M is the parameter matrix, f is a column vector of fixed values, D is a matrix of multipliers, and m is the column vector of estimated values. This allows a wide variety of constrained parameter matrix forms. The presentation is for a time-varying MARSS model, where time-variation enters through the fixed (meaning not estimated) f(t) and D(t) matrices for each parameter. The algorithm allows missing values in y and partially deterministic systems where 0s appear on the diagonals of Q or R. Open source code for estimating MARSS models with this algorithm is provided in the MARSS R package on the Comprehensive R Archive Network (CRAN).

Motivation & Objective

  • To develop a unified EM algorithm for both constrained and unconstrained MARSS models, accommodating a wide range of parameter constraints.
  • To address the persistent problem of initial state prior misspecification in MARSS models, which can lead to biased or inconsistent maximum-likelihood estimates.
  • To extend the EM algorithm to handle missing observations in the observation vector and degenerate systems with deterministic components (e.g., zero variances in Q or R).
  • To provide a computationally efficient framework that avoids the need for iterative Kalman filtering between parameter updates unless safety is prioritized.
  • To enable users to estimate initial states as fixed parameters, thereby removing the dependency on potentially inconsistent prior covariance structures.

Proposed method

  • Uses a general parameter constraint form: vec(M) = f + Dm, where M is a parameter matrix, f is a fixed vector, D is a design matrix, and m is a vector of estimated values.
  • Derives the EM algorithm by treating the hidden states as missing data and iteratively computing expectations and maximizing the expected complete-data log-likelihood.
  • Applies the Kalman filter and smoother to compute the expected sufficient statistics under the current parameter estimates, including smoothed state means and covariances.
  • Handles time-varying parameters by allowing f(t) and D(t) to vary over time, enabling dynamic modeling of system parameters.
  • Treats the initial state x₀ as a fixed, estimated parameter rather than a random variable with a prior distribution, thus avoiding prior-induced bias in MLEs.
  • Implements a safe mode (control$safe=TRUE) that recomputes Kalman filter/smoother after each parameter update to prevent likelihood drops.

Experimental results

Research questions

  • RQ1How can a general EM algorithm be derived for MARSS models with arbitrary linear constraints on parameter matrices?
  • RQ2What are the implications of using a diffuse or fixed prior on the initial state when the true model implies a non-diagonal covariance structure?
  • RQ3How can missing data in the observation vector be handled within the EM framework for MARSS models?
  • RQ4In what ways does treating the initial state as a fixed estimated parameter improve the robustness of MLE estimation compared to using a prior distribution?
  • RQ5Under what conditions does the EM algorithm fail to converge to the true MLE, and how can such failures be detected and mitigated?

Key findings

  • The proposed EM algorithm successfully handles a broad class of constrained MARSS models, including those with time-varying parameters and missing observations.
  • Treating the initial state as a fixed, estimated parameter rather than a random variable with a prior significantly reduces the risk of bias from prior misspecification.
  • The algorithm remains robust even when the prior on the initial state has an incorrect correlation structure, provided the initial state is estimated directly.
  • The use of a diffuse prior does not eliminate prior-induced correlation structure; thus, it cannot fully resolve issues arising from mismatched initial state assumptions.
  • The algorithm can detect prior-related problems by monitoring likelihood changes when initializing from Newton-like estimates; a drop in likelihood indicates prior inconsistency.
  • The default implementation skips Kalman filter recomputation between updates for efficiency, but users can enable safe mode to ensure monotonic likelihood increase.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.