Solved – Are two empirically estimated Markov chains statistically different

hypothesis testingmarkov-processstatistical significance

I am constructing Markov chains (with 100 to 200 states) and inferring transition probabilities empirically by simply counting how many times I saw each transition in my raw data (about 20k to 60k transitions per data set). Note that the modest number of transitions and the decent number of state results in average number of measurements per edge being between 1 and 12, thus the errors on most of the inferred transition probabilities are decently high.

From each data set, I construct a Markov chain. Given two Markov chains, I want a statistical test that will tell me if they are the same or not (both trying to approximate the same unknown 'true' Markov chain, or two different ones). Any advice? Any exiting code for this (preferably in Matlab, but R is fine)?

Best Answer

Since the two chains are assumed to be comparable, they should have the same state space. That leaves the transition matrices, comparing which can be done by a divergence-based hypothesis test, as explained on pg. 139 of Statistical inference based on divergence measures By Leandro Pardo Llorente

Related Question