Convex Optimization · Problem 7.5

Geometric problems — Boyd & Vandenberghe

Mathematics — Optimization · markov-chain-estimation

Problem

Markov chain estimation. Consider a Markov chain with nn states, and transition probability matrix P∈Rn×nP \in \mathbf{R}^{n \times n} defined as Pij=prob(y(t+1)=i∣y(t)=j).P_{ij} = \mathbf{prob}(y(t+1) = i \mid y(t) = j). The transition probabilities must satisfy Pij≥0P_{ij} \geq 0 and ∑i=1nPij=1\sum_{i=1}^n P_{ij} = 1, j=1,…,nj = 1, \ldots, n. We consider the problem of estimating the transition probabilities, given an observed sample sequence y(1)=k1,y(2)=k2,…,y(N)=kny(1) = k_1, y(2) = k_2, \ldots, y(N) = k_n. (a) Show that if there are no other prior constraints on PijP_{ij}, then the ML estimates are the empirical transition frequencies: P^ij\hat{P}_{ij} is the ratio of the number of times the state transitioned from jj into ii, divided by the number of times it was jj, in the observed sample. (b) Suppose that an equilibrium distribution pp of the Markov chain is known, i.e., a vector q∈R+nq \in \mathbf{R}^n_+ satisfying 1Tq=1\mathbf{1}^T q = 1 and Pq=qPq = q. Show that the problem of computing the ML estimate of PP, given the observed sequence and knowledge of qq, can be expressed as a convex optimization problem.

Browse the problem library