Uniform distribution
𝒰(a, b) is the uniform distribution: every value between a and b is equally likely.
In ML papers
is the uniform distribution on the interval : the density is the constant inside it and 0 outside. Its mean is and its variance . The discrete version, , picks each of items with probability .
It shows up in initialization (Glorot or Xavier init draws weights from ), in sampling a random timestep in diffusion training, and as the maximum-entropy choice when nothing is known.
Other meanings, by context
- Sets. can also just be a set, such as a set of users or a universe of items; it is a distribution only after a Distributed as (tilde).
How to type it
| LaTeX | Shows |
|---|---|
\mathcal{U}(a, b) | |
\operatorname{Unif}\{1, \ldots, K\} discrete |
A worked example
On the probability of landing in any stretch equals its length. The mean is and the variance .