Login
📚 Statistical Inference for Everyone
Chapters ▾

15.3 Uniform

Discrete

Discrete uniform distribution The discrete uniform distribution is defined to be a constant value for all possibilities. Mathematically this is written

p ( x i ) = 1 N

where N is the total number of possibilities, labeled x1 to xN. The picture of the distribution is shown in Figure C.1

Continuous uniform distribution on [0,1]: a rectangle of constant height 1 between x=0 and x=1, with dashed green percentile markers at 5%, 25%, 50%, 75% and 95% mapping to x values 0.05, 0.25, 0.50, 0.75 and 0.95.
Figure C.1. Discrete uniform distribution for values 1 to 6. The value for each is p(xi)=1/6.

Continuous

Continuous uniform distribution The continuous uniform distribution is defined to be a constant between a minimum and maximum value, and zero everywhere else. Mathematically this is written

p ( x ) = 1 m a x m i n  for  m i n < x < m a x

. The picture of the distribution is shown in Figure C.2.

Continuous uniform distribution on [0,1]: a rectangle of constant height 1 between x=0 and x=1, with dashed green percentile markers at 5%, 25%, 50%, 75% and 95% mapping to x values 0.05, 0.25, 0.50, 0.75 and 0.95.
Figure C.2. Continuous uniform distribution between values 0 and 1

Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.