Two state markov chain model

In summary, you want to generate a sequence of states either 1 or 0. You need the state transition probability matrix and state probability vector. You will also need a state frame length of 1 meter. You can generate the sequence by using a state sequence generator based on the first order markov chain. Then use the generator and realize a markov chain with 1000000 states. Finally, generate the state duration statistic of the measured state sequence and the resimulated state sequence for the "good" and "bad" state.
  • #1
lemontree45
4
0
I have a state transition probability matrix and a state probability vector

[0.9 0.1; 0.1 0.9] & [0.4 0.6] respectively.

Now, I want to generate the states of 1 and 0 according to this. say 100 state sequence.

Any sort of help would be appreciated.

Thanks.
 
Physics news on Phys.org
  • #2
Hi lemontree45! :smile:

What exactly do you want?? Do you want to know the probability of the states in the 100th step? That would be

[tex]\left(\begin{array}{cc}0.9 & 0.1\\ 0.1 & 0.9\end{array} \right)^{100}\left(\begin{array}{cc}0.4\\ 0.6\end{array} \right)[/tex]
 
  • #3
Hi,
Thanks for the response.

Actually, I want to generate a sequence of states either 1 or 0. like 1011111000010000...(100 states) using this state transition probability matrix.

Any idea?
 
  • #4
You're going to have to give some more information about why you need this kind of thing.
Any sequence of 0's and 1's is possible from these transistion matrix, even 1111111...
or 0000000...

Or do you want to make a (Monte-Carlo) simulation of this Markov chain?? To do this:
  • Take a number at random from 1-10, if you chose 1-4 you start in state 0 otherwise you start in state 1.
  • Take a number at random from 1-10. If you chose 1 then you change your state, if you chose otherwise then you keep your state.
  • Do the previous a 100 times.


More information from you would be very helpful! :smile:
 
  • #5
This is what I wanted to find out.

given a state sequence with states '1' and '2'. and the #2 is what I am trying to solve.

1. Derive from this sequence the parameters for a first order markov chain: the state transition probability matrix and the state probability vector. The state frame length should be 1m.

2. Implement a state sequence generator based on the first order markov chain, using the parameters from 1. (it is a realization of a 1st order markov chain using the state transition probability matrix)

3. Use the generator and realize a markov chain with 1000000 states.

4. Generate the state duration statistic of the measured state sequence and the resimulated state sequence for the "good" and "bad" state. (x-axis: state duration in meter; y-axis: probability of the state duration)

5. Generate the theoretical state duration probability function of the 1st-order Markov chain for comparison.
 
  • #6
That's exactly the Monte-Carlo simulation I described above. Use a computer program to simulate it.
 
  • #7
Thanks :)
 

1. What is a two state Markov chain model?

A two state Markov chain model is a mathematical model used to describe a system with only two possible states. It is a type of stochastic process in which the probability of moving from one state to another depends only on the current state and not on any previous states. It is commonly used in fields such as economics, biology, and engineering to model systems that can be in one of two distinct states.

2. How is a two state Markov chain model represented?

A two state Markov chain model is typically represented as a graph, with each state represented as a node and the probabilities of transitioning between states represented as edges. The probabilities of transitioning from one state to the other must add up to 1, as the system must be in one of the two states at any given time.

3. What are the assumptions of a two state Markov chain model?

The two main assumptions of a two state Markov chain model are that the system only has two states and that the probability of transitioning from one state to the other remains constant over time. This means that the model assumes the system is in a state of equilibrium and that the probabilities do not change over time.

4. How is a two state Markov chain model useful in scientific research?

A two state Markov chain model can be useful in scientific research as it allows for the analysis and prediction of systems with only two possible states. It can be used to understand and model the behavior of various systems, such as the spread of diseases, stock market trends, and decision-making processes.

5. What are some limitations of a two state Markov chain model?

One limitation of a two state Markov chain model is that it can only be applied to systems with two possible states. It also assumes that the probabilities of transitioning between states remain constant over time, which may not always be the case. Additionally, the model may not accurately represent complex systems with multiple factors influencing the state transitions.

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
2K
  • Precalculus Mathematics Homework Help
Replies
24
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
967
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
1K
Back
Top