Welcome to DSC 40B in Fall 2026! This page should answer most of the questions you might have about how the course is run; check out the frequently asked questions for answers to some common ones. If you don't find what you're looking for here, feel free to make a post on Campuswire.
This quarter DSC 40B is being taught by:
Feel free to send me an email, though for class-related questions you'll usually get a faster response if you ask on Campuswire (as then the TAs are also able to help out).
To get started in DSC 40B, you'll need to set up accounts on a couple of websites.
We'll be using Campuswire as our course message
board. You should have received an invitation via email, but if not you should
be able to join by clicking the link above and using the access code 6152. Be sure to join Campuswire as soon as possible,
since all course communication will be done through it.
If you have a question about anything to do with the course — if you're stuck on a homework problem, want clarification on the logistics, or just have a general question about data science — you can make a post on Campuswire. We only ask that if your question includes some or all of an answer, please make your post private so that others cannot see it. You can also post anonymously if you would prefer.
Course staff will regularly check Campuswire and try to answer any questions that you have. You're also encouraged to answer a question asked by another student if you feel that you know the answer.
We'll be using Gradescope for homework submission
and grading. Most of the assignments will be a mixture of math and coding, and
the coding parts are usually autograded via Gradescope. You should have
received an email invitation for Gradescope, but if not you can join with code
EBEJGW.
We will not be using Canvas. All course materials will be available at dsc40b.com or Gradescope.
You will not need to purchase any materials for this course; we'll use lecture slides as the main resource, as well as our own course notes. If you'd like additional textbooks to study from, we can recommend these:
These books are also excellent resources for preparing for coding interviews.
Lectures will be held in-person at the regularly-scheduled time and place: 3:30 PM on T/Th in MANDE B-202.
Lecture attendance is optional, but attending lectures can earn you credit. See the Lecture Attendance section below for more information.
Lectures will be podcasted and posted online for remote viewing. You will be able to find the lecture recordings at podcast.ucsd.edu.
Discussions will be used for the optional quizzes (see below). They will be held in-person at the regularly-scheduled time and place: 4:00 PM on Monday in MANDE B-202.
The first half of each discussion section will be used for the quiz, and the second half will be used to go over the answers to the quiz and any questions you might have about the material. Since quizzes are optional, so is attending discussion sections.
Course staff, including tutors, TAs, and instructors, will hold office hours regularly throughout the week. Please see the office hours page for the schedule and for instructions.
Your grade is made up of several things in this course:
All but the last two components are optional. You can choose to complete as many or as few of the optional assignments as you like, in whatever combination you like.
Here's how it works: by default, your course grade is based entirely on exams (90% of your grade) and the Final Project (10% of your grade). By completing optional assignments, however, you can earn "credits" that reduce the weight of the exams. Each credit earned is worth 1% towards your overall grade and reduces the weight of the exams by 1%. The Final Project remains worth 10%, no matter how many credits you have. There will be a total of 40 credits available throughout the quarter.
In other words, your grade will be calculated as follows:
$$ \begin{align} \text{Overall Grade} & = (\text{Exam Average} * (90\% - \# \text{ of Credits Earned})) \\ & + (\text{Final Project} * 10\%) \\ & + (\# \text{ of Credits Earned} * 1\%) \end{align} $$
Quizzes, homeworks, and attendance can only help your grade
Because of how your grade is calculated, failing a quiz, not doing a homework problem, or skipping a lecture will not hurt your grade in any way. Instead, the credit that you would have earned will be replaced by the exam (your exam grade will count for more of your overall grade). In other words, if you don't earn a credit, you'll get a second chance to earn those points on the midterm (and a third chance on the redemption exam).
Here, your "Exam Average" is the average of your two midterm scores, after redemption is taken into account.
Here is how you earn credits:
Homeworks: each homework problem completed is worth a different number of credits (the exact value will be noted on the problem itself). The total value of all homework problems will add up to 24 credits, distributed across 8 homeworks. Homework problems are graded on effort, not on correctness, so you can earn full credit even if you get the problem wrong. On the other hand, you can also get zero credit for a problem even if you got it right, if your solution does not show sufficient effort.
Quizzes: each quiz you pass earns you 1.5 credits. There will be 8 quizzes throughout the quarter, for a total of 12 possible credits. Note that quizzes are pass/fail, with a score of 70% or higher being a passing score. If you pass, you earn 1.5 credits; but if you do not pass, you earn zero credits.
Attendance: each lecture you attend (except for the first lecture and the midterms) earns you 0.25 credits, to a maximum of 4 credits total. Note that there are 17 credit-earning lectures throughout the quarter, but attending 16 will get you the full 4 credits. Attending the additional lecture will not earn you any more credit above the maximum.
For more about these assignments, see the sections below.
Note that in order to pass the class, you must also meet the exam pass criterion, no matter how many credits you earn.
This grading system allows you to "choose your own adventure" in terms of how you want to be graded. Here are a few examples that illustrate how the system works.
You feel confident in your exam-taking abilities, so you decide to skip all of the optional assignments and focus entirely on studying for the exams and doing well on the Final Project. By choosing to not do any optional assignments, you earn zero credits, and your exams are worth 90% of your overall grade. For instance, if you score an 85% on Midterm 01, a 75% on Midterm 02, and a 100% on the Final Project, your exam average is 80%, and your overall grade will be \((80\% \times 0.9) + (100\% \times 0.1) = 82\%\) (a B-).
Now let's say you decide to go all-in on the optional assignments, doing all of the homeworks, taking all of the quizzes, and attending all of the lectures. This will earn you the full 40 credits available throughout the quarter. You scored an average of 80% on the two midterms and got 100% on the Final Project. Since you earned all 40 credits, your exams are only worth 50% of your overall grade (\(90\% - 40\%\)). Your overall grade is then \((80\% \times 0.5) + (100\% \times 0.1) + (40 \times 1\%) = 90\%\) (an A-).
Let's say you get bored easily while doing the homeworks, and you only do the first problem on each of the 8 homeworks, each worth 0.75 credits. That will earn you 6 credits in total throughout the quarter (\(8 \times 0.75 = 6\)). If you receive a 70% on Midterm 01, a 90% on Midterm 02 (exam average 80%), and a 100% on the Final Project, your exams are worth 84% of your overall grade (\(90\% - 6\%\)). Your overall grade is then \((80\% \times 0.84) + (100\% \times 0.1) + (6 \times 1\%) = 83.2\%\) (a B).
You took all of the quizzes, but unfortunately you didn't do so well and didn't pass any of them. However, you studied hard for the exams and scored 100% on both, as well as 100% on the Final Project. Your exam average is 100%, and since you earned 0 credits from quizzes, exams are worth 90% of your overall grade. This means that your overall grade is \((100\% \times 0.9) + (100\% \times 0.1) = 100\%\). Note that failing the quizzes didn't hurt your grade at all; it just meant that you had to rely on your exam scores and Final Project for your overall grade.
In a typical quarter, the midterm redemption policy has the same effect as a traditional "curve", therefore replacing the need for one. The standard grading scale (where an A is 93+, A- is 90+, B+ is 87+, etc.) will be used as a starting point, but once all scores are in, we will run a clustering algorithm to automatically find the best cutoffs for each letter grade. These cutoffs can only be lowered. For instance, the threshold for an "A" will never be higher than 93%.
A+ grades are not awarded according to a threshold. Instead, A+'s are awarded to the top 5% of students by overall grade.
There will be two midterm exams:
The exams will be held in-person during the regularly-scheduled lecture times.
For each midterm, you'll be allowed one sheet of notes on standard 8.5 by 11 inch paper, front and back. The notes can be handwritten, typed up, painted, etched with a laser, whatever, but it must be on paper (i.e., you can't use an iPad to display your notes during the exam).
The midterm questions themselves will be most similar to the practice problems at dsc40b.com/practice; in fact, all of the practice problems are former exam problems. More details about the midterm will be sent out about one week beforehand.
The final exam for DSC 40B is a "no fault" final split into two sections:
If your score on the midterm redemption section is higher than your score on the original midterm, it will replace that grade. Getting a lower score on a redemption section cannot hurt you (but it will make us sad). As a consequence, the redemption sections are effectively optional.
Under this policy, a bad performance on an earlier exam can be erased by good performance on the same material in a later exam.
Example: You got an "F" on Midterm 1 and a "B" on Midterm 2. You decide to take only the first redemption section on the final (though you could have taken both), and you receive an "A". Your midterm scores are now "A" and "B".
The redemption exams will be held on the date scheduled by the registrar: Monday, December 7.
For the redemption exams, you're allowed one sheet of notes per exam that you're taking.
Note that the topics from Lectures 16, 17, and 18 are not on any exam. These will instead be tested in the Final Project, which covers the entire quarter.
In order to pass the class, the mean of your two midterm scores (after redemption is taken into account) must be 60% or greater.
The reason for this policy is that the exams are the only assessment in this class which you are sure to complete by yourself, and so they are (in theory) the purest measure of your individual understanding. This policy is not meant to be punitive: If your exam scores are not above passing after several attempts, it indicates that you might be better served by retaking the class with a fresh start before moving on to later courses which will draw upon the material from DSC 40B.
Example: You score 10/20 (which is 50%) on Midterm 01 and 15/25 (i.e., 60%) on Midterm 02. The average of your two midterm scores is (50% + 60%) / 2 = 55%, which is below the passing criterion of 60%. You then take Redemption Midterm 01 and score 18/20 (90%); you don't take Redemption Midterm 02. Your overall midterm score with redemption included is (90% + 60%) / 2 = 75%, which is above the passing criterion of 60%.
Instead of a comprehensive final exam, we'll have a comprehensive Final Project. The Final Project will cover content from the entire quarter, including Lectures 16, 17, and 18 (which are not on the midterms).
Unlike the homeworks, the Final Project is required: it is worth 10% of your overall grade, regardless of how many optional assignments you complete.
Unlike the homeworks, the Final Project is graded on correctness. As with the homeworks, you may collaborate on the Final Project as long as you write up solutions in your own words.
The Final Project will be due during finals week, on Wednesday, December 9 at 11:59 PM. It cannot be dropped, but it can be turned in late using slip days.
As mentioned above, homeworks are optional. Each homework problem you complete earns a different number of credits since some problems are more involved than others (the precise value is noted on the problem itself). The total value of all homework problems will be 24 credits. These problems will be distributed across 8 homeworks throughout the quarter. This means that, on average, each homework will be worth 3 credits (but some will be worth more than others).
Each homework will be due via Gradescope at 11:59 PM on the Tuesday after it is assigned except otherwise noted, and you'll have roughly a week to complete each assignment from the time it is posted.
Homework problems are graded pass/fail based on effort, not on correctness. This means that you can earn a credit for a problem even if your answer is wrong, as long as your solution shows sufficient effort. On the other hand, you can also get zero credit for a problem even if you got it right, if your solution does not show sufficient effort.
If you do a homework, you must write your solutions by hand unless the question explicitly says otherwise (a tablet is fine, and you can screenshot the problem statement into your solutions if you'd like). Typed or computer-generated solutions (e.g., via LaTeX) will not be accepted unless you have an approved accommodation from OSD.
Why this return to the stone ages? AI is extremely good at generating typed solutions to homework problems, so if we allowed typed solutions, it would be all too easy to copy-and-paste AI answers. You can still use AI to help you with the problems (we don't necessarily recommend it, but we can't stop you). At the very least, you might learn something by writing out the solutions yourself!
Some problems will be coding problems that require you to write code in Python. In these cases, the problem will clearly state that typed code is acceptable (we won't make you handwrite Python code!)
While you are encouraged to discuss homework problems with your classmates, all work that you turn in must be in your own words and in your own writing. The same goes for ChatGPT: using AI to help you understand a problem is fine, but you'll need to write the answer in your own words to earn credit.
Keep in mind that homework problems are graded on effort, not correctness. We made this change in order to remove 99% of the incentive to use AI to do your homework for you. If you put in sincere effort to solve the problems yourself, you'll earn full credit even if your answers are wrong. If you copy answers from AI, however, you run the risk of getting zero credit if the solutions don't show sufficient effort.
If you have any questions or worries about whether your collaboration constitutes a violation of academic integrity, feel free to ask us on Campuswire.
Quizzes are short, multiple-choice assessments that cover the material from recent lectures. There will be a total of 8 quizzes throughout the quarter. Each quiz you pass earns you 1.5 credits towards your overall grade. A passing score is 70% or higher. If you pass the quiz (even with a score of 70%), you earn the full 1.5 credits. If you do not pass a quiz, you earn zero credits for it, but it does not count against you in any way.
Quizzes are held on-paper and in-person during the first 30 minutes of each Monday discussion section (in the second part of the discussion, you'll go over the answers to the quizzes). Each quiz covers the same lectures as the homework that is due the next day: usually, the previous week's Tuesday lecture and the Thursday lecture before it.
Why subject yourself to quizzes? First, they can only help your grade, so there's no downside to taking them. Second, they provide a good opportunity to review the material from recent lectures and help you maintain a steady study pace throughout the quarter.
Lecture attendance is optional, but attending lectures can earn you up to 4 credits towards your overall grade. Each lecture you attend (except for the first lecture and the midterms) earns you 0.25 credits, to a maximum of 4 credits total. Note that there are 17 credit-earning lectures throughout the quarter, but attending 16 will get you the full 4 credits. Attending the additional lecture will not earn you any more credit above the maximum.
Lecture attendance will be tracked via participation in the in-class discussion questions. Getting the questions right is not necessary to earn attendance credit; you just need to submit an answer.
You have four slip days to use throughout the quarter on any homework or the Final Project. A slip day extends the deadline by 24 hours. Slip days cannot be "stacked" or "combined" to extend the deadline further — the latest any assignment can be submitted is 24 hours after the deadline. Slip days are applied automatically at the end of the quarter, but it's your responsibility to keep track of how many you have left.
Once your slip days run out, late homeworks will not be accepted for credit. This means that if you submit a homework even one minute after the deadline and you have no slip days left, you won't be able to receive credits for it.
And remember: homeworks are optional! If you're having a busy week and can't get a homework done on time, it's perfectly fine to skip it. You won't earn credits for that homework, but you also won't be penalized in any way. Essentially, the exams take the place of that homework in your overall grade.
Lastly, a technical note: some homeworks are broken up into multiple parts that are submitted separately (in particular, homeworks with programming problems will have one separate Gradescope submission for each programming problem in addition to the Gradescope submission for the written problems). Slip days are applied to the entire homework, not to individual parts of the homework, meaning that you only need to use one slip day per homework, no matter how many parts there are.
While we'd like to be able to offer make-up exams for any reason, the logistical difficulties involved prevent us from doing so. For that reason, we have to limit make-up exams to cases where you have a doctor's note or other official documentation of an emergency. However, if you have another non-emergent reason for missing a midterm, such as a job interview, a family wedding, etc., you can skip the midterm and take the redemption exam instead. In that case, the redemption exam will replace the grade of the missed midterm. If you anticipate being out of town for the final exam (say, due to an internship that starts early), you can skip the redemption exams and use the original midterm grades.
Make-up exams due to an illness/emergency must be taken in-person at the Triton Testing Center.
As instructors, our job is to foster an environment where everyone, regardless of identity, feels welcome and is able to focus on learning. If there is something we can do in this mission, or if there is something preventing you from succeeding in the class, please let us know. If you feel uncomfortable speaking with us or are searching for help on a specific concern, there are several campus resources available to you, including:
More generally, if you have any concerns about your ability to focus or succeed in this course, or just need someone to talk to, please contact us ASAP and we'll figure something out.
If you have exam accommodations from the OSD, you should receive an email from the data science program that will ask you to provide your availability for your accommodated exam. The program will then schedule the exam and notify the instructor of its time and location. If you do not receive such an email by the end of the second week of classes, please let us know!
Please be sure to respond to the email from the data science program; if the program does not hear back from you, they will be unable to schedule your accommodated exam.
In a typical quarter, the midterm redemption policy has the same effect as a traditional "curve", therefore replacing the need for one. The standard grading scale (where an A is 93+, A- is 90+, B+ is 87+, etc.) will be used as a starting point, but once all scores are in, we will run a clustering algorithm to automatically find the best cutoffs for each letter grade. These cutoffs can only be lowered, making it easier to get the next higher letter grade. For instance, the threshold for an "A" will never be higher than 93%.
In the interest of fairness, we don't manually adjust the grades of individual people. However, we do run a clustering algorithm to find the best cutoffs for each letter grade, and this has the effect of "bumping" up people objectively. When you receive your grade report at the end of the quarter, it will already take this into account.
We also build in things like redemption exams and optional assignments because we think they're a much fairer way to give everyone a chance to bump up their own grade. Your final grade already reflects those chances — so in a way, it's already been "bumped."
If you are too sick to participate in the class, focus on getting better first! Since the homeworks, quizzes, and lecture attendance are optional, missing some of them won't hurt your grade; the exams will simply count for a bit more. If you miss a midterm or the Final Project, send us a doctor's note as soon as you're able and we'll work something out (see also make-up exams).
This assumes that you're sick for less than a week. If the severity of your illness is such that you'll be out for longer, please let us know and we'll work with your college advisors to explore your options.
If you forget to submit a homework, you can use a slip day to submit it late. If it is past the slip day deadline, however, we unfortunately can't accept it (since the homework solutions will be posted already). But since homeworks are optional, this won't hurt your grade: you just won't earn the credits for that homework.
Often, people will ask about their chances of making it off the waitlist. Unfortunately, that can be hard to answer! In some quarters, the waitlist moves a lot; in others, not at all.
If you are waitlisted, you can still join all of the course websites and complete all assignments by following the instructions in the "Getting Started" section above. If you do get off the waitlist later in the quarter, any work you did while waitlisted will count towards your grade. If you didn't complete any work while waitlisted, that's okay too; all of the assignments due before the drop deadline are optional!