In cryptography, a distribution ensemble or probability ensemble is a family of distributions or random variables X = { X i } i ∈ I {\displaystyle X=\{X_{i}\}_{i\in I}} where I {\displaystyle I} is a (countable) index set, and each X i {\displaystyle X_{i}} is a random variable, or probability distribution. Often I = N {\displaystyle I=\mathbb {N} } and it is required that each X n {\displaystyle X_{n}} have a certain property for n sufficiently large.
For example, a uniform ensemble U = { U n } n ∈ N {\displaystyle U=\{U_{n}\}_{n\in \mathbb {N} }} is a distribution ensemble where each U n {\displaystyle U_{n}} is uniformly distributed over strings of length n. In fact, many applications of probability ensembles implicitly assume that the probability spaces for the random variables all coincide in this way, so every probability ensemble is also a stochastic process.