🌍 Machine Learning · subject

Machine Learning Mathematics Syllabus

The Mathematics syllabus for Machine Learning in full: 5 chapters, 17 topics and 72 sub-topics, every one listed below, plus 59 Mathematics flashcards with answers.

5Chapters
17Topics
72Sub-topics
59Flashcards

Mathematics syllabus: all 5 chapters

Expand any chapter to see its topics and sub-topics.

  1. Linear Algebra

    4 topics
    • Vectors
      • Definition and Properties
      • Vector Operations
      • Dot Product
      • Cross Product
      • Norms
    • Matrices
      • Definition and Properties
      • Matrix Operations
      • Matrix Transpose
      • Matrix Inverse
      • Determinants
    • Eigenvalues and Eigenvectors
      • Definition and Properties
      • Characteristic Equation
      • Diagonalization
      • Applications in Machine Learning
    • Linear Transformations
      • Definition and Properties
      • Matrix Representation
      • Change of Basis
      • Singular Value Decomposition
  2. Calculus

    3 topics
    • Differential Calculus
      • Limits and Continuity
      • Derivatives
      • Partial Derivatives
      • Gradient
      • Chain Rule
    • Integral Calculus
      • Definite and Indefinite Integrals
      • Techniques of Integration
      • Multivariable Integration
      • Applications in Probability and Statistics
    • Optimization
      • Unconstrained Optimization
      • Constrained Optimization
      • Lagrange Multipliers
      • Gradient Descent
      • Stochastic Gradient Descent
  3. Probability and Statistics

    3 topics
    • Probability Theory
      • Probability Spaces
      • Conditional Probability
      • Bayes' Theorem
      • Random Variables
      • Probability Distributions
    • Descriptive Statistics
      • Measures of Central Tendency
      • Measures of Dispersion
      • Skewness and Kurtosis
      • Data Visualization
    • Inferential Statistics
      • Hypothesis Testing
      • Confidence Intervals
      • p-values
      • ANOVA
      • Regression Analysis
  4. Discrete Mathematics

    3 topics
    • Set Theory
      • Sets and Subsets
      • Operations on Sets
      • Venn Diagrams
      • Cartesian Products
    • Graph Theory
      • Graphs and Digraphs
      • Graph Representations
      • Graph Traversal Algorithms
      • Shortest Path Algorithms
      • Applications in Machine Learning
    • Combinatorics
      • Permutations and Combinations
      • Binomial Theorem
      • Pigeonhole Principle
      • Inclusion-Exclusion Principle
  5. Numerical Methods

    4 topics
    • Root Finding Algorithms
      • Bisection Method
      • Newton-Raphson Method
      • Secant Method
    • Linear System Solvers
      • Gaussian Elimination
      • LU Decomposition
      • Jacobi Method
      • Gauss-Seidel Method
    • Numerical Integration
      • Trapezoidal Rule
      • Simpson's Rule
      • Monte Carlo Integration
    • Optimization Algorithms
      • Gradient Descent
      • Newton's Method
      • Conjugate Gradient Method

Machine Learning Mathematics flashcards — 59 questions with answers

  1. What is the dot product of two vectors $\vec{a}$ and $\vec{b}$ in $\mathbb{R}^n$, and what does it equal geometrically?

    $\vec{a} \cdot \vec{b} = \sum_{i=1}^{n} a_i b_i = \|\vec{a}\|\,\|\vec{b}\|\cos\theta$, where $\theta$ is the angle between the vectors.

  2. How is the Euclidean ($L^2$) norm of a vector $\vec{v} = (v_1, \dots, v_n)$ defined?

    $\|\vec{v}\|_2 = \sqrt{\sum_{i=1}^{n} v_i^{2}} = \sqrt{\vec{v}\cdot\vec{v}}$.

  3. When are two nonzero vectors orthogonal?

    When their dot product is zero: $\vec{a}\cdot\vec{b} = 0$, which corresponds to an angle of $90^\circ$ between them.

  4. What is the cosine similarity between two vectors $\vec{a}$ and $\vec{b}$?

    $\cos\theta = \dfrac{\vec{a}\cdot\vec{b}}{\|\vec{a}\|\,\|\vec{b}\|}$, ranging from $-1$ to $1$.

  5. How do you compute the projection of vector $\vec{a}$ onto vector $\vec{b}$?

    $\text{proj}_{\vec{b}}\vec{a} = \dfrac{\vec{a}\cdot\vec{b}}{\|\vec{b}\|^{2}}\,\vec{b}$.

  6. For a $2\times 2$ matrix $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$, what is its determinant?

    $\det(A) = ad - bc$.

  7. What is the inverse of a $2\times 2$ matrix $A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}$ when $\det(A) \neq 0$?

    $A^{-1} = \dfrac{1}{ad-bc}\begin{pmatrix} d & -b \\ -c & a \end{pmatrix}$.

  8. State the rule for transposing a product of matrices: $(AB)^{T} = ?$

    $(AB)^{T} = B^{T}A^{T}$ (the order reverses).

  9. What condition must hold for matrices $A$ and $B$ to be multipliable as $AB$, and what is the resulting shape?

    If $A$ is $m\times n$ and $B$ is $n\times p$ (inner dimensions match), then $AB$ is $m\times p$.

  10. What does it mean for a square matrix to be singular?

    It is non-invertible; equivalently $\det(A) = 0$, its columns are linearly dependent, and its rank is less than full.

  11. Define the rank of a matrix.

    The dimension of the column space (equal to the dimension of the row space) — the maximum number of linearly independent columns (or rows).

  12. What is an identity matrix and its defining property?

    $I_n$ is the $n\times n$ matrix with $1$s on the diagonal and $0$s elsewhere, satisfying $AI = IA = A$ for any compatible $A$.

  13. What equation defines an eigenvalue $\lambda$ and eigenvector $\vec{v}$ of matrix $A$?

    $A\vec{v} = \lambda\vec{v}$ with $\vec{v} \neq \vec{0}$.

  14. How do you find the eigenvalues of a square matrix $A$?

    Solve the characteristic equation $\det(A - \lambda I) = 0$ for $\lambda$.

  15. What is the relationship between the trace of a matrix and its eigenvalues?

    The trace (sum of diagonal entries) equals the sum of the eigenvalues: $\operatorname{tr}(A) = \sum_i \lambda_i$.

  16. What is the relationship between the determinant of a matrix and its eigenvalues?

    The determinant equals the product of the eigenvalues: $\det(A) = \prod_i \lambda_i$.

  17. When is a real symmetric matrix guaranteed to have real eigenvalues and orthogonal eigenvectors?

    Always — by the spectral theorem, every real symmetric matrix has real eigenvalues and a complete set of orthogonal (orthonormal) eigenvectors.

  18. What does a linear transformation $T$ preserve, by definition?

    Additivity and scalar homogeneity: $T(\vec{u}+\vec{v}) = T(\vec{u}) + T(\vec{v})$ and $T(c\vec{v}) = cT(\vec{v})$.

  19. How is every linear transformation $T: \mathbb{R}^n \to \mathbb{R}^m$ represented?

    By matrix multiplication $T(\vec{x}) = A\vec{x}$ for a unique $m\times n$ matrix $A$ whose columns are $T$ applied to the standard basis vectors.

  20. Geometrically, what does $|\det(A)|$ represent for a linear transformation $\vec{x}\mapsto A\vec{x}$?

    The factor by which the transformation scales area (2D) or volume (3D). A negative determinant also indicates orientation reversal.

Show the other 39 Mathematics flashcards
  1. What is the power rule for derivatives: $\frac{d}{dx}x^{n} = ?$

    $\dfrac{d}{dx}x^{n} = n\,x^{n-1}$.

  2. State the chain rule for $\frac{d}{dx}f(g(x))$.

    $\dfrac{d}{dx}f(g(x)) = f'(g(x))\cdot g'(x)$.

  3. State the product rule for differentiation of $f(x)g(x)$.

    $(fg)' = f'g + fg'$.

  4. What is the gradient $\nabla f$ of a scalar function $f(x_1,\dots,x_n)$, and what does it point toward?

    $\nabla f = \left(\dfrac{\partial f}{\partial x_1}, \dots, \dfrac{\partial f}{\partial x_n}\right)$; it points in the direction of steepest ascent.

  5. What is the derivative of the natural exponential and natural logarithm?

    $\dfrac{d}{dx}e^{x} = e^{x}$ and $\dfrac{d}{dx}\ln x = \dfrac{1}{x}$.

  6. State the power rule for integration: $\int x^{n}\,dx = ?$ (for $n \neq -1$).

    $\int x^{n}\,dx = \dfrac{x^{n+1}}{n+1} + C$.

  7. State the Fundamental Theorem of Calculus (evaluation form).

    If $F' = f$, then $\displaystyle\int_a^b f(x)\,dx = F(b) - F(a)$.

  8. What is the formula for integration by parts?

    $\displaystyle\int u\,dv = uv - \int v\,du$.

  9. At an interior point, what is the first-order necessary condition for $f$ to have a local extremum?

    The gradient vanishes: $\nabla f = \vec{0}$ (a stationary/critical point); $f'(x)=0$ in one dimension.

  10. How does the second-derivative test classify a critical point in one variable where $f'(x_0)=0$?

    If $f''(x_0) > 0$ it is a local minimum; if $f''(x_0) < 0$ a local maximum; if $f''(x_0) = 0$ the test is inconclusive.

  11. What is the gradient descent update rule with learning rate $\eta$?

    $\vec{x}_{t+1} = \vec{x}_t - \eta\,\nabla f(\vec{x}_t)$.

  12. What property of a function guarantees that any local minimum is also a global minimum?

    Convexity — for a convex function over a convex set, every local minimum is a global minimum.

  13. In constrained optimization, what method introduces multipliers to handle equality constraints?

    The method of Lagrange multipliers: optimize $\mathcal{L}(\vec{x},\lambda) = f(\vec{x}) - \lambda\,g(\vec{x})$, setting $\nabla\mathcal{L} = \vec{0}$.

  14. State the three Kolmogorov axioms of probability.

    (1) $P(A) \geq 0$; (2) $P(\Omega) = 1$; (3) for mutually exclusive events, $P(A\cup B) = P(A) + P(B)$.

  15. State Bayes' theorem.

    $P(A\mid B) = \dfrac{P(B\mid A)\,P(A)}{P(B)}$.

  16. When does $P(A\cap B) = P(A)\,P(B)$ hold?

    When events $A$ and $B$ are independent.

  17. State the general addition rule for $P(A\cup B)$.

    $P(A\cup B) = P(A) + P(B) - P(A\cap B)$.

  18. What are the definitions of expectation $E[X]$ for a discrete random variable and its variance?

    $E[X] = \sum_i x_i\,P(x_i)$ and $\operatorname{Var}(X) = E[(X-E[X])^{2}] = E[X^{2}] - (E[X])^{2}$.

  19. What is the probability density function of the normal distribution $\mathcal{N}(\mu,\sigma^2)$?

    $f(x) = \dfrac{1}{\sigma\sqrt{2\pi}}\,\exp\!\left(-\dfrac{(x-\mu)^{2}}{2\sigma^{2}}\right)$.

  20. How do the mean, median, and mode compare, and which is most robust to outliers?

    Mean is the arithmetic average, median the middle value, mode the most frequent value. The median is most robust to outliers; the mean is most sensitive.

  21. What is the difference between population variance and sample variance formulas?

    Population: $\sigma^{2} = \dfrac{1}{N}\sum (x_i-\mu)^{2}$. Sample (Bessel's correction): $s^{2} = \dfrac{1}{n-1}\sum (x_i-\bar{x})^{2}$.

  22. Define the standard deviation in terms of variance.

    $\sigma = \sqrt{\operatorname{Var}(X)}$ — the square root of the variance, in the same units as the data.

  23. What does the Central Limit Theorem state?

    The distribution of the sample mean of $n$ i.i.d. variables approaches a normal distribution as $n\to\infty$, with mean $\mu$ and variance $\dfrac{\sigma^{2}}{n}$, regardless of the population's distribution.

  24. In hypothesis testing, what is a p-value?

    The probability of observing a result at least as extreme as the data, assuming the null hypothesis $H_0$ is true. A small p-value (e.g. $< 0.05$) leads to rejecting $H_0$.

  25. Distinguish a Type I error from a Type II error.

    Type I ($\alpha$): rejecting a true null hypothesis (false positive). Type II ($\beta$): failing to reject a false null hypothesis (false negative).

  26. What is De Morgan's law for set complements?

    $(A\cup B)^{c} = A^{c}\cap B^{c}$ and $(A\cap B)^{c} = A^{c}\cup B^{c}$.

  27. How many elements are in the power set of a set $S$ with $|S| = n$?

    $2^{n}$ — the power set contains all subsets of $S$.

  28. What are the formulas for the number of permutations and combinations of $n$ items taken $k$ at a time?

    Permutations: $P(n,k) = \dfrac{n!}{(n-k)!}$. Combinations: $\binom{n}{k} = \dfrac{n!}{k!\,(n-k)!}$.

  29. State the binomial theorem.

    $(x+y)^{n} = \sum_{k=0}^{n}\binom{n}{k}x^{n-k}y^{k}$.

  30. In graph theory, what does the Handshaking Lemma state?

    The sum of all vertex degrees equals twice the number of edges: $\sum_{v} \deg(v) = 2|E|$; consequently the number of odd-degree vertices is even.

  31. Compare the time complexity and use cases of bisection versus Newton's method for root finding.

    Bisection: guaranteed linear convergence, needs a sign-change bracket $[a,b]$ where $f(a)f(b)<0$, robust but slow. Newton's method: $x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)}$, quadratic convergence near the root but needs the derivative and may diverge.

  32. How does Newton's method update an estimate of a root of $f(x)=0$?

    $x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)}$, converging quadratically near a simple root.

  33. Compare direct (e.g. LU/Gaussian elimination) versus iterative (e.g. Jacobi, Gauss-Seidel) linear system solvers.

    Direct solvers (Gaussian elimination, LU) give an exact solution in $O(n^{3})$ and suit dense systems. Iterative solvers (Jacobi, Gauss-Seidel, conjugate gradient) refine an approximation, scale better for large sparse systems, but require convergence conditions (e.g. diagonal dominance).

  34. What does LU decomposition factor a matrix into, and why is it useful?

    $A = LU$, a lower-triangular $L$ times an upper-triangular $U$. It lets you solve $A\vec{x}=\vec{b}$ efficiently via forward/back substitution, reusing the factorization for multiple right-hand sides.

  35. State the trapezoidal rule for numerical integration over $[a,b]$ (single interval).

    $\displaystyle\int_a^b f(x)\,dx \approx \dfrac{b-a}{2}\big(f(a) + f(b)\big)$.

  36. State Simpson's rule for numerical integration over $[a,b]$ and how its accuracy compares to the trapezoidal rule.

    $\displaystyle\int_a^b f(x)\,dx \approx \dfrac{b-a}{6}\Big(f(a) + 4f\!\left(\tfrac{a+b}{2}\right) + f(b)\Big)$. It fits a parabola and is more accurate (error $O(h^{4})$) than the trapezoidal rule (error $O(h^{2})$).

  37. How does stochastic gradient descent (SGD) differ from batch gradient descent?

    Batch GD computes the gradient over the entire dataset per update (accurate, slow, costly). SGD updates using one sample (or a mini-batch) per step — faster and able to escape shallow minima, but with noisier, higher-variance updates.

  38. What advantage do momentum-based optimizers (e.g. Adam) provide over plain gradient descent?

    They accumulate a velocity from past gradients (and Adam adapts per-parameter learning rates via first and second moment estimates), accelerating convergence in ravines, damping oscillations, and handling sparse or poorly scaled gradients.

  39. What is the convexity condition for a twice-differentiable function in terms of its Hessian?

    The function is convex if and only if its Hessian matrix $H = \nabla^{2}f$ is positive semidefinite ($H \succeq 0$) everywhere on the domain.

Machine Learning Mathematics FAQ

What is in the Machine Learning Mathematics syllabus?

Machine Learning Mathematics is split into 5 chapters: Linear Algebra, Calculus, Probability and Statistics, Discrete Mathematics and Numerical Methods. Together they contain 17 topics and 72 sub-topics.

How many chapters are in Machine Learning Mathematics?

5 chapters, containing 17 topics and 72 sub-topics. The largest chapter is Linear Algebra, with 4 topics.

Are there flashcards for Machine Learning Mathematics?

Yes — a 59-card Mathematics deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.