Mathematics for Machine Learning articles

FoundationsEmpirical Risk Minimization: The Principle Behind Most TrainingSee what training minimizes, why average loss on a sample can stand in for future loss, and where that substitution breaks down.FoundationsPAC Learning Explained With a Simple ExampleLearn what probably approximately correct means by learning a threshold, deriving the sample size, and checking it by simulation.FoundationsVC Dimension and the Capacity of a ClassifierUnderstand shattering, work out the VC dimension of simple classifiers, and see what it does and does not say about generalization.FoundationsSample Complexity: How Many Examples a Guarantee RequiresCompute how many examples classic learning bounds demand, see what drives the numbers, and learn why practice often needs fewer.FoundationsRegularization as a Way to Control Model CapacitySee how penalties, constraints and early stopping limit what a model can fit, with ridge and lasso worked out by hand and in code.FoundationsThe Curse of Dimensionality and Why Distances Stop HelpingSee why space empties out as features are added, why nearest and farthest points look alike, and what to do about it.FoundationsThe Manifold Hypothesis and Why High-Dimensional Data Is LearnableWhy images and text with thousands of dimensions can be learned from limited data, how to probe the idea, and where it strains.FoundationsDouble Descent: When More Parameters Reduce Test Error AgainUnderstand why test error can peak as a model starts to fit its training data exactly and then fall again, with code to see it.FoundationsOccam's Razor and Minimum Description Length in Model SelectionTurn the preference for simpler explanations into a calculation in bits, and compare it with AIC, BIC and cross-validation.FoundationsWhy the Assumption of Independent, Identically Distributed Data MattersLearn what the i.i.d. assumption promises, how groups, time and drift break it, and which splits and checks protect your results.FoundationsConcentration Inequalities and Why Test Set Estimates Can Be TrustedUse Hoeffding, Chebyshev and Bernstein bounds to say how far a test score can stray from the truth, and learn when they fail.FoundationsOnline Learning Theory and the Idea of RegretUnderstand regret, why following the leader can fail, and how weighted experts and online gradient descent come with guarantees.The Math Behind the MethodsVectors as Data Points: The Geometry Behind a Feature TableSee how each row of a feature table becomes a point in space, and what distance, direction and flat boundaries mean for your model.The Math Behind the MethodsDot Products and Cosine Similarity in Machine LearningLearn what a dot product measures, how cosine similarity differs from it and from distance, and how to pick one for search or scoring.The Math Behind the MethodsCounting FLOPs: What Matrix Products Cost in a ModelCount the arithmetic in dense, convolution and attention layers, and learn why the FLOP total alone does not tell you the running time.The Math Behind the MethodsTensor Shapes and Broadcasting: Reading the Dimensions of a ModelRead array shapes with confidence, apply the broadcasting rules, and catch the silent shape bugs that corrupt a loss without raising errors.The Math Behind the MethodsL1, L2 and Infinity Norms and Where Each Appears in LearningCompare the three common vector norms and see how each shapes losses, penalties, gradient clipping, distances and robustness budgets.The Math Behind the MethodsEigenvectors of a Covariance Matrix and What They Reveal About DataWork a small example to see how covariance eigenvectors show the main directions of spread, redundancy among features and their limits.The Math Behind the MethodsSingular Value Decomposition for Compression and Latent FactorsUnderstand what SVD does to a matrix, work a two by two case by hand, and use truncation to compress data and find latent factors.The Math Behind the MethodsLow-Rank Approximation: Why So Many Models Exploit ItLearn why large matrices can often be replaced by two thin ones, what that saves, where models use the trick and when it breaks down.The Math Behind the MethodsProjections and the Geometry of Least SquaresSee least squares as dropping a perpendicular onto the space your features can reach, with a worked fit and what the geometry explains.The Math Behind the MethodsPositive Definite Matrices in Kernels and OptimizationLearn what positive definiteness means, how to test for it, and why kernels, covariance matrices, Newton steps and convexity depend on it.The Math Behind the MethodsCondition Numbers and Why Some Training Problems Are HardSee how a single ratio predicts sensitive solutions and slow gradient descent, with worked numbers and practical ways to improve it.The Math Behind the MethodsPartial Derivatives of a Model Loss, Worked by HandCompute the gradients of linear and logistic regression losses step by step, check them numerically and turn them into training updates.The Math Behind the MethodsThe Chain Rule Applied to Computation GraphsDraw a calculation as a graph, run a forward and backward pass by hand, and build a tiny automatic differentiator in Python.The Math Behind the MethodsJacobians and Vector-Jacobian Products in Deep LearningSee what a Jacobian holds, why backpropagation never builds it, and how vector-Jacobian products work for common layers.The Math Behind the MethodsThe Hessian Matrix and the Curvature of a Loss SurfaceLearn what the Hessian says about curvature, step sizes and saddle points, and how to probe it without storing the whole matrix.The Math Behind the MethodsMatrix Calculus Identities a Machine Learning Reader NeedsA compact, checked set of gradient identities for vectors and matrices, with shape rules, a derivation method and test code.The Math Behind the MethodsAutomatic Differentiation: Forward Mode and Reverse Mode ComparedTrace one function through both modes of automatic differentiation, compare their costs, and learn where each one fits.The Math Behind the MethodsTaylor Approximations and Why Optimizers Rely on ThemSee how linear and quadratic approximations of a loss lead to gradient descent, step size limits, Newton steps and tree splits.The Math Behind the MethodsRandom Variables and Distributions That Show Up in Model BuildingA working guide to the distributions behind common losses and priors, how to pick one for your target, and how to check it.The Math Behind the MethodsThe Gaussian Distribution in Machine Learning and Its LimitsWhy the bell curve appears throughout machine learning, how its multivariate form works, and when assuming it will mislead you.The Math Behind the MethodsExpectation and Variance of an Estimator, With Model ExamplesUnderstand bias, variance and mean squared error of estimators through accuracy scores, shrinkage, ensembles and mini-batches.The Math Behind the MethodsDeriving Cross-Entropy Loss From LikelihoodBuild binary and multiclass cross-entropy from the probability of the data, compute gradients by hand and avoid numeric traps.The Math Behind the MethodsMaximum a Posteriori Estimation and Its Link to Weight PenaltiesSee how a prior on the weights turns into an L2 or L1 penalty, how to match the constants, and where the analogy stops.The Math Behind the MethodsKL Divergence: Measuring How One Distribution Differs From AnotherCompute KL divergence by hand, understand why direction matters, and see how it behaves in training, distillation and monitoring.The Math Behind the MethodsMutual Information as a Tool for Feature and Representation AnalysisLearn what mutual information measures, compute it from a table, use it to screen features, and avoid its estimation traps.The Math Behind the MethodsConditional Independence and Probabilistic Graphical ModelsUnderstand conditional independence through numbers, read chains, forks and colliders, and see how graphs shrink a model.