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

Mindshift: Break Through Obstacles to Learning and Discover Your Hidden Potential (Coursera) Coursera
McMaster University

Mindshift: Break Through Obstacles to Learning and Discover Your Hidden Potential (Coursera)

Mindshift is designed to help boost your career and life in today’s fast-paced learning environment. Whatever your age or stage, Mindshift teaches you essentials such as how to get the most out of online learning and MOOCs, how to seek out and work with mentors, the secrets to avoiding career ruts (and catastrophes) and general ruts in life, and insights such as the value of selective ignorance over general competence.

Sep 14th 2026
4 Weeks
Innovative Teaching with ChatGPT (Coursera) Coursera
Vanderbilt University

Innovative Teaching with ChatGPT (Coursera)

Despite what you may have heard, ChatGPT offers exciting possibilities for supporting innovative teaching and personalized education. This course provides practical techniques that any educator, from K-12 to higher education, can use to help support their teaching. No experience with ChatGPT, prompt engineering, or Generative AI is required.

Sep 14th 2026
1 Week
Designing Autonomous AI (Coursera) Coursera
University of Washington,Microsoft

Designing Autonomous AI (Coursera)

When children learn how to hit a baseball, they don’t start with fastballs. Their coaches begin with the basics: how to grip the handle of the bat, where to put their feet and how to keep their eyes on the ball. Similarly, an autonomous AI system needs a subject matter expert (SME) to break a complex process or problem into easier tasks that give the AI important clues about how to find a solution faster.

Sep 14th 2026
4 Weeks
Practical Machine Learning on H2O (Coursera) Coursera
H2O.ai

Practical Machine Learning on H2O (Coursera)

In this course, we will learn all the core techniques needed to make effective use of H2O. Even if you have no prior experience of machine learning, even if your math is weak, by the end of this course you will be able to make machine learning models using a variety of algorithms. We will be using linear models, random forest, GBMs and of course deep learning, as well as some unsupervised learning algorithms.

Sep 14th 2026
5-12 Weeks
Ethics of Artificial Intelligence (Coursera) Coursera
Politecnico di Milano

Ethics of Artificial Intelligence (Coursera)

This course deals with the problems created, aggravated or transformed by AI. It is intended to give students a chance to reflect on the ethical, social, and cultural impact of AI by focusing on the issues faced by and brought about by professionals in AI but also by citizens, institutions and societies. The course addresses these topics by means of case studies and examples analyzed in the light of the main ethical frameworks.

Sep 14th 2026
4 Weeks
Mindshift: Transforma tu mente para superar obstáculos en el aprendizaje y descubrir tu potencial oculto (Coursera) Coursera
McMaster University

Mindshift: Transforma tu mente para superar obstáculos en el aprendizaje y descubrir tu potencial oculto (Coursera)

Mindshift es un curso diseñado para ayudarte a impulsar tu carrera profesional y tu vida personal en el mundo de cambios acelerados que vivimos hoy en día. Cualquiera que sea tu edad o etapa de formación, Mindshift te enseñará técnicas para aprovechar al máximo tu experiencia de aprendizaje en línea, estrategias para conseguir y trabajar con mentores, secretos para evitar estancamientos (y catástrofes) en tu carrera profesional, y reflexiones sobre el valor de la ignorancia selectiva y la competencia general.

Sep 14th 2026
4 Weeks
Cadeia de Suprimentos na Nuvem (Coursera) Coursera
FIA Business School

Cadeia de Suprimentos na Nuvem (Coursera)

Nossas boas-vindas ao Curso Cadeia de Suprimentos na Nuvem. Neste curso, você aprenderá como o supply chain pode ampliar o valor da empresa explorando as diversas ferramentas disponíveis em cloud para potencializar a visibilidade e a responsividade da cadeia, melhorando o nível de serviço prestado aos clientes.

Sep 14th 2026
5-12 Weeks
Multimodal Literacies: Communication and Learning in the Era of Digital Media (Coursera) Coursera
University of Illinois at Urbana-Champaign

Multimodal Literacies: Communication and Learning in the Era of Digital Media (Coursera)

Whereas the focus of traditional literacy pedagogy has been the written word in its standard and literary forms, this courser expands the scope of literacy learning to encompass contemporary multimodal texts and the wide range of ways of making meaning that occur in different social and cultural contexts. Another course, "Literacy Teaching and Learning: Aims, Approaches and Pedagogies" addresses pedagogical aspects of literacies. This "Multimodal Literacies" learning module does not require or expect that participants will have already completed the "Literacy Teaching and Learning" module.

Sep 14th 2026
4 Weeks
Tinkering Fundamentals: Circuits (Coursera) Coursera
Exploratorium

Tinkering Fundamentals: Circuits (Coursera)

The Tinkering Fundamentals course will offer educators and enthusiasts an opportunity to develop a practice of tinkering and making. We see tinkering as a serious endeavor -- one that is generalizable across content and especially good at interweaving disciplines in a way that leads to complex projects and individualized learning opportunities.

Sep 21st 2026
5-12 Weeks