Statistics IIUnit 516 min read
Stochastic Processes & Markov Chains: Definitions, Models & Applications
Unit 5 of Statistics II covers stochastic processes (discrete/continuous time, classifications), Markov chains (definitions, transition matrices, steady-state analysis), and applications in real-world systems like queueing, weather prediction, and Markov decision processes.
TAKEAWAYS:
- Stochastic processes model random phenomena over time/space, classified by time (discrete/continuous) and state space (discrete/continuous).
- Markov chains are memoryless stochastic processes where future states depend only on the current state (Markov property).
- Transition matrices encode state probabilities and determine long-term behavior (steady-state distributions).
- Steady-state analysis finds equilibrium probabilities using balance equations and matrix methods.
- Applications include queueing theory, weather forecasting, and Markov decision processes (MDPs).
- Exam focus: Definitions, transition matrices, steady-state calculations, and real-world interpretations.
1. Stochastic Processes: Definitions and Classifications
1.1 Definition
A stochastic process is a collection of random variables , indexed by time (where can be discrete or continuous), representing the evolution of a system over time or space. Examples:
- Stock prices over days (discrete time).
- Temperature readings at fixed locations (continuous time).
1.2 Key Components
- Index set (): Time or space parameter (e.g., for discrete time).
- State space (): Possible values of (e.g., for binary outcomes like "sunny/rainy").
- Probability laws: Joint distributions .
1.3 Classification of Stochastic Processes
| Criteria | Types | Example |
|---|---|---|
| Time parameter | Discrete-time (e.g., ) | Daily stock prices. |
| Continuous-time (e.g., ) | Brownian motion (Wiener process). | |
| State space | Discrete-state (e.g., finite/mountable states) | Markov chains (e.g., weather states). |
| Continuous-state (e.g., ) | Gaussian processes. | |
| Dependence | Independent increments (e.g., Poisson process). | Arrivals in a queue. |
| Markov property (future depends only on present). | Markov chains. |
1.4 Example: Weather Process
Problem: In a town, each day is either sunny (S) or rainy (R). Given:
- (sunny day followed by sunny day with 80% probability).
- (rainy day followed by sunny day with 40% probability).
Solution: This is a discrete-time, discrete-state stochastic process. The transition probabilities define the system’s behavior:
- .
- .
2. Markov Chains: Definitions and Properties
2.1 Definition
A Markov chain is a stochastic process with the Markov property:
The future state depends only on the current state, not on the sequence of events that preceded it. Mathematically:
2.2 Characteristics of Markov Chains
- Memoryless property: Future states are conditionally independent of past states given the present.
- Homogeneity: Transition probabilities do not change over time (stationary).
- Finite/mountable state space: Often assumed for tractability (though not required).
- Transition probabilities: Defined by a transition matrix , where:
- Initial distribution: , where .
2.3 Transition Matrix
For the weather example, the transition matrix is: Properties of :
- Each row sums to 1 (probability conservation).
- for all .
2.4 Example: Two-State Markov Chain
Problem: A factory has two states:
- Working (W): Produces 100 units/day.
- Broken (B): Produces 0 units/day. Given:
- (90% chance to stay working).
- (30% chance to repair and switch to working).
Transition Matrix:
Question: What is the probability the factory is working on day 3, given it was working on day 0? Solution: Use the Chapman-Kolmogorov equations: For : Assuming (starts working): Thus, .
3. Steady-State Analysis
3.1 Definition
A Markov chain reaches steady-state (or equilibrium) when the state probabilities satisfy: and .
3.2 Balance Equations
For each state : This ensures flow conservation: probability entering state equals probability leaving it.
3.3 Example: Weather Process (Continued)
Find the steady-state probabilities for the weather Markov chain. Solution: Let . The balance equations are: With , solve: This is invalid, so we use the matrix method: Solving: With : Interpretation: In the long run, the town is sunny 66.7% of the time.
3.4 General Solution for Steady-State
For an irreducible Markov chain (all states communicate), the steady-state distribution exists and is unique. Solve: with .
Method:
- Write balance equations (drop one due to normalization).
- Solve the system of linear equations.
4. Classification of States and Chains
4.1 State Classification
| Term | Definition | Example |
|---|---|---|
| Communicating | States and can reach each other (). | Weather states (S and R). |
| Irreducible | All states communicate (one class). | Weather Markov chain. |
| Recurrent | Return probability to state is 1. | States in a closed loop. |
| Transient | Return probability < 1 (eventually leave). | Absorbing states in gambler’s ruin. |
| Absorbing | (once entered, stay forever). | Death in a population model. |
4.2 Types of Markov Chains
- Finite Markov Chains: Finite state space (e.g., weather, factory).
- Countable Markov Chains: Countably infinite states (e.g., queue lengths).
- Continuous-Time Markov Chains (CTMC): Time is continuous (e.g., exponential waiting times).
- Defined by transition rates instead of probabilities.
- Example: Poisson process (arrivals in a queue).
5. Applications of Markov Chains
5.1 Real-World Examples
| Application | Description | Markov Model |
|---|---|---|
| Queueing Theory | Modeling customer arrivals and service times. | M/M/1 queue (Markovian arrivals/services). |
| Weather Prediction | Forecasting sunny/rainy days. | Two-state Markov chain. |
| Finance | Stock price movements (discrete-time models). | Geometric Brownian Motion (continuous-time). |
| Biological Systems | DNA sequence analysis, population dynamics. | Hidden Markov Models (HMMs). |
| Markov Decision Processes (MDPs) | Optimal decision-making under uncertainty. | Reinforcement learning (e.g., robot navigation). |
5.2 Example: Queueing System (M/M/1)
Assumptions:
- Arrivals: Poisson process (rate ).
- Service times: Exponential distribution (rate ). Transition Rates: Steady-State Probabilities:
6. Comparison: Stochastic Processes vs. Markov Chains
| Feature | Stochastic Process | Markov Chain |
|---|---|---|
| Memory Property | May depend on entire history. | Future depends only on current state. |
| Time Parameter | Discrete or continuous. | Typically discrete (can be continuous). |
| State Space | Discrete or continuous. | Often discrete (finite/countable). |
| Applications | Broad (e.g., Brownian motion, Poisson process). | Narrower (e.g., weather, queues). |
| Key Tool | Probability distributions over time. | Transition matrices and steady-state. |
7. Common Pitfalls and Exam Tips
7.1 Common Mistakes
- Ignoring the Markov Property: Assuming dependence on past states when only the current state matters.
- ❌ Incorrect: .
- ✅ Correct: .
- Misapplying Transition Matrices: Forgetting rows sum to 1 or mixing up (probability from to ).
- Steady-State Errors: Not normalizing probabilities () or solving balance equations incorrectly.
- Confusing Discrete/Continuous Time: Applying Markov chain methods to continuous-time processes without using rates.
7.2 Exam Strategies
Definitions:
- Stochastic process: "A collection of random variables indexed by time."
- Markov chain: "A stochastic process with the Markov property."
- Steady-state: "Probabilities that do not change over time ()."
Transition Matrices:
- Always verify rows sum to 1.
- For -step transitions, compute (use matrix multiplication or software).
Steady-State Calculations:
- Write balance equations: .
- Solve with .
- For 2-state chains, use the shortcut:
Real-World Interpretation:
- Link abstract problems to scenarios (e.g., weather, queues).
- Explain steady-state probabilities in context (e.g., "long-term fraction of sunny days").
Short Notes (for past exam questions):
- Stochastic process: "A mathematical model describing random phenomena evolving over time/space."
- Markov chain: "A stochastic process where future states depend only on the current state (memoryless)."
- Applications: Queueing, finance, weather, biology.
7.3 Worked Example for Exams
Question: A Markov chain has transition matrix: Find the steady-state distribution. Solution:
- Write balance equations:
- Simplify:
- Normalize: Answer: .
8. Summary Table for Quick Revision
| Topic | Key Points | Exam Focus |
|---|---|---|
| Stochastic Process | Random variables indexed by time/space; classified by time/state space. | Definition, classification. |
| Markov Chain | Memoryless property; transition matrix . | Definition, , Markov property. |
| Transition Matrix | ; rows sum to 1. | Construction, -step transitions. |
| Steady-State | ; solve balance equations. | Calculations, interpretation. |
| Applications | Queues, weather, finance, biology. | Link to real-world scenarios. |
| State Classification | Communicating, irreducible, recurrent, transient, absorbing. | Identify in problems. |
9. Practice Problems
- Define: What is a stochastic process? Classify the following:
- Stock prices at closing time each day.
- Temperature at a fixed location every hour.
- Markov Chain: For the transition matrix: find and interpret .
- Steady-State: A Markov chain has states {A, B} with:
- , ,
- , . Find the long-run probability of being in state A.
- Application: Model a simple queueing system where:
- Arrivals: Poisson with rate customers/hour.
- Service: Exponential with rate customers/hour. Write the transition rate matrix for states .
10. References for Further Study
- Books:
- Ross, S. M. (2014). Stochastic Processes (3rd ed.). Wiley.
- Norris, J. R. (1998). Markov Chains. Cambridge University Press.
- Online Resources:
- Khan Academy: Markov Chains.
- MIT OpenCourseWare: Probabilistic Systems Analysis.
- Software:
- Python:
numpyfor matrix operations,scipy.statsfor distributions. - R:
markovchainpackage for Markov chain analysis.
- Python:
Exam Tip
- For definitions: Use precise language. For example:
- ❌ "Markov chain is a process where future depends on past."
- ✅ "A Markov chain is a stochastic process with the Markov property: ."
- For calculations:
- Show all steps in steady-state problems (balance equations, normalization).
- For transition matrices, explicitly state the interpretation of entries (e.g., " means a 40% chance to move from state 1 to state 2").
- For applications:
- Always relate abstract problems to real-world scenarios (e.g., "This models a factory that breaks down and repairs itself").
- Short notes:
- Focus on key differences (e.g., parametric vs. non-parametric tests in other units) or required assumptions (e.g., linearity, independence in regression). For this unit, prioritize:
- Stochastic process vs. Markov chain.
- Transition matrix vs. steady-state.
- Discrete vs. continuous time/state.
- Focus on key differences (e.g., parametric vs. non-parametric tests in other units) or required assumptions (e.g., linearity, independence in regression). For this unit, prioritize:
Based on the TU BSc CSIT syllabus for Statistics II (STA215), unit 5.
Discussion
Loading…