Statistical Inference for EveryoneXYZ Homework Edition

⇩ Download ▾

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 p(x_{i})=\frac{1}{N}

where NN is the total number of possibilities, labeled x1x_{1} to xNx_{N}. 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/6p(x_{i})=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 p(x)=\frac{1}{\rm max-min} \text{ for }{\rm min}<x<{\rm max}

. 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.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.