For each of the following transition matrices of Markov chai
For each of the following transition matrices of Markov chains, compute the 25th power of the matrix using MATLAB
For each of the following transition matrices of Markov chains, compute the 25th power of the matrix using MATLAB (0.1 0.9 0.9 0.1) (0.5 0.01 0.5 0.99) (0.5 0.25 0 0.5 0.5 0.5 0 0.25 0.5) (1 0.1 0 0 0 0.8 0.1 0 0 0.1 0.8 0 0 0 0.1 1)Solution
% MATLAB script starts here
clc;
clear all;
A = [0.1 0.9; 0.9 0.1];
disp(\'A power 25 is \');
disp(A^25);
B = [ 0.5 0.5; 0.01 0.99];
disp(\'B power 25 is \');
disp(B^25);
C = [ 0.5 0.5 0; 0.25 0.5 0.25 ; 0 0.5 0.5];
disp(\'C power 25 is \');
disp(C^25);
D = [ 1 0 0 0 ; 0.1 0.8 0.1 0 ; 0 0.1 0.8 0.1 ; 0 0 0 1];
disp(\'D power 25 is \');
disp(D^25);
% MATLAB script ends here
A power 25 is
0.4981 0.5019
0.5019 0.4981
B power 25 is
0.0196 0.9804
0.0196 0.9804
C power 25 is
0.2500 0.5000 0.2500
0.2500 0.5000 0.2500
0.2500 0.5000 0.2500
D power 25 is
1.0000 0 0 0
0.6307 0.0360 0.0358 0.2975
0.2975 0.0358 0.0360 0.6307
0 0 0 1.0000

