Siilats Robots
Multivariate Gaussian lessons

Gaussian Conditional vs Marginal Distributions in Excel

Use an Excel visualization to compare marginal and conditional distributions in a bivariate Gaussian. The screen share shows how correlation changes the shape of the distribution and how knowing one variable changes the expected value of the other.

Watch the original lessonMultivariate Gaussian workbook

Screen times follow the original lesson. Edited YouTube versions may run shorter.

At 0:00 in the original

Read the marginal plot

Focus on one variable and integrate away the other. For a joint Gaussian its marginal mean and variance come directly from the corresponding entries.

Screen recording at 0:00
Screen at 0:00
At 1:55 in the original

Vary the correlation

Change the correlation and look for tilted contours. The joint plot changes even when the two one-variable marginals retain their original variances.

Screen recording at 1:55
Screen at 1:55
At 3:50 in the original

Condition on an observed point

Fix one feature in the sheet and read the slice along the prediction axis. Move the observation to see why the conditional mean moves.

Screen recording at 3:50
Screen at 3:50
At 5:45 in the original

Compute the conditional mean

For two features, the adjustment is covariance divided by the observed feature’s variance, multiplied by that feature’s deviation from its mean.

Screen recording at 5:45
Screen at 5:45
At 7:50 in the original

Compare the widths

The conditional variance subtracts the squared covariance divided by the observed feature’s variance. Stronger correlation makes the slice narrower.

Screen recording at 7:50
Screen at 7:50