For a continuous random variable X with PDF f(x), the probability that X lies in the interval [a, b] is given by:
$$P(a \leq X \leq b) = \int_{a}^{b} f(x) dx$$
For the uniform distribution, this is easy because the PDF is a constant value, so the area under the
Show more…