Skip to content

Instantly share code, notes, and snippets.

@cindyangelira
Created January 23, 2023 14:43
Show Gist options
  • Save cindyangelira/839428287f109cca9cb293d6f3c977f6 to your computer and use it in GitHub Desktop.
Save cindyangelira/839428287f109cca9cb293d6f3c977f6 to your computer and use it in GitHub Desktop.
Markov Chain Steady State
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