Cookmath

Mean variance and covariance matrices

Centering subtracts each feature mean. The sample covariance matrix XᵀX/(n−1) records individual variance on its diagonal and shared variation off its diagonal.

What you will learn

Work through one complete example

Objective 1: Compute means and center features

Objective 2: Compute sample covariance and identify variance

Objective 3: Interpret covariance rank

A common mistake

State the assumptions before using the formula.

Review first

Continue learning

Mean variance and covariance matrices

Interactive diagnosis and practice load in the learning app. You can read these lesson notes without JavaScript.