liveBook · Manning

Standardization

As explained in Build AI Drug Discovery Pipelines

Standardization transforms each feature so that it has a specified mean and scale, commonly mean zero and standard deviation one.

Standardization transforms every feature to mean 0 and standard deviation 1. Equalizing feature spread prevents large-scale features from dominating principal component analysis (PCA), while centering simplifies its computation. section 6.2.3

Within a PCA workflow, standardization precedes the following operations:

  • Compute the covariance matrix from the standardized features. section 6.2.3
  • Find principal components as covariance-matrix eigenvectors, ranked by their eigenvalues. section 6.2.3
  • Retain the first k components and represent each sample in the resulting lower-dimensional coordinate system. section 6.2.3

Python PCA workflow

A representative implementation creates a StandardScaler before PCA, then configures PCA to retain enough components to explain 99% of the variance. section 6.2.3

Figure 6.9 PCA defines a new coordinate system based on principal components, where the important dimensions are self-evident, and we can reduce the data dimensionality to k by retaining the first k PCs as ranked by the amount of variance they explain.

View how PCA creates a new coordinate system and selects components by explained variance. section 6.2.3

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Defines mean-zero, unit-standard-deviation scaling and connects it to covariance computation, stopping before implementation detail beyond the PCA workflow.
Examples
Uses a 2D coordinate-system illustration and a Python workflow containing StandardScaler and PCA.
What it assumes
Assumes feature data and introduces the PCA vocabulary needed to understand why scaling matters.
What you can do after
Apply it via StandardScaler before running PCA on feature data.
How it connects
Connects feature scaling to PCA, covariance matrices, eigenvectors, eigenvalues, and dimensionality reduction.

Also explained in

Compare how 7 books explain standardization →

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.