Minimax Learning of Ergodic Markov Chains.

Geoffrey Wolfer, Aryeh Kontorovich

Abstract

We investigate the statistical complexity of estimating the parameters of a discrete-state Markov chain kernel from a single long sequence of state observations. In the finite case, we characterize (modulo logarithmic factors) the minimax sample complexity of estimation with respect to the operator infinity norm, while in the countably infinite case, we analyze the problem with respect to a natural entry-wise norm derived from total variation. We show that in both cases, the sample complexity is governed by the mixing properties of the unknown chain, for which, in the finite-state case, there are known finite-sample estimators with fully empirical confidence intervals.

Introduction

In classical statistics, the problem of estimating a probability distribution from independent and identically distributed (iid) samples is well-understood. For instance, estimating the bias of a coin requires a sample size that scales inversely with the desired precision squared. However, many real-world systems—ranging from web navigation patterns to molecular dynamics—exhibit temporal dependencies where the next state depends on the current one. These systems are typically modeled as Markov chains.

Estimating the transition matrix of a Markov chain presents a unique challenge: we often only have access to a single, continuous trajectory of observations rather than multiple independent restarts. If the chain becomes trapped in a specific subset of the state space, the observer may fail to see enough transitions to accurately estimate the probabilities associated with other states. This paper establishes the first tight minimax bounds for learning these transition probabilities, quantifying the "tax" imposed by the chain's mixing properties.

The Estimation Problem

Consider an ergodic Markov chain on a finite state space of size $d$. The goal is to estimate the transition kernel $P$, where $P_{ij}$ is the probability of moving from state $i$ to state $j$. The performance of an estimator $\hat{P}$ is measured by the operator infinity norm, which captures the worst-case error across all possible starting states.

In the iid setting, the sample complexity for such a problem would scale as $d/\epsilon^2$. In the Markovian setting, the complexity is fundamentally linked to two properties of the chain:

  1. The Stationary Distribution ($\pi$): Specifically, the minimum probability $\pi_\star$ of being in any given state. This determines how often we visit the rarest parts of the system.
  2. The Mixing Time: Represented here by the pseudo-spectral gap ($\gamma_{ps}$), which measures how quickly the chain converges to its stationary distribution and "forgets" its initial state.

Methodology

The Estimator

For finite state spaces, the authors employ a mildly smoothed version of the empirical counting estimator. The transition probability $P_{ij}$ is estimated by counting the transitions from $i$ to $j$ and normalizing by the total visits to state $i$, with a small smoothing factor applied to ensure stability in states that are rarely visited.

Theoretical Framework

To establish upper bounds, the research utilizes advanced concentration inequalities, including versions of McDiarmid’s inequality tailored for dependent Markovian data. A key technical component is the use of simulation techniques (derived from Billingsley) to map the dependent sequence onto a framework where independent analysis becomes tractable.

To establish lower bounds—proving that no algorithm can perform better—the authors construct "hard" Markov chain instances. These constructions include:

  • Chains with a "hidden" state that is extremely difficult to reach, testing the dependence on $\pi_\star$.
  • Families of chains with varying spectral gaps to test the sensitivity of estimation to the system's mixing speed.

Key Results

The paper provides nearly matching upper and lower bounds for the required sequence length $m$ to achieve an error $\epsilon$ with high probability.

Upper Bound: An estimator exists such that the error is bounded by $\epsilon$ if the sequence length $m$ satisfies: $$m \gtrsim \frac{d}{\epsilon^2 \pi_\star} + \frac{1}{\gamma_{ps} \pi_\star}$$

Lower Bound: Any estimation procedure requires a sequence length of at least: $$m \gtrsim \frac{d}{\epsilon^2 \pi_\star} + \frac{d \ln d}{\gamma_{ps}}$$

These results demonstrate that the difficulty of learning a Markov chain is dominated by the rarest state and the time required for the system to explore its entire state space. A significant contribution of this work is the decoupling of the precision parameter ($\epsilon$) and the mixing properties ($\gamma_{ps}$), which were often conflated in previous literature.

Countably Infinite State Spaces

When moving to infinite state spaces, the standard operator norm becomes an impossible metric because one cannot visit every state infinitely often in a finite trajectory. The authors propose a new entry-wise norm derived from Total Variation (TV) distance. This allows for meaningful convergence results by focusing on the accuracy of transitions from states that are actually visited during the trajectory.

Conclusion and Future Work

This work provides a rigorous foundation for the statistical limits of Markov chain learning. While the bounds are nearly tight, a small logarithmic gap ($\ln d$) remains in certain regimes, representing an open mathematical challenge. Furthermore, while the current theory assumes ergodicity, extending these minimax results to non-stationary or non-ergodic chains remains a frontier for future research. Finally, while the bounds depend on parameters like the mixing time, the authors note that these can often be estimated from the data itself, paving the way for fully empirical confidence intervals in Markovian estimation.

Summary updated

Abstract

We investigate the statistical complexity of estimating the parameters of a discrete-state Markov chain kernel from a single long sequence of state observations. In the finite case, we characterize (modulo logarithmic factors) the minimax sample complexity of estimation with respect to the operator infinity norm, while in the countably infinite case, we analyze the problem with respect to a natural entry-wise norm derived from total variation. We show that in both cases, the sample complexity is governed by the mixing properties of the unknown chain, for which, in the finite-state case, there are known finite-sample estimators with fully empirical confidence intervals.
BibTeX
@inproceedings{wolfer2019minimax,
  author = {Geoffrey Wolfer and Aryeh Kontorovich},
  title = {{Minimax Learning of Ergodic Markov Chains.}},
  booktitle = {ALT},
  year = {2019},
  url = {https://openreview.net/forum?id=rHgwFQllMX5},
}
Figure