1 Definition
The uniform distribution is a probability distribution in which every value in a specified range is treated as equally likely. It appears in both discrete and continuous forms. In the discrete case, each allowed outcome has the same probability. In the continuous case, probability is spread evenly across an interval, so intervals of equal length receive equal probability.
The distribution is often described as the simplest nontrivial model of randomness. Because of its symmetry and analytic simplicity, it is widely used in probability theory, statistics, and computer simulation.
1.1 Discrete uniform distribution
A discrete uniform distribution assigns the same probability to each element of a finite set. If there are \(n\) possible outcomes, each outcome has probability \(1/n\). A common example is a fair die, where the six faces are all equally likely.
This version is used when the sample space consists of a fixed number of distinct categories or values. It provides a basic model for random choice without preference.
1.2 Continuous uniform distribution
The continuous uniform distribution applies to a real interval \([a,b]\). Any subinterval of a given length has the same probability as any other subinterval of that length, provided both lie within the support. No single point has positive probability, but the distribution is constant across the entire range.
It is commonly written as \(U(a,b)\) and is one of the standard continuous probability distributions.
1.2.1 Probability density function
For a continuous uniform distribution on \([a,b]\), the probability density function is constant on the interval and zero outside it. Specifically, the density equals \(1/(b-a)\) for values between \(a\) and \(b\).
This constant height reflects the equal spread of probability across the support.
1.2.2 Cumulative distribution function
The cumulative distribution function increases linearly from 0 to 1 across the interval \([a,b]\). It is 0 for values below \(a\), rises steadily on the interval, and equals 1 for values at or above \(b\).
The linear form of the cumulative function is a direct consequence of the constant density.
1.3 Parameterization
The discrete uniform distribution is usually parameterized by the set of possible values or by the number of outcomes. The continuous uniform distribution is commonly parameterized by its lower and upper bounds, \(a\) and \(b\).
Different fields may use alternative notations, but the meaning remains the same: a bounded range with even probability assignment throughout.
2 Properties
The uniform distribution has several basic properties that distinguish it from more irregular distributions. Its probability mass or density is constant on its support, and this leads to straightforward formulas for moments, quantiles, and entropy.
Because of its regular shape, the distribution is often used as a reference point when comparing more complicated random variables.
2.1 Support and range
The support of a uniform distribution is the set of values that can occur with nonzero probability. For the discrete case, this is the chosen finite set. For the continuous case, it is the interval \([a,b]\).
Outside the support, the probability is zero. Within the support, all admissible outcomes are treated symmetrically.
2.2 Symmetry
A uniform distribution is symmetric about the midpoint of its interval or set when the support is evenly arranged. For the continuous case on \([a,b]\), the distribution is symmetric around \((a+b)/2\).
This symmetry implies that the left and right halves of the range contribute equally to the overall probability structure.
2.3 Moments
Moments summarize key numerical features of a distribution, such as its center and spread. For the uniform distribution, these quantities have simple closed forms.
2.3.1 Mean
For a continuous uniform distribution on \([a,b]\), the mean is the midpoint \((a+b)/2\). For a discrete uniform distribution on equally spaced or enumerated values, the mean is the arithmetic average of those values.
This reflects the balance inherent in an evenly distributed range.
2.3.2 Variance
The variance measures how widely values are spread around the mean. For the continuous uniform distribution on \([a,b]\), the variance is \((b-a)^2/12\).
The variance grows with the square of the interval length, showing that wider supports produce greater dispersion.
2.3.3 Higher moments
Higher moments of the uniform distribution can also be computed explicitly. These formulas are often used in theoretical work, particularly in deriving properties of sums, products, and transformed variables.
Although less frequently used in elementary settings, higher moments help characterize the shape and regularity of the distribution.
2.4 Entropy
The continuous uniform distribution on a fixed interval has maximum entropy among all continuous distributions supported on that interval. This means it represents the least informative choice when only the bounds are known.
Entropy provides a formal measure of uncertainty. The uniform distribution maximizes this uncertainty subject to the given range constraint.
3 Derivations and interpretations
The uniform distribution can be understood in several ways. It may represent equal likelihood among finite alternatives, a model for randomly chosen positions in an interval, or the outcome of a maximum entropy argument.
These interpretations explain why the distribution appears naturally in both theoretical and practical settings.
3.1 Equal likelihood interpretation
In the discrete setting, uniformity means that no single outcome is favored over another. Each option has the same chance of occurring, and the distribution encodes a state of complete neutrality among the allowed values.
This interpretation is common in games, random selection, and basic combinatorial models.
3.2 Random sampling interpretation
In the continuous case, a uniform variable can be viewed as a random sample from an interval with no preferred location. If a point is chosen at random from a line segment, the uniform distribution is the natural mathematical model for that selection.
This idea is often used as a starting assumption when no further information about location is available.
3.3 Maximum entropy characterization
Among all distributions with a specified finite interval as support, the uniform distribution has the greatest entropy. This property makes it the most unbiased choice when only the bounds are known and no additional constraints are imposed.
The maximum entropy viewpoint is influential in statistical modeling because it formalizes the principle of making the fewest unwarranted assumptions.
4 Related distributions and transforms
The uniform distribution is closely connected to many other distributions through transformation, aggregation, and order-based operations. These relationships make it a useful building block in probability theory.
4.1 Transformation of uniform random variables
Many probability distributions can be generated by transforming a uniform random variable. If \(U\) is uniform on \([0,1]\), then suitable functions of \(U\) can produce variables with prescribed distributions.
This technique underlies inverse transform sampling and is a standard method in simulation.
4.2 Order statistics
When several independent uniform random variables are sampled, their sorted values are called order statistics. These have distinctive distributions that are important in estimation, spacings, and extreme-value analysis.
The smallest and largest sampled values from a uniform distribution are especially useful in mathematical modeling.
4.3 Relationship to other distributions
The uniform distribution serves as a component in the construction or approximation of many other distributions. Some arise from sums of uniform variables, while others can be obtained by slicing or conditioning.
4.3.1 Bernoulli and categorical distributions
A discrete uniform distribution over two outcomes is equivalent to a Bernoulli distribution with parameter one-half. More generally, a discrete uniform distribution over several categories is a special case of a categorical distribution with equal probabilities.
These connections show how uniformity extends naturally to finite-valued random variables.
4.3.2 Triangular distribution
The triangular distribution can be obtained by combining or averaging uniform variables in certain ways. It has a peaked shape rather than a flat one, but it is often used as a simple model when data cluster around a central value.
It is sometimes chosen as a lightweight alternative when a uniform model is too simple.
4.3.3 Irwin-Hall distribution
The Irwin-Hall distribution is the distribution of the sum of independent uniform random variables on \([0,1]\). Its shape becomes progressively smoother as more variables are added.
This distribution is useful in studying how repeated uniform contributions accumulate into a more complex pattern.
5 Applications
The uniform distribution is widely used because of its simplicity and interpretability. It often appears whenever a model requires equal treatment of all possibilities within a bounded range.
5.1 Simulation and Monte Carlo methods
Uniform random variables are fundamental in Monte Carlo methods. Simulations commonly begin with samples from a uniform source and then transform those samples into the desired distribution.
Because of this role, the uniform distribution is one of the core tools of computational probability.
5.2 Random number generation
Computer algorithms for random number generation often produce values that are approximately uniform on \([0,1]\). Such values are then used as the basis for generating other random variates.
The quality of the uniform generator is crucial, since many downstream methods depend on it.
5.3 Statistical modeling
Uniform distributions are used in models where only a bounded range is known and all positions within that range are regarded as equally plausible. They can also serve as priors or baseline assumptions in Bayesian settings.
In addition, uniformity is frequently used as a simplifying assumption in theoretical analysis.
5.4 Games of chance
Many simple games involve discrete uniform outcomes, such as spinning a fair wheel or drawing a random card from a well-shuffled deck. These models are useful for calculating probabilities and expected outcomes.
The uniform distribution provides the mathematical idealization of fair selection.
6 Generalizations
The basic idea of uniformity extends beyond one-dimensional intervals and finite sets. Several broader forms are used in higher-dimensional geometry and specialized probability models.
6.1 Multivariate uniform distribution
A multivariate uniform distribution spreads probability evenly over a region in two or more dimensions, such as a rectangle, box, or other bounded geometric set. The density is constant throughout the region and zero outside it.
This generalization is common in spatial modeling and geometric probability.
6.2 Weighted uniform variants
Some models modify uniformity by assigning weights to different parts of the support. These variants are not uniform in the strict sense, but they preserve the idea of bounded selection while allowing preference toward certain values.
Such adjustments are used when a perfectly even model is too restrictive.
6.3 Circular and spherical uniform distributions
Uniformity can also be defined on circles, spheres, and other curved surfaces. In these settings, all directions or surface points are treated equally with respect to the natural geometric measure.
These distributions are important in physics, directional statistics, and random orientation models.
7 See also
Uniformity, discrete distribution, continuous distribution, probability density function, cumulative distribution function, entropy, Monte Carlo method, random variable, order statistic, categorical distribution
8 References
Standard references on probability theory, mathematical statistics, and stochastic simulation treat the uniform distribution as a foundational example. It is commonly presented in introductory texts alongside basic notions of random variables, expectation, variance, and transformation methods.