Constant probability over an interval
The continuous uniform distribution has constant probability density over the interval . The probability density function is for , and otherwise. The expected value is and the variance is . This distribution models situations where all values in an interval are equally likely, such as the position of a randomly thrown dart on a board, random arrival times within a time window, or measurement errors uniformly distributed within tolerances.
Visualizing probability accumulation for continuous uniform distribution
Linear increase from 0 to 1 over [a, b]
| Aspect | Formula or statement | Note or example |
|---|---|---|
| ParametersThe two endpoints that fix the distribution, as the parameters section explains. | with | the endpoints of the interval; width |
| SupportEvery value between the endpoints, set out with the PDF and its support. | the density is zero outside the interval | |
| PDFThe constant density over the interval, from the PDF section. | a flat rectangle of height and width ; total area | |
| CDFThe probability of a value up to , from the CDF section. | a linear ramp: probability scales with the length of the subinterval | |
| Expected valueThe balance point of the interval, derived in the expected value section. | the midpoint of the interval | |
| VarianceHow widely the values spread around the midpoint, worked out in variance and standard deviation. | ; | depends only on the width of the interval, not on its location |
| Mode and medianThe middle sits at the midpoint and no value is more likely than another, as mode and median shows. | ; the mode is not uniquely defined, since every value in qualifies | perfectly symmetric: mean, median and midpoint coincide |
| Quantile functionThe value below which a share of the interval lies, solved in quantiles and percentiles. | for | linear; the basis of the inverse-CDF sampling method |
| Standard caseAny uniform variable rescales to the unit interval, as special cases shows. | , the standard uniform distribution | the basis of random-number generation; |
| Canonical exampleThe bus-arrival setting the page works through; variance and standard deviation finishes its numbers. | a bus arriving uniformly between 2:00 and 2:30 PM: minutes | min, , min |