05. Probability and Statistics Background — Uncertain Evaluations and Data-Driven Objectives
// BACKGROUND 5/6— random variable, distribution, expectation, variance, sampling, regression
Optimization does not handle only deterministic problems. Probability and statistics are needed when data contains noise, the objective is estimated through sampling, or simulation results are uncertain.
Random variables
A random variable is a function that turns experimental outcomes into numbers. In optimization, the objective may itself be a random variable:
Here is the variable we choose, while is randomness originating from data or the environment.
Distributions
A distribution describes what values a random variable takes and how often. Even noise with the same mean changes the stability of an optimization method depending on whether it is Gaussian or heavy-tailed.
For example, absolute loss may be more robust than squared loss for data with many outliers.
Expectation and variance
Expectation is the long-run average:
Variance is fluctuation around the mean:
Stochastic optimization usually minimizes an expected objective:
Sampling
If the expectation is not known exactly, approximate it with a sample mean:
SGD uses a minibatch sample gradient rather than the gradient over all data. Its iterations are noisy as a result, but the computational cost is low.
Regression
Regression estimates a relationship between inputs and outputs:
From an optimization perspective, the parameter is the decision variable and the loss is the objective function. In expensive optimization, a regression model may also serve as a surrogate model.
Connections to the existing probability documents
- Random variables and distributions are covered in more detail in Probability Spaces and Random Variables.
- For expectation and variance, see Expectation, Moments, and Characteristic Functions.
- Sampling and the CLT connect to Law of Large Numbers, Central Limit Theorem, and Stability.
Next: Engineering Modeling