Topic: | Math@UNC environment |
Post date: | May 20, 2020 |
Due date: | May 21, 2020 |
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.
First steps in solving the homework questions will be carried out in class. Each of the following subsections is a homework question, with 1 grade point awarded for a correct solution.
Define a linear mapping that rescales data within an image file to some specified size . Determine whether the mapping is data-preserving, and if not, quantify the amount of data loss.
Take the largest possible portion of a painting of size with . Interpret the resulting image as a vector with . The image is thus specified as a linear combination of the columns of the identity matrix ,
and describes illumination on a pixel-by-pixel basis. A column vector of can be interpreted as the binary base representation of a natural number from the set , namely . Note that is one choice among the possible combinations of objects chosen from a set with elements, . Even for small , the number of choices is enormous
Construct a new basis by random choice of numbers from and the mapping. Check if the basis is orthogonal.
Construct another basis that corresponds to successive halving of image regions by factors along the horizontal and vertical dimensions. Are basis vectors orthogonal?
Map the binary digits from the positive checkerboard basis to integers . Check if the newly obtained basis is orthogonal. Display approximations of the image that result from the first basis vectors, .
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 .