Expectation
The expected value: the average of what is inside, weighted by the probabilities in the subscript.
In ML papers
is the expected value of when is drawn from the distribution : the probability-weighted average, , or for continuous . In practice it is estimated by averaging over samples: .
The subscript says what is random and where it comes from. In it is a data point; in it is a latent variable drawn from the encoder. Losses are usually written as expectations over the data.
Other meanings, by context
- A plain E. An italic may be an energy function , an embedding matrix, or the edges of a graph; an upright or is an expectation.
How to type it
| LaTeX | Shows |
|---|---|
\mathbb{E} | |
\mathbb{E}_{x \sim p}[f(x)] |
A worked example
A variable that is nine times in ten and otherwise has expected value . For a fair die, .
Common confusions
- (blackboard bold) and an italic are different things; check which a paper uses.
- The expectation is a single number, not a random quantity.