Skip to content

Business Mathematics and Statistics · Ch 6 — Random Variable and Mathematical Expectation

Probability Density Function of a Continuous Random Variable

3

Probability Density Function of a Continuous Random Variable

A continuous random variable cannot be described by listing probabilities for individual values, because P(X=x)=0P(X = x) = 0 for every single xx — there are simply too many (uncountably many) values in any interval for any one of them to carry a positive probability. Instead, a continuous random variable is described by a probability density function, written f(x)f(x), and probabilities are read off as the area under the curve of f(x)f(x) over an interval, rather than the height of the curve at a single point.

Conditions for a valid p.d.f.

A function f(x)f(x) is a valid probability density function over a range if:

f(x)≥0for all xf(x) \geq 0 \quad \text{for all } x

∫−∞∞f(x) dx=1\int_{-\infty}^{\infty} f(x)\, dx = 1

The second condition is simply the continuous counterpart of "the probabilities must add up to 11" — instead of a sum, we use an integral because xx varies continuously.

For any two numbers a≤ba \leq b in the range of XX, the probability that XX falls between them is:

P(a≤X≤b)=∫abf(x) dxP(a \leq X \leq b) = \int_{a}^{b} f(x)\, dx

This is exactly the area under the curve y=f(x)y = f(x) between x=ax = a and x=bx = b. Because a single point has zero width, P(X=a)=0P(X = a) = 0, and so for a continuous random variable it makes no difference whether an inequality is strict or not: P(X≤a)=P(X<a)P(X \leq a) = P(X < a).

Illustration. Consider f(x)=2xf(x) = 2x for 0≤x≤10 \leq x \leq 1, and f(x)=0f(x) = 0 elsewhere. Since f(x)=2x≥0f(x) = 2x \geq 0 throughout [0,1][0,1], and

∫012x dx=[x2]01=1−0=1,\int_{0}^{1} 2x\, dx = \big[x^2\big]_{0}^{1} = 1 - 0 = 1, …

Definition 1Probability Density Function (p.d.f.)

A function f(x)f(x) describing a continuous random variable, such that f(x)≥0f(x) \geq 0 and the total area under its curve equals 11; probabilities correspond to areas under the curve over an …