[Optimization] Linear subspace, Affine subspace

2024. 10. 11. 00:52·연구 Research/최적화 Optimization

 

최적화에서 가장 처음에 배우는 내용은 geometry의 정의이다.

 

정의를 보면 그렇구나, 싶지만 나중에 헷갈리게 되어서 정리를 한다. 이해를 위해서는 예시를 많이 알아두는 게 좋다.

Definition / Dimension / Bases / Independence / Examples 등에 대해 적는다.

 

1. Linear subspace

 

1-1. Definition

$L \subset R^{n} $ is a linear subspace iff it possesses the following three properties:

 - $L \neq \emptyset$

-[closedness with respect to additions] Whenever $x, y \in L$, we have $x + y \in L$

-[closedness w.r.t multiplications by reals] Whenever $x \in L$ and $\lambda \in R$, we have $\lambda x \in L$

 

공집합이 아니면서 덧셈과 곱셈에 대하여 close 되어있는 space

 

1-2. linear span (linear combination)

linear span $Lin(X)$은 내가 가지고 있는 set $X$에 대해서 Linear combination을 구해서 이것을 set으로 구성한 것이다.

$Lin(X)=\{x:x = \sum_i \lambda_i x_i\}$

linear span으로 만든 set이기 때문에 Linear subspace 성질을 만족해서 linear subspace라고 할 수 있다.

 

Linear span $Lin(X)$은 $X$를 포함하는 가장 작은 Linear subspace이다.

$Lin(X)$ = the set of all finite linear combination of the points $x_i \in X$

 

 

 

1-3. Independence

Recall that a collection \(x_1, \dots, x_k\) of vectors from \(\mathbb{R}^n\) is called \textit{linearly independent}, if the only linear combination of these vectors equal to 0 is the trivial one — all coefficients are equal to 0: \[ \sum_{i=1}^{k} \lambda_i x_i = 0 \implies \lambda_i = 0, \quad i = 1, \dots, k. \]

 

 

1-4. Dimension and Bases

Dimension은 basis의 숫자로 결정된다.

 

* Basis의 정의

 

There exist finite collections $x_1, ..., x_k$ which span L and are “minimal” in this respect (i.e., such that eliminating from the collection one or more elements, the remaining vectors do not span $L$). All minimal finite collections of vectors spaning L, when nonempty, are comprised of distinct from each other nonzero vectors and have the same cardinality, called the dimension of L (notation: dim L), and are called linear bases of $L$.

 

 

예시)

 

여러 Linear subapce를 보면서 dimension 

내가 있는 공간이 $R^n$이라고 하자.

$R^n$ dimension = $n$

$\{0\}$ dimension = $0$

The dimensions of all proper (distinct from $\{0\}$ and $R^n$) linear subspaces of $R^n$ are integers $\geq 1$ and $\leq n-1$

 


 

2. Affine subspace

 

2-1. Definition

 

Affine subspace는 linear subspace의 shift된 버전이라고 볼 수 있다. 따라서 affine subspace를 볼 때는 linear subspace를 미리 식별하는 게 편하다.

 

A set \(M \subset \mathbb{R}^m\) is called an affine subspace, if it can be represented as a shift of a linear subspace: for properly chosen linear subspace \(L \subset \mathbb{R}^n\) and point \(a \in \mathbb{R}^n\) we have \[ M = a + L := \{x = a + y, y \in L\} = \{x : x - a \in L\}. \]

 

 

2-2. Affine combination

 

$x= \{x: \sum \lambda_i x_i \text{ s.t. }\sum_i \lambda_i = 1 \}$

 

2-3. Affine hull

 

$Aff(X)$ = the set of all finite affine combinations of elements of $X$

 

임의의 set $X$의 dimension은 affine hull of $X$의 dimension으로 계산한다.

 

2-4. Independence

 

linear independence와 유사하게 결국 독립이라는 것은 affine subspace에서 어떤 affine combination을 하더라도 동일한 결과를 얻을 수 없다는 것을 의미한다.

 

$$\sum_{i=0}^{k} \lambda_i x_i = \sum_{i=0}^{k} \mu_i x_i, \quad \sum_i \lambda_i = \sum_i \mu_i = 1 \implies \lambda_i = \mu_i, \quad 0 \leq i \leq k.$$

 

또는 다음과 같이 표현할 수 있다.

 

\[ \sum_{i=0}^{k} \lambda_i x_i = 0, \quad \sum_{i=0}^{k} \lambda_i = 0 \implies \lambda_i = 0, \quad 0 \leq i \leq k. \]

 

2-5. Dimension and Bases

 

Affine dimension을 알기 위해서는 다음 lemma를 참고한다.

 

$\textbf{Lemma. }$ Let \(k \geq 0\), and let \(x_0, \dots, x_k\) be a collection of \(k+1\) vectors from \(\mathbb{R}^n\). This collection is affinely independent if and only if the collection \(x_1 - x_0, x_2 - x_0, \dots, x_k - x_0\) is linearly independent.

 

A collection $x_0,\ldots, x_k$가 있다고 하자. 다음 proposition을 참고하면서 affine bases와 dimension을 살펴본다.

 

 

The minimal w.r.t inclusion collections $x_0,x_1,\ldots,x_k$ of vectors from an affine subspace $M$ which affinely span $M$ are affine bases of the affine subspace $M$.

$\textbf{Proposition }$
An affine subspace \(M = a + L\) is affinely spanned by a finite set \(X = \{x_0, \dots, x_k\}\) if and only if \(x_0 \in M\) and the \(k\) vectors \(x_1 - x_0, x_2 - x_0, \dots, x_k - x_0\) linearly span \(L\). In particular, the minimal in cardinality subsets \(X = \{x_0, \dots, x_k\}\) which affinely span \(M\) are of cardinality \(k + 1 = \dim M + 1\) and are characterized by the inclusion \(x_0 \in M\) and the fact that \(x_1 - x_0, \dots, x_k - x_0\) is a linear basis in \(L\).

 

다음과 같이 linear independence를 만족하는 \(x_1 - x_0, \dots, x_k - x_0\)가 있을 때 \{x_0, \ldots, x_k\}는 affine subspace의 bases가 되고 $dim(X)=k$이다

 

따라서 Affine subspace는 linear subspace와 달리 bases가 dimension보다 1개 더 많다. $x_0$라는 shift를 위한 vector가 필요하기 때문에 an affine subspace $M= a+L$는 Linear subspace $L$과 동일한 dimension을 가졌지만 추가적인 bases가 필요한 것이다.

 

 

 

 


 

생각할 거리

 

1. 차원이 $R$일 때

 

이 경우에는 일직선 상의 좌표계를 생각하면 된다.

 

1-1. $X=\{0 \}$ 다음과 같은 원점만 가지고 있는 경우

- Linear subspace

- Affine subspace

 

둘 다 해당된다. dimension은 0

 

$Lin(X)=\{ 0 \}$

$Aff(X)=\{ 0 \}$

 

1-2. $X=\{ 1\}$ (Singleton) : Affine subspace

 

affine subspace는 $1+\{0\}$으로 표현할 수 있기 때문에 linear subspace $L=\{ 0 \}$의 dimension 0은 그대로 가져가고 bases는 0과 1이 된다.

 

$Lin(X)=R$

$Aff(X)=\{ 1 \}$ 

 

1-3. $X=\{ 1, 2 \}$

 

Not linear subspace

Not affine subspace

 

Linear subspace는 정의 상 맞지 않으므로 linear subspace가 될 수 없고, affine subspace의 경우에도 a translation of linear subspace로 해석할 수 없다.

 

 

$Lin(X)=R$

$Aff(X)=R$

two different points가 있는 경우 affine hull of $X$는 line이 된다. 

 

 

1-4. $X=\{ x: 1\leq x \leq 2 \}$

Not linear subspace

Not affine subspace

 

1-5. $X=R$

Linear subspace, Affine subspace이다.

$dim(X)=1$

 

 

저작자표시 비영리 변경금지 (새창열림)

'연구 Research > 최적화 Optimization' 카테고리의 다른 글

[최적화] Gradient를 계산하는 방법  (0) 2025.01.07
[최적화] Introduction to Optimization - Introduction  (0) 2020.09.25
'연구 Research/최적화 Optimization' 카테고리의 다른 글
  • [최적화] Gradient를 계산하는 방법
  • [최적화] Introduction to Optimization - Introduction
보통의공대생
보통의공대생
수학,프로그래밍,기계항공우주 등 공부하는 기록들을 남깁니다.
  • 보통의공대생
    뛰는 놈 위에 나는 공대생
    보통의공대생
  • 전체
    오늘
    어제
    • 분류 전체보기 (460)
      • 공지 (1)
      • 영어 공부 English Study (40)
        • 텝스 TEPS (7)
        • 글 Article (21)
        • 영상 Video (10)
      • 연구 Research (99)
        • 최적화 Optimization (3)
        • 데이터과학 Data Science (7)
        • 인공지능 Artificial Intelligent (40)
        • 제어 Control (45)
      • 프로그래밍 Programming (103)
        • 매트랩 MATLAB (25)
        • 파이썬 Python (33)
        • 줄리아 Julia (2)
        • C++ (3)
        • 리눅스 우분투 Ubuntu (6)
      • 항공우주 Aeronautical engineeri.. (21)
        • 항법 Navigation (0)
        • 유도 Guidance (0)
      • 기계공학 Mechanical engineering (13)
        • 열역학 Thermodynamics (0)
        • 고체역학 Statics & Solid mechan.. (10)
        • 동역학 Dynamics (1)
        • 유체역학 Fluid Dynamics (0)
      • 수학 Mathematics (34)
        • 선형대수학 Linear Algebra (18)
        • 미분방정식 Differential Equation (3)
        • 확률및통계 Probability & Sta.. (2)
        • 미적분학 Calculus (1)
        • 복소해석학 Complex Analysis (5)
        • 실해석학 Real Analysis (0)
      • 수치해석 Numerical Analysis (21)
      • 확률 및 랜덤프로세스 Random process (2)
      • 추론 & 추정 이론 Estimation (3)
      • 기타 (26)
        • 설계 프로젝트 System Design (8)
        • 논문작성 Writing (55)
        • 세미나 Seminar (2)
        • 생산성 Productivity (3)
      • 유학 생활 Daily (7)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    LaTeX
    서버
    고체역학
    수치해석
    생산성
    MATLAB
    Statics
    teps
    Linear algebra
    텝스
    딥러닝
    옵시디언
    논문작성법
    Julia
    우분투
    논문작성
    텝스공부
    JAX
    ChatGPT
    matplotlib
    Numerical Analysis
    IEEE
    Zotero
    obsidian
    WOX
    에러기록
    pytorch
    Python
    Dear abby
    인공지능
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
보통의공대생
[Optimization] Linear subspace, Affine subspace
상단으로

티스토리툴바