Markov chain estimation. Consider a Markov chain with n states, and transition probability matrix P∈Rn×n defined as
Pij=prob(y(t+1)=i∣y(t)=j).
The transition probabilities must satisfy Pij≥0 and ∑i=1nPij=1, j=1,…,n. We consider the problem of estimating the transition probabilities, given an observed sample sequence y(1)=k1,y(2)=k2,…,y(N)=kn.
(a) Show that if there are no other prior constraints on Pij, then the ML estimates are the empirical transition frequencies: P^ij is the ratio of the number of times the state transitioned from j into i, divided by the number of times it was j, in the observed sample.
(b) Suppose that an equilibrium distribution p of the Markov chain is known, i.e., a vector q∈R+n satisfying 1Tq=1 and Pq=q. Show that the problem of computing the ML estimate of P, given the observed sequence and knowledge of q, can be expressed as a convex optimization problem.