Maths for ML / Notation

x∼p(x)x \sim p(x)

is distributed as / sampled from

Probability and statisticsBeginner

Say it “x is drawn from p”

x is a random value drawn from the distribution p.

Example

ϵ∼N(0,1)\epsilon \sim \mathcal{N}(0, 1)

In code

rng.normal(0, 1)
torch.randn(())

Where you’ll see it in ML

Noise in diffusion models, weight init, dropout masks, sampling tokens.

Don’t confuse it with

← All 94 symbols