📝 Mathematical Foundations
Mathematical foundations are the tools used to describe data, models, learning, and uncertainty in machine learning.
Vector norms
For a weight vector , means its norm: a single number that measures the vector's size. The subscript specifies which kind of size to use.
For example, if , its L2 norm is its usual Euclidean length:
| Notation | Meaning | Common ML use |
|---|---|---|
| Sum of absolute values: | L1 regularization; can encourage sparse weights | |
| Euclidean length: | Measures the overall size of a weight vector | |
| Squared L2 norm: | L2 regularization / weight decay |
Without a subscript, the intended norm must come from context. In regularization, is the square root of the sum of squared weights, while is that sum itself.
| Area | Why it matters in ML |
|---|---|
| Probability & Statistics | Describes uncertainty, data distributions, likelihoods, and model confidence |
| Linear Algebra | Represents data and model parameters with vectors, matrices, and tensors |
| Calculus & Optimization | Provides gradients and optimization methods for training models |
| Information Theory | Explains losses such as cross-entropy and measures distribution differences |