Bivariate Normal Distribution

The bivariate normal distribution is the joint distribution of two normal random variables X and Y with means μ_X and μ_Y, standard deviations σ_X and σ_Y, and correlation ρ. Its density is a bell-shaped surface with elliptical contours. Each marginal is normal, and given X = x, Y is normal with mean μ_Y + ρ(σ_Y/σ_X)(x − μ_X).

Before this lesson: Normal Distribution, Covariance and Conditional Expectation

A bell-shaped surface

Heights of fathers and sons, scores on two exams, and returns on two stocks are each roughly normal, and each pair is correlated. The bivariate normal distribution models such pairs with just five numbers: two means, two standard deviations and the correlation ρ.

Picture a hill over the xy-plane, highest at (μ_X, μ_Y). Slices at a fixed height are ellipses. When ρ = 0 (and the standard deviations are equal), the ellipses are circles. As ρ grows toward 1, they stretch along a rising diagonal, because large x and large y go together.

Contour ellipses of a standard bivariate normal density with correlation 0.5, centered at the origin and tilted along the line y = x, shown as a dashed gray line. An inner ellipse and an outer ellipse are drawn in navy. A solid orange line y = 0.5x, less steep than the ellipses’ long axis, shows the conditional mean E(Y | X = x) = 0.5x.
Contours are tilted ellipses; the conditional mean line y = ρx (orange) is flatter than the ellipses’ long axis, which shows regression toward the mean.

Bivariate normal density and key facts

With z_x = (x − μ_X)/σ_X and z_y = (y − μ_Y)/σ_Y, and −1 < ρ < 1, the density is

f(x, y) = \dfrac{1}{2\pi\sigma_X\sigma_Y\sqrt{1 - \rho^2}}\exp\left(-\dfrac{z_x^2 - 2\rho z_x z_y + z_y^2}{2(1 - \rho^2)}\right)

Key facts

  • Marginals: X is N(μ_X, σ_X) and Y is N(μ_Y, σ_Y), where the second number is the standard deviation.
  • Conditional distribution: given X = x, Y is normal with the mean and standard deviation below.
  • Linear combinations: aX + bY is normal with mean aμ_X + bμ_Y and variance a²σ_X² + b²σ_Y² + 2abρσ_Xσ_Y.
  • Zero correlation means independence. This is special to the bivariate normal; for most distributions it fails.
E(Y \mid X = x) = \mu_Y + \rho\,\dfrac{\sigma_Y}{\sigma_X}(x - \mu_X), \qquad \operatorname{SD}(Y \mid X = x) = \sigma_Y\sqrt{1 - \rho^2}

Steps for a conditional probability

  1. Find the conditional mean from the formula above.
  2. Find the conditional standard deviation σ_Y√(1 − ρ²). It does not depend on x.
  3. Standardize the cutoff with the conditional mean and SD.
  4. Read the probability from the standard normal distribution.

Bivariate normal distribution examples

Example 1: Fathers’ and sons’ heights (word problem)

Fathers’ heights X have mean 70 inches and SD 3; sons’ heights Y have mean 71 inches and SD 3; the correlation is 0.5, and (X, Y) is bivariate normal. A father is 76 inches tall. Find the conditional mean and SD of his son’s height, and the probability that the son is taller than 76 inches.

E(Y \mid X = 76) = 71 + 0.5 \cdot \dfrac{3}{3}(76 - 70) = 71 + 3 = 74

Conditional mean formula.

\operatorname{SD}(Y \mid X = 76) = 3\sqrt{1 - 0.5^2} = 3\sqrt{0.75} \approx 2.598

Conditional SD formula (see square roots).

z = \dfrac{76 - 74}{2.598} \approx 0.770

Standardize with the conditional mean and SD (see z-scores).

P(Y \gt 76 \mid X = 76) = P(Z \gt 0.770) \approx 0.221

Standard normal upper tail (see standard normal distribution).

Answer: given a 76-inch father, the son’s height is normal with mean 74 and SD about 2.60, and the chance he is taller than 76 inches is about 0.221. The son is expected to be only 3 inches above average, not 6: this is regression toward the mean.

Example 2: The peak of the density

(X, Y) is bivariate normal with σ_X = 2, σ_Y = 3 and ρ = 0.6. Find the height of the density at its center (μ_X, μ_Y).

z_x = z_y = 0 \implies \exp(0) = 1

At the means, both z-scores are 0.

\sqrt{1 - 0.6^2} = \sqrt{0.64} = 0.8

Simplify the square root.

f(\mu_X, \mu_Y) = \dfrac{1}{2\pi \cdot 2 \cdot 3 \cdot 0.8} = \dfrac{1}{9.6\pi} \approx 0.0332

Substitute into the constant in front.

Answer: about 0.0332. Larger |ρ| makes the peak taller and the hill narrower across the diagonal.

Example 3: Total of two exam scores (word problem)

Math scores X are N(70, 10) and reading scores Y are N(65, 8), with correlation 0.6, and (X, Y) is bivariate normal. Find the probability that a student’s total S = X + Y is more than 160.

E(S) = 70 + 65 = 135

Means add.

\operatorname{Var}(S) = 10^2 + 8^2 + 2(0.6)(10)(8) = 100 + 64 + 96 = 260

Variance of a sum with 2ρσ_Xσ_Y.

\operatorname{SD}(S) = \sqrt{260} \approx 16.125

Take the square root.

z = \dfrac{160 - 135}{16.125} \approx 1.550

Standardize; S is normal because it is a linear combination.

P(S \gt 160) = P(Z \gt 1.550) \approx 0.0605

Upper tail.

Answer: about 0.0605. The positive correlation makes extreme totals more likely than they would be for independent scores.

Example 4: Which score is higher?

With the scores in Example 3, find P(X > Y), the probability that the math score is higher.

D = X - Y,\quad E(D) = 70 - 65 = 5

Work with the difference.

\operatorname{Var}(D) = 100 + 64 - 2(0.6)(10)(8) = 164 - 96 = 68

For a difference, subtract 2ρσ_Xσ_Y.

\operatorname{SD}(D) = \sqrt{68} \approx 8.246

Square root.

P(X \gt Y) = P(D \gt 0) = P\left(Z \gt \dfrac{0 - 5}{8.246}\right) = P(Z \gt -0.606) \approx 0.728

Standardize and use the symmetry of Z.

Answer: about 0.728. Positive correlation makes the difference less spread out, so the 5-point gap in means matters more.

Example 5: Zero correlation means independence

Show that when ρ = 0, the bivariate normal density factors into the two normal marginals.

f(x, y) = \dfrac{1}{2\pi\sigma_X\sigma_Y}\exp\left(-\dfrac{z_x^2 + z_y^2}{2}\right)

Set ρ = 0: the cross term and √(1 − ρ²) drop out.

f(x, y) = \dfrac{1}{\sigma_X\sqrt{2\pi}}e^{-z_x^2/2} \cdot \dfrac{1}{\sigma_Y\sqrt{2\pi}}e^{-z_y^2/2}

Split the exponential (see exponent rules) and 2π = √(2π) · √(2π).

f(x, y) = f_X(x)\,f_Y(y)

Each factor is a normal density.

Answer: the density is the product of the marginals on the whole plane, so X and Y are independent. In general, zero covariance does not imply independence; for jointly normal variables it does.

Common mistakes

MistakeExample of the errorFix
Predicting with slope σ_Y/σ_XPredicting 77 for the son in Example 1Multiply by ρ too: 71 + 0.5(6) = 74.
Using σ_Y as the conditional SDStandardizing with SD 3 in Example 1Use σ_Y√(1 − ρ²) ≈ 2.598.
Dropping the covariance termVar(X + Y) = 100 + 64 in Example 3Add 2ρσ_Xσ_Y = 96.
Assuming normal marginals make a bivariate normalUsing these facts for any two normal variablesJointly normal is a stronger condition; normal marginals alone are not enough.
Mixing up variance and SD in N(μ, σ)Reading N(70, 10) as variance 10On this site the second number is the standard deviation.

Related ideas

Regression line

The conditional mean line E(Y | X = x) is exactly the population least-squares regression line, with slope ρσ_Y/σ_X. That is why regression works so well for data that look bivariate normal.

Ellipses

The contours are ellipses centered at (μ_X, μ_Y). Their long axis tilts upward when ρ > 0 and downward when ρ < 0.

Moment generating functions

A clean proof that linear combinations of jointly normal variables are normal uses moment generating functions. That is the next lesson, Moment Generating Functions.

Practice problems

  1. In Example 1, a father is 64 inches tall. Find the expected height of his son.
  2. In Example 1, find the probability that the son of a 64-inch father is shorter than 71 inches.
  3. In Example 1, a son is 77 inches tall. Find the expected height of his father.
  4. In Example 3, find P(S < 120).
  5. σ_X = 2, σ_Y = 3 and ρ = 0.6. Find Var(2X − Y).
  6. Find the peak height f(μ_X, μ_Y) of a bivariate normal density with σ_X = σ_Y = 1 and ρ = 0.
  7. For σ_X = σ_Y = 1 and ρ = 0.8, find the conditional SD of Y given X = x.
  8. (X, Y) is standard bivariate normal (means 0, SDs 1) with ρ = −0.5. Find E(Y | X = 2).
  9. (X, Y) is standard bivariate normal with ρ = 0. Find P(X > 0 and Y > 0).
  10. In Example 1, what correlation would make the conditional SD of the son’s height equal to 2 inches?
Show answers

1.

E(Y \mid X = 64) = 71 + 0.5(64 - 70) = 71 - 3 = 68

Conditional mean; σ_Y/σ_X = 1.

Answer: 68 inches

2.

z = \dfrac{71 - 68}{2.598} \approx 1.155

Standardize with conditional mean 68 and SD 2.598.

P(Y \lt 71 \mid X = 64) = P(Z \lt 1.155) \approx 0.876

Standard normal table.

Answer: about 0.876

3.

E(X \mid Y = 77) = 70 + 0.5 \cdot \dfrac{3}{3}(77 - 71) = 73

Swap the roles of X and Y.

Answer: 73 inches

4.

z = \dfrac{120 - 135}{16.125} \approx -0.930

Standardize the total.

P(S \lt 120) = P(Z \lt -0.930) \approx 0.176

Lower tail.

Answer: about 0.176

5.

\operatorname{Var}(2X - Y) = 4(4) + 9 + 2(2)(-1)(0.6)(2)(3)

a = 2, b = −1.

\operatorname{Var}(2X - Y) = 16 + 9 - 14.4 = 10.6

Add.

Answer: 10.6

6.

f(\mu_X, \mu_Y) = \dfrac{1}{2\pi \cdot 1 \cdot 1 \cdot 1} = \dfrac{1}{2\pi} \approx 0.159

√(1 − 0) = 1.

Answer: about 0.159

7.

\operatorname{SD}(Y \mid X = x) = 1 \cdot \sqrt{1 - 0.64} = \sqrt{0.36} = 0.6

Conditional SD formula.

Answer: 0.6

8.

E(Y \mid X = 2) = 0 + (-0.5)(1)(2 - 0) = -1

Conditional mean with ρ = −0.5.

Answer: −1

9.

P(X \gt 0,\ Y \gt 0) = P(X \gt 0)\,P(Y \gt 0) = 0.5 \times 0.5 = 0.25

ρ = 0 means independent; each tail is 1/2 by symmetry.

Answer: 0.25

10.

3\sqrt{1 - \rho^2} = 2 \implies 1 - \rho^2 = \dfrac{4}{9}

Divide by 3 and square both sides.

\rho^2 = \dfrac{5}{9} \implies \rho = \dfrac{\sqrt{5}}{3} \approx 0.745

Solve, taking the positive root (heights are positively correlated).

Answer: about 0.745

Bivariate normal distribution FAQ

What is a bivariate normal distribution?

It is the joint distribution of two jointly normal random variables, described by two means, two standard deviations and a correlation. Its density is a bell-shaped surface with elliptical contours.

What is the conditional distribution in a bivariate normal?

Given X = x, Y is normal with mean μ_Y + ρ(σ_Y/σ_X)(x − μ_X) and standard deviation σ_Y√(1 − ρ²).

Does zero correlation imply independence for normal variables?

Yes, if X and Y are jointly (bivariate) normal: with ρ = 0 the density factors, as in Example 5. Two normal variables that are not jointly normal can be uncorrelated but dependent.

What do the contours of a bivariate normal look like?

They are ellipses centered at the means. They are circles when ρ = 0 and σ_X = σ_Y, and they stretch along a tilted axis as |ρ| grows.

Summary

  • Five parameters: μ_X, μ_Y, σ_X, σ_Y and ρ.
  • Marginals are normal; linear combinations are normal.
  • Given X = x: mean μ_Y + ρ(σ_Y/σ_X)(x − μ_X), SD σ_Y√(1 − ρ²).
  • The conditional mean line is the regression line, and it shows regression toward the mean.
  • For jointly normal variables, ρ = 0 means independent.

Previous lesson: Convolution of Random Variables

Next lesson: Moment Generating Functions

Back to the Probability Theory Index