CS229: Machine Learning

by Stanford University

AdvancedCourseFreeFull university course

Stanford's rigorous graduate ML course — the mathematical foundation behind everything else.

Start LearningReviewed July 3, 2026

Overview

CS229 is the deep, math-heavy counterpart to gentler intros. It derives the algorithms — from linear/logistic regression and GLMs to SVMs, kernel methods, learning theory, EM, and modern deep learning — with full mathematical rigor. The famous lecture notes and recorded lectures are freely available. Choose this when you want to understand why the methods work, not just how to call them.

At a Glance

Topic
ML
Level
Advanced
Format
Course
Cost
Free
Duration
Full university course
Provider
Stanford University
Hands-on
No
Certificate
None

What You’ll Learn

  • The mathematics of core ML algorithms
  • Generalized linear models, SVMs, and kernels
  • Learning theory and the bias-variance trade-off
  • Foundations that transfer to any framework

Highlights

  • Graduate-level rigor from Stanford
  • Legendary freely-available lecture notes

Who It’s For

Best For

  • Learners who want deep theoretical grounding

Prerequisites

  • Linear algebra
  • Probability
  • Multivariable calculus

FAQ

What is CS229: Machine Learning?

The materials, notes, and lectures for Stanford's canonical machine learning course, covering the theory behind modern ML.

Is CS229: Machine Learning free?

CS229: Machine Learning is free to access.

What level is CS229: Machine Learning for?

CS229: Machine Learning is aimed at a advanced audience. Recommended background: Linear algebra, Probability, Multivariable calculus.

How long does CS229: Machine Learning take?

Expect roughly Full university course. Most learners work through it at their own pace.

What will I learn from CS229: Machine Learning?

You'll learn: The mathematics of core ML algorithms; Generalized linear models, SVMs, and kernels; Learning theory and the bias-variance trade-off; Foundations that transfer to any framework.

Topics

machine learningStanfordtheorymathematics