Math
Linear algebra, calculus, probability for ML
Linear Algebra
- Math
Vectors, Matrices and Tensors
Three names for the same idea at different sizes: a container of numbers, described entirely by how many axes it has and how long each one is.
- Math
Dot Product
Multiply two lists of numbers position by position and add up the result — a single number saying how much the two point the same way.
- Math
Matrix Multiplication
Every entry of the answer is one dot product: a row from the left meeting a column from the right, which is why the inner dimensions have to agree.
- Math
Linear Transformations
A matrix is not a grid of numbers, it is an instruction for reshaping space — and reading its columns tells you exactly where the axes end up.
- Math
Vector Spaces and Rank
How many genuinely different directions a set of numbers actually contains — usually far fewer than its size suggests, which is the redundancy every compression trick exploits.
- Math
Linear Systems and Least Squares
When there is no exact answer, settle for the closest one — and the closest one has a property so specific it hands you a formula.
- Math
Norms
A single number for how big a vector is — and there is more than one reasonable way to measure that, which is why the choice changes what your model learns.
- Math
Eigenvalues and Eigenvectors
The rare directions a matrix leaves pointing the same way, merely stretched — and the stretch factors that tell you what the matrix really does.
- Math
Singular Value Decomposition
Every matrix, no matter its shape, splits into a rotation, a set of independent stretches, and another rotation — and the stretches come ranked, so you can keep the ones that matter and drop the rest.
- Math
Positive Definite Matrices
Matrices that curve upward in every direction, the property that makes a surface a bowl with one bottom, and the reason some optimisation problems are easy.
- Math
Orthogonality and Projections
Perpendicular means zero dot product. Projection splits any vector into a parallel part plus a perpendicular leftover, which is how clean bases get built.
- Math
Determinants, Matrix Inverse, and Trace
The determinant says how much a matrix stretches space, the inverse runs that stretch backwards, and the trace adds up the diagonal — which turns out to be the sum of the eigenvalues.
- Math
Matrix Decompositions: LU, QR, Cholesky
Splitting one matrix into two triangular pieces turns slow elimination into fast substitution, and the three standard splits cover general, rectangular and symmetric matrices.
- Math
Matrix Calculus
The rules for differentiating through vectors and matrices: which expressions give which shapes, and the three identities that cover most of machine learning.
- Math
Matrix Operations
Matrices add entry by entry, multiply row by column with inner sizes that must match, and transpose flips rows into columns.
- Math
Change of Basis
The same arrow gets different coordinates under different rulers; the change-of-basis matrix translates between the rulers.
- Math
The Condition Number
One number for how much a matrix amplifies errors: the ratio of its biggest stretch to its smallest. Large means fragile answers.
- Math
Symmetric Eigendecomposition
A symmetric matrix is a stretch along perpendicular axes, no rotation mixed in. Its eigendecomposition names those axes and the stretch on each.
- Math
Matrix Norms in Machine Learning
Three ways to put one number on a whole matrix: add up everything, take the biggest stretch, or add up all the stretches. Each answers a different question.
- Math
Special Matrices
A few matrix shapes keep showing up because they compute fast and behave well: identity changes nothing, diagonal scales axes, symmetric mirrors itself, orthogonal rotates, triangular solves quickly.
- Math
Tensor Algebra
The algebra of multi-axis arrays: outer products that build them, mode products that transform one axis at a time, and unfoldings that flatten them for ordinary matrices.
- Math
Tensor Decomposition
Tensor decomposition breaks a big multi-way array into products of small vectors, matrices, and a tiny core, so hidden structure shows and parameters shrink from millions to thousands.
- Math
Einsum and Tensor Shapes
Give every axis a letter, write down which letters survive, and the operation follows — replacing a stack of reshapes and transposes with one readable line.
- Math
Hadamard Product
Multiplication done seat by seat: each entry times its counterpart, no mixing. Masks, gates and attention weights all multiply this way.
- Math
Kronecker Product
A product that builds big structured matrices out of small ones, block by block. It is how independent systems combine into one joint system.
- Math
Sparse Matrix Methods
Store only the nonzeros, compute only on nonzeros. Real matrices are mostly empty, and the format you pick decides whether code flies or crawls.
- Math
Iterative Solvers for Linear Systems
Solve huge systems without factoring: improve a guess step by step, each step costing one matrix-vector multiply. The only option past millions of unknowns.
- Math
Randomized SVD
Find a huge matrix's top directions with randomness: sketch it down to a thin sample, solve the small problem, lift the answer back up.
- Math
The Spectral Theorem
Every symmetric matrix has a full team of perpendicular eigenvectors with real eigenvalues. That guarantee is the spectral theorem, and PCA is built on it.
- Math
Numerical Integration
Estimating integrals without antiderivatives: weighted sums of function values that converge to the area. Most ML integrals end here, not in closed form.
- Math
Finite Differences
Derivatives without differentiating: slope from neighbouring values. Central beats one-sided, and shrinking the step eventually backfires.
- Math
Floating Point Arithmetic
What happens when you actually add and multiply rounded numbers. Tiny errors cancel, accumulate, or explode depending on the order of operations.
- Math
Distance and Similarity Metrics
Several defensible ways to measure how alike two things are, which disagree with each other — so picking one is a modelling decision, not a formatting choice.
- Math
PCA Derivation
Center the data, then point the first axis where the spread is largest. Those best axes are the covariance eigenvectors, ranked by their eigenvalues.
- Math
Graph Laplacian
Degree minus adjacency: the matrix that turns "neighbours should agree" into arithmetic, so connectivity becomes eigenvalues you can compute.
- Math
Spectral Graph Theory
Reading a graph through the eigenvalues of its matrices: what the spectrum guarantees about cuts, clusters, and spreading without any search.
- Math
Camera Models: Pinhole, Intrinsic/Extrinsic
A camera turns each 3D point into a pixel by shifting it into the camera frame and dividing by depth. One matrix per step does the work.
- Math
Homogeneous Coordinates and Projective Geometry
Append one extra number w to each point, so translation and perspective become plain matrix multiplies. Dividing by w returns to pixels, and w equal to zero names the vanishing points where parallels meet.
- Math
Epipolar Geometry
Epipolar geometry connects two views of the same 3D scene, showing how a point in one image restricts where it can appear in the other.
- Math
Image Transformations: Affine, Rotation, Homography
Every photo warp is a small matrix times a point. Translation slides it, rotation turns it, and only a homography can tilt a square into a trapezoid.
Calculus
- Math
Gradients
A list of slopes, one per knob, that together point in the single direction where the error climbs fastest — so the opposite direction is where training goes.
- Math
Derivatives and Partial Derivatives
A single number that answers one question: if I nudge this input a little, how much does the output move, and in which direction?
- Math
The Chain Rule
When one thing feeds into another, you find the total effect by multiplying the effects along the path — which is exactly how a network learns which of its early weights to blame.
- Math
Automatic Differentiation
Frameworks do not solve derivatives symbolically or estimate them numerically. They apply the chain rule mechanically to the operations you actually ran, which is exact and cheap.
- Math
Jacobian and Hessian
One matrix holds every first derivative of a function with many inputs and outputs; another holds every second derivative and tells you which way the surface curves.
- Math
Limits and Continuity
A limit is the value a function homes in on, and continuity means the graph arrives there with no jump, hole, or break.
- Math
Higher-Order Derivatives
Differentiate the derivative and you get curvature: the second derivative tells whether the slope itself is rising or falling, which sorts valleys from hills.
- Math
Taylor Series and Local Approximation
Replace a complicated function near one point with a simple polynomial that matches it there — the trick behind every optimisation step you have ever taken.
- Math
Multivariable Calculus
Single-variable calculus studies one knob at a time. Multivariable calculus studies whole panels of knobs at once, which is what every loss function is.
- Math
Multivariable Chain Rule
When one input reaches the output through several routes at once, multiply along each route and add the routes up. That sum is the whole of backpropagation.
- Math
Total Derivative
A partial derivative freezes everything but one input. The total derivative unfreezes them all and reports what actually happens when everything moves.
- Math
Functions of Several Variables
A recipe with several ingredients: the output depends on all of them at once, and level curves show every combination that tastes exactly the same.
- Math
Critical Points and Saddle Points
Flat in every direction is only a candidate. Curvature votes next: all up is a valley, all down is a hill, and a split vote is a mountain pass.
- Math
Definite and Indefinite Integrals
An indefinite integral is the whole family of curves sharing one slope pattern; a definite integral picks two endpoints and returns one number.
- Math
Fundamental Theorem of Calculus
Differentiation and integration undo each other: accumulate a rate and then ask the rate of the accumulation, and you get the rate back.
- Math
Integration Techniques
Two moves handle most integrals: substitution unchains a composition, and integration by parts trades a hard product for an easier one.
- Math
Double and Triple Integrals
A single integral adds up along a line. Double and triple integrals add up over areas and volumes, which is how probabilities and masses get computed.
- Math
Ordinary Differential Equations
One clock, finitely many variables, and a rule for velocities: ODEs turn "how fast is each thing changing right now" into full trajectories.
- Math
Differential Equations Systems
Equations that say how things change become flows: follow the arrows and you get trajectories, equilibria, and the long-run fate of the system.
- Math
Fixed Points
Where motion stops or repeats itself. Equilibria organize everything around them, found by setting change to zero and tested for pull.
- Math
Stability Analysis
Deciding whether nearby motion returns, escapes, or splits: linearize at the equilibrium and let the eigenvalues vote.
- Math
Numerical ODE Solvers Compared
Stepping along arrows instead of solving exactly: Euler strides tangentially while Runge-Kutta samples the terrain mid-step for far better accuracy.
- Math
Convexity and Loss Landscapes
Some surfaces have exactly one bottom and walking downhill always finds it; neural network surfaces do not, and the reason training still works is not what most people assume.
- Math
SGD and Optimization Variants
Full-batch gradients cost a pass over every example per step, so training estimates them from small random mini-batches and steadies the noise with momentum and per-coordinate scaling.
- Math
Constrained Optimisation and Duality
Optimising with a rule you cannot break, and the discovery that the multiplier enforcing the rule is also the price of relaxing it.
- Math
Lagrange Multipliers
The best point on an equality boundary is where your goal's contours just touch it. The multiplier measures how much loosening the boundary would be worth.
- Math
Numerical Stability
Floating point is not arithmetic — it is arithmetic with a budget of about sixteen digits, and the failures come from spending that budget carelessly rather than from any bug in your logic.
- Math
Floating Point Formats
Every number format splits its bits between how large a value it can hold and how finely it can tell nearby ones apart, and training cares far more about range than fine detail.
- Math
Computational Complexity for ML
Counting operations tells you how a cost grows; counting bytes moved tells you how long it actually takes — and in machine learning the second one usually wins.
Graphs
- Math
Computational Graphs
Every operation your model performs is recorded as a node in a one-way network, and training works by walking that network backwards — which is also why training eats so much memory.
- Math
Graph Fundamentals
Things and the connections between them — and the useful surprise that writing those connections in a grid turns the whole picture into a matrix you can do algebra on.
- Math
Graph Laplacian and Spectral Views
Degree minus adjacency turns a graph into a matrix whose eigenvalues describe how connected it is — which is how a discrete structure becomes something linear algebra can answer questions about.
Integration
- Math
Integration and Area Under a Curve
Adding up infinitely many infinitely thin slices to get a total — and the surprising fact that doing so is just differentiation run backwards.
- Math
Integrals in Probability
For anything measured on a continuous scale, probability is area rather than height — which is why the chance of hitting an exact value is zero and why so many useful quantities have no formula.
Optimization
- Math
Convex Sets and Convex Functions
A convex set keeps every segment between its points inside itself, and a convex function sits below all its chords, which together guarantee a single global bottom.
- Math
Convex Optimization
Convex problems have one bowl and no traps. Any downhill walk reaches the single global bottom, which is why KKT conditions become a certificate.
- Math
Convex and Non-Convex Optimization
In convex optimization any local minimum is guaranteed to be global, while non-convex optimization navigates rugged landscapes packed with saddle points and spurious valleys.
- Math
Gradient Descent Variants
Full-batch, mini-batch and single-example steps use the same update rule and differ only in how many examples each gradient averages over.
- Math
Learning Rate Schedules
Starting slow to avoid breaking the model, speeding up to make progress, and then slowing down again to carefully settle into the perfect solution.
- Math
Newton's Method and BFGS
Newton uses local curvature to pick both direction and step length, and BFGS rebuilds that curvature from past gradients so the step stays affordable.
- Math
Nesterov Accelerated Gradient
Plain gradient steps correct where you stand. Nesterov first jumps where momentum carries you, then corrects there, which damps zigzags and lifts smooth convex speed.
- Math
KKT Conditions
Four checkable equations that certify a constrained optimum with inequalities: the forces balance, the point obeys the walls, the prices are nonnegative, and idle walls price zero.
- Math
KKT Optimality Conditions
Constrained optima balance the objective pull against active constraint pushes. KKT writes that balance as four checkable equations.
- Math
Lagrangian Duality
Hard constraints become prices. The Lagrangian adds each violation times its price, and the best prices certify how good any solution can be.
- Math
Objective Functions and Constraints
The objective says what "best" means and the constraints say what is allowed. Every training run minimises one subject to the other.
- Math
Local vs Global Minima
A local minimum beats its neighbours; the global minimum beats everything. Training usually settles for local, and that turns out fine.
- Math
Subgradients
Kinks have no single slope, but every line touching from below still works. Subgradients collect those lines so nonsmooth convex problems run.
- Math
Natural Gradient
The natural gradient rescales updates by the Fisher information, so steps are measured in model behavior change rather than raw parameter distance.
- Math
Convergence Rates
Rates name how fast error shrinks: halving the leftovers, dividing by steps, or squaring the accuracy. The name predicts your compute budget.
- Math
Minimax and Saddle-Point Optimization
Minimax training pits two players against each other, so the goal is an equilibrium where neither side can improve alone, not a single minimum.
- Math
Linear Programming
Straight-line costs over straight-line walls always corner the answer. The optimum sits at a vertex, so solvers hop corners instead of searching.
- Math
Quadratic Programming
Quadratic cost over straight walls bends the bowls into ellipses. The answer is a projection: the closest feasible point to the free minimum.
- Math
ADMM
Split a hard problem into an easy smooth piece and an easy kinked piece, solve each alone, and let a price nudge them into agreement. Repeating that deal solves Lasso and distributed fits neither half can solve alone.
- Math
Common Loss Functions
One number that says how wrong a prediction is. Squared error punishes big misses hard, absolute error stays steady, and log loss punishes confident wrong classifiers.
- Math
Policy Gradient Theorem
You can improve a policy without modeling the world by following the gradient of expected reward, estimated from the rewards your own actions actually earned.
- Math
Exploration-Exploitation Theory
Every learner must choose between cashing in on the best known action and testing rivals, and bandit theory prices that choice with regret bounds you can compute.
- Math
Optimal Transport in Generative Modeling
Optimal transport finds the cheapest way to morph one pile of probability into another, which gives generative models a stable distance and a straight training path between noise and data.
Regularization
Probability
- Math
Probability Foundations
The rules for reasoning when you do not know the answer, how to combine chances, and what changes the moment you learn something new.
- Math
Probability Distributions
A fixed budget of belief spread across every outcome that could happen, and the shape you assume it takes is what silently decides your loss function.
- Math
Expectation, Variance and Covariance
Three summary numbers: where the values centre, how far they scatter from that centre, and whether two of them scatter together.
- Math
Bayes' Theorem
The rule for flipping a conditional around — and the reason a highly accurate test for a rare thing still returns mostly false alarms.
- Math
Bayesian Inference
Keep the whole distribution over parameters instead of one best guess, so the model can report how much it does not know — and pay for it with an integral that has to be dodged rather than solved.
- Math
Conditional Expectation
Conditional expectation re-takes the average after learning something. A die averages 3.5, but averages 4 once you know the roll was even.
- Math
Independence and Conditional Independence
Independence means learning one thing teaches you nothing about another. Conditional independence means that stays true once the shared cause is known.
- Math
Joint, Marginal and Conditional Distributions
The joint table holds everything. Add across a row to ignore a variable, or zoom into one row to learn from it. Those two moves run all of inference.
- Math
Multivariate Gaussian Distribution
The bell curve in many dimensions at once: a center plus a covariance matrix that stretches the contours into tilted ellipses and sets the ruler for distance.
- Math
Multivariate Distributions
One variable's distribution is a profile. Several variables together form a landscape, and the covariance matrix maps how its hills lean on each other.
- Math
Moments and Moment Generating Functions
Moments are a distribution's vital signs: center, spread, lean, and tail weight. The generating function packs all of them into one machine.
- Math
Strong Law of Large Numbers
Averaging independent repeats of the same gamble washes out the luck. The sample mean does not just probably land near the true average; with full certainty it converges there and stays.
- Math
Markov and Chebyshev Inequalities
Guarantees from almost nothing: the mean alone caps far-out chances, and adding the variance tightens the cap enormously.
- Math
Monte Carlo Methods
Replace an integral you cannot solve with an average over random samples: the error falls as one over the square root of the sample count, and — uniquely — that rate does not care how many dimensions you are in.
- Math
Importance and Rejection Sampling
Hard distributions are sampled through easy ones. Rejection throws away the mismatches, while importance keeps everything and reweights it.
- Math
Markov Chain Monte Carlo (MCMC)
When a distribution is too tangled to sample directly, you wander at random but keep the steps that land in likely places, so where you spend time draws the shape.
- Math
Hamiltonian Monte Carlo
MCMC that moves by gliding instead of stumbling. A physics simulation carries the sample far across the posterior, then a coin flip keeps it honest.
- Math
Markov Chains
A system that leaps from state to state where the next destination only depends on where you are right now, not how you got there.
- Math
Stationary Distributions of Markov Chains
The long-run share of time a Markov chain spends in each state. Start it anywhere and the visit fractions settle onto one fixed vector.
- Math
Poisson Processes
A model for arrivals that come one at a time, at a steady average rate, with no memory and no bunching built in. Clicks, calls, decays and goals.
- Math
Brownian Motion
Pure jitter that accumulates. Tiny independent nudges add up to a wandering path whose spread grows with the square root of time.
- Math
Diffusion Processes
Continuous Markov paths with drift plus noise. Their generators, time scales and stationary laws decide how fast samplers mix and how diffusion models noise data.
- Math
Stochastic Differential Equations Guide
Equations that mix deterministic drift with Brownian noise. Their solutions are random paths whose means follow the drift and whose spreads follow the volatility.
- Math
Kalman Filters
Tracking a hidden number by blending what motion predicts with what the sensor says, trusting each exactly as much as its uncertainty earns.
- Math
Sequential Monte Carlo Particle Filters
Tracking a moving target with a cloud of guesses. Thousands of weighted particles chase the posterior through time, cloning the good ones.
- Math
Expectation-Maximization
Learning with missing labels by alternating guesses. Fill in the hidden assignments softly, refit the model, and repeat until neither moves.
- Math
Exponential Family Distributions
Many famous distributions share one algebraic shape. Learn that shape once and Bernoulli, Poisson, and Gaussian all run on the same estimation engine.
- Math
Sufficient Statistics
A sufficient statistic keeps everything the data says about the parameter and discards the rest. Ten flips compress to one head count with zero loss.
- Math
Probabilistic and Graphical Models
A map of which variables directly influence which. The graph draws the independencies, and the independencies decide what is cheap to compute.
- Math
Factor Graphs
One diagram language for every graphical model. Squares hold the local functions, circles hold the variables, and inference is message passing.
- Math
Belief Propagation
Exact marginals by passing notes along the graph. Each node summarizes what its side believes, and the product of incoming notes is the answer.
- Math
Mean-Field Approximation
Pretend every hidden variable decides on its own, ignoring the others, so a tangled joint posterior becomes a product of simple pieces you can update one at a time.
- Math
Maximum Likelihood Estimation
Pick the settings that make what you actually observed the least surprising thing that could have happened, which is precisely what training a model does.
- Math
MAP Estimation
Maximum likelihood with an opinion added: multiply the likelihood by a prior before maximising, and the penalty terms you already use for regularisation fall out of the algebra.
- Math
Softmax Function and its Derivative
Raw scores can be any numbers, while probabilities must be positive and sum to 1. Softmax bridges the gap by exponentiating each score and dividing by the total.
- Math
Network Centrality
Ranking nodes by structural importance: who connects most, who bridges groups, and who the important nodes themselves point to.
- Math
Shortest Path Algorithms
The cheapest route from A to B, found without trying every route: settle nodes in order of distance and never revisit a settled one.
- Math
Random Walks on Graphs
A drunk wanderer stepping to random neighbours: where it spends its time reveals importance, and how long trips take reveals distance.
- Math
Combinatorics and Counting
Counting arrangements where order matters versus selections where it does not. Picking 2 letters from A, B, C gives 6 ordered pairs but only 3 unordered ones.
Statistics
- Math
Central Limit Theorem
Averages become bell-shaped no matter what they are averages of — which is the one fact that makes error bars, p-values and confidence intervals possible at all.
- Math
Descriptive Statistics
The handful of numbers that summarise a column of data — and the reason one of them alone will mislead you about almost any real dataset.
- Math
Confidence Intervals
A range around an estimate, built by a recipe that lands on the truth most of the time — which is a promise about the recipe, not about the range you happen to be holding.
- Math
Hypothesis Testing
A procedure for asking whether chance alone could plausibly have produced what you observed — and a p-value is the answer to that question, not to the one you probably wanted.
- Math
Bootstrap and Resampling
Instead of deriving a formula for how uncertain your estimate is, resample your own data thousands of times and watch how much the answer moves.
- Math
Statistical Power and Sample Size
The probability your test finds a real effect. Work it out before you run the experiment, because a test with low power that returns nothing has not told you the effect is absent. It has told you nothing at all.
- Math
Multiple Comparisons
Test enough things at the usual threshold and a false positive stops being unlikely and becomes near certain — which is what every hyperparameter sweep is quietly doing.
- Math
Multiple Hypothesis Testing
One test at 5% fails 5% of the time. A thousand tests at 5% each fail about fifty times. Family-wise and FDR rules reset the bar for crowds.
- Math
Point Estimation
One dataset, one best guess per unknown. Good guesses center on the truth and tighten as data grows; the page shows how to build and grade them.
- Math
Population vs Sample
The population is everyone you care about, the sample is who showed up. Statistics bridges the two, and the bridge always wobbles.
- Math
Sampling Distributions
One sample gives one average. Imagine every possible sample: the averages pile into their own bell, far narrower than the data itself.
- Math
Likelihood Ratio Tests
To compare two nested models, fit both and weigh the gap. Twice the log lift over the smaller model tells you whether the extra knobs earned it.
- Math
Fisher Information
How sharply the data pin down a parameter. Sharp likelihood peaks mean tight estimates, while flat ones mean the data barely speak.
- Math
Cramer-Rao Bound and Efficiency
No unbiased estimator beats the information in the data. Cramer-Rao turns that slogan into a floor: variance sits at or above one over information.
- Math
Bias-Variance Decomposition
Test error splits into three piles: how wrong your model family is on average, how much it wobbles between training sets, and noise no model can remove.
- Math
Confounding and Selection Bias
A third variable can fake a treatment effect, and filtering on the wrong variable can fake one too, so causal claims need the graph, not just data.
- Math
Kernel Density Estimation
Histograms jump with bin edges. KDE centers a smooth bump on every point and averages them into a curve with no bins to argue about.
- Math
High-Dimensional Regression
Fitting $d$ coefficients from $n$ samples with $d$ near or above $n$ only works with structure. Sparsity plus $L_1$ penalties restores rates that look like $\sqrt{s \log d / n}$.
- Math
Identifiability
A parameter is identifiable when different values leave different footprints in the data, so infinite observations could pin it down exactly.
- Math
t-SNE & UMAP Math Basics
These methods turn high-dimensional neighbours into 2D neighbours by matching who is close to whom, so clusters survive the flattening while far distances do not.
- Math
Concentration of Measure
Well-behaved functions of many independent inputs barely wobble. Change one input and the output moves a little, so the whole function concentrates around its mean almost as tightly as a plain average.
- Math
PAC-Bayes Bounds
Generalisation from a prior to a posterior: the test error of a randomised predictor exceeds its train error by about the square root of KL over $n$. Flat minima with small KL generalise.
- Math
Algorithmic Stability
A stable algorithm barely changes its predictions when one training example is swapped. That insensitivity is what lets test error track training error, with tighter numbers for ridge and early-stopped SGD.
- Math
Online Learning and Regret
Data arrives one round at a time and you must act before seeing the outcome. Regret scores you against the best single decision you could have made with hindsight.
- Math
Information-Theoretic Generalization Bounds
Generalisation costs information: the gap between test and train grows with how much the learned weights reveal about the training sample, measured by mutual information.
Information Theory
- Math
Entropy
How surprised you should expect to be by the next outcome, measured as a number — highest when everything is equally likely, zero when you already know the answer.
- Math
Cross-Entropy
The price you pay for being confidently wrong: it reads off the probability your model gave the correct answer and charges you the negative logarithm of it.
- Math
Kullback–Leibler Divergence
How many extra bits you pay for encoding reality with the wrong model — and because the penalty is charged against reality's probabilities, not the model's, swapping the two gives a different number.
- Math
Mutual Information
How much knowing one variable shrinks your uncertainty about another — which catches every kind of dependence, including the curved and the categorical relationships correlation reports as zero.
- Math
Information Theory
Information theory prices uncertainty in bits. This hub links the entropy, coding, and tradeoff pages without re-teaching them.
- Math
Joint and Conditional Entropy
Pairs carry joint surprise; knowing one variable discounts the other. The chain rule splits the pair into staged, additive predictions.
- Math
Jensen-Shannon Divergence
KL divergence points one way and explodes on zeros. Jensen-Shannon meets in the middle: symmetric, always finite, capped at one bit.
- Math
Data Processing Inequality Guide
Post-processing never invents information. A label guessed from a compression holds at most what the compression kept from the photo.
- Math
Information Bottleneck
Keep what predicts, drop what merely describes. The bottleneck trades input bits against label bits with one knob pricing relevance.
- Math
Minimum Description Length
The best model compresses hardest: model bits plus data-given-model bits is the total, and the smallest total wins without a validation split.
- Math
Rate-Distortion Theory
Lossy compression trades bits for error on one curve. The curve prices every fidelity level; JPEG, MP3, and embeddings all live on it.
Foundations
- Math
Kernel Functions
A kernel tells you how alike two points are by returning their dot product in some big feature space, computed directly from the original coordinates without ever building that space.
- Math
Fourier Transform and Convolution Theorem
Rewrite a signal by frequency instead of by time. Convolution then becomes pointwise multiplication, which is why fast filtering works.
- Math
Discrete Fourier Transform and FFT
The DFT samples the spectrum at evenly spaced bins and the FFT computes those bins in $n \log n$ steps by halving the problem recursively.
- Math
Interpolation Methods
Resizing an image asks for values between the pixels you have. Interpolation blends the neighbours by distance, so close points count more than far ones.
- Math
Wavelets
Wavelets tile time and frequency together, catching brief transients that Fourier spreads across every bin.
- Math
Image Pyramids and Edge Detection
Small objects need small windows and large ones need large views, so we keep every size at once. Edges are where brightness jumps, and those jumps outline shape.
- Math
Big-O and Algorithm Complexity
Big-O describes how cost grows when the input grows, ignoring the constants. It tells you which algorithm wins at scale, before anyone runs anything.
- Math
Permutations and Combinations
Order matters means arrange them and the count is bigger; order does not matter means choose them and you divide the arrangements by the reshuffles.
- Math
Proof Techniques
Direct proof chains forward, contradiction assumes the opposite and breaks it, and induction topples an infinite ladder from one anchored rung.
- Math
Sets, Logic and Proofs
Sets collect the objects, logic tests claims about them, and proofs chain tested claims into conclusions you can trust without rechecking.
- Math
Summation and Product Notation
Sigma adds a whole list without writing every plus, Pi multiplies one. Means, losses and likelihoods are all Sigma in disguise, and logs turn Pi into Sigma.
- Math
Logarithms for Machine Learning
A logarithm asks which power turns the base into the number, compressing thousand-fold ranges into small readable steps. Entropy and log-loss both run on it.
- Math
Exponential and Logarithmic Functions
Exponential functions grow by multiplying, logarithmic functions grow by counting multiplications. One models spread and decay, the other reads it back on a human scale.
- Math
Functions and Graphs for ML
A function turns each input into exactly one output, and its graph draws that promise as a shape. Models are functions; training sculpts their graphs to fit data.
- Math
Sequences and Series
A sequence lists numbers in order while a series adds them up, so one names the steps and the other names the running total.
- Math
Trigonometry
Trigonometry turns angles into numbers you can compute with, so rotations, waves, and repeating patterns become algebra instead of geometry.
- Math
Reinforcement Learning Theory
RL theory studies how agents learn from rewards over time, giving the equations, convergence guarantees, and sample costs behind every practical algorithm.
- Math
Nash Equilibrium
A stable profile where nobody gains by moving alone, which predicts where strategic play settles even when the result disappoints everyone.
- Math
Zero-Sum Games
In pure conflict one side's gain is the other's loss, so optimal play means randomizing to stay unpredictable and guaranteeing a floor.
- Math
Minimax Theorem
In a finite zero-sum game the best guaranteed floor equals the best enforced ceiling, so optimal mixed play on both sides meets at one value.
- Math
Manifolds
A manifold is a curved space that looks flat when you zoom in close, letting constrained models like rotations use local coordinates safely.
- Math
Sinkhorn Algorithm
Sinkhorn solves entropy-smoothed transport by alternately rescaling matrix rows and columns, giving fast GPU-friendly approximate couplings.
Convolutional
Time Series Foundations
The Deep Math
- Math
Universal Approximation Theorems
One wide hidden layer can mimic any well-behaved function if you give it enough units, which sets the floor every deeper result has to beat.
- Math
Theory of Deep Learning
A map of why depth helps, when training succeeds, and where the guarantees run out, so the rest of deep learning theory hangs on one frame.
- Math
Loss Landscape Geometry
The loss surface of a big network is full of saddles but short on bad valleys, which is why plain gradient steps keep reaching good solutions.