P=QQT if the columns of Q are an orthonormal basis of the subspace. Module 7
Normal equations
ATAx=ATb. These characterise least-squares minimisers, with a unique coefficient vector when the columns of A are independent. Module 8
QR solve
For a thin factorisation A=QR with independent columns, solve Rx=QTb.Module 8
3
Spectra, singular values and data
Quantity
Rule and conditions
Eigenpair
Av=λv for square A and v=0. The candidate values solve det(A−λI)=0.Module 9
Diagonalisation
A=PDP−1 when the columns of P form an eigenbasis and D stores the corresponding eigenvalues. Module 9
Symmetric diagonalisation
A=QΛQT for real symmetric A with orthonormal eigenvectors in Q.Module 10
Singular values
The positive σi are the square roots of positive eigenvalues of ATA. For them, ui=Avi/σi.Module 11
Condition number
κ2(A)=σmax/σmin for full column rank, and κ2(ATA)=κ2(A)2.Module 11
Pseudoinverse
A+=∑σi>0viuiT/σi. It gives the minimum-norm least-squares coefficients A+b.Module 11
Truncation error
∣A−Ak∣F2=∑i>kσi2 when Ak keeps the first k singular values. Module 12
PCA
For m>1 centred observations in the rows of X, the sample covariance is XTX/(m−1). The first k right singular directions give centred reconstruction XVkVkT.Module 12