Quadratic Form :
Scalar 에서 이차식 (Quadratic Expression) ax2의 일반형.
Definition of Quadratic Form
x∈Rn 일 때, Rn에서의 Quadratic Form (이차형식) 은 다음과 같음.
x⊤Ax
where,
- A: Matrix of Quadratic Form. 이차항에서의 coefficient에 해당함.
- 항상 Symmetric Matrix임.
- n=1인 경우, ax2가 이차형식으로 scalar가 됨: 1×1.
Hessian 의 부호: Concave, Convex
f(x)=ax2 와 같은 이차식은 concave, convex 이냐에 따라 최대값 및 최소값을 가짐.
이는 a의 부호에 의해 결정됨.
이를 vector x로 확장한 경우(단, f(x)는 여전히 scalar)에도
Quadratic Form의 coefficient 에 해당하는 matrix A에 의해 concave, convex가 결정됨.
A는
Quadratic Form의 2nd Derivative인
Hessian에 해당.
2022.06.05 - [Programming/DIP] - [Math] Hessian: Summary
[Math] Hessian: Summary
이 문서는 Numerator Layout Convention 을 사용함.Hessian : Summary 2nd order derivative of multivariable function.여기서 multivariable function은 입력은 vector, 출력은 scalar 인 함수를 의미함: ML에서의 loss function을 생각
dsaint31.tistory.com
2023.07.10 - [.../Math] - [Math] Second Order Condition : Convexity
[Math] Second Order Condition : Convexity
First order condition과 함께 convexity를 판정하는 조건. Second Order ConditionReal Vector Space Rn에서 f:Rn→R이 second derivative 를 구할 수 있다면,다음의 두 조건이 필요충분조건임.f
dsaint31.tistory.com
Matrix A의 부호가 바로 positive definite, negative definte 로서 다음과 같이 정의됨:
Matrix A∈Rn×n 이고, zero vector가 아닌 임의의 x∈Rn에서
- x⊤Ax>0 이면 A는 positive definite 임 ( a>0에 해당).
- x⊤Ax≥0 이며 A는 positive semi-definite 임 ( a≥0에 해당).
- x⊤Ax<0 이면 A는 negative definite 임 (a<0에 해당).
- x⊤Ax≤0 이면 A는 negative semi-definite 임 (a≤0에 해당).
Positive Definite and Eigenvalues
Quadratic Form의 경우 A가 Symmetric Matrix이며, 이 경우 Eigen Decomposition을 통해 다음이 성립.
- "Symmetric Matrix A가 Positive Definite" iif "A의 모든 Eigenvalues 가 양수임."
- "Symmetric Matirx A가 Positive Semi-Definite" iff "A의 모든 Eigenvalues 가 0 이상임."
- "Symmetric Matrix A가 Negative Definite" iif "A의 모든 Eigenvalues 가 음수임."
- "Symmetric Matrix A가 Negative Semi-Definite" iff "A의 모든 Eigenvalues 가 0 이하임."
Symmetric Matrix는 항상 real eigenvalue를 자신의 행(=열)의 갯수로 가지며, 항상 orthogonal diagonalizable임.
참고로, A⊤A는 항상 symmetric matrix이면서 동시에 positive semi-definite임!
https://youtu.be/ns3A6S-9eeQ?si=-t2oNGjElaq7cbRX
같이 보면 좋은 자료들
2024.11.06 - [.../Linear Algebra] - [LA] Eigenvalue and Eigenvector
[LA] Eigenvalue and Eigenvector
특정 행렬 A는 linear transform을 의미함: Ax는 vector x를 linear transform하는 것에 해당.A의 eigenvector와 eigenvalue는 A를 standard matrix로 하는 linear transform의 고유한 특성을 나타내는 요
dsaint31.tistory.com
[LA] Diagonalization (Eigen-Decomposition), Orthogonal Diagonalization, and Symmetric Matrix
Diagonalizable (대각화)Sqaure Matrix가 n개의 eigenvalue를 가지고 (multiplicity를 감안하여 중복 카운트. 0인 Eigenvalue도 카운트), 이들 각각의 eigenvalue들이 각자의 multiplicity에 해당하는 dimension을 가지는 eige
dsaint31.tistory.com
2025.01.21 - [.../Linear Algebra] - [Summary] Linear Algebra (작성중)
[Summary] Linear Algebra (작성중)
ML 을 위해 Linear Algebra 공부시 참고할만한 책더보기전체적으로 공부를 한다면 다음을 권함.Linear Algebra and Its Application, 5th ed 이상, David C. Lay5th ed. 는 웹에서 쉽게 pdf도 구할 수 있음. 다음은 1~2개
dsaint31.tistory.com
'... > Linear Algebra' 카테고리의 다른 글
[LA] Inverse Matrix (0) | 2025.01.25 |
---|---|
[LA] Intermediate Matrices for Inverting Full-Rank Matrix: Cramer's Rule (0) | 2025.01.25 |
[Summary] Linear Algebra (작성중) (0) | 2025.01.21 |
[LA] Eigenvalue and Eigenvector (0) | 2024.11.06 |
[LA] Spectral Theorem for Symmetric Matrix (2) | 2024.07.20 |