Probability And Stochastic Processes Codexery

Probability density function

A function giving relative probability per unit length for continuous variables.

Probability density function

A probability density function (PDF), also called a density function or simply the density of an absolutely continuous random variable, describes how probability is distributed across the possible values that variable can take. At any specific point in the sample space, the PDF gives a "relative probability"—it indicates how likely it is that the random variable will be near that point compared to another, even though the exact probability of hitting any single value is zero. In essence, probability density is the probability per unit of measurement.

Rather than assigning probability to individual values, the PDF is used to find the probability that the random variable falls within a given range. This probability equals the integral (the area under the curve) of the PDF between the lower and upper bounds of that range. The PDF is always nonnegative, and the total area under the entire curve equals one, meaning there is a 100% chance the variable takes some value within its possible set.

The terms "probability distribution function" and "probability function" are sometimes used interchangeably with PDF, but this is not standard among probabilists and statisticians. In other contexts, "probability distribution function" might refer to the cumulative distribution function (CDF), a probability mass function (PMF), or a function defined over general sets. The word "density" itself can also be applied to the PMF, causing confusion. Generally, the PMF is used for discrete random variables (those taking values from a countable set), while the PDF is used for continuous ones. Both are essential in statistical inference.

**Example** Consider bacteria that typically live between 20 and 30 hours. The probability that a bacterium lives exactly 5 hours is zero—this is about an idealized continuous variable, not a recorded observation. Many bacteria live about 5 hours, but none die at precisely 5.000... hours. However, the chance of dying between 5 and 5.01 hours is quantifiable; suppose it is 0.02 (2%). Then the chance of dying between 5 and 5.001 hours is about 0.002, one-tenth as long. Similarly, between 5 and 5.0001 hours, it is about 0.0002.

Here, the ratio (probability of dying during an interval) divided by (interval length) is roughly constant at 2 per hour. For the 0.01-hour interval from 5 to 5.01 hours, that ratio is 0.02 / 0.01 = 2 hour⁻¹. This value, 2 hour⁻¹, is the probability density at around 5 hours. So the probability of dying at exactly 5 hours can be written as (2 hour⁻¹) dt, where dt is an infinitesimally small time window. For instance, the chance of dying between 5 hours and 5 hours plus one nanosecond is (2 hour⁻¹) × (1 nanosecond). A PDF f exists such that f(5 hours) = 2 hour⁻¹, and the integral of f over any time window gives the probability of death in that window.

**Absolutely continuous univariate distributions** A PDF is most often tied to absolutely continuous univariate distributions. A random variable X has density f, a nonnegative Lebesgue-integrable function, if: - For any real numbers a and b, P(a ≤ X ≤ b) = ∫ₐᵇ f(x) dx. If F is the cumulative distribution function of X, then F(x) = ∫₋∞ˣ f(t) dt, and where F is differentiable, f(x) = F'(x). Intuitively, f(x) dx approximates the probability that X falls in the infinitesimal interval [x, x+dx].

**Formal definition** (This definition can be extended using measure-theoretic probability.) A random variable X with values in a measurable space (often ℝ with Borel sets) has a probability distribution given by the pushforward measure X∗P. The density f of X with respect to a reference measure μ on the space is the Radon–Nikodym derivative: f = d(X∗P)/dμ. That is, f is any measurable function such that for any measurable set A, P(X ∈ A) = ∫ₐ f dμ.

**Discussion** In the continuous univariate case, the reference measure is Lebesgue measure. For a discrete random variable, the probability mass function is the density with respect to counting measure on the sample space (e.g., integers). A density cannot be defined with respect to an arbitrary measure (e.g., counting measure cannot serve as a reference for a continuous variable). When a density exists, it is almost unique—any two such densities agree almost everywhere.

**Further details** Unlike a probability, a PDF can exceed one. For example, the continuous uniform distribution over a short interval has a density greater than one.

field
Probability theory
known_for
Specifying probability of a continuous random variable falling within a range via integral of the density function

Lore & Background

The probability density function (PDF) is most commonly associated with absolutely continuous univariate distributions. For a random variable \(X\) with density \(f_X\), where \(f_X\) is a non-negative Lebesgue-integrable function, the probability that \(X\) falls between \(a\) and \(b\) is given by the integral \(\Pr[a \le X \le b] = \int_a^b f_X(x)\,dx\). The cumulative distribution function \(F_X(x)\) is the integral from negative infinity to \(x\) of the density, and where \(F_X\) is differentiable, the density is its derivative. Intuitively, \(f_X(x)\,dx\) represents the probability of \(X\) lying in an infinitesimal interval around \(x\). The PDF is nonnegative everywhere, and the total area under the curve equals one, meaning the probability of the variable taking any value in its sample space is 100%. Unlike a probability, a PDF can take values greater than one; for example, the continuous uniform distribution can have a density exceeding one over a short interval. The value of the PDF at two different points indicates how much more likely the random variable is to be close to one point compared to the other. The terms "probability distribution function" and "probability function" are sometimes used for the PDF, but this usage is not standard among probabilists and statisticians, as those terms can also refer to the cumulative distribution function or the probability mass function (PMF) for discrete variables. The PMF applies to discrete random variables (taking values on a countable set), while the PDF applies to continuous ones; both are fundamental in statistical inference. In measure-theoretic terms, the PDF is the Radon–Nikodym derivative of the probability distribution with respect to a reference measure, such as the Lebesgue measure for continuous variables or the counting measure for discrete ones. When a density exists, it is almost unique, meaning any two densities coincide almost everywhere.

Reader's Guide

The probability density function is a fundamental concept in statistical inference, used to model continuous random variables. Unlike discrete variables, the probability of a continuous variable taking any exact value is zero; instead, the PDF gives the probability per unit length, and the probability over an interval is the area under the curve. The terms probability distribution function and probability function can also denote the PDF, but this use is not standard among probabilists and statisticians. In other sources, 'probability distribution function' may refer to the cumulative distribution function or a probability mass function, leading to confusion. The PDF is distinct from the probability mass function, which is used for discrete random variables. Both are essential in statistical inference.

Did You Know?

More in Probability And Stochastic Processes 1-21

Spotted an error? Know more?

This is a living reference — every entry is fact-audited, and reader corrections feed straight into our audit queue. Suggest an edit · See this site's audit record

Comments

Loading…
Open in the interactive codex →