Given (conditional bar)
“Given”: p(y | x) is the probability of y given that x is known.
In ML papers
The vertical bar in reads "given": the distribution of once is known. A classifier models ; a VAE's encoder is and its decoder . Everything to the right of the bar is treated as fixed.
Other meanings, by context
- Sets. "Such that" in set-builder notation: .
- Number theory. "Divides": .
How to type it
| LaTeX | Shows |
|---|---|
p(y \mid x) spaced, preferred | |
p(y | x) |
A worked example
Knowing it is cloudy changes the probability of rain.
Common confusions
- A pair of bars around something, , is an absolute value (Absolute value (bars)); a single bar between two things is "given".
- with a semicolon (Semicolon (parameterized by)) is different: is a parameter, not a random variable.
Equations that use it
- The ELBO
- PPO clipped objective
- DPO loss
- Policy gradient (REINFORCE)
- Bellman equation
- Diffusion forward process
- Perplexity
- Logistic regression