Mathematics/Linear Algebra(17)
-
내적에 대한 고찰
→v와 →w의 내적(dot product)는 ‖→v‖‖→w‖cosθ이며, →v, →w의 내적은 (→v가 →w에 정사영하여 얻은 벡터의 길이)와 (→w의 길이)를 곱한 값이다. 즉, 내적은 "정사영(=projection)"이라는 가하학적 특성을 가지고 있다. 뿐만 아니라, 내적은 신기하게도 다음과 같이 계산하여 구할 수 있다. 다시 말해, 다음과 같이 계산해도, "(→v가 $\..
2023.12.06 -
[Linear Algebra] 15. Least squares & Projection matrix + Gram-Schmidt Orthogonalization
이번 글에서는 최소 자승법(least square method)에 대해 알아볼 것이다. Problem 최소 자승법이 풀고자 하는 문제는 다음과 같다. rank(A)=2인 A3×2와 A의 column space에 속하지 않는 3-D 벡터 →b가 있을 때, 어떤 A→x도 →b와 같아질 수 없다. 즉, A→x=→b의 해는 존재하지 않는다. 그러면, 최대한 →b와 최대한 가까운 A→x라도 구해보자!! 다시 말해, $\mathbf{\vec{e}}(=\mathbf{\v..
2023.12.03 -
[Linear Algebra] 14. Eigen Decomposition & SVD
이번 글에서는 고윳값 분해(eigen decomposition)와 SVD(singular value decomposition)에 대해 알아볼 것이다. 1. 고윳값 분해 2-D to 2-D linear transformation A에 independent한 eigenvector →v1, →v2와 eigenvalue λ1, λ2가 있다고 가정할 때, 다음과 같이 식을 전개할 수 있다. 참고로, →v1, →v2는 서로 independent한 eigenvector이기 때문에 eigenbasis로 볼 수 있다. $$ V = \begin{bmatrix} \ma..
2023.12.03 -
선형변환에 대한 고찰
선형변환(A→v=→w)은 두 가지 관점으로 해석할 수 있다. 1). Movement(=Rotate+Scale): 선형변환 A에 의해, 벡터 →v에서 벡터 →w로의 이동.또는, 서로 다른 두 벡터 공간을 매핑하는 함수(=function) 개념으로 봐도 된다. 2). Translation: 표준기저벡터를 →a1, →a2로 둔 좌표계에서 ˆi, ˆj로 둔 좌표계로의 전환. 벡터 그 자체는 변하는 것이 아니라, 표현 방식이 달라진 것이다. ($A = \begin{bmatrix} \..
2023.12.02 -
[Linear Algebra] 13. Eigenvectors and eigenvalues
Eigenvectors and eigenvalues Most vectors knocked off their span(=line) during transformation. But some special vectors remain on their line after transformation. It means that transformation just stretches or squishes vectors. Moreover, any other vector in that line also stretch or squish by a same scalar. These special vector are called the "eigenvectors" of that transformation. And each eigen..
2022.03.12 -
[Linear Algebra] 12. Change of basis
Standard way to describe vector is using coordinates [xy]. each coordinate is scalar to stretches or squishes basis vectors, normally ˆi and ˆj which are standard basis vectors. In this section, think about the idea of using different set of basis vectors. Let's define new basis vectors →b1 and $\mathbf{\vec{b_2}}..
2022.03.12