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

Independence Test #109

Open
cassie95 opened this issue Jan 31, 2017 · 1 comment
Open

Independence Test #109

cassie95 opened this issue Jan 31, 2017 · 1 comment

Comments

@cassie95
Copy link

cassie95 commented Jan 31, 2017

Hello,

In the Section 5.4 of your package "markovchain", there are four statistical tests described: assessing the Markov property, the order, the stationary of a Markov chain sequence and the divergence test. I wonder is there any test for independence? In other words, how can I test whether Pr( X(t +1) = i | X(t) = j ) = Pr( X(t+1) = i ) is true. (Apologize for my poor format, it should be the lower case rather than brackets)

Many thanks

@dffuller
Copy link

Well, Markov chains are generally dependent upon the previous state. Otherwise, we could simply use a row vector, rather than a matrix, to describe them. To test for independence, you would simply have to verify that P[X(t+1)=i]=P[X(t+1)=j] for all i,j. In other words, for each column of the probability transformation matrix, the values in each row should be identical.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants