Sample-based Learning Methods (Coursera)

Sample-based Learning Methods (Coursera)

In this course, you will learn about several algorithms that can learn near optimal policies based on trial and error interaction with the environment---learning from the agent’s own experience. Learning from actual experience is striking because it requires no prior knowledge of the environment’s dynamics, yet can still attain optimal behavior. We will cover intuitively simple but powerful Monte Carlo methods, and temporal difference learning methods including Q-learning. We will wrap up this course investigating how we can get the best of both worlds: algorithms that can combine model-based planning (similar to dynamic programming) and temporal difference updates to radically accelerate learning.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

By the end of this course you will be able to:

  • Understand Temporal-Difference learning and Monte Carlo as two strategies for estimating value functions from sampled experience
  • Understand the importance of exploration, when using sampled experience rather than dynamic programming sweeps within a model
  • Understand the connections between Monte Carlo and Dynamic Programming and TD.
  • Implement and apply the TD algorithm, for estimating value functions
  • Implement and apply Expected Sarsa and Q-learning (two TD methods for control)
  • Understand the difference between on-policy and off-policy control
  • Understand planning with simulated experience (as opposed to classic planning strategies)
  • Implement a model-based approach to RL, called Dyna, which uses simulated experience
  • Conduct an empirical study to see the improvements in sample efficiency when using Dyna

Course 2 of 4 in the Reinforcement Learning Specialization.

Syllabus

WEEK 1
Welcome to the Course!
Welcome to the second course in the Reinforcement Learning Specialization: Sample-Based Learning Methods, brought to you by the University of Alberta, Onlea, and Coursera. In this pre-course module, you'll be introduced to your instructors, and get a flavour of what the course has in store for you. Make sure to introduce yourself to your classmates in the "Meet and Greet" section!
Monte Carlo Methods for Prediction & Control
This week you will learn how to estimate value functions and optimal policies, using only sampled experience from the environment. This module represents our first step toward incremental learning methods that learn from the agent’s own interaction with the world, rather than a model of the world. You will learn about on-policy and off-policy methods for prediction and control, using Monte Carlo methods---methods that use sampled returns. You will also be reintroduced to the exploration problem, but more generally in RL, beyond bandits.

WEEK 2
Temporal Difference Learning Methods for Prediction
This week, you will learn about one of the most fundamental concepts in reinforcement learning: temporal difference (TD) learning. TD learning combines some of the features of both Monte Carlo and Dynamic Programming (DP) methods. TD methods are similar to Monte Carlo methods in that they can learn from the agent’s interaction with the world, and do not require knowledge of the model. TD methods are similar to DP methods in that they bootstrap, and thus can learn online---no waiting until the end of an episode. You will see how TD can learn more efficiently than Monte Carlo, due to bootstrapping. For this module, we first focus on TD for prediction, and discuss TD for control in the next module. This week, you will implement TD to estimate the value function for a fixed policy, in a simulated domain.

WEEK 3
Temporal Difference Learning Methods for Control
This week, you will learn about using temporal difference learning for control, as a generalized policy iteration strategy. You will see three different algorithms based on bootstrapping and Bellman equations for control: Sarsa, Q-learning and Expected Sarsa. You will see some of the differences between the methods for on-policy and off-policy control, and that Expected Sarsa is a unified algorithm for both. You will implement Expected Sarsa and Q-learning, on Cliff World.

WEEK 4
Planning, Learning & Acting
Up until now, you might think that learning with and without a model are two distinct, and in some ways, competing strategies: planning with Dynamic Programming verses sample-based learning via TD methods. This week we unify these two strategies with the Dyna architecture. You will learn how to estimate the model from data and then use this model to generate hypothetical experience (a bit like dreaming) to dramatically improve sample efficiency compared to sample-based methods like Q-learning. In addition, you will learn how to design learning systems that are robust to inaccurate models.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Machine Teaching for Autonomous AI (Coursera) Coursera
University of Washington

Machine Teaching for Autonomous AI (Coursera)

Just as teachers help students gain new skills, the same is true of artificial intelligence (AI). Machine learning algorithms can adapt and change, much like the learning process itself. Using the machine teaching paradigm, a subject matter expert (SME) can teach AI to improve and optimize a variety of systems and processes. The result is an autonomous AI system.

Oct 5th 2026
4 Weeks
Leveraging AI for Enhanced Content Creation (Coursera) Coursera
Coursera Instructor Network

Leveraging AI for Enhanced Content Creation (Coursera)

This course provides a foundation to assess, and apply, a series of Generative Artificial Intelligence (AI) tools, such as ChatGPT, Bing Chat, Google Bard, Midjourney, Runway, and Eleven Labs. This learning opportunity offers a hands-on experience through ideating, creating, and finalizing a mock advertising campaign using the combined strengths of these AI tools.

Oct 5th 2026
1 Week
Uncommon Sense Teaching (Coursera) Coursera
Deep Teaching Solutions

Uncommon Sense Teaching (Coursera)

Do your students spend too much (or too little) time learning, with disappointing results? Do they procrastinate in their study because it’s boring and they’re easily distracted? Are you working to make your teaching even more inclusive? Uncommon Sense Teaching will give you practical new insights that will help you solve these goals and challenges, and many more.

Oct 5th 2026
4 Weeks
Psicología (Coursera) Coursera
Universidad de Palermo

Psicología (Coursera)

¿Qué estudia la psicología? ¿Qué hacen los psicólogos? ¿La conciencia, qué es? ¿Y el estrés? ¿Cómo aprendemos? La sensación y la percepción ¿son lo mismo? ¿El lenguaje depende de las ideas? ¿O será que nuestro pensamiento es dependiente del lenguaje que hablamos? ¿Querés conocer las respuestas a estos interrogantes? En este curso de Psicología podrás explorar sobre todo esto y mucho más. Al culminar su recorrido no solo vas a haber aprendido sobre las bases del cautivante mundo de la psicología, sino que contarás con herramientas que te permitirán conocerte mejor.

Oct 5th 2026
4 Weeks
Overcoming Dyslexia (Coursera) Coursera
Yale University

Overcoming Dyslexia (Coursera)

Dyslexia is everywhere, touching so many children and adults, and while science has made extraordinary progress in understanding and clarifying the condition, this incredible powerful knowledge rarely reaches those who most need to know and would greatly benefit from it. Our goal is to change all this with the Coursera you are about to view, produced by Dr. Sally Shaywitz, the Audrey G. Ratner Professor in Learning Development, both the leading scientist studying dyslexia and the most devoted advocate for helping those who are dyslexic.

Oct 3rd 2026
5-12 Weeks
Legal Tech and the Digital Transformation of Law (Coursera) Coursera
Universidad Austral

Legal Tech and the Digital Transformation of Law (Coursera)

The digital revolution changed the way we communicate and trade. Now, it is coming into the world of law. This program will give you a broad overview of the main trends that are affecting the legal industry: the birth of the legal tech market and the application of technology in law; the role of artificial intelligence in the automation of the work of lawyers; blockchain technology and its impact on the way we sign and execute contracts; initiatives to ensure access to justice through virtual courts and robot judges.

Oct 5th 2026
5-12 Weeks
Introducción al Aprendizaje Universitario (Coursera) Coursera
Pontificia Universidad Católica de Chile

Introducción al Aprendizaje Universitario (Coursera)

Este es un MOOC introductorio al aprendizaje universitario, a través del cual, el estudiante podrá conocer aspectos fundamentales que intervienen en el aprendizaje y rendimiento académico universitario. Representa a la vez una oportunidad para reflexionar sobre el propio quehacer académico como estudiante, así como una instancia para conocer distintas herramientas que promueven mejores prácticas en el contexto del estudio.

Oct 5th 2026
5-12 Weeks
Alibaba Cloud Native Solutions and Container Service (Coursera) Coursera
Alibaba Cloud Academy

Alibaba Cloud Native Solutions and Container Service (Coursera)

This course demonstrates how to use Alibaba Cloud Container Service and Container Registry Service to design and develop architectures related to cloud native applications, services, and security solutions. This course helps you understand the basic concepts of cloud native, the commercial implementation of container technology, and Kubernetes technology as well as extra benefits provided by Alibaba Cloud. This course is intended to prepare users to take the Alibaba Cloud Native ACA certification exam.

Oct 5th 2026
5-12 Weeks
Assessing Achievement with the ELL in Mind (Coursera) Coursera
Arizona State University

Assessing Achievement with the ELL in Mind (Coursera)

In this course, you will learn how to design assessments around the needs of your ELL students and their language level. You will learn how to incorporate language and content requirements for both formative and summative assessment types. You will learn to assess your ELL students through the use of project and task-based assignments.

Oct 5th 2026
5-12 Weeks
Artificial Intelligence for Breast Cancer Detection (Coursera) Coursera
Johns Hopkins University

Artificial Intelligence for Breast Cancer Detection (Coursera)

Through interactive lectures and module exercises, this course illustrates the potential of artificial intelligence in breast imaging. Topics include an introduction of breast cancer and breast imaging, introduction to artificial intelligence in image analysis and computer image processing of cancer detection. The course intends to provide students basic understanding of artificial intelligence approaches to breast cancer detection.

Oct 5th 2026
4 Weeks
Build AI Apps with ChatGPT, Dall-E, and GPT-4 (Coursera) Coursera
Scrimba

Build AI Apps with ChatGPT, Dall-E, and GPT-4 (Coursera)

By the end of this course, you'll know how to use the OpenAI API to add mind-blowing AI features to your apps. You will learn how to use the Dall-E, GPT-4, and ChatGPT APIs, and get the expertise to fine-tune a model with your own data. In the first project, MoviePitch, you will get a primer on the OpenAI API and harness the power of artificial intelligence to generate ideas and images.

Oct 5th 2026
3 Weeks