Post · 1 min read· p. 236

4.2.1 Uniform Distribution


Video Available Video Available

We have already seen the uniform distribution. In particular, we have the following definition:

A continuous random variable XX is said to have a Uniform distribution over the interval [a,b][a,b], shown as X∼Uniform(a,b)X \sim Uniform(a,b), if its PDF is given by \begin{equation} \nonumber f_X(x) = \left{ \begin{array}{l l} \frac{1}{b-a} & \quad a < x < b\ 0 & \quad x < a \textrm{ or } x > b \end{array} \right. \end{equation}

We have already found the CDF and the expected value of the uniform distribution. In particular, we know that if X∼Uniform(a,b)X \sim Uniform(a,b), then its CDF is given by equation 4.1 in example 4.1, and its mean is given by

EX=a+b2EX=\frac{a+b}{2}
To find the variance, we can find EX2EX^2 using LOTUS:

EX2EX^2=∫−∞∞x2fX(x)dx= \int_{-\infty}^{\infty} x^2f_X(x)dx
=∫abx2(1b−a)dx=\int_{a}^{b} x^2 \left(\frac{1}{b-a}\right) dx
=a2+ab+b23=\frac{a^2+ab+b^2}{3}.

Therefore,

Var(X)\textrm{Var}(X)=EX2−(EX)2=EX^2-(EX)^2
=(b−a)212=\frac{(b-a)^2}{12}.