2082 5

CSC328 · 2082 · 5 marks

Define Markov Chain. Explain with suitable example.

Define Markov Chain. Explain with suitable example. [5]

Simulation and ModelingChapter 4: Markov ChainsFeatures

Quick answer

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.

Markov Chain: Definition and Explanation

Definition

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

TermMeaning
StateA possible condition the system can be in
TransitionMovement from one state to another
Transition ProbabilityProbability of moving from state i to state j
Transition MatrixMatrix 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.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.