Calculating Probabilities With Continuous Random Variables

For a continuous random variable with a known PDF, probabilities are computed as integrals of the PDF. This lesson covers interval probabilities, the fact that single points have probability zero, one-sided (half-line) probabilities via improper integrals, the complement rule, and probabilities under piecewise-defined PDFs.

Step 1 of 119%

Tutorial

Probability as the Area Under the PDF

For a continuous random variable XX with probability density function f(x),f(x), the probability that XX takes a value in the interval [a,b][a, b] equals the area under ff over that interval:

P(aXb)=abf(x)dx.P(a \le X \le b) = \int_a^b f(x)\, dx.

For example, suppose XX has PDF f(x)=2xf(x) = 2x for 0x10 \le x \le 1 and 00 elsewhere. Then

P ⁣(14X12)=1/41/22xdx=[x2]1/41/2=14116=316.P\!\left(\tfrac{1}{4} \le X \le \tfrac{1}{2}\right) = \int_{1/4}^{1/2} 2x\, dx = \big[x^2\big]_{1/4}^{1/2} = \dfrac{1}{4} - \dfrac{1}{16} = \dfrac{3}{16}.
navigate · Enter open · Esc close · ⌘K/Ctrl K toggle