Topic: | Math@UNC environment |
Post date: | May 26, 2021 |
Due date: | May 30, 2021 |
This homework investigates consequences of the fundamental theorem of algebra and application of the singular value decomposition.
Consider a linear mapping , from vector space with basis , to , with basis .
Is a basis for ?
If must ?
If and for , what is the matrix representing ?
Determine the singular value decomposition and pseudo-inverse of a matrix (i.e., a row vector).
The fudamental theorem of linear algebra partitions the domain and codomain of a linear mapping. The singular value decomposition provides orthogonal bases for each of the subspaces arising in the partition. The bases are ordered according to the amplification behavior of the linear mapping, expressed through the norm of successive restrictions of the mapping. This approach is closely aligned with typical problems in data science, and can be used in a variety of scenarios. In this homework linear algebra methods will first be used in a field far removed from the physical sciences: extracting the quirks of painter style from the overall composition of a painting, and applying one artist's style to another artist's composition. This is often-encountered data science problem: distinguishing between small and large scale features of data.
octave] |
cd /home/student/courses/MATH347DS/homework; mkdir hw03; cd hw03 |
octave] |
im=imread(/home/student/courses/MATH347DS/Frida_Kahlo_96.jpg"); |
octave] |
imshow(im) |
octave] |
function im=pread(name) im=imread(strcat("/home/student/courses/MATH347DS/data/paintings/",name)); im=rgb2gray(im); end |
octave] |
imFK96=pread("Frida_Kahlo_96.jpg"); |
octave] |
imshow(imFK96); size(imFK96) |
ans =
484 430
octave] |
Alternatively, an image can be interpreted as a matrix , hence a mapping. From
the image can be interpreted as the transformation of the image encoded by . Denote by the -rank approximation of from the singular value decomposition
Display the images that correspond to .
Consider images from two different artists, and their singular value decompositions
Let , . Construct and display images that take the large scale features from combined with small scale features from ,
for where .