Counting Markov Types

Philippe Jacquet, Charles Knessl, Wojciech SzpankowskiDiscrete 2010

TL;DR

This paper provides the first precise asymptotic formulas for counting Markov types—the number of distinct empirical distributions possible for sequences generated by a Markov source. By combining multidimensional generating functions with the saddle point method, the authors derive the exact growth rates and constants for both fixed alphabet sizes and cases where the alphabet grows alongside the sequence length.

What Problem Does This Paper Address?

In information theory, the "method of types" is a powerful tool used to analyze the performance of data compression and communication systems. Two sequences have the same type if they share the same empirical distribution (e.g., in the sequence "banana," the type is defined by the counts of 'b', 'a', and 'n').

For memoryless sources, counting these types is a classic "stars and bars" combinatorics problem. However, for Markov sources—where the probability of a character depends on the one preceding it—the problem becomes significantly more complex. A Markov type is defined by a balanced frequency matrix, which counts how many times each pair of symbols $(i, j)$ appears. Because the sequence must be physically constructible, these matrices must satisfy "flow conservation": the number of times you enter a state $i$ must equal the number of times you leave it.

While researchers previously knew that the number of Markov types grows polynomially, the exact constants and the behavior for large alphabets remained unsolved. This paper fills that gap.

Methods

The authors treat the problem through the lens of analytical combinatorics. Their approach involves several sophisticated steps:

  1. Generating Functions: They define a multidimensional generating function that represents all possible integer matrices satisfying the flow conservation laws.
  2. Cauchy’s Integral Formula: To extract the number of types from the generating function, they use complex integration over multiple variables.
  3. Partial Fraction Expansion: For small, fixed alphabet sizes ($m=2$ to $5$), they use recursive partial fractions to find exact rational constants.
  4. Saddle Point Method: To handle the case where the alphabet size $m$ grows (specifically when $m = o(\sqrt{n})$), they employ a multidimensional saddle point analysis. This involves finding the minimum of a complex "energy" function $L(z, \theta)$ and approximating the integral around that point using a second-derivative matrix (the Hessian).

Datasets

As a theoretical paper in mathematics and computer science, no external datasets were used. The authors utilized the symbolic computation program MAPLE to verify their manual derivations for small alphabet sizes and to compute specific constants.

Key Insights and Ideas

  • The "Conservation Law" Penalty: The requirement that a sequence must be "balanced" (flow conservation) significantly reduces the number of possible types. Specifically, it decreases the count by a factor of $\Theta(n^{m-1})$ compared to a situation where any transition matrix summing to $n$ was allowed.
  • Geometric Interpretation: The problem is equivalent to counting the number of integer points inside a specific high-dimensional polytope, or alternatively, counting balanced directed multigraphs.
  • The Constant $d(m)$: For a fixed alphabet, the number of types is dominated by $n^{m^2-m}$. The authors identified the previously unknown constant $d(m)$ and provided it as an $(m-1)$-fold integral.
  • Rationality: For small $m$, the coefficients of the leading terms appear to be rational numbers (e.g., $1/12$ for $m=3$), a property the authors suspect holds generally but did not formally prove.

Key Results

The paper presents two primary asymptotic results for the number of Markov types $|P_n|$ for a sequence of length $n$ and alphabet size $m$:

  1. Fixed Alphabet ($m$): $$|P_n| \sim d(m) \frac{n^{m^2-m}}{(m^2-m)!}$$ For example, for a binary alphabet ($m=2$), the number of types is approximately $n^2/4$. For $m=3$, it is $n^6/8640$.

  2. Growing Alphabet ($m \to \infty$): If the alphabet grows such that $m = o(\sqrt{n})$, the number of types is equivalent to: $$\frac{\sqrt{2}m^{3m/2} e^{m^2}}{m^{2m^2} 2^m \pi^{m/2}} n^{m^2-m}$$ This formula captures the explosive growth of the state space as the alphabet expands.

Limitations and Future Work

  • Closed-form Constants: While the authors provide an integral representation for the constant $d(m)$, they do not provide a simple closed-form expression for all $m$.
  • Order of Markov Chain: The paper focuses on first-order Markov chains. While they note that extending this to $r$-order chains is a "simple exercise" (replacing $m$ with $m^r$), the explicit details for higher orders are not explored.
  • Proof of Rationality: The observation that the constants for small $m$ are rational remains an empirical observation from their MAPLE calculations rather than a proven theorem.

Summary updated

BibTeX
@inproceedings{jacquet2010counting,
  author = {Philippe Jacquet and Charles Knessl and Wojciech Szpankowski},
  title = {{Counting Markov Types}},
  booktitle = {Discrete},
  year = {2010},
  doi = {10.46298/dmtcs.2768},
}

Loading related content...

Figure