liveBook · Manning

Covariance matrix

As explained in Build AI Drug Discovery Pipelines

A covariance matrix is a square matrix whose entries quantify pairwise covariance between features.

A covariance matrix is a square table describing how every pair of features changes together. Positive covariance means two features tend to increase together; negative covariance means one tends to increase as the other decreases; near-zero covariance suggests little shared movement. section 6.2.3

In principal component analysis (PCA), features are first standardized so different measurement scales contribute equally. PCA then computes the covariance matrix and uses its eigenvectors as directions of variation; eigenvalues rank those directions by explained variance. section 6.2.3

Using covariance for dimensionality reduction

For molecular features, PCA can transform the original dataset into coordinates along selected principal components. Retaining only the leading components compresses the data while preserving the dimensions that explain the most variance; choosing too few can discard informative structure. section 6.2.3

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Explains covariance directionality and its role in PCA eigendecomposition, but stops short of deriving the matrix formula.
Examples
Uses molecular feature datasets, rotated coordinates, and principal-component visualizations to illustrate covariance-driven compression.
What it assumes
Assumes feature datasets and basic variance vocabulary while defining covariance, standardization, eigenvectors, and eigenvalues.
What you can do after
Evaluate/understand how feature co-variation determines PCA directions and affects the choice of retained components.
How it connects
Connects covariance matrices to standardization, principal component analysis, eigenvectors, eigenvalues, and dimensionality reduction.

Also explained in

Compare how 6 books explain covariance matrix →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI Drug Discovery Pipelines. The section links point to the parts of the book it draws on.