Auspice by Goorm, Manage by DAVIAN @ KAIST

Lecture 3: Linear combination, Vector equation, Four views of matrix multiplication

Linear combination

c1v1 + … + c1vp is called a linear combination of v1, … , vp with weights or coefficients c1**, … , **cp.

  • The weights in a linear combination can be any real numbers, including zero.

Span

  • Definition: Span {V1, …, Vp} is defined as the set of all linear combinations of V1, … , Vp. Span is also called the sub set of Rn spanned.

image

스크린샷 2022-01-11 오후 4 57 14

  • b가 span 안에 있으면 O -> 해가 존재함.
  • b가 span 안에 없으면 X -> 해가 존재 하지 않음.

Matrix Multiplications as Column Combinations

  • Left matrix: bases, Right matrix: coefficients

스크린샷 2022-01-11 오후 5 00 01

Matrix Multiplications as Row Combinations

  • Left matrix: coefficients, Right matrix: bases

스크린샷 2022-01-11 오후 5 01 01

Matrix Multiplications as Sum of (Rank-1) Outer Products

  • (Rank-1) outer product

스크린샷 2022-01-11 오후 5 03 47

  • Sum of (Rank-1) outer products

스크린샷 2022-01-11 오후 5 04 02

=> Sum of (Rank-1) outer products is widely used in machine learning.

  • Covariance matrix in multivariate Gaussian.
  • Gram matrix in style transfer.

Lecture 4: Linear Independence, Span, Subspace

Uniqueness of Solution for Ax = b

스크린샷 2022-01-11 오후 5 07 20

  • It is unique when a1, a2, and3 are linearly independent. 선형 독립 –> 해가 1개 존재.

  • Infinitely many solutins exist when a1, a2, and3 are linearly dependent. 선형 의존 –> 해가 무수히 존재.

스크린샷 2022-01-11 오후 5 10 29

  • if at least one such Vj is found, then {V1, … , Vp} is linearly dependent.
  • if no such Vj is found, the {V1, … , Vp} is linearly independent.

  • **A linearly dependent vector does not increase Span ! **

Span and Subspace

  • Definition: A subspace H is defined as a subset of Rn closed under linear combination.

In fact, a subspace is always represented as Span {V1, ... , Vp}

Basis of a Subspace

  • Definition: A basis of a sub space H is a set of vectors that satisfies both of the following:
    1. Fully spans the given subspace H.
    2. Linearly independent.

Column Space of Matrix

  • Definition: The column space of a matrix A is the subspace spanned by the columns of A.
    • We call the column spac eof A as Col A.

스크린샷 2022-01-11 오후 5 23 13

What is dim Col A? ==> 2

스크린샷 2022-01-11 오후 5 24 22

What is dim Col A? ==> 2

Rank of Matrix

  • Definition: The rank of a matrix A, denoted by rank A, is the dimension of the column space of A:
    • rank A = dim Col A.

스크린샷 2022-01-11 오후 5 26 22

댓글남기기