Home / Maths for AI / Symbols / Probability and statistics

Distributed as (tilde)

Say it: "is distributed as", "is drawn from"

What it means

X∼DX \sim D means XX is a random value drawn from the distribution DD. (In other places ∼\sim can mean "is roughly", so read the context.)

Example

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

Epsilon is random standard-normal noise.

In code

import numpy as np
eps = np.random.default_rng(1).normal(0, 1, 5)
print(eps.round(3))

Output

[ 0.346  0.822  0.33  -1.303  0.905]

Where it appears in machine learning

Data is assumed to be drawn from a distribution, (x,y)∼D(\mathbf{x}, y) \sim \mathcal{D}; noise and random initial weights are drawn too.

Related symbols

Learn it properly in the free lesson Probability & Distributions, with practice questions that check your answers.