鑑於以下馬爾可夫矩陣: import numpy, scipy.linalg
A = numpy.array([[0.9, 0.1],[0.15, 0.85]])
平穩概率存在且等於[.6, .4]。這是很容易通過採取大功率矩陣的驗證: B = A.copy()
for _ in xrange(10): B = numpy.dot(B,B)
這裏B[0] = [0.6, 0.4]。到現
的定義可能是錯誤的生成馬爾可夫模型,所以請糾正我,如果是這樣的話。我需要生成從以下類型的矩陣馬爾可夫模型: four two "e"
four two "e"
three three "e"
one three "e"
zero six one zero "e"
two two "e"
two two "e"
two two "e"
two two "e