← Back to KerryTech

Bivariate Normal Distribution & Correlation

The bivariate normal distribution extends the familiar normal distribution to two variables. The key additional ingredient is correlation: a measure of how strongly the two variables tend to move together. Move the correlation assumption below and watch both probability-density visualisations change in real time.

Correlation assumption

The correlation coefficient, commonly written as rho, measures the strength and direction of the linear relationship between the two variables.

Move the correlation assumption

rho = 0.00
Zero correlation: the two variables are independent in the bivariate normal case.
-0.99 strong negative 0 independent +0.99 strong positive

Distribution parameters

See the distribution change

Both charts below use exactly the same probability distribution. The 2D view shows the density from above, while the 3D view shows the probability-density surface.

2D probability density
The shape becomes more elongated as correlation increases in magnitude.
3D probability-density surface
Drag to rotate the distribution.
Simulation hidden

The mathematics

For two standardised variables with correlation rho, the bivariate normal probability density is determined by both individual standard deviations and their correlation.

f(x,y) = 1 / (2 pi sigmax sigmay sqrt(1 - rho2)) × exp[ -1 / (2(1-rho2)) × Q ]
where Q = ((x-mux)2 / sigmax2) - 2rho((x-mux)(y-muy) / (sigmax sigmay)) + ((y-muy)2 / sigmay2)

In this demonstration both means are zero. Changing the correlation does not simply move the distribution: it changes its shape.

Important point: when rho is positive, high values of one variable tend to occur with high values of the other. When rho is negative, high values of one tend to occur with low values of the other. When rho is zero, the variables are independent because this is a bivariate normal distribution.

Why correlation matters for risk

Correlation is one of the most important concepts in portfolio, market and credit risk. Two assets can each be risky individually, but their combined risk depends heavily on how their returns move relative to one another.

Negative correlation

When rho is negative, the variables tend to move in opposite directions. This can provide strong diversification because losses in one variable can be partly offset by gains in the other.

Zero correlation

In the bivariate normal model, rho = 0 means independence. The two variables contain no linear relationship and their joint density is circular when their standard deviations are equal.

Positive correlation

When rho is positive, the variables tend to move together. Diversification becomes weaker and portfolio risk increases. At very high positive correlation, the two risks behave increasingly like one risk.

Correlation and portfolio volatility

The same mathematics appears directly in portfolio risk. Consider two assets with weights w1 and w2. Their portfolio variance is:

sigmap2 = w12 sigma12 + w22 sigma22 + 2w1w2rho sigma1sigma2
Portfolio volatility = sqrt(portfolio variance)
Current portfolio volatility
70.71%
The example assumes a 50/50 portfolio with each asset having 10% annual volatility. Change the correlation above and this number changes immediately.
Portfolio volatility vs correlation
50/50 portfolio · 10% volatility for each asset

The diversification effect

This is the key insight behind correlation in portfolio risk. Even if two assets have exactly the same individual volatility, combining them can substantially reduce overall volatility when their correlation is below one.

Moving the correlation slider from +0.90 towards 0 and then towards -0.90 demonstrates the mathematical foundation of diversification. The lower the correlation, the greater the potential reduction in combined risk.

The slider stops at +/-0.99 rather than +/-1.00 because a correlation of exactly +1 or -1 makes the covariance matrix singular. The ordinary two-dimensional density then collapses onto a line rather than remaining a regular two-dimensional probability distribution.