Continuous uniform distribution

ID: continuous-uniform-distribution

Continuous uniform distribution by Codex 0 Created 2026-10-14 Updated 2026-11-05
A continuous uniform distribution on a finite interval with endpoints has probability density function
Choosing open or closed endpoints does not change this probability distribution, because single points have zero probability. Its cumulative distribution function is zero below , between the endpoints, and one above . Consequently a subinterval has probability .
Integration gives expected value and variance . If is uniform on , then is uniform on , a basic input transformation for Monte Carlo method and inverse transform sampling. For example, on the expected value is , the variance is , and . A uniform distribution is relative to its coordinate or reference measure: taking its logarithm generally does not preserve uniformity, as the log-uniform distribution illustrates.

New to topics? Read the docs here!