Introduction
Let’s say we observe a realization of X0,X1,…,XN from a \mboxMarkov(λ,P). How do we estimate the transition matrix P? Well lets define some things:
Likelihood
Definition (Log-likelihood)
Given N+1 RVs X0,…,XN from \mboxMarkov(λ,P) the log-likelihood L is defined as log(L)=log(λX0)+i,j∈S∑(k=0∑N−11{Xk=i,Xk+1=j})log(pij)
Definition (Maxmal likelihood estimator)
For i,j∈S the maximal likelihood estimator for P is P^ij=k=0∑N−11{Xk=i}k=0∑N−11{Xk=i,Xk+1=j}
Lemma
Assume P is irreducible and positive recurrent. Then for any i,j∈S P(n→∞limP^ij=Pij)=1