Basis Change and Matrix Approximation with SVD
1. Basis Change
In this section, we’ll see how a transformation matrix changes when we change the basis of a linear mapping. Let there be a linear transformation:
where \( V \in \mathbb{R}^n \) and \( W \in \mathbb{R}^m \). Let the ordered bases for \( V \) and \( W \) be:
and the new bases be:
If \( A \) represents the transformation matrix of \( \phi \) with respect to the bases \( (B, C) \), and \( \tilde{A} \) is the corresponding matrix with respect to \( (\tilde{B}, \tilde{C}) \), we aim to relate \( A \) and \( \tilde{A} \).
1.1 Relationship between old and new bases
Each new basis vector in \( \tilde{B} \) can be written as a linear combination of the old basis vectors in \( B \):
where \( S \in \mathbb{R}^{n \times n} \) is the basis change matrix for \( V \):
Similarly, for the codomain basis:
where \( T \in \mathbb{R}^{m \times m} \) is the basis change matrix for \( W \):
1.2 Relationship between transformation matrices
Since \( \phi \) is linear, we can write:
Also, from the old basis representation:
Comparing both forms, we get:
In matrix form:
Thus, the new transformation matrix under the changed bases is:
Matrix \( S \) changes the basis of the domain, while \( T \) changes that of the codomain. The formula \( \tilde{A} = T^{-1} A S \) gives the correct linear transformation representation in the new coordinate system.
2. Matrix Approximation with Singular Value Decomposition (SVD)
A matrix \( A \in \mathbb{R}^{m \times n} \) can be factorized using SVD as:
where:
- \( U \): left-singular vectors (eigenvectors of \( A A^\top \))
- \( V \): right-singular vectors (eigenvectors of \( A^\top A \))
- \( S \): diagonal matrix containing singular values \( \sigma_i = \sqrt{\lambda_i} \)
Each rank-1 component of \( A \) can be expressed as:
Thus, a rank-\( k \) approximation of \( A \) can be constructed as:
2.1 Visual Example: Image Approximation
Consider an image \( I \) (e.g., a picture of a Pug). Below are visualizations of rank-\( k \) approximations for \( k = [1, 2, 3, 4, 10, 20, 50, 100] \).
Images \( I_1, I_2, I_3, I_4 \) correspond to the outer products of \( u_1, u_2, u_3, u_4 \) with \( v_1, v_2, v_3, v_4 \). For instance:
- Rank-1 approximation: \( \sigma_1 u_1 v_1^\top = \sigma_1 I_1 \)
- Rank-2 approximation: \( \sigma_1 u_1 v_1^\top + \sigma_2 u_2 v_2^\top = \sigma_1 I_1 + \sigma_2 I_2 \)
- Rank-3 approximation: \( \sigma_1 I_1 + \sigma_2 I_2 + \sigma_3 I_3 \)
Comments
Post a Comment