Markov chain with two states using MATLAB

I want to model the disturbances of the movements of the human body, with a discrete time MARKOV chain with two states (On MATLAB): the active state (ON) and the inactive state (OFF) (I am interested in 'ON'). My problem is that I do not have the transition probabilities, but I have the probabilities of steady state of the system.
Thank you for helping me.

댓글 수: 1

James Tursa
James Tursa 2017년 4월 13일
You are trying to construct a 2x2 transition matrix from only the steady state probabilities?

댓글을 달려면 로그인하십시오.

 채택된 답변

James Tursa
James Tursa 2017년 4월 13일
편집: James Tursa 2017년 4월 13일

0 개 추천

Assuming you want to recover the original 2x2 transition matrix from only the steady state probabilities, this is not uniquely possible. However, if you simply want to generate one of the possibilities, here is a method (assuming first state is ON and second state is OFF):
q = your steady state ON probability (a given input between 0 < q < 1)
% Generate one of the many possibilities
if( q <= 0.5 )
p21 = rand*q/(1-q);
p12 = ((1-q)/q)*p21;
else
p12 = rand*(1-q)/q;
p21 = (q/(1-q))*p12;
end
P = [ 1-p12, p12; p21, 1-p21 ]; % A Markov 2x2 transition matrix w/desired steady state

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logistics and Supply Chain에 대해 자세히 알아보기

제품

태그

질문:

2017년 4월 13일

댓글:

2017년 4월 13일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by