A probability density function (PDF), commonly denoted $f(x)$ or $f_X(x)$, describes the relative likelihood per unit of measurement of a continuous random variable$X$ across its domain. Unlike discrete random variables—which assign positive probability directly to individual points via a probability mass function (PMF)—a continuous random variable has uncountably many possible values, so the probability of any exact single point is zero: $P(X = x_0) = 0$. Instead, probabilities for continuous variables correspond to areas under the density curve over intervals $[a, b]$:
$$P(a \le X \le b) = \int_a^b f(x)\,dx$$
Across probability theory, mathematical statistics, econometrics, biostatistics, physics, and engineering, the PDF is the central bridge between a random variable’s shape and its expected values, variances, likelihoods, and interval probabilities.
The density plot above shows how narrower spread concentrates probability mass more tightly around the center, raising the peak density height while preserving a total area of one under each curve.
Axioms and Properties of a Valid PDF
For a real-valued function $f(x)$ to serve as a valid probability density function for a continuous random variable $X$, it must satisfy two core mathematical conditions:
- Non-Negativity: $f(x) \ge 0$ for all $x \in (-\infty, \infty)$. Density values can exceed $1$ over narrow intervals (because density is a rate per unit of $x$, not a probability itself), but they can never be negative.
- Unit Total Integral: The total area under the density curve across the entire real line equals $1$:
$$\int_{-\infty}^{\infty} f(x)\,dx = 1$$
- Link to the Cumulative Distribution Function (CDF): The CDF $F(x) = P(X \le x)$ is the anti-derivative (integral from $-\infty$ to $x$) of the PDF, and where $F(x)$ is differentiable, the PDF is its derivative:
$$F(x) = \int_{-\infty}^{x} f(t)\,dt, \qquad f(x) = \frac{d}{dx}F(x)$$
- Expectation and Moments: For any measurable function $g(X)$ where the expectation exists, its expected value is a weighted integral using $f(x)$:
$$E[g(X)] = \int_{-\infty}^{\infty} g(x)\,f(x)\,dx$$
Setting $g(X) = X$ gives the mean $\mu = E[X]$, and setting $g(X) = (X – \mu)^2$ gives the variance $\sigma^2 = \operatorname{Var}(X)$.
Prominent Continuous Distributions and Their PDFs
Different physical, economic, and statistical processes generate distinct density shapes:
| Distribution | Support | Density Function f(x) | Typical Role & Shape Notes |
| Normal (Gaussian) | $(-\infty, \infty)$ | $\frac{1}{\sigma\sqrt{2\pi}} \exp\!\left(-\frac{(x – \mu)^2}{2\sigma^2}\right)$ | Symmetric bell curve; central limit theorem limit, measurement error, baseline modeling |
| Uniform | $[a, b]$ | $\frac{1}{b – a}$ for $a \le x \le b$ (else $0$) | Flat constant density over a bounded interval; foundational for simulation/RNG |
| Exponential | $[0, \infty)$ | $\lambda e^{-\lambda x}$ for $x \ge 0$ ($\lambda > 0$) | Strictly decreasing from $\lambda$ at $0$; memoryless waiting/inter-arrival times |
| Student’s $t$ | $(-\infty, \infty)$ | $\frac{\Gamma\!\left(\frac{\nu + 1}{2}\right)}{\sqrt{\nu\pi}\,\Gamma\!\left(\frac{\nu}{2}\right)} \left(1 + \frac{x^2}{\nu}\right)^{-(\nu+1)/2}$ | Symmetric with heavier tails than normal; small-sample inference and robust modeling |
| Log-Normal | $(0, \infty)$ | $\frac{1}{x\sigma\sqrt{2\pi}} \exp\!\left(-\frac{(\ln x – \mu)^2}{2\sigma^2}\right)$ | Right-skewed positive support; incomes, asset prices, multiplicative growth/sizes |
Transformations and Change of Variables
When a continuous random variable $X$ with known PDF $f_X(x)$ is transformed via a strictly monotonic, differentiable function $Y = g(X)$ with inverse $X = g^{-1}(Y)$, the density of $Y$ is not simply $f_X(g^{-1}(y))$. Because stretching or compressing the horizontal axis changes density height to keep total area equal to $1$, analysts apply the change-of-variables Jacobian rule:
$$f_Y(y) = f_X\!\bigl(g^{-1}(y)\bigr)\,\left\vert{}\frac{d}{dy}g^{-1}(y)\right\vert{}$$
For example, if $X$ is stretched so $Y = cX$ ($c > 0$), intervals widen by factor $c$, so density height scales by $1/c$ to preserve total integral $1$.
Common Misinterpretations and Practical Pitfalls
Working with probability density functions trips up students and analysts alike when density is confused with probability:
- Treating $f(x_0)$ as a Probability: Because $f(x)$ is a probability density (units of probability per unit of $x$), $f(x_0)$ can be greater than $1$—for instance, a $\text{Uniform}(0, 0.25)$ distribution has constant density $f(x) = 4$ on $[0, 0.25]$ while integrating to $4 \times 0.25 = 1$. Always integrate over an interval $[a, b]$ to get a probability.
- Forgetting the Jacobian Under Non-Linear Transforms: Transforming a variable (such as taking logs, powers, or ratios) alters interval widths non-uniformly, so omitting $\left\vert{}\frac{d}{dy}g^{-1}(y)\right\vert{}$ produces a curve that fails to integrate to $1$.
- Confusing Histogram Heights with Unscaled Densities: In a histogram, bar height represents frequency or proportion per bin only when normalized as a density histogram (where bar area—height times bin width—equals probability). With unequal bin widths, unnormalized counts distort visual shape.
- Over-Interpreting Parametric Curve Fit Without Diagnostics: A parametric PDF assumes a specific functional family and tail behavior; empirical histograms, Q-Q plots, and goodness-of-fit checks help reveal skewness, heavy tails, or multimodality that a single assumed density might miss.
Conclusion
A probability density function$f(x)$ specifies how probability mass is distributed across a continuous variable’s domain so that interval probabilities equal areas under the curve and expectations arise via integration. Keeping the distinction between density and probability clear, applying proper change-of-variables transformations, and pairing parametric PDFs with empirical diagnostics keeps continuous probability modeling accurate and intuitive.