8.5 Probability and sampling
The symbols for drawing random values, the distributions lattice schemes draw from, and how probabilities are stated.
Lattice cryptography is full of randomness: secrets, errors and signature masks are all sampled. This page lists the notation for that randomness as it appears on this site. Each row says how to read the symbol, what it means here, and which chapters use it. Two things trip up most readers: the arrow means two different things, and Gaussian widths are quoted in two different units. Both are covered below.
Sampling and assignment
| Symbol | Read as | Meaning on this site | Example | Used in |
|---|---|---|---|---|
x \leftarrow S | “x is sampled uniformly from S” | When the right side is a finite set, draw an element uniformly at random. | : a uniformly random vector mod | 2.3 |
| “x is drawn from χ” | When the right side is a distribution, draw from that distribution. | : an error sampled from the error distribution | 2.3, 2.5 | |
| “x becomes x + 1” | In pseudocode the same arrow is plain assignment, with no randomness. | in the LLL loop | 4.1, 4.2, 2.2 | |
| “x is distributed as D” | A statement about the distribution of , often used in place of the sampling arrow. | 4.5 |
Many papers write or to make uniform sampling explicit. This site does not use either form; read a plain arrow into a set as uniform sampling. Also note that sometimes means “roughly”, as in on the lattice reduction page; the context tells you which.
Distributions
| Symbol | Read as | Meaning on this site | Example | Used in |
|---|---|---|---|---|
\chi | “chi” | The error distribution of an LWE instance: any distribution of small integers mod . | parameters | 2.3 |
A_{s,\chi} | “the LWE distribution for s and chi” | Pairs with uniform and , . | 2.3 | |
D_{\mathbb{Z},\sigma} | “discrete Gaussian over the integers with parameter sigma” | Each integer gets probability proportional to . Here is the standard deviation. | with | 2.3, 2.5 |
| , | “discrete Gaussian over Λ with width s (and centre c)” | Each lattice point gets probability proportional to . Here is a width, not a standard deviation. | is the case | 1.4, 6.3, 4.5 |
B_\eta | “centred binomial with parameter eta” | Sample random bits and return (sum of the first ) − (sum of the last ). Values lie in , variance . The ML-KEM standard calls it . | : , , | 3.1, 2.3, 3.4 |
| “integers from minus eta to eta” | A range of small integers. In ML-DSA the secret coefficients are uniform on it; in ML-KEM the same range is the support of , which is not uniform. | : five values, each with probability 1/5 in ML-DSA | 3.3, 3.4 | |
| “integers from one minus gamma-one to gamma-one” | The range of the uniformly sampled ML-DSA signing mask . | for ML-DSA-44 | 3.3 |
Gaussian functions and the two width conventions
The Gaussian function with width and centre is
Read as “rho s”. The last form, the Gaussian mass of a set, is how the smoothing parameter is defined. A discrete Gaussian divides by the mass of the whole lattice so the probabilities sum to 1.
Two conventions describe how wide the bell is, and this site uses both:
They describe the same bell curve when
The discrete Gaussian guide states the same relation the other way round: per-coordinate standard deviation . For a discrete Gaussian the true standard deviation equals only approximately, but the error is negligible once is about 1 or more. When a paper quotes “a Gaussian of parameter 3.2”, check which formula it uses before comparing numbers.
Worked example: with
Take standard deviation , so width . Summing over all integers gives a normaliser of about 2.5066, and dividing gives these probabilities:
| 0 | ±1 | ±2 | ±3 | ±4 | |
|---|---|---|---|---|---|
| (each sign) | 0.3989 | 0.2420 | 0.0540 | 0.0044 | 0.0001 |
So a sample lands in with probability 0.883 and in with probability 0.991, and the standard deviation of the discrete distribution is 1.0000 to four decimals. For comparison, from ML-KEM also has variance 1 but never leaves .
Smoothing parameter
| Symbol | Read as | Meaning on this site | Example | Used in |
|---|---|---|---|---|
\eta_\varepsilon(\Lambda) | “eta epsilon of lambda” | The smallest width with . Above it, a Gaussian of width reduced modulo is almost uniform, with the error controlled by . | samplers need | 1.4, 6.3 |
| “epsilon” | A small error tolerance. In it bounds leftover Gaussian mass. On 3.4 the letter is instead a distinguishing advantage. | repetitions | 1.4, 3.4 |
Probabilities, expectations and security levels
| Symbol | Read as | Meaning on this site | Example | Used in |
|---|---|---|---|---|
| , | “the probability of E” | Probability of an event. Both spellings appear; they mean the same. | 3.4, 4.3 | |
| , | “expected value of X”, “variance of X” | Mean and spread of a random quantity. Not written as formulas on this site, but implied whenever a norm is estimated. | — | |
| “the norm of e is about sigma root n” | The typical length of a vector of independent errors with standard deviation : . A heuristic estimate, not a bound. | , : | 7.4, 2.2 | |
| “two to the minus 128” | A probability so small it is treated as zero in practice. Security targets and failure rates are stated this way. | decryption failure below | 3.4, 2.3, 2.6, 3.3 | |
| (bits) | “lambda bits of security” | The security level: the best known attack costs about operations. Unrelated to the successive minimum , which always carries a subscript. | 3.4 |
Theory papers state the same idea asymptotically. A function is negligible, written , if it shrinks faster than every inverse polynomial in the security parameter; an event holds with overwhelming probability if its failure probability is negligible. This site quotes concrete numbers such as instead.
Same symbol, different meaning
| Symbol | Meanings on this site |
|---|---|
| Random sampling (2.3); assignment in pseudocode (4.1, 4.2). | |
| Gaussian function (1.4, 6.3); packing radius (1.3, 1.4); a public random seed (3.1, 3.3). | |
| , | Standard deviation versus Gaussian width; convert with . On 4.5, names the Falcon sampler’s parameter . |
| Smoothing parameter (1.4); secret bound in ML-KEM and ML-DSA (3.1, 3.3); LLL size-reduction constant 0.501 (4.6). | |
| , | Mass tolerance in (1.4); distinguishing advantage (3.4); signs in sieving (4.3). |
| Security level in bits (3.4); with a subscript, the successive minima of a lattice (see 8.3). | |
| A discrete Gaussian in and . On 2.5, and denote the mask and target distributions of the signature, described there as uniform over a range. |
Conventions we follow
- An arrow into a set means uniform sampling; an arrow into a named distribution means sampling from it.
- Gaussian widths written use ; widths written are standard deviations.
- Probabilities are stated as concrete powers of two, such as , rather than asymptotically.
- A bare is a security level in bits; are successive minima.
Further reading
Daniele Micciancio and Oded Regev, “Worst-case to average-case reductions based on Gaussian measures” (SIAM J. Computing, 2007), introduced the smoothing parameter and use the width- convention. Chris Peikert’s survey A Decade of Lattice Cryptography (2016) collects the sampling notation used in most papers. NIST FIPS 203 defines for ML-KEM. The first two citations are from memory.