[LA] Linear Combination 및 Vector equation, Matrix equation
Linear Algebra 2022. 9. 2. 13:28728x90
반응형
Linear Combination
linear equation 에서 variable 이 scalar가 아닌 vector로 바꾼 경우라고 생각하면 쉽다
- scalar를 component가 1개인 vector라고 생각할 수 있으므로, linear equaiton의 일반화 라고 봐도 된다.
- weighted sum이라고도 불림.
정의는 다음과 같음 (from LInear Algebra and its application, 5th ed. David C. Ray)
Given vectors v1,v2,⋯,vp in Rn and given scalars c1,c2,⋯,cp,
the vector y defined by
y=c1v1+⋯+cpvp
is called a linear combination of v1,v2,⋯,vp with weights c1,c2,⋯,cp.
- 위의 정의식에서 vector v를 scalar x로 변경할 경우, linear equation이 됨.
- 기계학습 등에서는 weight들은 real number로 쓰는 경우가 대부분임.
- weight이 0인 경우도 포함됨을 주의할 것.
Vector equation and Matrix equation
Linear combination의 위 정의식은 y에 대한 vector equation이라고도 볼 수 있음.
다음과 같은 linear system이 있다고 하자.
x1+2x2=7−2x1+5x2=4−5x1+6x2=−3
이를 vector equation으로 나타내면 다음과 같음.
x1[1−2−5]+x2[256]=[74−3]
참고로 이를 augmented matrix로 표현하면 다음과 같음.
[127−254−56−3]
이를 matrix equation으로 표현하면 다음과 같음.[12−25−56][x1x2]=[74−3]
이들은 모두 표현방법만 다를 뿐 solution을 공유하는 equivalent 를 만족한다.
즉, 가장 편한 방식으로 골라 쓸 수 있음.
728x90
'Linear Algebra' 카테고리의 다른 글
[LA] Homogeneous and Non-homogenous Linear System (0) | 2022.09.02 |
---|---|
[LA] Theorem 4 (0) | 2022.09.02 |
[LA] Span (0) | 2022.09.02 |
[LA] sympy로 Reduced Row Echelon Matrix 구하기. (0) | 2022.09.02 |
Gaussian Jordan Elimination Method (가우스 조단 소거법) (0) | 2022.09.02 |