필터 지우기
필터 지우기

How to get πx (steady-state probabilities of x?in order to plot these equations in MATLAB?

조회 수: 1 (최근 30일)
Sir,
I want to plot these attached equations using MATLAB. For plotting these equations, there are three variables. Out of which, I have values of two variables with me. So, I am looking for the value of the third variable 'πx'. How to get the values of πx (also called steady state probability of x). I have attached the screenshot of equations. Actually, if I get the values of πx, I would easily be able to plot the equations in MATLAB. I am unable to get the steady-state probabilities of x.
Please help
I have also attached the values of x along with these equations.
Regards
Surabhi
Whatever, the case is either simulation or plotting. I am confused on how to solve to get steady-state probabilities and hence plot the equations.
  댓글 수: 11
Walter Roberson
Walter Roberson 2017년 10월 18일
You would create a matrix of the initial transition probabilities, and you would manipulate it in the way shown in order to arrive at the steady-state probabilities.
The transition matrix would be the usual: entry (J,K) says "Given that you are already in state J, what is the probability of transitioning to state K?". If you have algorithms that allow you to fill out that initial table, then you should use the algorithms.
surabhi sachdeva
surabhi sachdeva 2017년 10월 19일
편집: surabhi sachdeva 2017년 10월 19일
Sir, I have state transition rules available to me, which I am not able to understand how to apply to the states(J, K)
Could you please give me a hint on how to apply this kind of rules to (J, K)
I have attached rules, kindly suggest something regarding how these rules to be applied.
Here (i,j,k,l,m,n) represents a state (J,K)
Each state is represented by (i,j,k,l,m,n) e.g. 101101, 101110,..... and many more.
As, if we say for all i<Np and there is a transition from (i,j,k,l,m,n) to (i+1, j, k,l,m,n) then it should be displayed 'λp'. How is this possible?
What code is to be written in MATLAB that automatically checks for the same type of transitions?
Kindly suggest

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

채택된 답변

Walter Roberson
Walter Roberson 2017년 10월 19일
Constructing the state tables is easy if you use the 12D array that I said you should use. I already showed you how it could be done; it is frustrating that you did not carry through.
Np = 2; %last state number for each entry, states are numbered from 0 to Np
%fill in the appropriate values for these probabilities. rand() is used to have _some_ value
lam_p = rand(); %lambda subscript p
gam_p = rand(); %gamma subscript p
gam_f = rand(); %gamma subscript f
%start building the table
Index = @(state_number) 1+state_number; %helper to allow us to use state numbers instead of indices
Ns = Index(Np); %number of states
TT = zeros( Ns * ones(1, 12) ); %transition table
case1_src_i = 0:Np-1;
TT(Index(case1_src_i), :, :, :, :, :, Index(case1_src_i+1), :, :, :, :, :) = lam_p;
case2_src_i = 1:Np;
case2_src_j = 0:Np-1;
case2_src_k = 1:Np;
TT(Index(case2_src_i), Index(case2_src_j), Index(case2_src_k), :, :, :, Index(case2_src_i-1), Index(case2_src_j+1), Index(case2_src_k-1), :, :, :) = gam_p;
case3_src_n = 0:Np-1;
case3a_src_j = 1:Np;
case3b_src_k = 1:Np;
case3c_src_l = 1:Np;
TT(:, Index(case3a_src_j), :, :, :, Index(case3_src_n), :, Index(case3a_src_j-1), :, :, :, Index(case3_src_n+1)) = gam_f;
TT(:, :, Index(case3b_src_k), :, :, Index(case3_src_n), :, :, Index(case3b_src_k-1), :, :, Index(case3_src_n+1)) = gam_f;
TT(:, :, :, Index(case3c_src_l), :, Index(case3_src_n), :, :, :, Index(case3c_src_l-1), :, Index(case3_src_n+1)) = gam_f;
T2 = reshape(TT, Ns^6, Ns^6); %2D transition table
Here, T2 is the 729 x 729 array that you are expecting -- the one that you would proceed to use the numeric steady-state calculations on.
  댓글 수: 23
surabhi sachdeva
surabhi sachdeva 2017년 11월 1일
Sir,
I need your help. Request you to kindly help me out solving the problem.
Regards
Surabhi
surabhi sachdeva
surabhi sachdeva 2017년 11월 4일
@Walter Roberson sir,
You have not responded. Request you to please help me.
Regards
Surabhi

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by