Created
January 23, 2023 14:43
-
-
Save cindyangelira/839428287f109cca9cb293d6f3c977f6 to your computer and use it in GitHub Desktop.
Markov Chain Steady State
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steps = 10**6 | |
transition = model_try.prob_matrix | |
transition_n = transition | |
for i in range(steps): | |
transition_n=np.matmul(transition_n,transition) | |
print("pi = ",transition_n[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment