[Math] Second Order Condition : Convexity

2023. 7. 10. 21:42·.../Math
728x90
728x90
First order condition과 함께 convexity를 판정하는 조건.

 

Second Order Condition

Real Vector Space $\mathbb{R}^n$에서 $f:\mathbb{R}^n \to \mathbb{R}$이 second derivative 를 구할 수 있다면,

다음의 두 조건이 필요충분조건임.

  1. $f$ 는 Convex Function임.
  2. $\text{dom }f$는 Convex Set이고,
    이에 속하는 임의의 $\textbf{x} \in \text{dom }f$에 대해
    $\nabla^2 f(\textbf{x})$는 Positive Semi-Definite 임.
    ($\nabla^2 f(\textbf{x})$ 은 vector에 대한 vector의 미분이라 matrix임: Hessian)

$f$가 이차미분 가능하고 연속 함수인 경우, 이를 2차 미분한 것이 바로 Hessian에 해당한다.


스칼라 x와 벡터 x에 대한 함수 비교: Qaudratic Form

아래와 깉은 scalar $x$에서 convex, concave를 결정하는 것은 바로 이차항에 대한 계수 $a$임.

$$ax^2+bx +c = 0$$

위의 $ax^2$ 항에 해당하는 것이  vector $\textbf{x}$의 경우는 Quadratic Form임.

이는 다음과 같음.

$$\mathbf{x}^\top A \mathbf{x}$$

여기서 matrix $A$가 바로 Hessian에 해당하며 scalar의 경우의 $a$에 해당함.


Second Derivative: Hessian

scalar function에서 이차도함수(second derivative) $a$ 를 가지고 극대,극소 등을 판정하던 것 (아래 그림)처럼,

gradient가 $\textbf{0}$인 stationary point (or critical point)가

  • 극대인지,
  • 극소인지, 아니면
  • saddle point인지를

Hessian $\nabla^2$ (위의 예에선 matrix $A$)으로 판정할 수 있다.

2023.07.10 - [.../Math] - [Math] Stationary point (or Critical point)

 

[Math] Stationary point (or Critical point)

(Convex) Opimization에서 찾고자하는 solution은 objective function에 대한 local minimum이다. 이를 곧바로 찾기는 쉽지 않기 때문에, solution이 될 수 있는 후보들을 먼저 gradient (or 1st derivative)를 이용하여 찾아

dsaint31.tistory.com

 

Second Order Codnition은
$f$의 Hessian이 Positive Semi-definite Matrix일 때
$f$가 Convex Function이라는 정리임.

 

 

참고로, Hessian $\nabla^2 f$이

  • positve definite matrix (모든 eigen value들이 양수)일 경우, 해당하는 critical point가 minimum ($f$ is convex),
    • $\textbf{x}^\top \nabla^2 f \textbf{x} > 0$
    • where, $\textbf{x} \ne \textbf{0}, \textbf{x} \in \mathbb{R}^n$.
  • negative definite matrix (모든 eigne value들이 음수)일 경우,  해당하는 critical point가 maximum ($f$ is concave),
    • $\textbf{x}^\top \nabla^2 f \textbf{x} < 0 $
    • where, $\textbf{x} \ne \textbf{0}, \textbf{x} in \mathbb{R}^n$.
  • Eigenvalue가 양수와 음수가 혼재된 경우, 해당하는 critical point가 saddle point임.

2022.06.05 - [Programming/DIP] - [Math] Hessian : Summary

 

[Math] Hessian : Summary

이 문서는 Numeartor Layout Convention 을 사용함. Hessian : Summary 2nd order derivative of multivariate functoin. 여기서 multivariate function은 입력은 vector, 출력은 scalar Hessian matrix는 다음과 같음. $$\begin{aligned}H[f](\textb

dsaint31.tistory.com

 

Second Order Condition은

  • Hessian Matrix의 Eigenvalue들 중 음수가 없는 경우,
  • 해당 function이 Convex라고 할 수 있음을 나타냄
  • (convex 정의에 있는 등호가 있어서 positive semi-definite임.)

 

Optimization에서 대부분,
Stationary Point들을 구한 후
Hessian으로 Local Minimum인지 아닌지를 판별함.

'... > Math' 카테고리의 다른 글

[Math] Sequence (수열) and Series (급수)  (0) 2023.07.21
[Math] Stationary point (or Critical point)  (0) 2023.07.10
[Math] First Order Condition : Convexity  (0) 2023.07.10
[Math] Linear Programming and Quadratic Programming  (0) 2023.07.08
[Math] A regular point of the feasible set.  (0) 2023.07.07
'.../Math' 카테고리의 다른 글
  • [Math] Sequence (수열) and Series (급수)
  • [Math] Stationary point (or Critical point)
  • [Math] First Order Condition : Convexity
  • [Math] Linear Programming and Quadratic Programming
dsaint31x
dsaint31x
    반응형
    250x250
  • dsaint31x
    Dsaint31's blog
    dsaint31x
  • 전체
    오늘
    어제
    • 분류 전체보기 (739)
      • Private Life (13)
      • Programming (56)
        • DIP (104)
        • ML (26)
      • Computer (119)
        • CE (53)
        • ETC (33)
        • CUDA (3)
        • Blog, Markdown, Latex (4)
        • Linux (9)
      • ... (350)
        • Signals and Systems (103)
        • Math (171)
        • Linear Algebra (33)
        • Physics (42)
        • 인성세미나 (1)
      • 정리필요. (54)
        • 의료기기의 이해 (6)
        • PET, MRI and so on. (1)
        • PET Study 2009 (1)
        • 방사선 장해방호 (4)
        • 방사선 생물학 (3)
        • 방사선 계측 (9)
        • 기타 방사능관련 (3)
        • 고시 (9)
        • 정리 (18)
      • RI (0)
      • 원자력,방사능 관련법 (2)
  • 블로그 메뉴

    • Math
    • Programming
    • SS
    • DIP
  • 링크

    • Convex Optimization For All
  • 공지사항

    • Test
    • PET Study 2009
    • 기타 방사능관련.
  • 인기 글

  • 태그

    Term
    numpy
    linear algebra
    Python
    opencv
    math
    SS
    Programming
    Optimization
    Vector
    Probability
    fourier transform
    SIGNAL
    검사
    인허가제도
    random
    signals_and_systems
    function
    signal_and_system
    Convolution
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
dsaint31x
[Math] Second Order Condition : Convexity
상단으로

티스토리툴바