If $X \sim U(a, b)$, then its probability density function (PDF) is $f_X(x) = \frac{1}{b-a}$ for $a \le x \le b$, and 0 otherwise.
For $X \sim U(0, 1)$, the PDF is $f_X(x) = 1$ for $0 \le x \le 1$, and 0 otherwise.
The mean of a uniform (0, 1) distribution is
Show more…