Simulation and Modeling ยท Unit 4 ยท 2 hrs
Markov Chains
Exam-focused notes for Markov Chains (Simulation and Modeling, CSC328): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.
Markov Chains in short
Many of the arrival and service processes used in simulation, and the queuing formulas of the previous chapter, rest on a single underlying idea: that a system's future depends only on its present state, not on the path it took to get there. That idea is formalized as a Markov chain.
What this unit covers
- Features
- Process Examples
- Applications
Features
2082 ยท 5 marks
Define Markov Chain. Explain with suitable example. [5]
Show solved answerHide answer
Markov Chain: Definition and Explanation
Definition
A Markov Chain is a sequence of random variables Xโ, Xโ, Xโ, ... with the Markov property, namely that, given the present state, the future and past states are independent.
Formally, this can be written as:
P(Xโโโ = xโโโ | Xโ = xโ, Xโ = xโ, ..., Xโ = xโ) = P(Xโโโ = xโโโ | Xโ = xโ)
This property is called the "memoryless" property - the next state depends only on the current state, not on the sequence of states that preceded it.
Key Concepts
| Term | Meaning |
|---|---|
| State | A possible condition the system can be in |
| Transition | Movement from one state to another |
| Transition Probability | Probability of moving from state i to state j |
| Transition Matrix | Matrix containing all transition probabilities |
Example: Weather Prediction
Consider a simple weather model with two states:
- State 1: Sunny (S)
- State 2: Rainy (R)
Transition Probabilities
Suppose:
- If today is Sunny, probability of Sunny tomorrow = 0.8, Rainy = 0.2
- If today is Rainy, probability of Sunny tomorrow = 0.4, Rainy = 0.6
Transition Matrix
$$P = \begin{pmatrix} 0.8 & 0.2 \ 0.4 & 0.6 \end{pmatrix}$$
Where rows represent the current state and columns represent the next state.
State Diagram
0.8 0.6
[Sunny] โโ 0.2 โโ [Rainy]
โ โ
โโโโ 0.4 โโโโโโโโโโ
Applying the Markov Property
If today is Sunny, the probability that it will be Rainy after 2 days is:
- Sunny โ Sunny โ Rainy = 0.8 ร 0.2 = 0.16
- Sunny โ Rainy โ Rainy = 0.2 ร 0.6 = 0.12
- Total = 0.16 + 0.12 = 0.28
This calculation depends only on today's state (Sunny), not on what the weather was yesterday. This demonstrates the Markov property.
Application in Queuing Systems
Markov Chains are widely used in queuing models. For example, a single-server queue can be modeled as a continuous time Markov chain with transition matrix:
$$Q = \begin{pmatrix} -\lambda & \lambda \ \mu & -\mu \end{pmatrix}$$
The system is stable only if the utilization factor P = ฮป/ฮผ < 1, meaning the arrival rate must be less than the service rate.
Summary
- Markov Chain models systems that transition between states over time.
- The key assumption is that the future depends only on the present, not the past.
- It is widely used in simulation, queuing theory, weather forecasting, and network modeling.
2081 ยท 5 marks
Explain markov chain with suitable example. What are diffrent application areas of markov chain? [5]
Process Examples
2076 ยท 5 marks
Explain Markov's chain with a suitable example. [5]
Make Unit 4 stick
Practice CSC328 with flashcards & quizzes