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!
涵盖的内容
8篇阅读材料4个非评分实验室
显示有关单元内容的信息
8篇阅读材料•总计49分钟
Course Updates and Accessibility Support•1分钟
Earn Academic Credit for Your Work!•10分钟
Course Support•8分钟
Assessment Expectations•5分钟
AI Citation and Acknowledgement•10分钟
Course Resources and Reading•4分钟
Coding in Python or R?•8分钟
What is a "Calculator" Notebook?•3分钟
4个非评分实验室•总计62分钟
Introduction to Jupyter Notebooks and R•30分钟
Introduction to Jupyter Notebooks and Python•30分钟
Empty R Calculator Notebook•1分钟
Empty Python Calculator Notebook•1分钟
Markov Chains I: The Basics
第 2 单元•小时 后完成
单元详情
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!
涵盖的内容
12个视频6个作业2个编程作业
显示有关单元内容的信息
12个视频•总计138分钟
Introduction to Stochastic Processes•7分钟
Conditional Probability for Events and Random Variables•14分钟
"Unraveling" Conditional Probability•12分钟
Definition of a Markov Chain•13分钟
Missing Time Steps in a Markov Chain•13分钟
Conditional Independence•9分钟
Time Homogeneity and the Transition Probability Matrix•9分钟
Basic Markov Chain Calculations•11分钟
The Chapman-Kolmogorov Equations•15分钟
Absorbing States, Part 1•12分钟
Absorbing States, Part 2•15分钟
A Longer History in a Markov Framework•8分钟
6个作业•总计74分钟
AI Policy Quiz•5分钟
Basic Markov Chain Calculations I•25分钟
Basic Markov Chain Calculations II•30分钟
Quick Check-In•3分钟
Quick Check-In•5分钟
Quick Check-In•6分钟
2个编程作业•总计180分钟
Introduction to Markov Chains (R)•90分钟
Introduction to Markov Chains (Python)•90分钟
Markov Chains II: Limiting Distributions
第 3 单元•小时 后完成
单元详情
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!
涵盖的内容
9个视频3个作业2个编程作业
显示有关单元内容的信息
9个视频•总计122分钟
Introduction to Limiting Distributions•5分钟
Communication Classes for a Markov Chain•14分钟
Classification of States: Recurrence and Transience•16分钟
Expected Number of Returns to a Transient State•21分钟
Alternative Characterization of Recurrence and Transience•12分钟
Recurrence and Transience are Class Properties•9分钟
The Random Walk•17分钟
Existence and Uniqueness of the Limiting Distribution•16分钟
Total Variation Norm Distance Between Distributions•13分钟
3个作业•总计68分钟
Classification of States•30分钟
Limiting Distibutions and the Random Walk•30分钟
Quick Check-In•8分钟
2个编程作业•总计180分钟
Limiting Distributions and Classification of States (R)•90分钟
Limiting Distributions and Classification of States (Python)•90分钟
Markov Chains III: Stationary Distributions and First-Step Analyses
第 4 单元•小时 后完成
单元详情
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!
涵盖的内容
11个视频3个作业2个编程作业
显示有关单元内容的信息
11个视频•总计150分钟
Introduction to Stationary Distributions•14分钟
Finding a Stationary Distribution•12分钟
"Long-Run Proportion of Time" Questions•9分钟
Existence and Uniqueness of the Stationary Distribution•24分钟
Expected Hitting Time•16分钟
Expected Return Time•12分钟
Probability of Hitting One State Before Another•8分钟
Expected Number of Visits to a an Intermediate State•10分钟
Mean Pattern Times, Part 1•16分钟
Mean Pattern Times, Part 2•19分钟
Rate of Convergence to Stationarity: The Eigenvalue Connection•11分钟
3个作业•总计68分钟
Stationary Distributions and Expected Hitting Times•30分钟
First Step Analyses and Mean Pattern Times•30分钟
Quick Check-In•8分钟
2个编程作业•总计180分钟
Stationary Distributions and First Step Analysis (R)•90分钟
Stationary Distributions and First Step Analyses (Python)•90分钟
Simulation and Markov Chain Monte Carlo Algorithms
第 5 单元•小时 后完成
单元详情
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".
涵盖的内容
13个视频2个作业2个编程作业4个非评分实验室
显示有关单元内容的信息
13个视频•总计176分钟
The Goal of Discrete and Continuous Random Variable Simulation•12分钟
"Interval Chopping" for Discrete Random Variable Simulation•10分钟
The Inverse CDF Method•13分钟
The Accept-Reject Method, Part 1•17分钟
The Accept-Reject Method, Part 2•11分钟
Discrete-Time Markov Chains on a Continuous State Space•10分钟
Reversibility or Detailed Balance•5分钟
Introduction to the Metropolis-Hastings Algorithm•17分钟
An Example of the Metropolis-Hasting Algorithm•12分钟
A Higher-Dimensional Metropolis-Hasting Algorithm Example•17分钟
Introduction to the Gibbs Sampler•17分钟
An Example of the Gibbs Sampler•17分钟
Introduction to Perfect Simulation•20分钟
2个作业•总计60分钟
Basic Simulation Algorithms•30分钟
Markov Chain Monte Carlo Algorithms•30分钟
2个编程作业•总计150分钟
Monte Carlo Simulation (R)•75分钟
Monte Carlo Simulation (Python)•75分钟
4个非评分实验室•总计90分钟
Checking a Random Number Generator with a Histogram (R)•15分钟
Checking a Random Number Generator with a Histogram (Python)•15分钟
Gelman and Rubin's R Statistic (in R)•30分钟
Gelman and Rubin's R Statistic (in Python)•30分钟
Reinforcement Learning and Markov Decision Processes
第 6 单元•小时 后完成
单元详情
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!
涵盖的内容
5个视频2个作业2个编程作业4个非评分实验室
显示有关单元内容的信息
5个视频•总计85分钟
Markov Decision Processes: The Problem and Notation•15分钟
Rewards and Value Functions•22分钟
The Bellman Equation•16分钟
Value Function Computations•12分钟
Finding the Optimal Policy•19分钟
2个作业•总计40分钟
Markov Decision Processes, Part 1•20分钟
Markov Decision Processes, Part 2•20分钟
2个编程作业•总计60分钟
Policy Iteration in R•30分钟
Policy Iteration in Python•30分钟
4个非评分实验室•总计20分钟
Example State Value Function Computation in R•5分钟
Example State Value Function Computation in Python•5分钟
Example Optimal Policy Calculation in R•5分钟
Example Optimal Policy Calculation in Python•5分钟
获得职业证书
将此证书添加到您的 LinkedIn 个人资料、简历或履历中。在社交媒体和绩效考核中分享。
攻读学位
课程 是 University of Colorado Boulder提供的以下学位课程的一部分。如果您被录取并注册,您已完成的课程可计入您的学位学习,您的学习进度也可随之转移。
查看符合条件的学位
攻读学位
课程 是 University of Colorado Boulder提供的以下学位课程的一部分。如果您被录取并注册,您已完成的课程可计入您的学位学习,您的学习进度也可随之转移。
CU Boulder is a dynamic community of scholars and learners on one of the most spectacular college campuses in the country. As one of 34 U.S. public institutions in the prestigious Association of American Universities (AAU), we have a proud tradition of academic excellence, with five Nobel laureates and more than 50 members of prestigious academic academies.
When will I have access to the lectures and assignments?
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.
What will I get if I subscribe to this Specialization?
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.
Is financial aid available?
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.