Machine Learning - Linear Algebra - Inverse Map and Vector Space

Inverse maps and vector spaces

1. Inverse mapping

The essence of a matrix is ​​a map. For an m × nm × nm×matrix of n , multiplicationy = A xy = Axy=The function of A x is to convert the vector fromnnxxin n- dimensional original spacex- coordinate position, mapped tommyy in the m- dimensional target spaceThe y coordinate position, which is the process of forward mapping. Then, if the coordinateyyy to deduce the coordinatexxx , this process is called inverse mapping, because inverse mapping is also a mapping process, so the matrix representing the inverse mapping is called:A − 1 A^{-1}A1

It can be clearly seen from the above expression that the relationship between the original matrix and the inverse matrix is ​​bijective. This is also a necessary and sufficient condition for the existence of the inverse

1. Chunky matrix mapping is irreversible

The mapping compresses the original vector space so that it does not satisfy the injective condition: the original space has a many-to-one situation with respect to the target space

2. Tall and thin matrix mapping is irreversible

The target vector space cannot be completely covered by the original space vector, and the surjection condition is not satisfied: there is a many-to-one situation between the target space and the original space

3. Existence conditions of square matrix inverse mapping

When the column vectors in the square matrix are linearly related, combining all the conditions of the short and tall matrix, there must be no inverse mapping

When the column vectors in the square matrix are linearly related, there is an inverse mapping, why? There will be an explanation later.

2. Vector spaces and their subspaces

1. Vector spaces

1) The most common vector space: R n R^nRn

R n R^n RThe n space consists of allthe nnA column vector of n components.

2) General definition of vector space

Vector spaces are not limited to R n R^nRn , of course we only discuss the vector space in the narrow sense (not discussing the generalized ones such as matrix, function space, etc. or extending to the complex field), then for a vector setVVV , if any two vectors uuin V are takenuwa vv_v , as long asu + v u + vu + v still exist inVVIn V , take the scalarccc , as long as it satisfiescu cuc u still inVVV , then the setVVV constitutes a vector space.

2. Subspace

Use the relationship between subsets and sets to compare the relationship between subspaces and vector spaces. If a vector space UUU , his subsetVVV is also a vector space (satisfies the property requirements of vector addition and scalar multiplication), thenVVV isUUsubspace of U.

m × n m \times n m×n matrixAAA , four very important subspaces contained in the matrix: column space, null space, row space and left null space.

1) Column space

For matrix AAAs far as A is concerned, it containsnnn mm_m -dimensional column vector, thenAAThe column space of A contains all thennn mm_Linear combination of m- dimensional column vectors. Since each column is inR m R^mRm space, and the sum of any two vectors in the column space and the quantitative product of any vector and any scalar can still be expressed as a linear combination of column vectors, which means that the column space C ( A ) C(A )C ( A ) is a vector space, and isR m R^mRA subspace of m- space.

2) Null space

For an m × nm × nm×n matrixAAAs far as A is concerned, all satisfiesA x = 0 Ax=0Ax=vectorxx of 0The set of x is called the matrixAAThe null space of A , denoted asN ( A ) N(A)N ( A ) , if the matrixAAThe columns of A are linearly independent, then xxx has only the unique solution of zero vector, ifAAThe columns of A are linearly related, then xxx has a non-zero solution.
The null space is also a vector space, for am × nm \times nm×For a matrix of n , the vectors in his null space arennn- dimensional, so the null space isR n R^nRsubspace of n .

3) line space

For m × nm × nm×n matrixAAA , its row space is the space formed by the vectors of each row of the matrix, then let's look atAAThe row vector of A is A n A^nafter transpositionAcolumn vector of n . Therefore, it is not difficult for us to find that the matrixAAThe row space of A is ATA^Tafter transpositionAThe column space of T , denoted as:C ( AT ) C(A^T)C(AT) A A The row vector of A hasnnn components, so the row space isR n R^nRThe subspace of n , as for the proof of the establishment of the vector space, it will not be described again.

4) left null space

It will be easier to understand from the perspective of the transposed matrix. For m × nm × nm×n matrixAAA , his left null space is the transpose matrixATA^TAThe null space of T , which satisfies:AT x = 0 A^Tx =0ATx=0 , we will denote it asN ( AT ) N(A^T)N(AT ).
The relevant properties of the left null space are not difficult to obtain, it isR m R^mRA subspace of m- space.

Now we can answer why there is an inverse mapping when only the column vectors in the square matrix are linearly related.

If a matrix AAA has an inverse mapping, which means that the mapped point can be uniquely restored, so obviously the null spaceN ( A ) N(A)N ( A ) can not correspond to a one-dimensional straight line or a two-dimensional plane, but can only be a point, that is, 0 0in the original space0 vector, that is, if a matrix is ​​invertible, itsN ( A ) N(A)N ( A ) must be0 00- dimensional.

If AAThe null space of A is not zero-dimensional, and there are more than one set of linearly combined zero vectors in the column space, that is, more than one vector in the original space is mapped to a zero vector, which does not conform to the one-to-one relationship.

3. Rank

The dimension of the spanning space of the matrix column vector or row vector, the number of linearly independent columns of the matrix.

1) Association between column space and null space

Matrix AAA column spaceC ( A ) C(A)The dimension of C ( A ) is the matrixAAA rankrrr .
Null space, geometrically speaking, the null space is the matrixAAA maps to the vector space at the origin of the target space, which by definition must also be in the column space. In thism × nm × nm×Under the action of the matrix mapping of n , the dimension xxx is compressed into0 00 (that is, the dimension of a point), then we can derive thatxxThe x- dimensional region becomes a 0 0in the column space0- dimensional point, so after the linear mapping of the matrix, the difference between the space dimensions before and after is alsoxxx , because byAAThe original space where A is transformed isnnn -dimensional, and the mapped column space isrrr- dimensional, the difference between the dimensions of the two spacesn − rn -rnr is the dimension of space compression, according to what we said,n − rn - rnr is the null spaceN ( A ) N(A)N ( A ) Dimensions.

2) Association between column space and row space

In a matrix, it is not difficult for me to find that the number of linearly independent row vectors is actually equal to the number of linearly independent column vectors.

Therefore, we can conclude that the row space C ( AT ) C(A^T)C(AT )dimension is alsothe rrr

3) Line space and left null space

From the above two associated statements, it can be known that C ( ATC(A^TC(AT ) is of dimensionrrr , while the matrixATA^TAThe original space before mapping corresponding to T is mmm , then the left null spaceN ( AT ) N(A^T)N(AT )is of dimensionm − rm - rmr

Guess you like

Origin blog.csdn.net/qq_57150526/article/details/130937898