Basis Change:
In this blog we will see how the transformation matrix for any linear mapping changes with the change in the basis. Let's assume we have a linear mapping with
&
, ordered bases for vector spaces
and
are
and
respectively and we are changing these bases to
and
for vector spaces
and
respectively. Also assume the transformation matrix in case of bases
&
is
and after changing the bases to
&
it becomes
.
In this blog I will be taking subscripts ,
,
and
to represent vectors in the bases
,
,
and
respectively.
As we know basis vectors spans the entire vector space, so will span the entire vector space
, so
will also span the basis vectors of
.
So we can say that each new basis vector
of
will be the linear combinations of the basis vectors
of
and we can write it as,
.
We store these coefficients in column-wise manner in a matrix (say ), so entries in the
column of
will be the coefficients for
, we can represent
as,
.
Similarly assume for and
we denote the coefficient matrix by
, so we can represent it as,
and
.
is linearly mapping vectors from
to
so we can write,
Also we can write,
Now from above two equations we can write,
So, this way we can compute the transformation matrix .
Matrix approximation with Singular Value Decomposition(SVD):
SVD factors a rectangular matrix into three parts in the following manner:
, here
and
are called left and right-singular vector matrices. Left and right-singular vectors of
are eigenvectors of
and
respectively. Matrix
is a diagonal matrix and the diagonal elements (
) are called singular values and are square root of eigenvalues of
or
.
We construct a rank-1 matrix as,
this way we can approximate as a rank-
matrix as:
Remark: We take singular vectors corresponding to the large singular values.
Now, I will be considering an image of a Pug (say 'I'), we will see how the rank-1 approximation looks like visually and how a set of rank (k = [1,2,3,4,10,20,50,100]) approximation looks.
Images I1 to I4 are the outer product of with
. Rank-1 approximation is same as I1, rank-2 approximation is the sum of two outer products
or
, similarly rank-3 approximation is
or
.
References:
Comments
Post a Comment