Quadratic Form :
Scalar 에서 이차식 (Quadratic Expression) $a x^2$의 일반형.
Definition of Quadratic Form
$x\in \mathbb{R}^n$ 일 때, $\mathbb{R}^n$에서의 Quadratic Form (이차형식) 은 다음과 같음.
$$\mathbf{x}^\top A \mathbf{x}$$
where,
- $A$: Matrix of Quadratic Form. 이차항에서의 coefficient에 해당함.
- 항상 Symmetric Matrix임.
- $n=1$인 경우, $a x^2$가 이차형식으로 scalar가 됨: $1 \times 1$.
Hessian 의 부호: Concave, Convex
$f(x)=a x^2$ 와 같은 이차식은 concave, convex 이냐에 따라 최대값 및 최소값을 가짐.
이는 $a$의 부호에 의해 결정됨.
이를 vector $\mathbf{x}$로 확장한 경우(단, $f(\mathbf{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 $\mathbb{R}^n$에서 $f:\mathbb{R}^n \to \mathbb{R}$이 second derivative 를 구할 수 있다면,다음의 두 조건이 필요충분조건임.$f$
dsaint31.tistory.com
Matrix $A$의 부호가 바로 positive definite, negative definte 로서 다음과 같이 정의됨:
Matrix $A \in \mathbb{R}^{n \times n}$ 이고, zero vector가 아닌 임의의 $\mathbf{x} \in \mathbb{R}^n$에서
- $\mathbf{x}^\top A \mathbf{x} >0$ 이면 $A$는 positive definite 임 ( $a>0$에 해당).
- $\mathbf{x}^\top A \mathbf{x} \ge 0$ 이며 $A$는 positive semi-definite 임 ( $a \ge 0$에 해당).
- $\mathbf{x}^\top A \mathbf{x} <0$ 이면 $A$는 negative definite 임 ($a<0$에 해당).
- $\mathbf{x}^\top A \mathbf{x} \le 0$ 이면 $A$는 negative semi-definite 임 ($a \le 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^\top 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을 의미함: $A\mathbf{x}$는 vector $\mathbf{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 |