Let pi_S, pi_C, and pi_R represent the stationary probabilities for Sun, Cloudy, and Rain. Based on the transition matrix, they must satisfy the stationarity condition and sum to 1:
0.6(pi_S) + 0.4(pi_C) + 0.1(pi_R) = pi_S
0.3(pi_S) + 0.2(pi_C) + 0.4(pi_R) = pi_C
0.1(pi_S) + 0.4(pi_C) + 0.5(pi_R) = pi_R
pi_S + pi_C + pi_R = 1
By substituting pi_R = 1 - pi_S - pi_C into the first two equations and solving the system, you get the exact fractions:
pi_S = 8/21
pi_C = 19/63
pi_R = 20/63
Final Distribution Vector: [8/21, 19/63, 20/63]