Joint Distributions and Independence
Recall prompts
Section titled “Recall prompts”Attempt these from memory before reading.
- Define the joint CDF of .
- Does knowing the marginal distributions of and determine the joint distribution of ?
- Define covariance. What does tell you?
- Define independence of two random variables.
- Is the sum of two independent normal random variables always normal?
Motivation: marginals do not determine the joint
Section titled “Motivation: marginals do not determine the joint”The single most important fact on this page is that the marginal distributions of and do not determine the joint distribution. Knowing everything about and everything about tells you nothing about how they move together.
That is not a technicality; it is the entire subject of dependence. The joint distribution is extra information, and covariance and correlation are attempts to summarise one aspect of it.
Worked example (the canonical counterexample). Let be standard normal and let with probability and with probability , independently of ‘s value. Then is also standard normal, so and have identical marginals. But and are completely different joint distributions: one is concentrated on the diagonal, the other on the anti-diagonal.
The marginals are the same. The dependence is opposite. Anything you want to know about how and relate requires the joint distribution, and no marginal summary can substitute.
That is the reason correlation is not causation, and it is the reason two portfolios with identical marginal return distributions can have completely different risk.
3.1 Joint Distribution Functions
Section titled “3.1 Joint Distribution Functions”Definition. The joint CDF of is .
Definition. The joint PDF (for continuous random variables) is such that
Definition. The marginal PDF of is .
3.2 Covariance and Correlation
Section titled “3.2 Covariance and Correlation”Definition. The covariance of and is
Proposition 2.6. and .
Definition. The correlation coefficient is
Theorem 2.7 (Cauchy—Schwarz for Random Variables). , with equality if and only if almost surely for some .
3.3 Independence of Random Variables
Section titled “3.3 Independence of Random Variables”Definition. and are independent if for all .
For continuous random variables, this is equivalent to .
Proposition 2.8. If and are independent, then . The converse is false.
Worked Example: Uncorrelated but Dependent
Solution. Let and . Then (since the third moment of a standard normal is 0).
But is completely determined by , so they are not independent.
3.4 Conditional Distributions
Section titled “3.4 Conditional Distributions”Definition. The conditional PDF of given is:
provided .
Definition. The conditional expectation of given is:
The random variable has the property that (law of total expectation).
3.5 The Bivariate Normal Distribution
Section titled “3.5 The Bivariate Normal Distribution”The bivariate normal distribution has joint PDF:
where .
Properties of the bivariate normal:
- Marginal distributions are normal: , .
- Conditional distribution is normal: .
- and are independent if and only if .
3.6 Transformations of Joint Distributions
Section titled “3.6 Transformations of Joint Distributions”For a transformation where is a diffeomorphism, the joint PDF is:
where is the Jacobian matrix of the inverse transformation.
Example. Let be independent exponential() random variables. The joint PDF of and factors as , showing and are independent with and .
3.7 Sums of Independent Random Variables
Section titled “3.7 Sums of Independent Random Variables”If and are independent, the PDF of is the convolution:
For moment generating functions: .
Counterexamples worth knowing by name
Section titled “Counterexamples worth knowing by name”| Claim | True? | Counterexample |
|---|---|---|
| Marginals determine the joint | no | versus with standard normal |
| implies independence | no | uniform on , : covariance is exactly 0, but is a function of |
| Correlation measures dependence strength | no | Anscombe’s quartet: four datasets with identical correlation 0.816 and completely different shapes |
| The sum of two normals is normal | no | unless they are jointly normal (bivariate normal) |
| Independence is symmetric in marginals | yes | it is, but only because it is defined on the product measure |
Uncorrelated does not mean independent. The example is the one to remember: is completely determined by , yet the covariance is zero by symmetry. Correlation measures linear dependence only, and it is blind to every other kind.
Anscombe’s quartet makes the same point visually. Four datasets with the same means, the same variances, the same correlation and the same fitted line — one linear, one curved, one with an outlier driving everything, one with a vertical line. Summary statistics are not a substitute for looking at the data.
Why the bivariate normal is special
Section titled “Why the bivariate normal is special”The normal is the one family where the counterexamples stop. For a bivariate normal:
- uncorrelated implies independent
- the marginals are normal
- the sum of the two is normal
- the conditional expectation is linear in
Every one of those is false in general, and every one is true for the bivariate normal. That is why the normal is the distribution statistical methods are built around — not because data is normal, but because theorems are provable.
Interleaving problems
Section titled “Interleaving problems”Mix these with material from Random Variables, Limit Theorems and Measure Theory.
- (Probability.) Show that if and are independent then , and give the counterexample showing the converse fails.
- (Probability.) Show , and deduce the variance of a sum of independent variables.
- (Probability.) Show that the bivariate normal with correlation has conditional mean \mu_Y + ho rac{\sigma_Y}{\sigma_X}(x - \mu_X), and explain why this is the regression line.
- (Limit theorems.) Use the CLT and the delta method to find the asymptotic distribution of the sample correlation coefficient.
- (Measure theory.) Show that if and are independent then the joint measure is the product measure, and that Fubini’s theorem is what lets you compute by iterated integrals.
3.8 Practice Problems
Section titled “3.8 Practice Problems”Problem 1. Let and have joint PDF for . Find , the marginal PDFs, and .
Problem 2. Show that if for a bivariate normal pair, then and are independent.
Problem 3. Let and be independent standard normal variables. Find the distribution of and .
Solution. has Rayleigh distribution with PDF for , and , and and are independent.
Problem 4. Suppose and where is independent of . Find the joint distribution of and compute .
3.9 Law of Total Probability and Bayes’ Theorem for Distributions
Section titled “3.9 Law of Total Probability and Bayes’ Theorem for Distributions”Law of total probability: .
Bayes’ theorem: .
3.10 Moment Generating Functions for Joint Distributions
Section titled “3.10 Moment Generating Functions for Joint Distributions”The joint moment generating function of is:
If and are independent, then . Joint moments can be recovered by differentiation:
3.11 Additional Practice Problems
Section titled “3.11 Additional Practice Problems”Problem 5. Let have joint PDF for , . Find the marginal PDFs and determine if and are independent.
Problem 6. Suppose and are independent exponential random variables with rate . Find the distribution of and . Are they independent?
Problem 7. Show that (the variance decomposition formula).
3.12 Common Mistakes
Section titled “3.12 Common Mistakes”Mistake 1: Confusing independence with pairwise independence. Two random variables and are independent if their joint distribution factors as . For three or more variables, pairwise independence (each pair is independent) does not imply mutual independence. There exist random variables that are pairwise independent but not mutually independent.
Mistake 2: Assuming that zero covariance implies independence. If and are independent, then , but the converse is false. Uncorrelated variables can be dependent. For example, let be uniform on and . Then , but and are not independent.
Mistake 3: Forgetting that the marginal distribution does not determine the joint distribution. Knowing the marginal distributions and does not determine the joint distribution . The joint distribution also depends on the dependence structure between and . Two different joint distributions can have the same marginals.
Mistake 4: Confusing the correlation coefficient with the slope of a regression line. The correlation coefficient measures the strength of the linear relationship between and , but it is not the same as the slope of the regression line of on . The slope is , which depends on the standard deviations.
Mistake 5: Assuming that linear regression is appropriate for nonlinear relationships. Linear regression fits a straight line to the data, but if the relationship between and is nonlinear, the regression line may be misleading. Always check the scatterplot and consider nonlinear models if the relationship appears curved.
Intuition
Section titled “Intuition”Joint distributions describe how two or more random variables vary together. Independence means knowing one variable tells you nothing about the other, which mathematically factorizes the joint distribution into a product. Dependence creates structure: positive correlation means variables tend to move together, negative correlation means they move oppositely. The marginal distribution is what you see when you ignore one variable, like looking at a 3D landscape from above. Conditional distributions slice the joint distribution along one variable, revealing how the other behaves given specific information. These concepts form the backbone of statistical modeling.
Cross-References
Section titled “Cross-References”Random Variables: Random variables provide the building blocks for constructing joint distributions and analyzing dependence.
Probability Spaces: Probability spaces provide the measure-theoretic foundation for defining joint distributions.
Limit Theorems: The central limit theorem extends to sums of independent random variables with different distributions.