Single Source of Truth · Applied ML Mathematics

Mathematics for Applied Machine Learning

The pragmatic syllabus for building, understanding, and debugging real models. Zero symbolic gymnastics. Focus on tensor geometry, gradient sensitivity, loss objectives, and numerical stability.

Understanding > Hand Calculation

Never waste time manually expanding determinants or hand-calculating derivatives. Understand plain English intuition, tensor shapes, assumptions, and libraries.

The One Python Warning

Libraries do arithmetic, but they cannot save you from the wrong loss, mismatched distributions, unscaled features, or floating-point underflow.

The 3-Step Fast Study Loop

Watch curated 10m video → Explain in 2 sentences → Run one tiny Python snippet → move on!

Mastery TrackerAuto-saved in browser & account

Curriculum Progress

22 Essentials
0 / 22 (0%)
0%
All Topics
0 / 35 (0%)
0%
Phase 1: 22 Applied Essentials (Prerequisite for building models)0 of 22 Completed
Phase 2: 13 On-Demand Advanced Extensions0 of 13 Completed
Essential Core4 Topics

Functions, Calculus & Optimization Gradients

Rates of change, backpropagation sensitivity flow, and parameter updates.

Section Mastery
0 / 4 Completed
#1 Essential

Functions, Exponentials & Logarithms

Understand why exp/log appear in sigmoid, softmax, likelihood, and cross-entropy. No log-manipulation drills.

np.exp, np.log, torch.exp, torch.log
#5 Essential

Derivatives, Partial Derivatives & Gradients

Derivative = sensitivity/rate of change; gradient = direction of steepest increase across many parameters.

loss.backward(), torch.autograd.grad, jax.grad
#6 Essential

Chain Rule & Backpropagation Intuition

Understand how local derivatives compose so error signals can flow backward through a model.

loss.backward(), jax.vjp, autograd graph
#7 Essential

Gradient Descent, SGD & Learning Rate

Understand parameter updates, step size, minibatches, convergence problems, and why training can diverge.

torch.optim.SGD, torch.optim.AdamW, lr_scheduler
Essential Core3 Topics

Linear Algebra, Tensors & Geometry

Multi-dimensional arrays, spatial transformations, dot products, and projections.

Section Mastery
0 / 3 Completed
#2 Essential

Vectors, Matrices, Tensors & Shapes

Know what a vector/matrix/tensor represents and how dimensions/shapes map to samples, features, batches, and parameters.

np.array, torch.Tensor, .shape, .view(), .reshape()
#3 Essential

Matrix Multiplication

Understand it as combining linear transformations / weighted features; be able to reason about compatible shapes.

A @ B, np.matmul, torch.matmul, torch.bmm
#4 Essential

Dot Product, Projection, Norms, Distance & Cosine Similarity

Understand similarity, vector length and distance. You do not need repetitive hand calculations.

np.dot, np.linalg.norm, torch.cosine_similarity, sklearn.metrics.pairwise.cosine_similarity
Essential Core7 Topics

Probability, Distributions & Estimation

Quantifying uncertainty, expectation, covariance, Bayes theorem, and maximum likelihood.

Section Mastery
0 / 7 Completed
#8 Essential

Random Variables & Probability Distributions

Understand distributions as models of uncertainty; know discrete vs continuous and PMF/PDF/CDF at an intuitive level.

scipy.stats, torch.distributions.Categorical, torch.distributions.Normal
#9 Essential

Expected Value, Mean, Variance & Standard Deviation

Understand center, spread and long-run average; recognize why expected loss is central to ML.

np.mean, np.var, np.std, torch.mean, torch.var_mean
#10 Essential

Covariance & Correlation

Understand how variables move together, what sign/magnitude mean, and why correlation is not causation.

np.cov, np.corrcoef, pandas.DataFrame.corr()
#11 Essential

Conditional Probability, Independence & Bayes' Theorem

Understand updating beliefs from evidence, priors/posteriors, and independence assumptions.

sklearn.naive_bayes.GaussianNB, scipy.stats
#12 Essential

Common Distributions: Bernoulli, Categorical & Gaussian

Know what kind of target/noise each models; recognize their shapes and parameters.

scipy.stats.bernoulli, scipy.stats.multinomial, scipy.stats.norm, torch.distributions
#13 Essential

Likelihood, Log-Likelihood & Maximum Likelihood Estimation (MLE)

Know probability-vs-likelihood and why fitting often means maximizing log-likelihood.

Usually inside .fit() / torch.nn.NLLLoss, scipy.optimize.minimize
#14 Essential

Sampling, Central Limit Theorem & Standard Error

Understand why estimates fluctuate between samples and why averages often become approximately normal.

scipy.stats.sem, np.random.choice, bootstrap utilities
Essential Core4 Topics

Machine Learning Models & Loss Functions

Translating predictions into penalties: least squares, logistic curves, cross-entropy, and softmax.

Section Mastery
0 / 4 Completed
#15 Essential

Least Squares & Linear Regression

Understand residuals, squared error, and what the fitted coefficients mean.

sklearn.linear_model.LinearRegression, np.linalg.lstsq
#16 Essential

Logistic Regression, Sigmoid, Logits & Probabilities

Understand how a linear score becomes a binary probability and what logits mean.

sklearn.linear_model.LogisticRegression, torch.sigmoid
#17 Essential

Loss Functions: MSE, Binary Log-Loss & Cross-Entropy

Know what the model is optimizing and why regression/classification use different losses.

mean_squared_error, log_loss, torch.nn.MSELoss, torch.nn.CrossEntropyLoss, torch.nn.BCEWithLogitsLoss
#18 Essential

Softmax & Multiclass Probabilities

Understand turning multiple logits into a probability distribution over classes.

torch.softmax, scipy.special.softmax, torch.log_softmax
Essential Core4 Topics

Generalization, Regularization & Numerical Stability

Bias-variance trade-offs, L1/L2 penalties, data leakage prevention, and floating-point health.

Section Mastery
0 / 4 Completed
#19 Essential

Bias–Variance, Underfitting & Overfitting

Understand the generalization trade-off and why lower training error is not always better.

sklearn.model_selection.learning_curve, validation metrics
#20 Essential

Regularization: L1 & L2

Understand why parameter penalties can improve generalization and the qualitative difference between L1 and L2.

Ridge, Lasso, ElasticNet, optimizer weight_decay
#21 Essential

Train/Validation/Test Splits & Cross-Validation

Understand unbiased evaluation, model selection, and data leakage.

train_test_split, KFold, StratifiedKFold, cross_val_score
#22 Essential

Feature Scaling, Standardization & Numerical Stability

Know why scale changes optimization/distance methods; understand overflow/underflow and why stable library implementations matter.

StandardScaler, MinMaxScaler, scipy.special.logsumexp, torch.logsumexp
Extension Track13 Topics

Good to Do — On-Demand Mathematical Extensions

Learn when a concrete model, dimensionality reduction, or probabilistic project requires it.

Section Mastery
0 / 13 Completed
Ext #1

Linear Combinations, Span, Basis & Rank

Useful for dimensionality, redundant features and representation intuition.

np.linalg.matrix_rank, scipy.linalg.orth
Ext #2

Eigenvalues & Eigenvectors

Useful for PCA, spectral methods and understanding transformations.

np.linalg.eig, np.linalg.eigh (for symmetric matrices)
Ext #3

PCA (Principal Component Analysis)

Useful for dimensionality reduction, visualization and decorrelation.

sklearn.decomposition.PCA
Ext #4

Singular Value Decomposition (SVD)

Useful for low-rank approximation, PCA, recommender systems and embeddings.

np.linalg.svd, sklearn.decomposition.TruncatedSVD, torch.svd
Ext #5

Matrix Inverse & Determinant — Concept Only

Know what they mean; prefer solvers/decompositions in real code.

np.linalg.det, np.linalg.solve (preferred over inv), np.linalg.slogdet
Ext #6

Jacobians & Hessians — Concept Only

Useful when reading optimization/autodiff literature or debugging advanced models.

torch.autograd.functional.jacobian, torch.autograd.functional.hessian
Ext #7

Entropy, Cross-Entropy & KL Divergence

Especially useful for deep learning, generative/probabilistic models and information theory.

scipy.stats.entropy, torch.nn.KLDivLoss
Ext #8

Convexity & Constrained Optimization

Useful for SVMs, classical optimization and understanding guarantees.

scipy.optimize.minimize, cvxpy
Ext #9

Confidence Intervals & Hypothesis Testing

Important if your job includes experimentation, A/B testing or scientific inference.

scipy.stats.ttest_ind, statsmodels.stats.weightstats
Ext #10

Bayesian Posterior & MAP Estimation

Useful for Bayesian/probabilistic ML.

pymc, pyro, stan
Ext #11

Fourier Transform & Convolution Intuition

Useful for signals, vision, audio and some time-series work.

np.fft.fft, scipy.signal.spectrogram, torch.fft
Ext #12

Autocorrelation & Stationarity

Useful for time-series forecasting.

statsmodels.tsa.stattools.acf, statsmodels.tsa.stattools.adfuller
Ext #13

Markov Chains / MDP Intuition

Useful if you move into reinforcement learning.

scipy.stats, gymnasium, stable-baselines3