Skip to main content Link Search Menu Expand Document (external link)

Resources đź“š

Table of contents

  1. Lecture Videos
  2. Course Notes
  3. Probability
    1. Readings and Sources of Practice Problems
    2. Probability Roadmap
    3. Visualizations
  4. Past Exams
  5. Other Resources

Lecture Videos

These are a set of lecture videos that I recorded when I taught this course asynchronously during the pandemic. Our in-person lectures this quarter will cover similar content, so these videos can be a helpful tool for you to prepare for lecture or review afterwards. You are responsible for all material covered in this quarter’s lectures, whether or not that material is covered in this set of lecture videos.

VideoTopics
Video 1learning from data, mean absolute error
Video 2minimizing mean absolute error
Video 3mean squared error
Video 4empirical risk minimization, general framework, 0-1 loss
Video 5UCSD loss
Video 6gradient descent
Video 7gradient descent demo, convexity
Video 8spread
Video 9linear prediction rule
Video 10least squares solutions
Video 11regression interpretation
Video 12nonlinear trends
Video 13linear algebra for regression
Video 14gradient, normal equations
Video 15polynomial regression, nonlinear trends
Video 16multiple regression
Video 17k-means clustering
Video 18k-means clustering, cost function, practical considerations
Video 19probability, basic rules
Video 20conditional probability
Video 21probability, random sampling, sequences
Video 22combinatorics, sequences, sets, permutations, combinations
Video 23counting and probability practice
Video 24law of total probability, Bayes’ Theorem
Video 25independence, conditional independence
Video 26naive Bayes
Video 27text classification, spam filter, naive Bayes

Course Notes

The notes for this class were written by me and Justin Eldridge. These notes cover the material from the first half of the course and align very closely with the material you’ll see in the lecture videos.

Probability

Unlike the first half of the course, where we had course notes written specifically for this class, we don’t have DSC 40A-specific notes for the second half of the class, because there are many high-quality resources available online that cover the same material. Below, you’ll find links to some of these resources.

Readings and Sources of Practice Problems

  • Open Intro Statistics: Sections 2.1, 2.3, and 2.4 cover the probability we are learning in this course at a good level for undergraduates. This is a good substitute for a textbook, similar to the course notes that we had for the first part of the course. It goes through the definitions, terminology, probability rules, and how to use them. It’s succinct and highlights the most important things.

  • Probability for Data Science: Chapters 1 and 2 of this book have a lot of good examples demonstrating some standard problem-solving techniques. This book should be primarily useful for more problems to practice and learn from. This book is written at a good level for students in this class. It is used at UC Berkeley in their Probability for Data Science course. Our course only really covers material from the first two chapters, but if you want to extend your learning of probability as it applies to data science, this is a good book to help you do that.

  • Theory Meets Data: Chapters 1 and 2 of this book cover similar content to Chapters 1 and 2 of the Probability for Data Science book, but with different prose and examples. It is used at UC Berkeley for a more introductory Probability for Data Science course.

  • Grinstead and Snell’s Introduction to Probability: Chapters 1, 3, and 4.1 of this book cover the material from our class. This book is a lot longer and more detailed than the others, and it uses more formal mathematical notation. It should give you a very thorough understanding of probability and combinatorics, but it is a lot more detailed, so the more abbreviated resources above will likely be more useful. With that said, this book is written at a good level for undergraduates and is used in other undergraduate probability classes at UCSD, such as CSE 103.

  • Introduction to Mathematical Thinking: This course covers topics in discrete math, some of which are relevant to us (in particular, set theory and counting). In addition to the lecture videos linked on the homepage, you may want to look at the notes section.

  • Khan Academy: Counting, Permutations, and Combinations: Khan Academy has a good unit called Counting, Permutations, and Combinations that should be pretty helpful for the combinatorics we are learning in this class. A useful aspect of it is the practice questions that combine permutations and combinations. Most students find that the hardest part of these counting problems is knowing when to use permutations and when to use combinations. These practice questions have them mixed together, so you really get practice learning which is the right technique to apply to which situation.

Probability Roadmap

I wrote a “Probability Roadmap” that aims to guide students through the process of solving probability problems. I hope you’ll find it useful! It comes in three versions:

  • Examples: This document consists of strategies followed by example problems that employ those strategies. If you’re looking to gain additional practice, start here.
  • Solutions: This document contains solutions and explanations for all of the example problems in the first document. After you’ve attempted the problems on your own, read through this full document. Even if you’ve solved all the questions, you’re likely to learn how to do some problems in new ways.
  • Summary: This document is a concise summary and contains only the strategies themselves.

Visualizations

Past Exams

Below, you’ll find some exams (and in some cases, their solutions) from previous offerings of the course. You must be logged into your @ucsd.edu Google account to access these.

Some things to keep in mind:

  • Certain offerings of the course had one midterm and others had two. Usually, Midterm 1 covered empirical risk minimization, and Midterm 2 covered probability.
  • Topic coverage and ordering has changed over time, so the content in our exams won’t necessarily exactly match the content of these past exams.
  • Some of these exams were given as closed-book exams and others allowed the use of resources.
QuarterInstructor(s)Midterm/Midterm 1Midterm 2Final
Fall 2021Suraj RampureBlank, Solutions–Blank, Solutions
Spring 2021Janine TiefenbruckBlank, Solutions, Videos 🎬–Part 1: Blank, Solutions
Winter 2021Gal MishneBlank, SolutionsBlank, SolutionsPart 1: Solutions
Part 2: Solutions
Fall 2020Janine Tiefenbruck, Yian MaBlank, Solutions–Part 1: Blank, Solutions
Spring 2020Janine TiefenbruckBlank, Videos 🎬–Part 1: Blank
Winter 2020Justin EldridgeSolutionsSolutionsSolutions

Other Resources

If you find another helpful resource, let us know and we can link it here!