How Much Math Is in a Data Science Major?

A student exploring a three-dimensional coordinate model beside graph paper.

A data science major can require substantial mathematics even when its most visible assignments involve writing code or presenting charts. The useful question is not how many courses contain the word “math.” It is which mathematical ideas you must learn, how deeply you must use them, and which later courses depend on them.

This guide compares three identified Bachelor of Science programs, then shows how to read a prerequisite and work through two small mathematical tasks. The exercises illustrate the work; they are not an entrance test or a prediction of your ability. For the broader curriculum, start with the data science major guide.

In this guide

Official sources reviewed November 11, 2026. The UC San Diego example uses its 2026–27 catalog archive; the other examples use the catalog pages identified below. Your assigned catalog, approved substitutions, and placement can change your own requirements.

Separate required foundations from optional depth

Make three lists before you count credits: courses everyone in your chosen route must take, approved alternatives within a requirement, and electives you might select. A choice between two calculus courses does not mean taking both. An optimization elective does not become mandatory because it would be useful for machine learning.

Also check courses outside the mathematics department. A statistics course may teach probability, while a data science course may introduce mathematical reasoning. Department prefixes describe administration; they do not provide a complete inventory of mathematical content.

AreaWhat you would use it to doA question to ask about the course
CalculusDescribe change, accumulate quantities, and reason about functions.Does the required sequence reach functions of several variables?
Linear algebraRepresent many observations and features with vectors and matrices.Will you solve systems, interpret transformations, and justify properties?
ProbabilitySpecify uncertainty and calculate consequences of a model.How much calculus and proof does the probability course assume?
StatisticsEstimate quantities, compare explanations, and evaluate uncertainty.Are inference and regression required, elective, or distributed across courses?
OptimizationChoose parameters by minimizing or maximizing an objective.Is there a dedicated requirement, an elective, or coverage within another course?

A math matrix for three actual BS programs

The entries below are selected requirements, not complete degree plans. Course numbers belong to their own institutions. A course with a similar number elsewhere need not be equivalent. In the optimization column, absence of a separately named requirement does not establish absence of optimization instruction.

Program and official sourceCalculus and linear algebraProbability and statisticsOptimization distinction
University of Iowa, Data Science BS — program requirementsMATH 1850, 1860, 2850; linear algebra through MATH 2700.STAT 3100–3101; STAT 2010; DATA/STAT 3200 regression.No separately named optimization course in the listed required mathematics block.
Iowa State University, Data Science BS — program requirementsMATH 1650, 1660, 2650; linear algebra through MATH 2070.STAT 3447; introductory and intermediate statistics requirements include specified alternatives.No separately named optimization course in the listed required mathematics block.
UC San Diego, Data Science BS — 2026–27 requirementsMATH 20A, 20B, and 20C or 31BH; MATH 18 or 31AH.ECON 120A, MATH 183, or MATH 181A; MATH 189.MATH 173A–B appears among approved electives, not the common required math list.

There is more to compare than the final calculus course. One program may put probability and inference into a combined sequence; another may offer alternatives that assume different preparation. You need the description and prerequisites of the particular option you would take.

Do not rank the programs by adding the numerals in their course codes or by comparing semester credits directly with quarter units. First compare the learning sequence: prerequisites, required concepts, assessments, and available advanced work. Then use the institution’s own unit system to estimate your schedule.

Read prerequisites as logical conditions

Iowa State’s STAT 3447 course entry requires three groups: MATH 2070 or 3170; MATH 2650; and STAT 3201 or 3226. All three groups are prerequisites. The entry lists fall as its typical offering term. “Or” provides a choice within a group; it does not turn the three groups into one menu.

For a planning exercise, suppose you have completed MATH 2070 and MATH 2650 but neither intermediate statistics alternative. You have satisfied two groups, not the entire prerequisite. The missing item to discuss with an advisor is STAT 3201 or STAT 3226, or a formally approved equivalent. Taking an unrelated additional calculus course would not by itself fill that gap.

A typical offering is useful planning evidence, but a catalog is not a seat reservation. Check the actual schedule and ask whether the expected section will run. Record the answer separately from the prerequisite rule. One concerns academic eligibility; the other concerns when you can act on it.

This distinction matters especially after a late change of major. A student may have enough open elective space but still need an earlier course before entering a required sequence. The major-change planning guide shows how to separate applicable credits from calendar time.

MATH 2070 or 3170, MATH 2650, and STAT 3201 or 3226 all lead into STAT 3447; its typical offering is fall.
Selected Iowa State catalog prerequisites for STAT 3447. Alternatives apply within a group; all three groups are required. Typical offering does not guarantee a section or seat. Source: Iowa State statistics course catalog, reviewed November 11, 2026. Select the diagram to view it at full size.

Mini-exercise 1: turn a table into a linear prediction

Imagine an invented model for weekly demand. Each row contains two features: hours of promotion and whether a local event occurs. The event indicator is 1 for an event and 0 otherwise. The deliberately simple rule is:

predicted demand = 5 + 2 × promotion hours + 3 × event indicator

WeekPromotion hoursEvent indicatorYour calculation
A405 + 2 × 4 + 3 × 0 = 13
B215 + 2 × 2 + 3 × 1 = 12

Worked answer: multiply each feature by its coefficient, add the products, and add the intercept, 5. In vector language, each row is a feature vector; its dot product with the coefficient vector (2, 3) supplies the variable part of the prediction. The predictions are 13 and 12.

Now replace promotion hours with minutes while keeping the same underlying activity. Four hours becomes 240 minutes. The promotion coefficient must become 2/60 per minute to preserve the original rule. Keeping the coefficient at 2 would produce a different model, not a harmless change of column labels.

The lesson is about representation and units. Nothing in the arithmetic proves that promotion causes demand or that the coefficients describe a real population. Those are questions about study design and evidence. A successful analysis must keep the mathematical operation and the interpretation separate.

Mini-exercise 2: use a derivative to choose a constant

Suppose two invented observations are 2 and 6. You want one constant prediction, c, and decide to minimize the sum of squared errors:

L(c) = (c − 2)^2 + (c − 6)^2

Try 3, 4, and 5 first. The losses are 10, 8, and 10, respectively. This suggests 4 is promising, but three trials do not prove a global minimum.

Worked answer: expanding gives L(c) = 2c^2 − 16c + 40. Its derivative is L'(c) = 4c − 16. Setting the derivative equal to zero gives c = 4. The second derivative is 4, which is positive, so this quadratic curves upward and 4 is its unique minimum.

You can check the result without calculus by writing L(c) = 2(c − 4)^2 + 8. A square cannot be negative, so the smallest possible loss is 8, attained at 4. Both approaches reach the same answer while showing different mathematical ideas.

This is a one-parameter example with a particularly friendly objective. It does not imply that every machine-learning objective has one solution or that every stationary point is a minimum. Its purpose is to show why a calculus requirement can connect to selecting model parameters rather than exist as an unrelated hurdle.

Build a preparation plan from the actual gaps

Use completed coursework and a few worked problems to identify a starting point. “I need to review algebraic manipulation” is actionable. “I am bad at data science” is not a course plan. Record what went wrong: translating a sentence into an expression, handling fractions, interpreting notation, or explaining why a step is valid.

  1. Find the first required course you have not completed. Read its placement rules and prerequisites before choosing a review course.
  2. Check accepted evidence. Ask how the department treats previous coursework, examination credit, and approved substitutions; do not decide equivalence from the title alone.
  3. Work a small sample slowly. Explain the units and each operation before trying to increase speed.
  4. Connect computation to explanation. Use software to check arithmetic, then explain the result without relying on the output alone.
  5. Schedule support around the sequence. Identify office hours, tutoring, and the next registration window before a prerequisite becomes a last-minute obstacle.

A comparison worksheet you can actually use

For each candidate program, save one row per requirement with these fields: catalog year; exact course or alternative group; required/elective status; prerequisites; evidence you already satisfy them; typical offering; confirmed upcoming offering; and the later course it unlocks. Leave unverified cells visibly unanswered.

Then ask three decision questions. Can you enter the first required mathematics course? Can the sequence fit your intended enrollment pattern? Does the available advanced work support the kinds of questions you want to investigate? These answers are more useful than a single “math-heavy” label.

If the theory of uncertainty and study design is your main interest, compare the statistics curriculum. If software systems are equally important to you, the data science and computer science comparison helps you examine that choice without treating the fields as interchangeable.

Sources

Subir