Skip to main content
Harvard
Computer Science
4 credits

Harvard CS 181: Machine Learning

CS 181 is Harvard's core machine learning course, covering regression, classification, neural networks, clustering, graphical models, and reinforcement learning, with an emphasis on the probabilistic foundations beneath the methods. It's the standard ML credential inside the CS concentration.

Fennie is independent and not affiliated with Harvard University. This is an unofficial study guide.

What makes it hard

CS 181 is a math course wearing an ML jacket: the psets demand derivations (maximum likelihood, gradients, posterior updates) before any model gets fit. Students arriving for the applications with shaky linear algebra and probability hit the wall by the third pset, which is famously long.

What you'll cover

  • Linear regression and regularization
  • Probabilistic modeling and maximum likelihood
  • Classification and logistic regression
  • Neural networks
  • Clustering and mixture models
  • Graphical models
  • Reinforcement learning basics

The CS 181 study guide

How to study for Harvard CS 181, step by step.

  1. 1

    Recharge the math before the semester starts

    Matrix calculus, eigenvalues, and Stat 110-level probability are load-bearing from pset one. A two-week refresher before classes beats discovering the gaps mid-derivation.

  2. 2

    Do every derivation by hand once

    For each method, derive the loss, the gradient, and the update yourself before touching the implementation. CS 181 exams and psets test the derivation layer, not library calls.

  3. 3

    Build a one-page map of the methods

    For every model: its assumptions, its loss, when it fails. The course moves through many methods fast, and the comparative map is what keeps them from blurring together by the final.

  4. 4

    Start the long psets the day they drop

    CS 181 psets stack derivations on implementations on write-ups, and they're notorious for taking longer than planned. Spaced sessions across the full window beat any deadline sprint.

Today

Today's CS 181 plan

Preview
65 min

What a Fennie Daily Plan looks like for CS 181. Yours is built from your own syllabus and adapts every day to your deadlines and progress.

0 / 4 done~65m remaining
Keep this plan free

First plan free, no card required. Fennie is independent and unaffiliated with your school.

FAQ

Is CS 181 hard?

Yes. It's a derivation-heavy course where the psets routinely run long, and weak linear algebra or probability shows immediately. The applications are the reward, not the work.

What should I take before CS 181?

Linear algebra (Math 21B or beyond), probability at the Stat 110 level, and solid programming. Of the three, probability gaps hurt the most.

Is CS 181 or CS 109A better for learning ML?

CS 181 builds the mathematical foundations; CS 109A teaches applied data science workflow. For ML research or depth, choose 181; for practical analysis skills, 109A. Many students take both.

More Harvard courses