Joint Density Function — Definition, Formula & Example
A joint density function is a surface over the plane that describes how two continuous random variables vary together. The volume under this surface above a region gives the probability that the pair lands in that region.
Random variables and are jointly continuous if there is a function such that for every (Borel) set . This is the joint density. It satisfies . Where the joint CDF is smooth enough, . The definition extends to variables with -fold integrals.
Key Formula
Where:
- = Joint density of X and Y. It gives probability per unit area, not a probability.
- = Region of the xy-plane whose probability you want
- = Area element, usually written as dy dx or dx dy
Worked Example
Problem: Let for and , with elsewhere. Confirm that is a valid joint density. Then find .
Step 1: Check validity. The function is nonnegative on the unit square. Its total volume must equal 1, so integrate over first and then over .
Step 2: The event is the square . Do the inner integral over and treat as a constant.
Step 3: Integrate that result over from 0 to .
Answer: is a valid joint density, and . Even though this square covers one quarter of the area, it holds only 12.5% of the probability, because the density is smallest near .
Why It Matters
Questions such as "which part fails first?" ask for . You answer them by integrating a joint density over the half-plane above the line . Calculus-based probability courses build marginals, conditional densities, covariance and independence tests on this one object. Reliability engineering and Bayesian statistics use it the same way.
Common Mistakes
Mistake: Assuming the joint density always equals the product of the two single-variable densities, .
Correction: That factorization holds only when and are independent. In the example, the marginals are and . Their product at is , but , so and are dependent. Find each marginal by integrating out the other variable, and test factorization before you use it.
