liveBook · Manning

Covariance

As explained in Bayesian Optimization in Action

Covariance is a measure of how two random variables vary together.

Covariance measures how two random variables vary together. In a multivariate Gaussian, the covariance matrix captures both each variable’s variance and the relationships between variables. section 2.2.1

Read the covariance matrix by position:

  • Diagonal entries give the variances of the individual random variables. section 2.2.1
  • Off-diagonal entries give the covariance between pairs of variables and relate to their correlation. section 2.2.1
  • Positive covariance indicates that variables tend to move together; stronger positive correlation indicates a closer relationship. section 2.2.1
Figure 2.4 An MVN distribution groups multiple normally distributed random variables together. While the mean vector of the MVN concatenates the mean values, the covariance matrix models the correlations between the individual variables.

Use the figure to see how a mean vector represents individual variables while the covariance matrix represents their relationships. section 2.2.1

How Bayesian Optimization in Action covers it

How deep it goes
Defines covariance through matrix entries, distinguishing individual variances on the diagonal from pairwise relationships off the diagonal.
Examples
Uses a housing-price multivariate Gaussian and visualizations of samples, confidence intervals, and variable relationships.
What it assumes
Builds from normal distributions and random vectors before extending them to jointly model multiple variables.
What you can do after
Evaluate covariance matrices by identifying variable variances and pairwise relationships in multivariate Gaussian models.
How it connects
Connects covariance with multivariate Gaussian distributions, variance, correlation, mean vectors, and normal distributions.

Also explained in

Compare how 5 books explain covariance →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Bayesian Optimization in Action. The section links point to the parts of the book it draws on.