Save this video free

Stanford CS229 Machine Learning | Spring 2026 | Lecture 18: GMM (EM), PCA

Stanford Online · 1:16:25 · Watch on YouTube

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

This lecture introduces reinforcement learning (RL) as sequential decision-making without direct supervision, relying instead on rewards. It defines the Markov Decision Process (MDP) framework, comprising states (S), actions (A), transition dynamics (P), rewards (R), and discount factor (gamma), using a 1D robot navigation example. The core goal is to find an optimal policy (pi*) that maximizes expected cumulative reward, often by solving the Bellman equation. The lecture then details the Policy Gradient (REINFORCE) algorithm, a method for optimizing parameterized stochastic policies (pi_theta) by estimating the gradient of the expected return using sampled trajectories.

Key takeaways

Chapters

0:00 Introduction to Reinforcement Learning and its Applications
1:59 Defining Sequential Decision Making
5:34 Exploration vs. Exploitation Trade-off
7:23 RL's Lack of Supervision and Reliance on Rewards
10:50 The Markov Decision Process (MDP) Framework
13:18 MDP Component: States (S)
18:35 MDP Component: Actions (A)
19:58 MDP Component: Transition Dynamics (P)
30:12 MDP Component: Reward Function (R)
41:49 Defining Return/Payoff for a Trajectory
48:59 The Complete MDP Tuple
53:48 The Markov Property and Policies
1:06:43 Value Functions: V(S) and V*(S)
1:12:23 The Bellman Equation

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:05 Starting from this week, we're going to talk about reinforcement learning. So today is pretty much basics about reinforcement learning. And then next week, we're going to talk about reinforcement learning applied to large language models, especially in training some of these models with long chain of thought. So yeah, but today is mostly on-- we're going to use probably robotics as the target applications, because I think it's the easiest to think of understanding reinforcement learning in those kind of contexts, the basics. Because otherwise, you have to deal with two things together. One is the reinforcement setting, and the other one is, how do you apply it to large language models? So today, we're going to make it clean, just a relatively simple kind of like robotics or sequential decision making scenario.

0:55 And we're going to introduce this algorithm called policy gradient, which is one of the core algorithm for both the robotics case and the large language model case. Yeah, so reinforcement learning. The marker is great. And the main concept here is that-- so this is a technique in some sense. It's an algorithmic technique. The question we are trying to solve here is the so-called sequential decision making. So let's unpack this. First of all, decision-making, as the name

1:43 suggests, it means that you are making decisions that can affect our future, that have ramifications in the future. So it's not like you just predict something and that's it. You make some decisions and then it will have some-- affect the world. It's like an action, but not just only a prediction. So it's like you operate the robot or maybe you make an Amazon order, so on and so forth. And sequential means that it's not just only one round. It's not like you make a decision and then it's done.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Stanford Online.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.