VOOZH about

URL: https://www.coursera.org/learn/discrete-time-markov-chains-monte-carlo-methods

⇱ Discrete-Time Markov Chains and Monte Carlo Methods | Coursera


Discrete-Time Markov Chains and Monte Carlo Methods

Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.

Discrete-Time Markov Chains and Monte Carlo Methods

2,508 already enrolled

Included with

β€’

Learn more

Ask Coursera

Gain insight into a topic and learn the fundamentals.
4.5

15 reviews

Intermediate level

Recommended experience

Flexible schedule
3 weeks at 10 hours a week
Learn at your own pace
Build toward a degree

Gain insight into a topic and learn the fundamentals.
4.5

15 reviews

Intermediate level

Recommended experience

Flexible schedule
3 weeks at 10 hours a week
Learn at your own pace
Build toward a degree

What you'll learn

  • Analyze long-term behavior of Markov processes for the purposes of both prediction and understanding equilibrium in dynamic stochastic systems

  • Apply Markov decision processes to solve problems involving uncertainty and sequential decision-making

  • Simulate data from complex probability distributions using Markov chain Monte Carlo algorithms

Details to know

Shareable certificate

Add to your LinkedIn profile

Assessments

16 assignments

Taught in English

Build your subject-matter expertise

This course is part of the Foundations of Probability and Statistics Specialization
When you enroll in this course, you'll also be enrolled in this Specialization.
  • Learn new concepts from industry experts
  • Gain a foundational understanding of a subject or tool
  • Develop job-relevant skills with hands-on projects
  • Earn a shareable career certificate

There are 6 modules in this course

A Markov chain can be used to model the evolution of a sequence of random events where probabilities for each depend solely on the previous event. Once a state in the sequence is observed, previous values are no longer relevant for the prediction of future values. Markov chains have many applications for modeling real-world phenomena in a myriad of disciplines including physics, biology, chemistry, queueing, and information theory. More recently, they are being recognized as important tools in the world of artificial intelligence (AI) where algorithms are designed to make intelligent decisions based on context and without human input. Markov chains can be particularly useful for natural language processing and generative AI algorithms where the respective goals are to make predictions and to create new data in the form or, for example, new text or images. In this course, we will explore examples of both. While generative AI models are generally far more complex than Markov chains, the study of the latter provides an important foundation for the former. Additionally, Markov chains provide the basis for a powerful class of so-called Markov chain Monte Carlo (MCMC) algorithms that can be used to sample values from complex probability distributions used in AI and beyond.

Outside of certain AI-focused examples, this course is first and foremost a mathematical introduction to Markov chains. It is assumed that the learner has already had at least one course in basic probability. This course will include a review of conditional probability and will cover basic definitions for stochastic processes and Markov chains, classification and communication of states, absorbing states, ergodicity, stationary and limiting distributions, rates of convergence, first hitting times, periodicity, first-step analyses, mean pattern times, and decision processes. This course will also include basic stochastic simulation concepts and an introduction to MCMC algorithms including the Metropolis-Hastings algorithm and the Gibbs Sampler.

Welcome to the course! This module contains logistical information to get you started!

What's included

8 readings4 ungraded labs

8 readingsβ€’Total 49 minutes
  • Course Updates and Accessibility Supportβ€’1 minute
  • Earn Academic Credit for Your Work!β€’10 minutes
  • Course Supportβ€’8 minutes
  • Assessment Expectationsβ€’5 minutes
  • AI Citation and Acknowledgementβ€’10 minutes
  • Course Resources and Readingβ€’4 minutes
  • Coding in Python or R?β€’8 minutes
  • What is a "Calculator" Notebook?β€’3 minutes
4 ungraded labsβ€’Total 62 minutes
  • Introduction to Jupyter Notebooks and Rβ€’30 minutes
  • Introduction to Jupyter Notebooks and Pythonβ€’30 minutes
  • Empty R Calculator Notebookβ€’1 minute
  • Empty Python Calculator Notebookβ€’1 minute

In this module we will review definitions and basic computations of conditional probabilities. We will then define a Markov chain and its associated transition probability matrix and learn how to do many basic calculations. We will then tackle more advanced calculations involving absorbing states and techniques for putting a longer history into a Markov framework!

What's included

12 videos6 assignments2 programming assignments

12 videosβ€’Total 138 minutes
  • Introduction to Stochastic Processesβ€’7 minutes
  • Conditional Probability for Events and Random Variablesβ€’14 minutes
  • "Unraveling" Conditional Probabilityβ€’12 minutes
  • Definition of a Markov Chainβ€’13 minutes
  • Missing Time Steps in a Markov Chainβ€’13 minutes
  • Conditional Independenceβ€’9 minutes
  • Time Homogeneity and the Transition Probability Matrixβ€’9 minutes
  • Basic Markov Chain Calculationsβ€’11 minutes
  • The Chapman-Kolmogorov Equationsβ€’15 minutes
  • Absorbing States, Part 1β€’12 minutes
  • Absorbing States, Part 2β€’15 minutes
  • A Longer History in a Markov Frameworkβ€’8 minutes
6 assignmentsβ€’Total 74 minutes
  • AI Policy Quizβ€’5 minutes
  • Basic Markov Chain Calculations Iβ€’25 minutes
  • Basic Markov Chain Calculations IIβ€’30 minutes
  • Quick Check-Inβ€’3 minutes
  • Quick Check-Inβ€’5 minutes
  • Quick Check-Inβ€’6 minutes
2 programming assignmentsβ€’Total 180 minutes
  • Introduction to Markov Chains (R)β€’90 minutes
  • Introduction to Markov Chains (Python)β€’90 minutes

What happens if you run a Markov chain out for a "very long time"? In many cases, it turns out that the chain will settle into a sort of "equilibrium" or "limiting distribution" where you will find it in various states with various fixed probabilities. In this Module, we will define communication classes, recurrence, and periodicity properties for Markov chains with the ultimate goal of being able to answer existence and uniqueness questions about limiting distributions!

What's included

9 videos3 assignments2 programming assignments

9 videosβ€’Total 122 minutes
  • Introduction to Limiting Distributionsβ€’5 minutes
  • Communication Classes for a Markov Chainβ€’14 minutes
  • Classification of States: Recurrence and Transienceβ€’16 minutes
  • Expected Number of Returns to a Transient Stateβ€’21 minutes
  • Alternative Characterization of Recurrence and Transienceβ€’12 minutes
  • Recurrence and Transience are Class Propertiesβ€’9 minutes
  • The Random Walkβ€’17 minutes
  • Existence and Uniqueness of the Limiting Distributionβ€’16 minutes
  • Total Variation Norm Distance Between Distributionsβ€’13 minutes
3 assignmentsβ€’Total 68 minutes
  • Classification of Statesβ€’30 minutes
  • Limiting Distibutions and the Random Walkβ€’30 minutes
  • Quick Check-Inβ€’8 minutes
2 programming assignmentsβ€’Total 180 minutes
  • Limiting Distributions and Classification of States (R)β€’90 minutes
  • Limiting Distributions and Classification of States (Python)β€’90 minutes

In this Module, we will define what is meant by a "stationary" distribution for a Markov chain. You will learn how it relates to the limiting distribution discussed in the previous Module. You will also spend time learning about the very powerful "first-step analysis" technique for solving many, otherwise intractable, problems of interest surrounding Markov chains. We will discuss rates of convergence for a Markov chain to settle into its "stationary mode", and just maybe we'll give a monkey a keyboard and hope for the best!

What's included

11 videos3 assignments2 programming assignments

11 videosβ€’Total 150 minutes
  • Introduction to Stationary Distributionsβ€’14 minutes
  • Finding a Stationary Distributionβ€’12 minutes
  • "Long-Run Proportion of Time" Questionsβ€’9 minutes
  • Existence and Uniqueness of the Stationary Distributionβ€’24 minutes
  • Expected Hitting Timeβ€’16 minutes
  • Expected Return Timeβ€’12 minutes
  • Probability of Hitting One State Before Anotherβ€’8 minutes
  • Expected Number of Visits to a an Intermediate Stateβ€’10 minutes
  • Mean Pattern Times, Part 1β€’16 minutes
  • Mean Pattern Times, Part 2β€’19 minutes
  • Rate of Convergence to Stationarity: The Eigenvalue Connectionβ€’11 minutes
3 assignmentsβ€’Total 68 minutes
  • Stationary Distributions and Expected Hitting Timesβ€’30 minutes
  • First Step Analyses and Mean Pattern Timesβ€’30 minutes
  • Quick Check-Inβ€’8 minutes
2 programming assignmentsβ€’Total 180 minutes
  • Stationary Distributions and First Step Analysis (R)β€’90 minutes
  • Stationary Distributions and First Step Analyses (Python)β€’90 minutes

In this Module we explore several options for simulating values from discrete and continuous distributions. Several of the algorithms we consider will involve creating a Markov chain with a stationary or limiting distribution that is equivalent to the "target" distribution of interest. This Module includes the inverse cdf method, the accept-reject algorithm, the Metropolis-Hastings algorithm, the Gibbs sampler, and a brief introduction to "perfect sampling".

What's included

13 videos2 assignments2 programming assignments4 ungraded labs

13 videosβ€’Total 176 minutes
  • The Goal of Discrete and Continuous Random Variable Simulationβ€’12 minutes
  • "Interval Chopping" for Discrete Random Variable Simulationβ€’10 minutes
  • The Inverse CDF Methodβ€’13 minutes
  • The Accept-Reject Method, Part 1β€’17 minutes
  • The Accept-Reject Method, Part 2β€’11 minutes
  • Discrete-Time Markov Chains on a Continuous State Spaceβ€’10 minutes
  • Reversibility or Detailed Balanceβ€’5 minutes
  • Introduction to the Metropolis-Hastings Algorithmβ€’17 minutes
  • An Example of the Metropolis-Hasting Algorithmβ€’12 minutes
  • A Higher-Dimensional Metropolis-Hasting Algorithm Exampleβ€’17 minutes
  • Introduction to the Gibbs Samplerβ€’17 minutes
  • An Example of the Gibbs Samplerβ€’17 minutes
  • Introduction to Perfect Simulationβ€’20 minutes
2 assignmentsβ€’Total 60 minutes
  • Basic Simulation Algorithmsβ€’30 minutes
  • Markov Chain Monte Carlo Algorithmsβ€’30 minutes
2 programming assignmentsβ€’Total 150 minutes
  • Monte Carlo Simulation (R)β€’75 minutes
  • Monte Carlo Simulation (Python)β€’75 minutes
4 ungraded labsβ€’Total 90 minutes
  • Checking a Random Number Generator with a Histogram (R)β€’15 minutes
  • Checking a Random Number Generator with a Histogram (Python)β€’15 minutes
  • Gelman and Rubin's R Statistic (in R)β€’30 minutes
  • Gelman and Rubin's R Statistic (in Python)β€’30 minutes

In reinforcement learning, an "agent" learns to make decisions in an environment through receiving rewards or punishments for taking various actions. A Markov decision process (MDP) is reinforcement learning where, given the current state of the environment and the agent's current action, past states and actions used to get the agent to that point are irrelevant. In this Module, we learn about the famous "Bellman equation", which is used to recursively assign rewards to various states and how to use it in order to find an optimal strategy for the agent!

What's included

5 videos2 assignments2 programming assignments4 ungraded labs

5 videosβ€’Total 85 minutes
  • Markov Decision Processes: The Problem and Notationβ€’15 minutes
  • Rewards and Value Functionsβ€’22 minutes
  • The Bellman Equationβ€’16 minutes
  • Value Function Computationsβ€’12 minutes
  • Finding the Optimal Policyβ€’19 minutes
2 assignmentsβ€’Total 40 minutes
  • Markov Decision Processes, Part 1β€’20 minutes
  • Markov Decision Processes, Part 2β€’20 minutes
2 programming assignmentsβ€’Total 60 minutes
  • Policy Iteration in Rβ€’30 minutes
  • Policy Iteration in Pythonβ€’30 minutes
4 ungraded labsβ€’Total 20 minutes
  • Example State Value Function Computation in Rβ€’5 minutes
  • Example State Value Function Computation in Pythonβ€’5 minutes
  • Example Optimal Policy Calculation in Rβ€’5 minutes
  • Example Optimal Policy Calculation in Pythonβ€’5 minutes

Earn a career certificate

Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.

Build toward a degree

This course is part of the following degree program(s) offered by University of Colorado Boulder. If you are admitted and enroll, your completed coursework may count toward your degree learning and your progress can transfer with you.ΒΉ

Instructor

University of Colorado Boulder
7 Coursesβ€’46,206 learners

Explore more from Probability and Statistics

Why people choose Coursera for their career

πŸ‘ Image

Felipe M.

Learner since 2018
"To be able to take courses at my own pace and rhythm has been an amazing experience. I can learn whenever it fits my schedule and mood."
πŸ‘ Image

Jennifer J.

Learner since 2020
"I directly applied the concepts and skills I learned from my courses to an exciting new project at work."
πŸ‘ Image

Larry W.

Learner since 2021
"When I need courses on topics that my university doesn't offer, Coursera is one of the best places to go."
πŸ‘ Image

Chaitanya A.

"Learning isn't just about being better at your job: it's so much more than that. Coursera allows me to learn without limits."

Learner reviews

  • 5 stars

    66.66%

  • 4 stars

    26.66%

  • 3 stars

    0%

  • 2 stars

    0%

  • 1 star

    6.66%

Showing 3 of 15

MG
Β·

Reviewed on Apr 8, 2026

Strong mathematical foundation for AI.

More visualizations would make it even more effective.

Frequently asked questions

To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.

When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.

Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.

Financial aid available,