Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computing Markov Stationary Distributions in mc_tools.py #19

Closed
cc7768 opened this issue Jul 15, 2014 · 1 comment
Closed

Computing Markov Stationary Distributions in mc_tools.py #19

cc7768 opened this issue Jul 15, 2014 · 1 comment

Comments

@cc7768
Copy link
Member

cc7768 commented Jul 15, 2014

There can be multiple stationary distributions (different absorbing states for example) in a discrete markov transition matrix. The current code in mc_tools/mc_compute_stationary.py cannot handle this example. We can solve this using eigenvalues instead and this possibly could solve #18 as well. Creating a separate branch and will update on progress.

import numpy as np
import quantecon as qe

P = np.array([[1, 0], [0, 1]])

qe.mc_tools.mc_compute_stationary(P)

>>> LinAlgError: Singular matrix
@cc7768
Copy link
Member Author

cc7768 commented Aug 8, 2014

Fixed with #43

@cc7768 cc7768 closed this as completed Aug 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant