MATH-23 · CONVEX ANALYSIS

볼록성·쌍대성·근접 연산Convexity, duality and proximal operators

가중평균과 지지선에서 켤레·soft thresholding·실제 자료의 원쌍대 인증까지From weighted averages and support to conjugates, soft thresholding and actual-data primal–dual certificates

실습 6종 · 풀이 포함 연습문제 55개6 labs · 55 exercises with solutions

기초Foundations

1. 모서리와 경계를 같은 최적화 언어로1. A common optimization language for corners and constraints

|x|는 0에서 미분이 없지만 최소가 분명합니다. 구간 밖을 허용하지 않는 문제도 보통의 기울기 0만으로 풀 수 없었습니다. 볼록해석은 접선 하나 대신 아래에서 받치는 기울기들의 집합을 사용하고, 제약을 함수 안에 넣어 이 문제들을 함께 표현합니다.

이 장은 19~20장의 볼록성과 쌍대성을 재사용합니다. 평균에 함수를 적용하는 Jensen 부등식,지지 초평면,부분기울기,볼록 켤레,근접 연산을 차근차근 연결합니다. 마지막에는 실제 자료의 손실에 선택한 L1 벌점이나 가정 제약을 넣어 직접 계산합니다.

The absolute value has a clear minimum despite no derivative at zero. Constraints also resist a plain zero-gradient rule. Convex analysis replaces one tangent gradient by a set of supporting slopes and expresses constraints through extended-valued functions.

Connect Jensen averages, supporting hyperplanes, subgradients, conjugates and proximal maps, then calculate chosen penalties and constraints with actual-data losses.

기초Foundations

2. 볼록함수 위쪽의 공간: 에피그래프2. The epigraph: the region above a function

함수 그래프 위에 있는 점들을 모은 집합을 에피그래프라고 합니다. x좌표에 입력,추가 세로좌표 t에 함수값 이상인 숫자를 둡니다. f가 볼록이라는 말은 이 위쪽 집합이 볼록이라는 말과 동치입니다.

epi⁡f={(x,t):t≥f(x)},f convex⟺epi⁡f convex\operatorname{epi}f=\{(x,t):t\ge f(x)\},\qquad f\text{ convex}\Longleftrightarrow\operatorname{epi}f\text{ convex}

두 그래프점 (x,f(x)),(y,f(y))를 이은 선분이 에피그래프 안에 놓인다는 것이 바로 볼록 부등식입니다. 임의의 더 높은 t값에도 같은 계산이 적용되어 동치가 됩니다.

확장값 +∞는 그 입력을 허용하지 않는다는 수학적 표시로 사용합니다. 예를 들어 집합 C 안에서 0,밖에서 +∞인 함수는 보통 통계의 0·1 지시함수와 다른 볼록해석의 지시함수입니다. 이 차이는 21절에서 자세히 다룹니다.

The epigraph consists of points above the graph. Convexity of the function is equivalent to convexity of this set in one extra dimension.

epi⁡f={(x,t):t≥f(x)},f convex⟺epi⁡f convex\operatorname{epi}f=\{(x,t):t\ge f(x)\},\qquad f\text{ convex}\Longleftrightarrow\operatorname{epi}f\text{ convex}

Mixing graph points gives exactly the convexity inequality; higher epigraph points obey the same argument.

We later use +∞ to forbid inputs. A convex-analysis indicator, zero inside a set and +∞ outside, differs from the ordinary statistical zero/one indicator.

기초Foundations

3. 유한 Jensen: 평균의 함수와 함수들의 평균3. Finite Jensen: a function of the average versus averaged values

볼록함수 φ,볼록 정의역 안의 점 x₁,…,xₙ,가중치 wᵢ≥0,Σwᵢ=1을 고릅니다. 두 점의 볼록 부등식을 여러 점으로 확장하면 Jensen 부등식입니다.

φ(∑i=1nwixi)≤∑i=1nwiφ(xi),wi≥0,∑iwi=1\varphi\left(\sum_{i=1}^nw_i x_i\right)\le\sum_{i=1}^nw_i\varphi(x_i),\qquad w_i\ge0,\quad\sum_iw_i=1

x=1,3을 반씩 섞고 φ(x)=x²를 쓰면 평균의 제곱 4≤제곱의 평균 5입니다. 차이 1은 제곱함수의 Jensen 여유이며,뒤 통계학의 평균 주변 제곱 편차와 연결됩니다.

가중치는 어떤 평균을 묻는지 정합니다. 국가를 같은 비중으로 평균할 때와 인구 비중으로 평균할 때는 다른 대상입니다. 함수의 볼록성은 어느 합법적인 가중치에서도 부등식을 주지만 서로 다른 평균을 같게 만들지는 않습니다.

For a convex function on a convex domain, nonnegative weights summing to one extend the two-point inequality to finitely many inputs.

φ(∑i=1nwixi)≤∑i=1nwiφ(xi),wi≥0,∑iwi=1\varphi\left(\sum_{i=1}^nw_i x_i\right)\le\sum_{i=1}^nw_i\varphi(x_i),\qquad w_i\ge0,\quad\sum_iw_i=1

For equal weights on one and three and φ=x², the inequality is 4≤5. The gap connects to squared deviations around a mean.

Weights define the averaging target. Equal-country and population-weighted averages are different quantities, even though Jensen applies to either normalized set of weights.

기초Foundations

4. 여러 점의 Jensen을 두 점에서 유도4. Derive finite Jensen from the two-point definition

양의 가중치가 두 개뿐이면 정의입니다. n개에서 마지막 가중치 wₙ<1이라 하면 나머지 점들의 정규화 평균 z=Σᵢ<ₙwᵢxᵢ/(1−wₙ)을 만듭니다. 전체 평균은 (1−wₙ)z+wₙxₙ입니다.

φ((1−wn)z+wnxn)≤(1−wn)φ(z)+wnφ(xn)≤∑i=1nwiφ(xi)\varphi((1-w_n)z+w_nx_n)\le(1-w_n)\varphi(z)+w_n\varphi(x_n)\le\sum_{i=1}^nw_i\varphi(x_i)

두 번째 단계는 n−1개에 대한 귀납 가정입니다. 가중치 0인 항은 빼고,마지막 가중치가 1이면 점 하나의 등호이므로 나눗셈 예외를 먼저 처리합니다.

엄격볼록함수에서 양의 가중치가 붙은 점들이 서로 다르면 보통 엄격 부등식이며,정확히는 등호가 되려면 그 양의 가중치 점들이 모두 같아야 합니다. 단지 볼록이면 다른 점에서도 등호가 가능합니다. |x|는 양수 입력들 사이에서 직선이라 1과 3을 섞어도 등호입니다.

Normalize all but the last positive weight into a point z, then apply two-point convexity and induction. Zero weights can be discarded; weight one is a separate equality case.

φ((1−wn)z+wnxn)≤(1−wn)φ(z)+wnφ(xn)≤∑i=1nwiφ(xi)\varphi((1-w_n)z+w_nx_n)\le(1-w_n)\varphi(z)+w_n\varphi(x_n)\le\sum_{i=1}^nw_i\varphi(x_i)

For strict convexity, equality requires all positively weighted points to coincide. For ordinary convexity, distinct points can give equality: |x| is affine over positive inputs.

The proof covers every finite normalized set of weights rather than a sampled collection of examples.

선택 심화Optional extension

5. 선택 심화: 적분 Jensen의 정규화·적분가능성 조건5. Optional bridge: normalization and integrability for integral Jensen

24장에서 정의할 확률측도 P는 전체 질량이 1인 측도입니다. E[X]=∫X dP를 평균이라고 씁니다. 이 절은 그 적분 이론을 이미 아는 독자의 연결 경로이며,처음 읽는 독자는 유한 가중합으로 먼저 이해하고 24장 뒤에 돌아와도 됩니다.

정확한 충분형을 하나 쓰겠습니다. φ는 열린 볼록집합 U에서 유한한 볼록함수,가측 벡터 X는 거의 확실하게 U 안에 있고 각 성분이 절대적분 가능하며 m=E[X]∈U라고 합시다. φ(X)도 절대적분 가능하다고 가정합니다.

E[φ(X)]≥φ(E[X])\mathbb E[\varphi(X)]\ge\varphi(\mathbb E[X])

m의 부분기울기 s가 주는 아래 지지대 φ(X)≥φ(m)+sᵀ(X−m)를 적분하면 평균 0인 마지막 항이 사라집니다. 여기서는 유한한 기대값끼리 비교하도록 적분가능성을 명시했습니다. 더 일반적인 +∞ 허용형도 있지만 정의되지 않은 ∞−∞를 계산하지 않습니다.

Chapter 24 defines probability measures of total mass one and expectations as integrals. This optional bridge can be postponed until then; finite weighted sums give an immediate entry.

Use a precise sufficient form: φ is finite convex on an open convex U; the measurable vector X lies in U almost surely and is componentwise absolutely integrable; m=E[X] belongs to U; and φ(X) is absolutely integrable too.

E[φ(X)]≥φ(E[X])\mathbb E[\varphi(X)]\ge\varphi(\mathbb E[X])

Integrate a supporting affine lower bound at m; its linear deviation has expectation zero. These assumptions compare finite expectations. More general extended-value forms exist, but do not authorize undefined infinity subtraction.

기초Foundations

6. Jensen의 가정을 빠뜨리면 계산 자체가 바뀐다6. Omitting Jensen assumptions changes or invalidates the calculation

정규화하지 않은 질량 2의 측도에서 X≡1,φ(x)=x²를 쓰면 φ(∫X)=4,∫φ(X)=2입니다. 4≤2는 거짓입니다. 평균을 원한다면 총질량 2로 나누어 확률측도 또는 정규화 평균을 만들어야 합니다.

μ(Ω)=2, X≡1:φ ⁣(∫X dμ)=4>2=∫φ(X) dμ\mu(\Omega)=2,\ X\equiv1:\quad\varphi\!\left(\int X\,d\mu\right)=4>2=\int\varphi(X)\,d\mu

또 (0,1)의 균등 확률에서 X(t)=1/t는 절대적분 가능하지 않아 유한한 E[X]가 없습니다. 이를 유한한 평균처럼 넣고 보통 실수값 Jensen 식을 계산할 수 없습니다. 조건 실패가 항상 반대 부등식을 준다는 뜻이 아니라,그 형태의 정리가 적용되지 않는 경우입니다.

정보이론의 −log와 기대값을 연결할 때도 양수 정의역·정규화·적분가능성,0에서의 확장값을 확인해야 합니다. 유한한 양수 숫자의 예제를 무한·연속 분포에 그대로 복사하지 않습니다.

For a measure of mass two with X≡1 and φ=x², the unnormalized left side is four and right side two. Normalize before treating the integral as an average.

μ(Ω)=2, X≡1:φ ⁣(∫X dμ)=4>2=∫φ(X) dμ\mu(\Omega)=2,\ X\equiv1:\quad\varphi\!\left(\int X\,d\mu\right)=4>2=\int\varphi(X)\,d\mu

Under uniform probability on (0,1), X(t)=1/t is not integrable and has no finite mean. The stated finite-expectation Jensen theorem cannot simply be evaluated.

Information-theory applications of −log likewise need positivity, normalization and integrability or carefully defined extended values.

학부 연결 · 선택Undergraduate bridge · optional

7. 지지 초평면은 볼록집합을 한쪽에 둔다7. A supporting hyperplane keeps a convex set on one side

직선의 고차원 버전을 초평면이라고 합니다. 0이 아닌 법선 n과 기준점 p로 nᵀ(x−p)=0을 씁니다. 볼록집합 C가 모두 nᵀ(x−p)≤0 쪽에 있고 p∈C이면 그 초평면은 C를 p에서 지지합니다.

n≠0,p∈C,nT(y−p)≤0for every y∈Cn\ne0,\quad p\in C,\quad n^{\mathsf T}(y-p)\le0\quad\text{for every }y\in C

비어 있지 않은 닫힌 볼록집합 밖의 z를 가장 가까운 점 p에 투영하면 n=z−p가 이런 법선입니다. 가까운 점의 존재는 거리 제곱의 유계 수준집합과 닫힘에서,유일성은 엄격볼록성에서 얻습니다. 선분 p+t(y−p)로 움직이는 첫 변화가 음수가 아니어야 하므로 (z−p)ᵀ(y−p)≤0입니다.

z는 초평면 반대쪽에 엄격히 놓입니다. 이는 점과 닫힌 볼록집합을 분리하는 한 증명입니다. 모든 일반 분리정리의 버전을 증명한 것은 아니며,함수의 에피그래프에 지지를 적용하면 아래 지지선과 부분기울기로 이어집니다.

A hyperplane has nonzero normal n and equation nᵀ(x−p)=0. It supports C at p when all of C lies on one side.

n≠0,p∈C,nT(y−p)≤0for every y∈Cn\ne0,\quad p\in C,\quad n^{\mathsf T}(y-p)\le0\quad\text{for every }y\in C

Project an outside point z onto a nonempty closed convex set. Its nearest point p exists by bounded distance sublevels and closedness and is unique by strict convexity. The first-order segment condition makes z−p a supporting normal.

This separates the outside point strictly from C. Applying support geometry to epigraphs leads to subgradients; this example is not a proof of every general separation theorem.

기초Foundations

8. 지지 실습: 접한다는 것과 아래에 남는다는 것8. Supporting lab: touching the graph and remaining below it

한 점 a에서 f(a)+s(x−a)라는 직선을 그립니다. a에서는 어떤 s라도 그래프와 같은 값을 갖지만,지지선이 되려면 모든 x에서 함수 아래에 있어야 합니다. ‘지나간다’는 조건만으로 기울기를 고를 수 없습니다.

f(x)≥f(a)+s(x−a)for all xf(x)\ge f(a)+s(x-a)\qquad\text{for all }x

f(x)=½x²에서는 s=a일 때 차이가 ½(x−a)²라 전체 아래 지지가 됩니다. |x|의 a=0에서는 s가 −1과 1 사이면 모두 지지선입니다. 모서리에서도 하나가 아니라 여러 유효 기울기가 있었습니다.

실습의 유한 창에서 선이 아래라고 전체를 증명한 것은 아닙니다. 정확한 부등식이나 반례 입력을 함께 확인하세요. 0에 가까운 여유의 부동소수점 부호는 반올림에 민감하므로 엄밀한 반증과 근사 표시를 구별합니다.

Every line f(a)+s(x−a) touches at a, but support requires it to stay below the function at every input.

f(x)≥f(a)+s(x−a)for all xf(x)\ge f(a)+s(x-a)\qquad\text{for all }x

For ½x², s=a leaves gap ½(x−a)². For |x| at zero, every slope between −1 and one supports the graph.

A finite plot is not a global proof. Use exact inequalities or genuine counterexamples, distinguishing rounding-sensitive near-zero gaps from rigorous signs.

기초Foundations

9. 부분기울기는 전역 아래 지지대의 기울기9. A subgradient is a slope of a global affine lower support

볼록함수 f의 유한한 값이 있는 점 a에서,모든 y에 대해 아래 부등식을 만족하는 벡터 s를 부분기울기라고 부릅니다. 이런 벡터들의 집합이 부분미분집합 ∂f(a)입니다.

∂f(a)={s: f(y)≥f(a)+sT(y−a) for every y}\partial f(a)=\{s:\ f(y)\ge f(a)+s^{\mathsf T}(y-a)\ \text{for every }y\}

18장의 편미분 ∂f/∂xⱼ와 기호가 비슷하지만 같은 개념이 아닙니다. 편미분은 한 좌표의 극한 숫자이고,부분미분집합은 전체 함수를 받치는 벡터들의 집합입니다. 문맥과 전체 표기를 구별하세요.

여기서는 볼록해석의 전역 지지 정의를 사용합니다. 비볼록 최적화에 등장하는 다른 일반화 미분과 같은 것으로 바꾸지 않습니다. 함수값이 +∞인 허용 밖 점에는 이 장의 부분기울기를 정의하지 않습니다.

At a finite point a of a convex function, a subgradient is any vector giving a global affine lower bound. The subdifferential is their set.

∂f(a)={s: f(y)≥f(a)+sT(y−a) for every y}\partial f(a)=\{s:\ f(y)\ge f(a)+s^{\mathsf T}(y-a)\ \text{for every }y\}

This differs from a coordinate partial derivative despite the shared ∂ symbol. One is a directional-coordinate limit; the other is a set of supporting vectors.

We use the convex global-support definition, not every generalized derivative used in nonconvex analysis. Subgradients here are taken only at finite-domain points.

기초Foundations

10. 절댓값 부분기울기를 정의에서 직접 구하기10. Derive absolute-value subgradients from the definition

a=0에서는 |y|≥sy가 모든 y에서 맞아야 합니다. 양수 y로 나누면 s≤1,음수 y로 나누면 s≥−1입니다. 그래서 부분미분집합은 [−1,1]입니다.

∂∣x∣={{−1}x<0[−1,1]x=0{1}x>0\partial|x|=\begin{cases}\{-1\}&x<0\\{[-1,1]}&x=0\\\{1\}&x>0\end{cases}

실습에서 s=0은 수평 지지선,±1은 두 직선 조각과 일치하는 지지선입니다. s=2라면 양의 y에서 |y|≥2y가 실패하므로 지지선이 아닙니다.

모서리에서의 부분기울기 집합은 도함수의 불확실한 추정 구간이 아닙니다. 정확한 수학적 집합입니다. 0이 포함되므로 최소를 인증하지만 모든 원소가 0이어야 하는 것은 아닙니다.

At zero, support requires |y|≥sy. Positive y forces s≤1 and negative y forces s≥−1, giving the exact interval.

∂∣x∣={{−1}x<0[−1,1]x=0{1}x>0\partial|x|=\begin{cases}\{-1\}&x<0\\{[-1,1]}&x=0\\\{1\}&x>0\end{cases}

Zero gives a horizontal support; endpoints give the two linear pieces. Slope two fails for positive y.

This set is an exact geometric object, not uncertainty about an estimated derivative. It contains zero without every member being zero.

학부 연결 · 선택Undergraduate bridge · optional

11. 미분 가능한 볼록함수에서는 집합이 하나로 줄어든다11. Differentiable convex functions have one subgradient

미분 가능한 볼록함수의 기울기는 19장의 접평면 부등식으로 부분기울기입니다. 다른 s도 부분기울기라고 가정하고 y=a+tv를 대입합니다. 양·음의 작은 t로 나누어 극한을 취하면 sᵀv=∇f(a)ᵀv가 모든 v에서 맞아야 합니다.

f convex and differentiable at an interior point a⟹∂f(a)={∇f(a)}f\text{ convex and differentiable at an interior point }a\quad\Longrightarrow\quad\partial f(a)=\{\nabla f(a)\}

따라서 집합이 기울기 한 벡터로 줄어듭니다. 기존 미분을 버린 것이 아니라 미분 없는 모서리까지 언어를 넓힌 것입니다. 열린 영역의 유한 볼록함수는 내부에서 부분기울기가 존재한다는 지지정리를 사용할 수 있습니다.

경계에서는 다른 현상이 있을 수 있습니다. 예를 들어 구간 지시함수의 경계 부분기울기는 법선 반직선이며,어떤 볼록함수 경계에는 부분기울기가 아예 없을 수도 있습니다. 다음 절에서 조건을 확인합니다.

Convex support makes the gradient a subgradient. Any other supporting vector, tested on a+tv with both step signs, must agree with the gradient in every direction.

f convex and differentiable at an interior point a⟹∂f(a)={∇f(a)}f\text{ convex and differentiable at an interior point }a\quad\Longrightarrow\quad\partial f(a)=\{\nabla f(a)\}

This extends ordinary differentiation to corners. Finite convex functions have subgradients at interior-domain points under the supporting-hyperplane theorem.

Boundary behavior differs: indicator subgradients can be unbounded normal rays, and some convex functions have none at a boundary.

학부 연결 · 선택Undergraduate bridge · optional

12. 경계에서 부분기울기가 없는 볼록함수12. A convex function can lack a boundary subgradient

f(x)=−√x를 x≥0에서 쓰고 음수에서는 +∞라 합시다. 볼록하고 아래반연속인 함수지만 0에서 유한한 지지 기울기는 없습니다. 만약 s가 있다면 모든 y>0에서 −√y≥sy여야 합니다.

−1y≥s(y>0),y↓0 ⟹ no finite s,∂f(0)=∅-\frac1{\sqrt y}\ge s\quad(y>0),\qquad y\downarrow0\ \Longrightarrow\ \text{no finite }s,\quad\partial f(0)=\varnothing

내부 x>0에서는 보통 미분 −1/(2√x)가 유일한 부분기울기입니다. 같은 함수에서도 점의 위치가 중요합니다. ‘볼록이면 모든 점에 부분기울기’라는 문장에는 내부 또는 다른 자격 가정이 빠져 있습니다.

이 예는 뒤의 근접 연산 존재 정리와 모순되지 않습니다. 근접 최적점에서는 매끄러운 제곱항과의 최적 조건 때문에 필요한 부분기울기가 생깁니다. 원함수의 모든 경계점에서 부분기울기가 존재해야 근접 연산을 정의할 수 있는 것은 아닙니다.

Let f=−√x for x≥0 and +∞ otherwise. It is convex and lower semicontinuous, but no finite supporting slope exists at zero.

−1y≥s(y>0),y↓0 ⟹ no finite s,∂f(0)=∅-\frac1{\sqrt y}\ge s\quad(y>0),\qquad y\downarrow0\ \Longrightarrow\ \text{no finite }s,\quad\partial f(0)=\varnothing

Interior positive points have the usual derivative as their unique subgradient. Domain position matters.

This does not contradict proximal existence: a proximal optimum supplies the needed subgradient through its quadratic optimality condition. Subgradients at every original boundary point are not required.

기초Foundations

13. 0이 부분미분집합 안에 있으면 전역 최소13. A zero subgradient certifies a global minimum

부분기울기 정의에서 s=0을 넣으면 모든 y에서 f(y)≥f(a)입니다. 이것이 전역 최소의 정의입니다. 반대로 a가 전역 최소이면 수평선이 전체 함수를 아래에서 지지하므로 0이 부분기울기입니다.

a∈dom⁡f:0∈∂f(a)⟺a globally minimizes fa\in\operatorname{dom}f:\qquad0\in\partial f(a)\quad\Longleftrightarrow\quad a\text{ globally minimizes }f

|x|의 0에서는 ∂f=[−1,1]에 0이 포함되어 최소가 됩니다. 집합 전체가 {0}일 필요는 없습니다. 비영점의 집합은 {±1}이라 0을 포함하지 않습니다.

이 조건은 이미 최소가 존재한다고 보장하는 정리가 아닙니다. 예를 들어 eˣ는 어디서도 부분기울기 0을 갖지 않고 실수 전체의 inf 0을 달성하지 않습니다. 존재와 최적 조건은 앞 장들처럼 계속 분리합니다.

Setting the supporting slope to zero gives exactly the global minimum inequality; the converse is the same horizontal support.

a∈dom⁡f:0∈∂f(a)⟺a globally minimizes fa\in\operatorname{dom}f:\qquad0\in\partial f(a)\quad\Longleftrightarrow\quad a\text{ globally minimizes }f

For |x|, zero belongs to the origin subdifferential without being its only element.

This characterizes a candidate; it does not guarantee an attained minimum exists. The function eˣ never has zero subgradient and has an unattained infimum.

학부 연결 · 선택Undergraduate bridge · optional

14. 매끄러운 항과 모서리 항을 합칠 때의 조건14. Adding a smooth term and a nonsmooth term under stated assumptions

f가 실수 공간 전체에서 볼록·미분 가능하고 g가 proper 볼록함수라고 합시다. proper는 적어도 한 점에서 유한하고 −∞값은 없다는 뜻입니다. 이때 매끄러운 항의 연속성이 합 규칙에 필요한 자격을 제공하여 다음 식을 씁니다.

∂(f+g)(x)=∇f(x)+∂g(x),0∈∇f(x)+∂g(x) ⟺ x minimizes f+g\partial(f+g)(x)=\nabla f(x)+\partial g(x),\qquad 0\in\nabla f(x)+\partial g(x)\ \Longleftrightarrow\ x\text{ minimizes }f+g

오른쪽의 벡터+집합은 ∂g의 모든 벡터에 ∇f를 더한 집합입니다. 임의의 두 확장값 볼록함수에 가정 없이 합 규칙을 복사하지 않습니다. 일반형에는 공통 정의역과 연속성·상대적 내부 같은 자격조건이 필요합니다.

g가 볼록집합 C의 지시함수이면 ∂g(x)=N_C(x)={s:sᵀ(y−x)≤0,모든 y∈C}라는 법선 원뿔입니다. 0∈∇f+N_C는 경계에서 기울기가 0일 필요가 없다는 KKT·허용방향 조건을 다시 표현합니다.

Assume f is convex and differentiable on all Euclidean space, and g is proper convex, meaning finite somewhere and never −∞. Continuity of the smooth term supplies a sufficient sum-rule qualification.

∂(f+g)(x)=∇f(x)+∂g(x),0∈∇f(x)+∂g(x) ⟺ x minimizes f+g\partial(f+g)(x)=\nabla f(x)+\partial g(x),\qquad 0\in\nabla f(x)+\partial g(x)\ \Longleftrightarrow\ x\text{ minimizes }f+g

Vector plus set means adding the vector to each member. Arbitrary extended-valued sums require additional qualifications.

For a convex-set indicator, the subdifferential is the outward normal cone. Thus the condition recovers constrained optimality without requiring zero ordinary gradient at a boundary.

기초Foundations

15. 볼록 켤레는 기울기별 가장 큰 선형 보상15. A convex conjugate measures the largest linear reward minus cost

입력 x에 선형 보상 sᵀx를 주고 비용 f(x)를 빼서 가능한 가장 큰 값을 구합니다. 이 상한값이 s에 대한 함수 f*(s),볼록 켤레입니다. sup는 최대가 달성되지 않아도 쓰며 +∞일 수 있습니다.

f∗(s)=sup⁡x∈dom⁡f{sTx−f(x)}f^*(s)=\sup_{x\in\operatorname{dom}f}\{s^{\mathsf T}x-f(x)\}

기울기 s는 켤레함수의 입력입니다. 앞 장의 ‘최적값 f*’와 별표 모양이 같지만 여기서는 인수 s가 붙은 함수이므로 구별합니다. 각 x에서 s에 대한 아핀함수의 sup라 f*는 볼록입니다.

f*는 원래 f의 역함수도,단순한 부호 반전도 아닙니다. 모서리를 가진 비용은 유한한 기울기 범위 안에서만 보상을 제한할 수도 있습니다. 다음 두 계산으로 뜻을 확인합니다.

The conjugate records the supremum of linear reward sᵀx minus cost f(x), as a function of s. It may equal +∞ and need not have an attained maximizer.

f∗(s)=sup⁡x∈dom⁡f{sTx−f(x)}f^*(s)=\sup_{x\in\operatorname{dom}f}\{s^{\mathsf T}x-f(x)\}

Here f*(s) is a function, distinct from earlier constant optimal-value notation. It is convex as a supremum of affine functions of s.

A conjugate is neither an inverse function nor merely a sign reversal.

기초Foundations

16. 제곱함수의 켤레를 완전제곱으로16. Complete the square for a quadratic conjugate

f(x)=½x²이면 sx−½x²=½s²−½(x−s)²입니다. x=s에서 최대 ½s²를 얻으므로 이 함수는 자기 자신을 켤레로 갖습니다.

f(x)=12x2⟹f∗(s)=12s2f(x)=\tfrac12x^2\quad\Longrightarrow\quad f^*(s)=\tfrac12s^2

더 일반적으로 f(x)=½h(x−a)²,h>0이면 x=a+s/h에서 최대이고 f*(s)=as+s²/(2h)입니다. 평행이동 a는 켤레에서 선형항으로 나타납니다. 켤레 값이 항상 음수가 아니어야 한다는 규칙은 없습니다.

벡터의 양의 정부호 이차함수 ½xᵀHx에서는 f*(s)=½sᵀH⁻¹s입니다. 역행렬은 양의 정부호 가정 아래 존재합니다. 준정부호·랭크 결손에는 유한 정의역 조건이 추가되므로 같은 식을 무조건 쓰지 않습니다.

For ½x², completing the square shows the conjugate is ½s², attained at x=s.

f(x)=12x2⟹f∗(s)=12s2f(x)=\tfrac12x^2\quad\Longrightarrow\quad f^*(s)=\tfrac12s^2

For ½h(x−a)² with h>0, the conjugate is as+s²/(2h), attained at a+s/h. Conjugate values need not all be nonnegative.

An SPD quadratic ½xᵀHx has conjugate ½sᵀH⁻¹s. Singular cases need additional domain conditions.

기초Foundations

17. 절댓값의 켤레는 기울기 구간의 지시함수17. The absolute-value conjugate is a slope-interval indicator

f(x)=|x|에서 |s|≤1이면 sx−|x|≤0이고 x=0에서 0이라 켤레는 0입니다. |s|>1이면 s와 같은 부호로 x를 멀리 보내 보상이 무한히 커집니다.

(∣⋅∣)∗(s)={0∣s∣≤1+∞∣s∣>1=δ[−1,1](s)(|\cdot|)^*(s)=\begin{cases}0&|s|\le1\\+\infty&|s|>1\end{cases}=\delta_{[-1,1]}(s)

f=τ|x|,τ≥0이면 기울기 허용 구간은 [−τ,τ]입니다. τ=0에서는 원함수가 0이고 켤레는 {0}의 지시함수입니다. |s|=τ의 경계에서는 최대 x가 하나가 아닐 수 있습니다.

계산 창에서 x를 −10부터 10까지 제한해 최대를 구하면 |s|>1에서도 유한값이 보일 수 있습니다. 그것은 제한 창의 최대이지 실수 전체의 켤레가 아닙니다. +∞를 overflow가 난 큰 숫자와 같은 것으로 표기하지 않습니다.

For |s|≤1, sx−|x|≤0 with equality at zero. For |s|>1, sending x far in the matching sign makes the reward unbounded.

(∣⋅∣)∗(s)={0∣s∣≤1+∞∣s∣>1=δ[−1,1](s)(|\cdot|)^*(s)=\begin{cases}0&|s|\le1\\+\infty&|s|>1\end{cases}=\delta_{[-1,1]}(s)

For τ|x| with τ≥0, replace the interval by [−τ,τ]. Boundary maximizing inputs may be nonunique. At τ=0 the conjugate is the indicator of {0}.

A finite plotting window cannot detect an infinite supremum by taking its own finite maximum. Extended infinity is not numerical overflow.

기초Foundations

18. 켤레 실습: Fenchel 부등식의 여유18. Conjugate lab: the Fenchel inequality and its gap

켤레는 모든 x의 sx−f(x)보다 크거나 같으므로 항을 옮기면 Fenchel–Young 부등식입니다. 값들이 유한한 점에서는 왼쪽에서 sx를 뺀 값을 gap이라고 부릅니다.

f(x)+f∗(s)≥sTx,gap⁡(x,s)=f(x)+f∗(s)−sTx≥0f(x)+f^*(s)\ge s^{\mathsf T}x,\qquad \operatorname{gap}(x,s)=f(x)+f^*(s)-s^{\mathsf T}x\ge0

½x²에서는 gap=½(x−s)²라 x=s에서만 0입니다. |x|에서는 |s|≤1일 때 gap=|x|−sx입니다. x=0에서는 구간 안 모든 s가 gap 0이고,양의 x에서는 s=1,음의 x에서는 s=−1이어야 합니다.

f*(s)=+∞인 입력에서는 유한한 gap 숫자를 계산하지 않습니다. 부등식은 확장값으로 해석할 수 있지만 ∞−∞가 생기는 식은 사용하지 않습니다. 실습은 수학적 무한대와 반올림 오차를 각각 표시해야 합니다.

The conjugate dominates every linear reward minus cost, yielding Fenchel–Young. When values are finite, its nonnegative difference is the gap.

f(x)+f∗(s)≥sTx,gap⁡(x,s)=f(x)+f∗(s)−sTx≥0f(x)+f^*(s)\ge s^{\mathsf T}x,\qquad \operatorname{gap}(x,s)=f(x)+f^*(s)-s^{\mathsf T}x\ge0

The quadratic gap is ½(x−s)². For absolute value with |s|≤1 it is |x|−sx: zero at every allowed slope when x=0, and only the matching extreme slope for nonzero x.

Do not report a finite gap where the conjugate is +∞ or evaluate undefined infinity arithmetic.

학부 연결 · 선택Undergraduate bridge · optional

19. Fenchel 등호는 부분기울기 관계19. Fenchel equality is a subgradient relation

f(x)+f*(s)=sᵀx라면 x가 켤레의 sup를 달성합니다. 모든 y에서 sᵀy−f(y)≤sᵀx−f(x)이므로 정리하면 f(y)≥f(x)+sᵀ(y−x)입니다.

f(x)+f∗(s)=sTx⟺s∈∂f(x)f(x)+f^*(s)=s^{\mathsf T}x\quad\Longleftrightarrow\quad s\in\partial f(x)

역방향도 부분기울기 부등식을 옮기면 x가 sup를 달성하여 나옵니다. 따라서 켤레·지지 기울기·gap 0은 같은 최적 관계를 서로 다른 방식으로 쓴 것입니다.

proper 닫힌 볼록함수에서는 이 관계가 x∈∂f*(s)로도 대칭적으로 연결됩니다. 이 대칭은 다음 절의 이중 켤레 정리와 관련됩니다. 일반 함수의 미분 역함수라고 외우는 대신 정의의 부등식에서 확인하세요.

If equality holds, x attains the conjugate supremum. Comparing it with every y and rearranging gives the subgradient inequality; the converse reverses that argument.

f(x)+f∗(s)=sTx⟺s∈∂f(x)f(x)+f^*(s)=s^{\mathsf T}x\quad\Longleftrightarrow\quad s\in\partial f(x)

For proper closed convex functions this also becomes x∈∂f*(s), connecting to biconjugacy.

This is a supporting-inequality relation, not a general inverse-function rule.

선택 심화Optional extension

20. 닫힌 볼록함수는 아래 지지대들로 복원20. Closed convex functions are recovered from their affine supports

Fenchel 부등식에서 f(x)≥sᵀx−f*(s)입니다. 모든 s에 대해 오른쪽 sup를 취하면 f**(x)≤f(x)입니다. proper·아래반연속·볼록함수에서는 분리정리를 통해 반대 부등식도 얻어 f**=f라는 Fenchel–Moreau 정리가 성립합니다.

f∗∗(x)=sup⁡s{sTx−f∗(s)},f=f∗∗for proper lower-semicontinuous convex ff^{**}(x)=\sup_s\{s^{\mathsf T}x-f^*(s)\},\qquad f=f^{**}\quad\text{for proper lower-semicontinuous convex }f

여기서 ‘닫힌 함수’는 에피그래프가 닫혔다는 뜻이며 아래반연속과 연결됩니다. 정의역이 반드시 닫혔다는 뜻은 아닙니다. −log x를 x>0에서 쓰고 나머지에서 +∞로 두면 닫힌 볼록함수지만 유한 정의역은 열린 반직선입니다.

조건을 빼면 복원이 달라질 수 있습니다. 열린 반직선 (0,∞)의 지시함수는 이중 켤레에서 [0,∞)의 지시함수로 닫힙니다. 원래 0에서 +∞였던 값이 0이 됩니다. 이 장은 전체 분리정리의 심화 증명을 모두 전개하지 않고 정리의 가정·뜻·계산 반례를 확인합니다.

Fenchel gives f**≤f. For proper lower-semicontinuous convex functions, a separation theorem gives equality, the Fenchel–Moreau theorem.

f∗∗(x)=sup⁡s{sTx−f∗(s)},f=f∗∗for proper lower-semicontinuous convex ff^{**}(x)=\sup_s\{s^{\mathsf T}x-f^*(s)\},\qquad f=f^{**}\quad\text{for proper lower-semicontinuous convex }f

Closed refers to the epigraph, not necessarily the effective domain. The extended function −log x has an open finite domain but a closed epigraph.

The indicator of (0,∞) instead biconjugates to the indicator of [0,∞), changing its value at zero. This bridge states the theorem and checks its assumptions and examples without claiming a full proof of general separation theory.

기초Foundations

21. 제약 지시함수와 유클리드 정사영21. Constraint indicators and Euclidean projection

볼록해석의 δC는 C 안에서 0,밖에서 +∞입니다. f(x)+δC(x)를 최소화하면 C 밖을 배제하므로 minₓ∈C f(x)와 같습니다. 통계의 1C와 달리 제약을 비용에 넣는 장치입니다.

δC(x)={0x∈C+∞x∉C,ΠC(v)=argmin⁡x∈C12∥x−v∥2\delta_C(x)=\begin{cases}0&x\in C\\+\infty&x\notin C\end{cases},\qquad\Pi_C(v)=\operatorname*{argmin}_{x\in C}\frac12\|x-v\|^2

C가 비어 있지 않은 닫힌 볼록집합이면 가장 가까운 점은 존재하고 유일합니다. 닫힘은 극한 후보를 보존하고 거리 제곱은 멀리서 커져 존재를 돕습니다. 엄격볼록성은 서로 다른 두 최소점의 중간이 더 가까워지는 모순으로 유일성을 줍니다.

비볼록 C={−1,1},v=0에서는 두 점이 똑같이 가까워 정사영이 여러 개입니다. 열린 C=(0,∞),v=0에서는 거리 inf 0을 얻지 못합니다. 조건이 근접 연산의 단일값 존재에 왜 중요한지 미리 보여 줍니다.

The convex indicator δC is zero inside C and +∞ outside. Adding it converts a constraint into an objective term.

δC(x)={0x∈C+∞x∉C,ΠC(v)=argmin⁡x∈C12∥x−v∥2\delta_C(x)=\begin{cases}0&x\in C\\+\infty&x\notin C\end{cases},\qquad\Pi_C(v)=\operatorname*{argmin}_{x\in C}\frac12\|x-v\|^2

A nonempty closed convex set has a unique Euclidean nearest point. Closedness and distance growth give existence; strict convexity gives uniqueness.

For {−1,1} at zero projection is nonunique, while for (0,∞) at zero it is unattained. These expose the role of the assumptions.

기초Foundations

22. 구간 정사영과 법선 원뿔22. Interval projection and normal cones

[a,b],a≤b로 정사영하면 v가 안에 있을 때 그대로,왼쪽 밖이면 a,오른쪽 밖이면 b입니다. a=b인 한 점 구간에서도 정의됩니다.

Π[a,b](v)=min⁡{b,max⁡{a,v}},v−ΠC(v)∈NC(ΠC(v))\Pi_{[a,b]}(v)=\min\{b,\max\{a,v\}\},\qquad v-\Pi_C(v)\in N_C(\Pi_C(v))

a<b에서 내부의 법선 원뿔은 {0},왼쪽 끝은 (−∞,0],오른쪽 끝은 [0,∞)입니다. 한 점 집합의 법선은 실수 전체입니다. v−p가 이 원뿔에 속한다는 관계는 거리 최소의 최적 조건입니다.

좌표별 상자로 확장하면 각 성분을 따로 자릅니다. 비음수 사분면에서는 음수 성분을 0으로 바꾸는 정사영입니다. 원자료를 그렇게 임의 수정하는 것이 정당하다는 뜻은 아니며,어떤 추정·근사값에 어떤 제약 문제를 적용하는지 명시해야 합니다.

Projection onto [a,b] clamps v to the interval, including the singleton case.

Π[a,b](v)=min⁡{b,max⁡{a,v}},v−ΠC(v)∈NC(ΠC(v))\Pi_{[a,b]}(v)=\min\{b,\max\{a,v\}\},\qquad v-\Pi_C(v)\in N_C(\Pi_C(v))

For a<b, normal cones are {0} inside, a nonpositive ray at a and a nonnegative ray at b. A singleton has the whole real line as normal cone.

Boxes project componentwise; nonnegative orthants replace negative components by zero. This defines a constrained estimation operation, not automatic permission to alter observed data.

기초Foundations

23. 근접 연산은 비용과 이동 제곱의 균형23. A proximal map balances cost against squared movement

g가 proper·닫힌·볼록함수이고 λ>0일 때 다음 작은 최적 문제의 유일한 해를 prox라고 부릅니다. g값과 v에서의 이동 비용을 함께 비교합니다.

prox⁡λg(v)=argmin⁡x{g(x)+12λ∥x−v∥2},λ>0\operatorname{prox}_{\lambda g}(v)=\operatorname*{argmin}_x\left\{g(x)+\frac1{2\lambda}\|x-v\|^2\right\},\qquad\lambda>0

g=δC이면 허용점 안에서 g가 0이라 prox는 정사영 ΠC와 같습니다. 양수 λ를 바꿔도 이 경우 정사영은 변하지 않습니다. g=0인 전체 공간 함수이면 prox(v)=v입니다.

λ=0을 위 분모에 대입하지 않습니다. 특히 지시함수에 ‘0×∞=0’을 넣어 제약을 없애는 계산은 하지 않습니다. L1 가중치 τ=0이라는 유효한 사례와 prox의 매개변수 λ>0 가정을 구별하세요.

For proper closed convex g and λ>0, the proximal map returns the unique minimizer of cost plus a quadratic distance penalty.

prox⁡λg(v)=argmin⁡x{g(x)+12λ∥x−v∥2},λ>0\operatorname{prox}_{\lambda g}(v)=\operatorname*{argmin}_x\left\{g(x)+\frac1{2\lambda}\|x-v\|^2\right\},\qquad\lambda>0

Indicators recover projection, independent of positive λ; an everywhere-zero function gives identity.

Do not substitute zero into the denominator or erase constraints with undefined zero-times-infinity arithmetic. A zero L1 weight and a positive proximal parameter are different matters.

학부 연결 · 선택Undergraduate bridge · optional

24. 근접 해의 존재·유일성에 쓰이는 조건24. Conditions guaranteeing a unique proximal point

proper 닫힌 볼록함수 g는 어떤 아핀함수를 아래 지지대로 갖습니다. 따라서 g(x)+‖x−v‖²/(2λ)는 멀리서 양의 이차항이 선형항을 이겨 +∞로 가며,아래반연속이라 유계 수준집합에서 최솟값을 얻습니다.

제곱항은 강볼록이고 g는 볼록이므로 합은 강볼록입니다. 두 서로 다른 해가 있으면 중간점의 값이 더 낮아져 모순이므로 해가 유일합니다. 이 논증은 g 자체가 최소점을 갖는다고 요구하지 않습니다.

닫힘을 빼면 열린 반직선 지시함수의 v=0에서 inf만 있고 해가 없습니다. 볼록성을 빼면 C={−1,1} 지시함수의 v=0에서 두 해입니다. 강볼록성의 유일성만 말하고 존재를 건너뛰지 마세요. 에피그래프 닫힘·proper·양수 λ가 함께 역할을 합니다.

A proper closed convex g has an affine lower bound. The added positive quadratic makes the sum coercive; lower semicontinuity then gives attainment.

The sum is strongly convex, so two distinct minimizers would contradict its strict midpoint inequality. The original g need not itself attain a minimum.

Dropping closedness can lose attainment, and dropping convexity can create multiple nearest points. Existence and uniqueness use different parts of the assumptions.

기초Foundations

25. 근접 최적 조건은 이동량을 부분기울기로 바꾼다25. Proximal optimality turns displacement into a subgradient

p=proxλg(v)의 목적함수는 매끄러운 제곱항과 볼록 g의 합입니다. 0 부분기울기 조건과 합 규칙에서 다음 관계를 얻습니다.

0∈∂g(p)+p−vλ,v−pλ∈∂g(p)0\in\partial g(p)+\frac{p-v}{\lambda},\qquad\frac{v-p}{\lambda}\in\partial g(p)

즉 근접 해의 이동량을 λ로 나눈 것이 g의 정확한 부분기울기입니다. g=δC이면 v−p∈NC(p)라는 정사영 조건으로 돌아갑니다. g가 미분 가능하면 p=v−λ∇g(p)라 새 점의 기울기를 쓰는 암시적 관계입니다.

보통의 명시적 기울기 한 단계 v−λ∇g(v)와 같다고 단정하지 않습니다. 예를 들어 g=½x²이면 prox=v/(1+λ),명시적 단계는 (1−λ)v입니다. 작을 때 비슷해도 정확한 식은 다릅니다.

Apply zero-subgradient optimality and the smooth sum rule to the proximal objective.

0∈∂g(p)+p−vλ,v−pλ∈∂g(p)0\in\partial g(p)+\frac{p-v}{\lambda},\qquad\frac{v-p}{\lambda}\in\partial g(p)

The scaled displacement is a subgradient at the new point. Indicators recover normal-cone projection. For smooth g the relation is implicit, using ∇g(p).

It is not generally the explicit step using ∇g(v). For ½x², prox is v/(1+λ), whereas an explicit step is (1−λ)v.

기초Foundations

26. L1 근접 해: 부호별 계산에서 부드러운 문턱으로26. The L1 proximal map: derive soft thresholding by cases

g(x)=τ|x|,τ≥0을 사용합니다. p>0이라면 τ+(p−v)/λ=0에서 p=v−λτ이고 이것이 양수이려면 v>λτ입니다. p<0이면 −τ+(p−v)/λ=0에서 p=v+λτ이고 v<−λτ가 필요합니다.

prox⁡λτ∣⋅∣(v)=soft⁡(v,λτ)={v−λτv>λτ0∣v∣≤λτv+λτv<−λτ\operatorname{prox}_{\lambda\tau|\cdot|}(v)=\operatorname{soft}(v,\lambda\tau)=\begin{cases}v-\lambda\tau&v>\lambda\tau\\0&|v|\le\lambda\tau\\v+\lambda\tau&v<-\lambda\tau\end{cases}

p=0에서는 v/λ∈τ[−1,1]이므로 |v|≤λτ입니다. 경계 v=±λτ도 정확히 0입니다. τ=0이면 결과는 v로 돌아갑니다. sign(0)을 임의로 정할 필요 없이 이 세 경우 식으로 계산할 수 있습니다.

이 문턱은 작은 성분을 정확히 0으로 만들고 큰 성분의 크기도 λτ만큼 줄입니다. ‘작은 값만 삭제하고 나머지는 그대로’인 hard threshold와 다릅니다. 이 결과는 선택한 L1 비용의 해이지 자료의 참값을 발견한 보편 규칙이 아닙니다.

Solve separately for positive and negative p using their absolute-value slopes. At zero, use the subgradient interval.

prox⁡λτ∣⋅∣(v)=soft⁡(v,λτ)={v−λτv>λτ0∣v∣≤λτv+λτv<−λτ\operatorname{prox}_{\lambda\tau|\cdot|}(v)=\operatorname{soft}(v,\lambda\tau)=\begin{cases}v-\lambda\tau&v>\lambda\tau\\0&|v|\le\lambda\tau\\v+\lambda\tau&v<-\lambda\tau\end{cases}

Boundary inputs map to zero; τ=0 gives identity. The piecewise formula handles zero without an arbitrary sign convention.

Soft thresholding also shrinks large magnitudes, unlike hard thresholding. It solves the chosen L1 objective, not a universal truth-recovery rule.

기초Foundations

27. 근접 실습: 문턱값과 상자 정사영 비교27. Proximal lab: compare soft thresholds and box projection

실습의 L1 모드에서는 입력 v,양수 λ,비음수 τ를 따로 움직이고 실제 문턱 λτ를 확인합니다. 예를 들어 v=3,λ=2,τ=0.5이면 문턱 1,결과 2입니다. v=0.5는 같은 문턱에서 0이 됩니다.

상자 모드는 [a,b]로 정사영합니다. v=3,[a,b]=[−1,1]이면 결과 1이고,양수 λ가 달라져도 같습니다. L1은 크기를 줄이는 비용,상자 지시함수는 허용집합을 지키는 제약이라는 차이가 있습니다.

a=b인 구간은 상수 정사영이고,τ=0인 L1은 항등사상입니다. λ=0은 prox 정의에 넣지 않습니다. 같은 모양의 슬라이더라도 함수의 비용 가중치·이동 매개변수·상자 경계가 하는 역할을 나눠 읽으세요.

In L1 mode, vary v, positive λ and nonnegative τ and inspect the product threshold λτ. At v=3,λ=2,τ=0.5 the result is two; v=0.5 maps to zero.

Box mode clamps to [a,b], independent of positive λ. L1 penalizes magnitude, while an indicator enforces feasibility.

A singleton box is a constant projection; zero L1 weight is identity. Do not insert λ=0 into the definition.

학부 연결 · 선택Undergraduate bridge · optional

28. 근접 연산은 거리를 늘리지 않는다28. Proximal maps are firmly nonexpansive

u∈∂g(p),w∈∂g(q)라면 두 지지 부등식을 서로 더해 (u−w)ᵀ(p−q)≥0을 얻습니다. 이를 부분미분의 단조성이라고 합니다. p=proxλg(v),q=proxλg(z)에 최적 조건을 대입합니다.

∥p−q∥2≤(p−q)T(v−z)≤∥p−q∥∥v−z∥,∥p−q∥≤∥v−z∥\|p-q\|^2\le(p-q)^{\mathsf T}(v-z)\le\|p-q\|\|v-z\|,\qquad\|p-q\|\le\|v-z\|

첫 번째 더 강한 부등식이 firm nonexpansiveness입니다. p=q이면 마지막 나눗셈 없이 이미 맞고,다르면 노름으로 나눠 1-Lipschitz를 얻습니다.

축약상수 <1이라는 뜻은 아닙니다. g=0의 prox는 항등사상이라 거리 그대로입니다. 따라서 모든 prox에 Banach의 유일 고정점·기하율 정리를 자동 적용할 수 없습니다. 반복의 보장에는 추가 구조를 확인합니다.

Adding two subgradient inequalities gives monotonicity. Substitute the proximal displacement subgradients to obtain firm nonexpansiveness.

∥p−q∥2≤(p−q)T(v−z)≤∥p−q∥∥v−z∥,∥p−q∥≤∥v−z∥\|p-q\|^2\le(p-q)^{\mathsf T}(v-z)\le\|p-q\|\|v-z\|,\qquad\|p-q\|\le\|v-z\|

When p=q no division is needed; otherwise divide to get the 1-Lipschitz bound.

This is not necessarily a strict contraction: the zero-function proximal map is identity. Banach uniqueness and geometric rates do not follow automatically.

선택 심화Optional extension

29. Moreau 분해: 문턱으로 남긴 값과 잘라 낸 값29. Moreau decomposition: retained and clipped parts

proper 닫힌 볼록 g와 λ>0에서는 켤레 근접 연산과 원래 근접 연산이 다음처럼 입력을 나눕니다. 두 항의 매개변수와 입력 척도를 함께 읽어야 합니다.

prox⁡λg(v)+λprox⁡g∗/λ(v/λ)=v\operatorname{prox}_{\lambda g}(v)+\lambda\operatorname{prox}_{g^*/\lambda}(v/\lambda)=v

g=τ|x|이면 g*는 [−τ,τ] 지시함수입니다. 두 번째 항은 λ·clip(v/λ,−τ,τ)=clip(v,−λτ,λτ)입니다. 따라서 soft(v,λτ)와 문턱구간에 잘라 넣은 부분이 합쳐 v가 됩니다.

일반식은 p=proxλg(v),s=(v−p)/λ∈∂g(p),Fenchel 대칭 p∈∂g*(s)를 이용하면 두 번째 근접 최적 조건으로 확인할 수 있습니다. 이는 선택 심화이며 soft와 clip이 같은 연산이라는 뜻은 아닙니다.

For proper closed convex g and λ>0, Moreau decomposition splits the input between primal and conjugate proximal maps.

prox⁡λg(v)+λprox⁡g∗/λ(v/λ)=v\operatorname{prox}_{\lambda g}(v)+\lambda\operatorname{prox}_{g^*/\lambda}(v/\lambda)=v

For τ|x|, the second term is clipping to [−λτ,λτ]. It complements soft thresholding to reconstruct v.

The general formula follows from displacement optimality and the conjugate subgradient relation. It does not identify soft thresholding with clipping; they are complementary operations.

기초Foundations

30. 합성 목적함수는 매끄러운 항만 기울기로 움직인다30. A composite objective takes a gradient step only on its smooth term

F=f+g에서 f는 실수 공간 전체의 볼록·L-매끄러운 함수,L>0이고 g는 proper 닫힌 볼록함수라 합시다. 먼저 f의 기울기로 v=x−η∇f(x)를 만들고,g의 prox를 적용합니다.

x+=Tη(x):=prox⁡ηg(x−η∇f(x)),η>0x^+=T_\eta(x):=\operatorname{prox}_{\eta g}(x-\eta\nabla f(x)),\qquad\eta>0

이는 f를 선형화하고 g는 그대로 둔 국소 모형 g(z)+∇f(x)ᵀ(z−x)+‖z−x‖²/(2η)를 최소화한 것입니다. 모서리 g를 억지로 한 숫자의 미분으로 바꾸지 않습니다.

g=0이면 보통 경사하강법,g=δC이면 정사영 경사법입니다. g=τ‖x‖₁이고 좌표별 제곱거리이면 성분별 soft threshold입니다. 표기상 같은 틀이어도 함수·제약·보폭의 가정은 각각 확인합니다.

Let f be convex and globally L-smooth and g proper closed convex. Take a gradient step on f, then apply the proximal map of g.

x+=Tη(x):=prox⁡ηg(x−η∇f(x)),η>0x^+=T_\eta(x):=\operatorname{prox}_{\eta g}(x-\eta\nabla f(x)),\qquad\eta>0

This minimizes a local model linearizing f while retaining g exactly, with a quadratic movement term.

Zero g recovers gradient descent, an indicator recovers projected gradient, and a separable L1 term gives componentwise soft thresholding.

기초Foundations

31. 기울기 사상 0은 보통 기울기 0과 다르다31. A zero gradient mapping need not mean zero smooth gradient

양수 η에서 기울기 사상 Gη(x)=(x−Tη(x))/η를 정의합니다. Tη(x)=x인 고정점이면 prox 최적 조건에서 0∈∇f(x)+∂g(x)이고,볼록 합의 전역 최소입니다. 역방향도 같습니다.

Gη(x)=x−Tη(x)η,Gη(x)=0⟺0∈∇f(x)+∂g(x)G_\eta(x)=\frac{x-T_\eta(x)}\eta,\qquad G_\eta(x)=0\Longleftrightarrow0\in\nabla f(x)+\partial g(x)

경계·모서리의 최적점에서는 ∇f가 0이 아니어도 g의 부분기울기와 상쇄될 수 있습니다. 예를 들어 ½(x−2)²+0.5|x|의 최소 1.5에서 ∇f=−0.5,L1 부분기울기=+0.5입니다.

η=0에서는 이 정의가 0/0이므로 기울기 사상을 계산하지 않습니다. 이동 없음이라는 별도 입력 상태와 양수 η의 최적성 보장을 구별합니다. 또 작은 G의 숫자만으로 원단위 거리 인증을 얻으려면 22장처럼 유효한 수축이나 추가 오차 상계가 필요합니다.

For positive η, define the gradient mapping. Its zeros are exactly proximal-gradient fixed points, equivalent to composite optimality under our convex assumptions.

Gη(x)=x−Tη(x)η,Gη(x)=0⟺0∈∇f(x)+∂g(x)G_\eta(x)=\frac{x-T_\eta(x)}\eta,\qquad G_\eta(x)=0\Longleftrightarrow0\in\nabla f(x)+\partial g(x)

The smooth gradient can remain nonzero, balanced by g. At the minimizer 1.5 of ½(x−2)²+0.5|x|, the two terms are −0.5 and +0.5.

The mapping is undefined at η=0. Small approximate mapping values require additional bounds to certify parameter distance.

기초Foundations

32. 알고리즘 실습: 한 번의 soft와 반복의 목표32. Algorithm lab: one soft step and the iteration target

가정문제 F(x)=½h(x−s)²+τ|x|,h>0,τ≥0을 사용합니다. 정확한 최소는 x*=soft(s,τ/h)입니다. 반복은 아래 식이고,실습은 기울기 이동 전 값 v와 prox 결과를 따로 보여 줍니다.

xk+1=soft⁡(xk−ηh(xk−s),ητ),x⋆=soft⁡(s,τ/h)x_{k+1}=\operatorname{soft}(x_k-\eta h(x_k-s),\eta\tau),\qquad x^\star=\operatorname{soft}(s,\tau/h)

h=1,s=2,τ=0.5,x₀=−2,η=0.5이면 −2→0→0.75→1.125로 가며 목표는 1.5입니다. η=1/h이면 v=s로 모든 시작이 같은 한 단계 해를 얻는 특별한 스칼라 이차 구조입니다.

0<η≤1/h는 뒤의 일반 감소·율 보장에 맞는 범위입니다. 더 큰 η에서의 특정 수치 성공은 그 보편 정리의 증명이 아닙니다. τ=0이면 21장의 스칼라 경사 반복으로 돌아가 ηh=2의 왕복 경계도 다시 나타납니다.

Use F=½h(x−s)²+τ|x| with h>0,τ≥0. Its exact minimizer is soft(s,τ/h), and the iteration separates the gradient trial from the proximal result.

xk+1=soft⁡(xk−ηh(xk−s),ητ),x⋆=soft⁡(s,τ/h)x_{k+1}=\operatorname{soft}(x_k-\eta h(x_k-s),\eta\tau),\qquad x^\star=\operatorname{soft}(s,\tau/h)

The example h=1,s=2,τ=0.5,x₀=−2,η=0.5 gives −2,0,0.75,1.125 toward 1.5. Step 1/h solves this special scalar quadratic in one iteration.

The general theorem below uses 0<η≤1/h. Zero τ recovers the scalar gradient recurrence and its cycling boundary at ηh=2.

선택 심화Optional extension

33. 근접 세 점 부등식에서 실제 감소를 증명33. Prove descent using the proximal three-point inequality

p=Tη(x)라 합시다. prox를 정의하는 국소 모형은 1/η-강볼록입니다. 임의의 z∈dom g와 비교한 강볼록 최적 부등식에 f의 볼록 아래 지지대와 L-매끄러운 위 지지대를 합치면 다음 식을 얻습니다.

F(p)−F(z)≤∥z−x∥2−∥z−p∥22η−(12η−L2)∥p−x∥2F(p)-F(z)\le\frac{\|z-x\|^2-\|z-p\|^2}{2\eta}-\left(\frac1{2\eta}-\frac L2\right)\|p-x\|^2

z=x를 넣으면 F(p)≤F(x)−(1/η−L/2)‖p−x‖²입니다. 0<η≤1/L에서는 적어도 이동 제곱의 1/(2η)배를 줄입니다. F(x)가 유한한 시작점에서 반복하면 이 감소를 적용할 수 있습니다.

부분기울기 최적 조건을 직접 써서도 유도할 수 있습니다. 중요한 것은 f의 선형화 오차와 g의 정확한 볼록 최적 조건을 함께 사용했다는 점입니다. 단지 prox가 거리를 줄인다는 사실만으로 목적함수 감소를 선언한 것이 아닙니다.

The proximal local model is 1/η-strongly convex. Its comparison with any z in the domain, combined with lower convex and upper smooth bounds for f, gives the three-point inequality.

F(p)−F(z)≤∥z−x∥2−∥z−p∥22η−(12η−L2)∥p−x∥2F(p)-F(z)\le\frac{\|z-x\|^2-\|z-p\|^2}{2\eta}-\left(\frac1{2\eta}-\frac L2\right)\|p-x\|^2

Set z=x to obtain decrease by (1/η−L/2) times squared movement. For 0<η≤1/L this is at least ‖p−x‖²/(2η), starting from a finite objective point.

The proof combines smoothness and exact convex proximal optimality, rather than inferring objective decrease from nonexpansiveness alone.

학부 연결 · 선택Undergraduate bridge · optional

34. 최소가 달성되면 근접 경사법의 함수값 O(1/k)34. An attained minimum gives proximal-gradient objective rate O(1/k)

앞 가정에 F의 실제 최소점 x*가 있다고 추가하고,고정 0<η≤1/L,x₀∈dom g라 합시다. 세 점 부등식에서 z=x*를 넣으면 마지막 제곱항은 0 이하이므로 거리를 망원합으로 묶을 수 있습니다.

F(xk)−F(x⋆)≤∥x0−x⋆∥22ηk,k≥1F(x_k)-F(x^\star)\le\frac{\|x_0-x^\star\|^2}{2\eta k},\qquad k\ge1

단계별 부등식을 더하고 함수값의 감소를 사용하면 21장 볼록율과 같은 형태입니다. g가 비매끄러워도 같은 상계가 성립하지만,필요한 prox를 정확히 계산하거나 그 오차를 별도 통제했다는 조건을 유지합니다.

일반 비확장 사상의 반복은 −I처럼 왕복할 수 있습니다. 이 보장은 ‘1-Lipschitz면 수렴’이라는 잘못된 규칙에서 나온 것이 아닙니다. strong convexity가 있으면 더 빠른 보장을 얻을 수 있지만 가정을 새로 확인해야 합니다.

Add an attained minimizer, a finite-objective start and fixed 0<η≤1/L. Use z=x* in the three-point inequality, telescope distances and use objective monotonicity.

F(xk)−F(x⋆)≤∥x0−x⋆∥22ηk,k≥1F(x_k)-F(x^\star)\le\frac{\|x_0-x^\star\|^2}{2\eta k},\qquad k\ge1

The rate holds despite nonsmooth g, with exact proximal evaluation or separately controlled errors.

It is not a consequence of arbitrary nonexpansiveness: −I can cycle. Faster strong-convexity results need their additional assumptions.

기초Foundations

35. 부분기울기 아무거나 고른 한 단계와 prox는 다르다35. An arbitrary subgradient step is not a proximal step

|x|를 최소화하면서 일정 보폭으로 x다음=x−η sign(x)를 쓰면 0 근처에서 왕복할 수 있습니다. η=1,x₀=0.4이면 0.4→−0.6→0.4입니다. sign(0)의 선택과 무관한 두 점 왕복입니다.

반면 같은 함수의 근접 반복 x다음=soft(x,η)는 크기를 η만큼 줄여 문턱 안이면 정확히 0으로 갑니다. x₀=0.4,η=1이면 한 번에 0입니다. 두 방법은 다른 작은 최적 문제를 계산합니다.

부분기울기법에는 감소 보폭·평균화와 적절한 가정에 따른 이론이 있습니다. 이 한 반례가 모든 부분기울기 알고리즘의 실패를 뜻하지는 않습니다. 여기서는 보통 매끄러운 경사법의 보장을 아무 부분기울기 업데이트에 복사하지 않도록 구별합니다.

A fixed subgradient step on |x| with η=1 cycles from 0.4 to −0.6 and back. This does not depend on a convention at zero.

The proximal step soft(x,η) instead sends 0.4 directly to zero. They compute different updates.

Subgradient methods have their own diminishing-step and averaging theories; the counterexample does not condemn every variant. It prevents copying smooth-gradient guarantees without checking the algorithm.

기초Foundations

36. 벌점 가중치·prox 매개변수·좌표 단위를 따로36. Separate penalty weight, proximal parameter and coordinate units

τ는 목적함수에 넣은 L1 비용의 강도이고,η는 알고리즘 보폭입니다. 같은 τ에서 η를 바꿔도 원문제 최적점은 같지만 반복 문턱 ητ와 경로는 달라집니다. τ를 바꾸면 원문제 자체가 달라져 최적점도 바뀝니다.

F=f+τ∥x∥1,algorithm threshold=ητF=f+\tau\|x\|_1,\qquad \text{algorithm threshold}=\eta\tau

단위가 있는 계수에서는 τ|x|가 f와 같은 단위가 되도록 τ의 단위를 정해야 합니다. 실제 GDP 사례는 계수와 손실을 무차원화한 뒤 τ를 선택하므로 숫자와 원단위 복원 규칙을 함께 기록합니다.

좌표를 바꾸고 같은 숫자 τ를 모든 성분에 적용하면 원단위에서 다른 벌점이 될 수 있습니다. 21장의 척도 민감성과 같은 문제입니다. 실제 의미를 유지하려면 가중치 변환까지 보존해야 합니다.

The penalty τ changes the objective; step η changes the algorithm. Holding τ fixed while changing η preserves the target but changes the threshold ητ and trajectory.

F=f+τ∥x∥1,algorithm threshold=ητF=f+\tau\|x\|_1,\qquad \text{algorithm threshold}=\eta\tau

Penalty units must make τ|x| compatible with f. Actual examples state normalization and physical inverse transformations.

Changing coordinates while reusing identical penalty numbers can change the physical objective. Preserve transformed weights when the original meaning is intended.

학부 연결 · 선택Undergraduate bridge · optional

37. 국가 사례: 실제 직선 손실에 선택한 L1 벌점37. Country case: add a chosen L1 penalty to an actual-data line loss

한국의 2014~2024년 실제 1인당 실질 GDP 11개를 15장의 직선 a+b(t−2019)로 기술합니다. a의 단위는 2015년 불변 미국 달러/명, b에는 추가로 /년이 붙습니다. θ₁=a/1000, v=b/100, F=원손실/10⁶으로 무차원화하면 두 좌표의 곡률은 1과 0.1입니다.

정규화하지 않은 자료의 최적 직선 계수는 a*≈33290.089779, b*≈754.475929입니다. 이 과거 적합 결과에 선택한 벌점 τ|v|를 추가합니다. 중심화 때문에 절편과 기울기가 분리되어 θ₁은 유지되고 기울기만 다음과 같이 바뀝니다.

vτ=soft⁡(s,10τ),s=b⋆/100≈7.544759285,aτ=a⋆,bτ=100vτv_\tau=\operatorname{soft}(s,10\tau),\quad s=b^\star/100\approx7.544759285,\quad a_\tau=a^\star,\quad b_\tau=100v_\tau

τ=0.1이면 bτ≈654.475929로 100만큼 감소합니다. τ≥0.75447592853475이면 vτ=0입니다. 이 문턱은 GDP가 실제로 일정하다는 발견이 아니라, 선택한 비용에서 기울기를 0으로 만드는 조건입니다. τ와 척도 선택을 바꾸면 답도 달라집니다.

상수 F*와 h=0.1을 쓰면 원문제는 F*+½h(v−s)²+τ|v|입니다. 켤레에서 |u|≤τ의 쌍대 하한 D(u)=F*+su−u²/(2h)을 얻고 u*=clip(hs,−τ,τ)에서 원·쌍대 값이 일치합니다. 선택한 수학 문제의 인증이며 경제정책의 인과 효과가 아닙니다.

Describe eleven actual Korean GDP-per-capita observations from 2014–2024 by a+b(t−2019). Normalize a by 1000 constant 2015 US dollars per person, b by 100 of those units per year, and the original loss by 10⁶. The two curvatures become 1 and 0.1.

The unpenalized fit has a*≈33290.089779 and b*≈754.475929. Add the chosen penalty τ|v| with v=b/100. Centering separates the coordinates, so the intercept remains fixed while the slope is soft-thresholded.

vτ=soft⁡(s,10τ),s=b⋆/100≈7.544759285,aτ=a⋆,bτ=100vτv_\tau=\operatorname{soft}(s,10\tau),\quad s=b^\star/100\approx7.544759285,\quad a_\tau=a^\star,\quad b_\tau=100v_\tau

At τ=0.1, the physical slope falls to approximately 654.475929. At τ≥0.75447592853475 it becomes zero. This is a property of the chosen penalized objective, rather than evidence that actual GDP stopped changing.

For h=0.1, the scalar objective is F*+½h(v−s)²+τ|v|. Its dual lower bound is D(u)=F*+su−u²/(2h) for |u|≤τ, maximized at clip(hs,−τ,τ). Equality certifies the chosen optimization problem; it does not estimate a causal policy effect.

기초Foundations

38. 가구 사례: 음수 근사만 정사영하고 원관측은 보존38. Household case: project negative approximations while preserving observations

17장의 실제 전력 자료에서 주방·세탁 채널의 1분 에너지 1440쌍을 사용합니다. 원관측은 모두 비음수입니다. 그러나 중심화한 행렬의 rank-1 SVD를 평균과 함께 복원한 근사에는 세탁 값이 음수인 756행이 생겼습니다. 원래 (0,0) Wh인 행의 근사는 약 (0.5832324743,−0.1576524620) Wh입니다.

ΠR+2(z)=(max⁡(z1,0),max⁡(z2,0))\Pi_{\mathbb R_+^2}(z)=(\max(z_1,0),\max(z_2,0))

근사 행 z를 비음수 직교분면에 정사영하면 (0.5832324743,0) Wh가 됩니다. 이는 저장된 근사값에 가장 가까운 비음수 벡터를 구한 것입니다. 원관측 0·0을 이렇게 바꿔 기록하는 것이 아닙니다. 자료 파일은 실제 관측·SVD 근사·정사영 후 값을 별도 열에 보관합니다.

비음수 원관측 y에 대해서는 각 좌표의 음수 z를 0으로 옮기면 |0−y|≤|z−y|입니다. 따라서 이 사례의 관측 대비 제곱오차는 증가하지 않습니다. 전체 오차는 약 63278.909360에서 63260.119510 Wh²로 감소합니다.

그러나 정사영 결과가 원래의 중심화 rank-1 제약을 계속 만족하거나, 그 SVD 문제의 새로운 최적해라는 결론은 나오지 않습니다. 비선형 좌표 절단·평균 복원과 행렬 rank를 함께 추적해야 합니다. 이것은 17장의 자료를 다른 제약 문제로 다시 읽는 실습입니다.

Use 1440 actual minute-energy pairs from the kitchen and laundry channels. Observations are nonnegative, but the mean-restored rank-one centered-SVD approximation has 756 negative laundry values. Rows observed as (0,0) Wh are approximated by roughly (0.5832324743,−0.1576524620) Wh.

ΠR+2(z)=(max⁡(z1,0),max⁡(z2,0))\Pi_{\mathbb R_+^2}(z)=(\max(z_1,0),\max(z_2,0))

Projection gives (0.5832324743,0) Wh, the nearest nonnegative vector to that stored approximation. It does not replace the original observation. Separate columns retain observations, SVD approximations and projected approximations.

For any nonnegative observation y, replacing a negative approximation by zero cannot increase coordinatewise distance to y. Total squared error falls from about 63278.909360 to 63260.119510 Wh².

Nonlinear clipping need not preserve the original centered rank-one constraint or its SVD optimality. Mean restoration and matrix rank also remain separate. This solves a different constrained approximation problem.

학부 연결 · 선택Undergraduate bridge · optional

39. 기업 사례: 경계에서는 일반 기울기와 사상이 다르다39. Company case: a nonzero smooth gradient can coexist with zero mapping

Apple의 실제 2023회계연도 품목 벡터 x와 2024회계연도 벡터 z를 사용합니다. x의 배율 α로 z를 기술하는 손실 L=Σ(αxᵢ−zᵢ)²/10을 S=100000 백만 미국 달러의 제곱으로 나눕니다. F=L/S²는 무차원 이차식입니다. 두 해의 길이는 각각 53주와 52주이며 이 적합이 주별 판매 과정이나 인과 기제를 복원하지는 않습니다.

F(α)=12Aα2−Bα+C,A=1.01485854726,B=1.03315266404,C=0.52704055967F(\alpha)=\tfrac12A\alpha^2-B\alpha+C,\quad A=1.01485854726,\quad B=1.03315266404,\quad C=0.52704055967

학습용 가정 범위 C구간=[0.95,1.01]을 추가합니다. 회사가 실제로 이 범위를 의무화했다는 뜻은 아닙니다. η=0.2, α₀=1의 정사영 경사법은 첫 시도 1.003658823356을 거쳐 네 번째 갱신에서 상한 1.01에 도달합니다.

α+=Π[0.95,1.01](α−ηF′(α)),F′(1.01)=−0.0081455313074,Gη(1.01)=0\alpha^+=\Pi_{[0.95,1.01]}(\alpha-\eta F'(\alpha)),\qquad F'(1.01)=-0.0081455313074,\qquad G_\eta(1.01)=0

최적점에서 일반 기울기는 음수이므로, 제약이 없다면 더 오른쪽으로 내려가려 합니다. 그러나 정사영 전 시도 1.01162910626148은 상한 밖이고, 정사영 후에는 1.01로 돌아옵니다. 법선 부분기울기 ν상한=0.0081455313074가 일반 기울기를 상쇄합니다.

상한·하한 쌍대 승수는 각각 νU≥0,νL≥0이며 라그랑지안은 F+νU(α−1.01)+νL(0.95−α)입니다. νU=0.0081455313074,νL=0의 쌍대 하한은 최솟값 0.001184971019563과 같습니다. 새 매출 최대화가 아니라 고정된 공시를 기술하는 선택 손실의 인증입니다.

Fit the actual FY2024 category vector z by α times the actual FY2023 vector x. Divide L=Σ(αxᵢ−zᵢ)²/10 by S², where S is 100000 million US dollars. FY2023 and FY2024 contain 53 and 52 weeks; this descriptive fit does not recover a weekly sales mechanism.

F(α)=12Aα2−Bα+C,A=1.01485854726,B=1.03315266404,C=0.52704055967F(\alpha)=\tfrac12A\alpha^2-B\alpha+C,\quad A=1.01485854726,\quad B=1.03315266404,\quad C=0.52704055967

Add the assumed learning interval [0.95,1.01]. With η=0.2 and α₀=1, the first trial is 1.003658823356 and the fourth projected update reaches 1.01. This is not a reported company restriction.

α+=Π[0.95,1.01](α−ηF′(α)),F′(1.01)=−0.0081455313074,Gη(1.01)=0\alpha^+=\Pi_{[0.95,1.01]}(\alpha-\eta F'(\alpha)),\qquad F'(1.01)=-0.0081455313074,\qquad G_\eta(1.01)=0

The smooth gradient still points toward larger α. The trial 1.01162910626148 lies outside the interval and projects back to 1.01. The upper normal-cone multiplier 0.0081455313074 balances the negative smooth gradient.

The Lagrangian F+νU(α−1.01)+νL(0.95−α), with nonnegative multipliers, has a dual lower bound equal to 0.001184971019563 at νU=0.0081455313074,νL=0. It certifies this fixed-data approximation problem, rather than maximizing actual sales.

기초Foundations

40. 실제 자료 실습: 무엇을 관측하고 무엇을 선택했나40. Actual-data lab: separate observations from chosen operations

국가·가구·기업 중 하나를 선택합니다. 국가에서는 τ와 원단위 기울기의 관계를, 가구에서는 비음수 정사영 전후의 근사와 원관측을, 기업에서는 일반 기울기와 정사영 고정점을 비교합니다. 숫자가 같은 화면에 있어도 그 생성 지위는 다릅니다.

국가의 실제 연간 GDP와 기업의 실제 공시는 고정 입력입니다. 벌점·정규화·계수 범위·알고리즘 보폭은 사람이 선택한 값입니다. 가구의 SVD 복원은 계산된 근사이며 원 측정값과 같은 것이 아닙니다.

표에서 원문 자료, 유도 계산, 가정이라는 구분을 먼저 읽고 단위를 확인하세요. 근접 연산의 최적해나 쌍대 간극 0은 지정한 수학 문제에 대한 답입니다. 실측 자체의 정확성·정책 효과·기업 전략의 성공까지 인증하지 않습니다.

Select country, household or company. Compare the penalty and physical GDP slope, observed versus projected household approximations, or the smooth gradient versus a projected fixed point.

Annual GDP and published company figures are fixed inputs. Penalties, normalization, coefficient bounds and steps are choices. Reconstructed household SVD values are derived approximations.

Read observation, derivation and assumption labels together with units. A proximal optimum or zero dual gap certifies the stated mathematical problem, not measurement validity, a policy effect or business success.

기초Foundations

41. 직접 풀기: 함수·정의역·단위·최적 조건의 네 장부41. A working method: track functions, domains, units and optimality

첫째 장부에는 원관측과 계산으로 만든 입력을 씁니다. 둘째에는 f와 g, 정의역, 볼록성·닫힘·매끄러움 가정을 씁니다. 셋째에는 원단위와 정규화, τ와 η의 역할을 씁니다. 넷째에는 검산 가능한 최적 조건과 수치 오차를 씁니다.

절댓값이면 세 구간을 나눠 subgradient 조건을 검산합니다. 닫힌 구간이면 내부·왼쪽·오른쪽의 법선 부호를 확인합니다. 쌍대 변수를 쓰면 정의역과 승수 부호를 먼저 확인하고, 원·쌍대가 각각 가능한지 확인한 뒤 유한한 간극을 계산합니다.

반복에서는 매번 원목적 F를 기록합니다. 선형화한 모형의 감소와 실제 F의 감소는 구별합니다. 경계 최적점에서 일반 기울기가 남는 것을 오류로 판단하지 말고 기울기 사상이나 KKT를 확인하세요. 반올림된 작은 사상은 정확한 0이나 엄밀한 오차 인증과 다릅니다.

Keep four records: observed and derived inputs; f,g and their domains and assumptions; physical units, normalization, penalty and step roles; and checkable optimality conditions with numerical error.

For absolute values, check all three subgradient regions. For intervals, verify interior and endpoint normal signs. Check primal and dual feasibility before forming a finite gap.

Track the original objective throughout iteration. A decrease in a local model differs from actual objective decrease. At constrained optima, check the mapping or KKT rather than demanding zero smooth gradient. Rounded small values are not exact certificates.

대학원 연결Graduate bridge

42. 선택 심화: 켤레에서 만드는 원·쌍대 간극42. Optional extension: construct a primal–dual gap from conjugates

미지수와 같은 공간의 u를 써서 minₓ[f(x)+g(x)]를 생각합니다. Fenchel 부등식을 각각 적용하면 모든 유한한 원 가능 x와 쌍대 가능 u에 아래 하한이 생깁니다. 여기서는 양쪽 켤레가 유한한 u만 비교합니다.

D(u)=−f∗(−u)−g∗(u)≤f(x)+g(x),gap⁡=f(x)+f∗(−u)+u⊤x+g(x)+g∗(u)−u⊤x≥0D(u)=-f^*(-u)-g^*(u)\le f(x)+g(x),\qquad\operatorname{gap}=f(x)+f^*(-u)+u^\top x+g(x)+g^*(u)-u^\top x\ge0

간극은 두 Fenchel 간극의 합입니다. 유한한 쌍에서 간극 0이면 −u∈∂f(x), u∈∂g(x)이므로 원·쌍대 최적성이 함께 인증됩니다. 반대로 상계와 하계가 가까워지지 않는다면 두 후보 중 무엇이 부정확한지 추가 검산해야 합니다.

약쌍대성에는 별도의 정칙성이 필요하지 않습니다. 그러나 최적값의 일치·쌍대 달성은 자동이 아닙니다. 유한 차원에서 proper 닫힌 볼록 f,g와 ri(dom f)∩ri(dom g)≠∅ 같은 적절한 자격 조건 아래, 원 최적값이 유한하면 이 표준 Fenchel 문제에 강쌍대성과 쌍대 달성을 보장할 수 있습니다. ri는 집합이 놓인 아핀 공간 안에서의 상대 내부입니다.

이 마지막 정리는 분리 정리를 사용하는 대학원 연결입니다. 20장의 제약 자격 조건과 마찬가지로 최적값·달성·승수 존재를 구별하며 사용합니다. 입문자는 실제 사례에서 원·쌍대 가능성과 값의 일치를 직접 검산하는 것부터 충분합니다.

For minₓ[f(x)+g(x)], apply Fenchel twice. Compare primal points with finite values and dual vectors u where both conjugates are finite.

D(u)=−f∗(−u)−g∗(u)≤f(x)+g(x),gap⁡=f(x)+f∗(−u)+u⊤x+g(x)+g∗(u)−u⊤x≥0D(u)=-f^*(-u)-g^*(u)\le f(x)+g(x),\qquad\operatorname{gap}=f(x)+f^*(-u)+u^\top x+g(x)+g^*(u)-u^\top x\ge0

The gap is a sum of two Fenchel gaps. A finite zero gap yields −u∈∂f(x),u∈∂g(x), certifying both optima.

Weak duality needs no extra regularity. Equality of optimal values and dual attainment do. In finite dimensions, proper closed convex f,g, a qualification such as ri(dom f)∩ri(dom g)≠∅, and a finite primal optimal value give standard Fenchel strong duality and dual attainment. Relative interior is taken in the affine hull.

This is an optional separation-theorem bridge. Keep value equality, attainment and multiplier existence separate. Beginners can first verify feasible finite certificates directly in the cases.

기초Foundations

43. 국가·가구·기업의 상세 케이스 스터디43. Detailed country, household and company case studies

국가 사례 · 같은 GDP 자료에서 기울기가 정확히 0이 되는 이유

2014~2024년 한국의 실제 GDP/명 11개를 다시 사용합니다. 실제 값은 바꾸지 않습니다. 이번 질문은 “경제가 어떻게 변했나?”에 더해 “적합할 때 기울기에 벌점을 주면 선택한 계수가 어떻게 달라지나?”입니다. 벌점은 이 장의 가정한 모형 선택이며 실제 정책이나 관측된 경제 변화가 아닙니다.

실제 자료의 일부와 고정한 기준 적합
연도실제 GDP/명 (2015 USD/명)벌점 없는 적합 직선
201429,470.67329929,517.710136
201933,496.31138233,290.089779
202033,215.92989334,044.565707
202437,048.42640037,062.469421

t=연도−2019(년), L(a,b)=Σ(a+bt−y)²/22입니다. θ₁=a/(1,000 USD/명), v=b/(100 USD/명/년), F=L/(1,000 USD/명)²로 무차원화합니다. 중심화한 연도들의 합이 0이라 절편과 기울기 손실이 분리됩니다. a*≈33,290.089779, b*=754.475928535이고 s=b*/100=7.5447592853475입니다.

min⁡θ1,vF(θ1,v)+τ∣v∣,τ≥0;θ1,τ=a∗/1000,Pτ(v)=F∗+h2(v−s)2+τ∣v∣,h=0.1\min_{\theta_1,v}F(\theta_1,v)+\tau|v|,\quad\tau\ge0;\qquad\theta_{1,\tau}=a_*/1000,\quad P_\tau(v)=F_*+\frac h2(v-s)^2+\tau|v|,\quad h=0.1

1. 0의 왼쪽과 오른쪽을 나눠 풀기

v>0이면 미분은 h(v−s)+τ이고, v<0이면 h(v−s)−τ입니다. 0에서는 절댓값이 미분 가능하지 않으므로 억지로 도함수를 하나 정하지 않습니다. 대신 ∂|0|=[−1,1]을 써서 양쪽 기울기가 최솟값을 감싸는지 확인합니다.

vτ=soft⁡(s,τ/h)=sign⁡(s)max⁡(∣s∣−τ/h,0),0∈h(vτ−s)+τ∂∣vτ∣v_\tau=\operatorname{soft}(s,\tau/h)=\operatorname{sign}(s)\max(|s|-\tau/h,0),\qquad0\in h(v_\tau-s)+\tau\partial|v_\tau|

여기서는 s>0이므로 vτ=max(s−10τ,0), 원래 단위 기울기는 bτ=100vτ입니다. 임계값 τ₀=hs=0.75447592853475부터 정확히 0입니다. 곡선의 가로축은 연도가 아니라 선택한 τ이고, 실제 GDP는 모든 점에서 동일합니다.

정규화 벌점 경로 · 관측 GDP를 바꾼 표가 아님
선택 τ적합 bτ (2015 USD/명/년)벌점 포함 목적값쌍대 간격
0.00000000000000754.4759285350.0431440280 (정확 연산)
0.10000000000000654.4759285350.7476199560 (정확 연산)
0.50000000000000254.4759285352.5655236700 (정확 연산)
0.750000000000004.4759285352.8892134920 (정확 연산)
0.754475928534750.0000000002.8893136610 (정확 연산)
1.000000000000000.0000000002.8893136610 (정확 연산)
먼저 생각한 뒤 풀이 보기: τ=0.1에서 직접 손으로 풀어 보세요.

문턱 τ/h=1입니다. s가 1보다 크므로 v=6.5447592853475이고 b=654.47592853475입니다. 도함수 0.1(v−s)+0.1은 0입니다. 원래 단위에서는 기울기가 100만큼 줄지만, 자료 속 각 연도 GDP가 100 줄어든 것은 아닙니다.

먼저 생각한 뒤 풀이 보기: 자료 단위를 달리 쓰면서 같은 숫자 τ를 넣어도 같은 적합인가요?

그렇지 않습니다. 벌점을 주는 좌표 v와 손실의 정규화가 달라지면 같은 τ의 의미도 달라집니다. 이 사례는 정한 척도를 CSV에 남깁니다. 또한 한 번의 soft 연산으로 정확한 해를 얻는 것은 중심화·대각 이차손실 구조 덕분입니다. 상관된 여러 설명변수의 일반 Lasso가 한 번에 풀린다는 뜻은 아닙니다.

2. 아래와 위가 만나면 최적임을 인증할 수 있다

|u|≤τ이면 uv≤τ|v|입니다. 이 부등식을 벌점 대신 넣고 v에 대해 이차식을 최소화하면 모든 원문제 값보다 작거나 같은 쌍대 하한을 얻습니다. 여기서 u는 부등식 제약의 양수 승수와 달리 음수도 가능한 스칼라입니다.

Dτ(u)=F∗+su−u22h,∣u∣≤τ;uτ=clip⁡(hs,−τ,τ),Pτ(vτ)=Dτ(uτ)D_\tau(u)=F_*+su-\frac{u^2}{2h},\quad|u|\le\tau;\qquad u_\tau=\operatorname{clip}(hs,-\tau,\tau),\quad P_\tau(v_\tau)=D_\tau(u_\tau)
Pτ(v)−Dτ(u)=h2(v−s+uh)2+τ∣v∣−uv≥0P_\tau(v)-D_\tau(u)=\frac h2\left(v-s+\frac uh\right)^2+\tau|v|-uv\ge0
먼저 생각한 뒤 풀이 보기: τ=0.1의 쌍대 값은 무엇을 확인해 주나요?

u=0.1은 |u|≤τ를 만족합니다. 앞에서 얻은 v=s−1을 넣으면 완전제곱 항은 0이고 τ|v|−uv도 0입니다. 어떤 v도 이 하한보다 낮은 값을 만들 수 없는데 현재 원문제 값이 하한과 같으므로 최적입니다. 이 계산 인증은 경제 예측의 정확성 인증과 다릅니다.

자료: World Bank · 실제 한국 GDP/명 11개 · 실제·가공 구분 CSV

가구 사례 · 음수로 복원된 전력량을 어떻게 다룰까?

프랑스 한 가구의 2006년 12월 17일 UCI 자료에서 주방·세탁실 두 계량 채널의 1,440개 실제 분별 전력량(Wh)을 사용합니다. 두 채널은 같은 단위입니다. 실제 기록은 음수가 아닙니다. 17장의 중심화 SVD rank-1 근사를 원래 단위로 복원했을 때 생긴 음수는 근사 모형의 산출값이며 센서의 새 측정값이 아닙니다.

실제 (0,0)인 756개 기록의 기존 모형 복원값은 z≈(0.583232474307, −0.157652462033) Wh입니다. 이 저장된 가공값에서 가장 가까운 비음수 벡터를 찾습니다. 가공 CSV의 유한 소수를 입력으로 취급하며 원래 SVD의 표시 정밀도도 별도로 남깁니다.

C=R+2,ΠC(z)=arg⁡min⁡v∈C12∥v−z∥22,(ΠC(z))j=max⁡(zj,0)C=\mathbb R_+^2,\qquad\Pi_C(z)=\arg\min_{v\in C}\frac12\|v-z\|_2^2,\qquad(\Pi_C(z))_j=\max(z_j,0)

1. 두 좌표를 각각 풀어 결합하기

zj≥0이면 vj=zj가 허용되며 거리 0입니다. zj<0이면 vj≥0 범위에서 (vj−zj)²는 0에서 가장 작습니다. 목적함수가 두 좌표의 합이고 제약도 좌표별로 분리되므로 결과를 결합할 수 있습니다. 목표까지의 거리 제곱은 Wh² 단위입니다.

756개 동일 기록의 실제값과 서로 다른 두 가공 단계
단계주방 (Wh)세탁실 (Wh)의미
실제 기록00바꾸지 않은 관측
기존 SVD 복원0.583232474307-0.157652462033원자료에서 계산한 근사
비음수 사영0.5832324743070근사값에 추가한 제약 연산

그림의 점은 76종의 실측 쌍에서 계산된 기존 복원값이며 같은 쌍의 빈도를 보관합니다. 음수 세탁실 좌표를 y=0으로 옮기고 양수 좌표는 그대로 둡니다. 축은 같은 Wh 척도로 비교하며, 원자료와 가공값을 구별해 읽습니다.

먼저 생각한 뒤 풀이 보기: 사영 뒤 (0.583232…,0)은 원래의 (0,0)을 복원한 것인가요?

아닙니다. 사영은 실제값으로 되돌리는 연산이 아니라 z에 가장 가까운 허용점을 찾는 연산입니다. 주방 값은 이미 양수라 남아 있습니다. 원측정 두 값은 CSV의 reported 열에 계속 0으로 보존됩니다.

먼저 생각한 뒤 풀이 보기: 이 연산은 proximal 연산과 어떤 관계인가요?
IC(v)={0v∈C,+∞v∉C,prox⁡ηIC(z)=ΠC(z),η>0I_C(v)=\begin{cases}0&v\in C,\\+\infty&v\notin C,\end{cases}\qquad\operatorname{prox}_{\eta I_C}(z)=\Pi_C(z),\quad\eta>0

이 지시함수는 집합 밖에서 0이 되는 확률의 지시변수와 다릅니다. 집합 밖에 +∞를 부여해 제약을 목적함수에 넣습니다. 두 Wh 좌표를 1 Wh로 나누면 통상적인 무차원 prox 정의로도 같은 성분별 사영을 얻습니다. 이 특별한 지시함수의 사영은 η>0의 크기에 의존하지 않습니다.

먼저 생각한 뒤 풀이 보기: 새 점이 정말 가장 가까운 비음수 점인지 어떻게 검산하나요?
p=max⁡(z,0),ν=p−z≥0,p≥0,νjpj=0,p−z−ν=0p=\max(z,0),\quad\nu=p-z\ge0,\quad p\ge0,\quad\nu_jp_j=0,\quad p-z-\nu=0

제약을 −pj≤0로 쓰면 이 식들이 정지성·가능성·상보성입니다. 이차목적은 엄격히 볼록하므로 유일한 최적점입니다. 실제 비음수 관측 x에 대해서도 ‖p−x‖²≤‖z−x‖²를 각 기록에서 직접 확인할 수 있습니다. 이는 선택한 유클리드 손실에 대한 성질입니다.

1,440개 기록에서 계산한 추가 사영의 영향
검사값해석
음수 근사였던 기록756실제 음수 센서값의 수가 아님
원래 근사와 실측의 제곱오차 합63,278.909359680 Wh²기존 SVD 가공값 기준
사영 후 실측의 제곱오차 합63,260.119509798 Wh²같은 실측·같은 좌표 척도
사영으로 이동한 거리 제곱 합18.789849881 Wh²새 모형 단계의 변화량
먼저 생각한 뒤 풀이 보기: 그러면 원래 SVD rank-1 문제도 더 잘 푼 것인가요?

그 결론은 성립하지 않습니다. 처음 문제는 중심화 행렬의 rank-1 제약이었고, 지금은 복원값 각각에 대한 비음수 제약입니다. 성분별 자르기는 원평균을 다시 뺀 행렬의 rank-1 구조를 보장하지 않습니다. 실제값까지의 오차가 줄어도 rank 제약의 허용집합을 벗어날 수 있습니다. 비음수 저차원 근사를 원한다면 그 두 제약을 포함한 별도의 문제를 정의해야 합니다.

자료: Hebrail·Berard · UCI 실제 가구 자료 (CC BY 4.0) · 실제·가공 구분 CSV

기업 사례 · 경계에서 일반 기울기는 0이 아닌데 왜 멈출까?

Apple FY2023·FY2024의 다섯 품목 실제 순매출을 x,z로 둡니다. 단위는 백만 명목 USD이고 이익이 아닙니다. FY2023은 53주, FY2024는 52주입니다. αx로 z를 기술적으로 맞추며, 교육용으로 α∈[0.95,1.01]을 가정합니다. 이 범위는 회사의 실제 정책·성장 제한이 아닙니다.

실제 공시에서 선택한 다섯 품목
품목FY2023 (백만 USD)FY2024 (백만 USD)
iPhone200,583201,183
Mac29,35729,984
iPad28,30026,694
웨어러블·홈·액세서리39,84537,005
서비스85,20096,169

F(α)=Σ(αxi−zi)²/[10×(100,000백만 USD)²]로 무차원화합니다. 여기서 α는 무차원입니다. 같은 변수 이름 a를 다른 장의 절편과 혼동하지 않도록 이 사례의 이차식 계수를 A,B,C₀로 씁니다.

F(α)=A2α2−Bα+C0,A=1.01485854726,B=1.03315266404,C0=∑izi210(100000)2F(\alpha)=\frac A2\alpha^2-B\alpha+C_0,\quad A=1.01485854726,\quad B=1.03315266404,\quad C_0=\frac{\sum_i z_i^2}{10(100000)^2}

제약 없는 최솟값 αu=B/A≈1.018026272557은 상한을 넘습니다. 제약 최적점은 α*=1.01이며 F′(α*)=−0.0081455313074입니다. 오른쪽으로 더 가면 손실이 줄지만 허용되지 않는 상황입니다.

1. 전진한 다음 허용 구간으로 사영하기

αk+1=Π[ℓ,u](αk−ηF′(αk)),ℓ=0.95, u=1.01, η=0.2, α0=1\alpha_{k+1}=\Pi_{[\ell,u]}\bigl(\alpha_k-\eta F^{\prime}(\alpha_k)\bigr),\quad\ell=0.95,\ u=1.01,\ \eta=0.2,\ \alpha_0=1

η≤1/A이므로 이 볼록 이차손실에서 안전한 고정 보폭 조건을 만족합니다. 첫 전진값은 1.003658823356입니다. 이 예에서는 네 번 갱신한 α₄가 상한에 도달합니다. 이 유한 도달 현상은 이 자료·한 변수·출발점·보폭의 결과이며 일반 prox 반복이 항상 네 번 안에 끝난다는 법칙이 아닙니다.

실제 자료로 계산한 projected GD · 회계 연도의 흐름이 아님
k허용 αk일반 F′(αk)갱신 전 전진값원문제−쌍대 하한
01.000000000000-0.0182941167801.0036588233560.000182941168
11.003658823356-0.0145809286241.0065750090810.000092460244
21.006575009081-0.0116214126161.0088992916040.000039803233
31.008899291604-0.0092625946311.0107518105300.000010195416
41.010000000000-0.0081455313071.0116291062610.000000000000
51.010000000000-0.0081455313071.0116291062610.000000000000
먼저 생각한 뒤 풀이 보기: 최적점의 전진값과 gradient mapping을 직접 구하세요.
α∗−0.2F′(α∗)=1.01162910626148,Gη(α)=α−ΠC(α−ηF′(α))η\alpha_*-0.2F^{\prime}(\alpha_*)=1.01162910626148,\qquad G_\eta(\alpha)=\frac{\alpha-\Pi_C(\alpha-\eta F^{\prime}(\alpha))}{\eta}

전진값은 상한 밖이므로 사영 후 1.01입니다. 따라서 Gη(α*)=0입니다. 일반 기울기가 아니라 제약을 반영한 갱신 잔차가 0입니다. α*는 proxηI_C(α*−ηF′(α*))의 고정점입니다.

2. 쌍대 하한으로 멈춤을 확인하기

gU(α)=α−u≤0, gL(α)=ℓ−α≤0로 쓰고 νU,νL≥0를 둡니다. 원변수 α에 대해 라그랑지안을 최소화해 하한 d를 구합니다. 승수까지 함께 최소화하는 문제가 아닙니다. 쌍대 문제는 이 하한을 최대화합니다.

L=F(α)+νU(α−u)+νL(ℓ−α),d(νU,νL)=C0−(B−νU+νL)22A−νUu+νLℓ\mathcal L=F(\alpha)+\nu_U(\alpha-u)+\nu_L(\ell-\alpha),\qquad d(\nu_U,\nu_L)=C_0-\frac{(B-\nu_U+\nu_L)^2}{2A}-\nu_Uu+\nu_L\ell

임의의 쌍대 가능 승수에서 d≤F(α*)≤F(αk)입니다. 표에서는 νUk=max(0,−F′(αk)), νLk=max(0,F′(αk))를 골라 정지성의 원변수 최소점이 현재 αk가 되게 합니다. 내부점에서는 상보성이 아직 성립하지 않아 하한과 차이가 있습니다.

F(αk)−d(νUk,νLk)=νUk(u−αk)+νLk(αk−ℓ)≥0F(\alpha_k)-d(\nu_{Uk},\nu_{Lk})=\nu_{Uk}(u-\alpha_k)+\nu_{Lk}(\alpha_k-\ell)\ge0
먼저 생각한 뒤 풀이 보기: 상한에서 0 간격이 나오는 이유를 설명해 보세요.

νU*=0.0081455313074, νL*=0이면 F′(α*)+νU*−νL*=0이고 상보성도 만족합니다. 따라서 d(ν*)=F(1.01)=0.001184971020입니다. 모든 허용 α에 대한 하한과 현재 목적값이 같아 전역 최적임을 인증합니다. g≤0에서 음수 승수를 넣으면 같은 하한 논리를 쓸 수 없습니다.

먼저 생각한 뒤 풀이 보기: 보통 GD 곡선이 상한을 넘어서 더 낮은 손실에 도달하면 더 좋은 해인가요?

그 점은 이 제약 문제의 허용해가 아닙니다. 무제약 최소점과 제약 최소점은 다른 문제의 답입니다. 또한 선택한 적합 오차가 작아도 FY2023·2024의 주수 차이가 사라지거나 다음 해 매출·기업 가치를 예측한 것은 아닙니다. 실제 공시값과 가정한 알고리즘 경로를 분리합니다.

자료: SEC EDGAR · Apple 2024 Form 10-K 실제 순매출 · 실제·가공 구분 CSV

벌점 경로·정확 쌍대 인증 CSV · 사영 경사하강·쌍대 간격 CSV · 원자료·가정·가공·SHA-256 기록

Country case · Why a fitted slope becomes exactly zero with unchanged GDP data

Reuse eleven actual Korean GDP/person records, 2014–2024. No actual value changes. Alongside asking how the economy changed, ask how a chosen slope penalty changes a fitted coefficient. The penalty is an assumed modeling choice, not an actual policy or an observed economic change.

Selected actual observations and a fixed baseline fit
YearActual GDP/person (2015 USD/person)Unpenalized fitted line
201429,470.67329929,517.710136
201933,496.31138233,290.089779
202033,215.92989334,044.565707
202437,048.42640037,062.469421

Let t=year−2019 in years and L(a, b)=Σ(a+bt−y)²/22. Use dimensionless θ₁=a/(1000 USD/person), v=b/(100 USD/person/year), F=L/(1000 USD/person)². Centered years sum to zero, separating intercept and slope losses. Here a*≈33,290.089779, b*=754.475928535 and s=b*/100=7.5447592853475.

min⁡θ1,vF(θ1,v)+τ∣v∣,τ≥0;θ1,τ=a∗/1000,Pτ(v)=F∗+h2(v−s)2+τ∣v∣,h=0.1\min_{\theta_1,v}F(\theta_1,v)+\tau|v|,\quad\tau\ge0;\qquad\theta_{1,\tau}=a_*/1000,\quad P_\tau(v)=F_*+\frac h2(v-s)^2+\tau|v|,\quad h=0.1

1. Solve separately on either side of zero

For v>0 the derivative is h(v−s)+τ; for v<0 it is h(v−s)−τ. Absolute value is not differentiable at zero. Use ∂|0|=[−1,1], rather than assigning an ordinary derivative, to test whether the two sides surround a minimum.

vτ=soft⁡(s,τ/h)=sign⁡(s)max⁡(∣s∣−τ/h,0),0∈h(vτ−s)+τ∂∣vτ∣v_\tau=\operatorname{soft}(s,\tau/h)=\operatorname{sign}(s)\max(|s|-\tau/h,0),\qquad0\in h(v_\tau-s)+\tau\partial|v_\tau|

Since s>0, vτ=max(s−10τ,0) and the physical-unit slope is bτ=100 vτ. It is exactly zero at and above τ₀=hs=0.75447592853475. The plot’s horizontal coordinate is chosen τ, not calendar year. Actual GDP data are identical at every point.

Normalized penalty path · not modified GDP observations
Chosen τFitted bτ (2015 USD/person/year)Penalized objectiveDuality gap
0.00000000000000754.4759285350.0431440280 (exact arithmetic)
0.10000000000000654.4759285350.7476199560 (exact arithmetic)
0.50000000000000254.4759285352.5655236700 (exact arithmetic)
0.750000000000004.4759285352.8892134920 (exact arithmetic)
0.754475928534750.0000000002.8893136610 (exact arithmetic)
1.000000000000000.0000000002.8893136610 (exact arithmetic)
Think first, then reveal: Work out τ=0.1 by hand.

The threshold τ/h is one. As s>1, v=6.5447592853475 and b=654.47592853475. The derivative 0.1(v−s)+0.1 equals zero. The physical fitted slope shrinks by 100; individual observed annual GDP values have not fallen by 100.

Think first, then reveal: Does the same numeric τ give the same fit after changing coordinate units?

No. Changing the penalized coordinate or loss normalization changes the meaning of τ. The CSV retains our selected scales. A single soft-threshold calculation is exact here because centering gives a separable diagonal quadratic. It does not solve a general Lasso with correlated predictors in one step.

2. Matching upper and lower values certify optimality

If |u|≤τ, then uv≤τ|v|. Substitute this inequality for the penalty and minimize the resulting quadratic over v to obtain a dual lower bound. This scalar u can be negative; it differs from a nonnegative multiplier of an inequality constraint.

Dτ(u)=F∗+su−u22h,∣u∣≤τ;uτ=clip⁡(hs,−τ,τ),Pτ(vτ)=Dτ(uτ)D_\tau(u)=F_*+su-\frac{u^2}{2h},\quad|u|\le\tau;\qquad u_\tau=\operatorname{clip}(hs,-\tau,\tau),\quad P_\tau(v_\tau)=D_\tau(u_\tau)
Pτ(v)−Dτ(u)=h2(v−s+uh)2+τ∣v∣−uv≥0P_\tau(v)-D_\tau(u)=\frac h2\left(v-s+\frac uh\right)^2+\tau|v|-uv\ge0
Think first, then reveal: What does the dual value certify at τ=0.1?

Choose feasible u=0.1 and the fitted v=s−1. The completed-square term and τ|v|−uv both vanish. Every candidate objective is at least the lower bound, and the current candidate attains it, proving optimality. This is a computational certificate, not a certificate of economic forecasting accuracy.

Source: World Bank · eleven actual Korean GDP/person observations · CSV distinguishing actual and derived values

Household case · What should happen to a negative reconstructed energy value?

Use 1440 actual minute records for kitchen and laundry energy, in Wh, from one French household on 17 December 2006. Both coordinates have the same units. Actual readings are nonnegative. Negativity in Chapter 17’s mean-restored centered rank-one SVD approximation belongs to a derived model output, not a new sensor measurement.

For 756 records whose actual pair is (0,0), the stored model reconstruction is approximately z=(0.583232474307, −0.157652462033) Wh. Find the nearest nonnegative vector to this stored approximation. Treat its retained finite decimals as inputs, while separately recording the original SVD display precision.

C=R+2,ΠC(z)=arg⁡min⁡v∈C12∥v−z∥22,(ΠC(z))j=max⁡(zj,0)C=\mathbb R_+^2,\qquad\Pi_C(z)=\arg\min_{v\in C}\frac12\|v-z\|_2^2,\qquad(\Pi_C(z))_j=\max(z_j,0)

1. Solve the coordinates separately and combine them

If zj≥0, setting vj=zj is feasible and has zero distance. If zj<0, the minimum of (vj−zj)² over vj≥0 is at zero. The objective is a sum and the constraints separate by coordinate, so combine these scalar solutions. Squared distances have Wh² units.

Actual readings and two distinct derived stages for 756 identical records
StageKitchen (Wh)Laundry (Wh)Meaning
Actual record00Unchanged observation
Stored SVD restoration0.583232474307-0.157652462033Approximation computed from data
Orthant projection0.5832324743070Additional constraint applied to approximation

Plotted points are stored reconstructions derived from 76 distinct actual pairs; their frequencies are retained. Negative laundry coordinates move to y=0, while positive coordinates stay. Compare equal Wh scales and distinguish actual records from derived values.

Think first, then reveal: Does the projected (0.583232…,0) recover the original (0,0)?

No. Projection finds the feasible point nearest z, rather than returning to the actual observation. The positive kitchen approximation remains. Both actual readings remain zero in the CSV’s reported columns.

Think first, then reveal: How is this a proximal operation?
IC(v)={0v∈C,+∞v∉C,prox⁡ηIC(z)=ΠC(z),η>0I_C(v)=\begin{cases}0&v\in C,\\+\infty&v\notin C,\end{cases}\qquad\operatorname{prox}_{\eta I_C}(z)=\Pi_C(z),\quad\eta>0

This indicator differs from a probability indicator taking zero outside a set. Assigning +∞ outside C encodes the constraint in the objective. Dividing both Wh coordinates by one Wh also gives the conventional dimensionless prox definition with the same coordinatewise projection. For this particular indicator, the projection is independent of the positive value η.

Think first, then reveal: How can you check that this is the nearest nonnegative point?
p=max⁡(z,0),ν=p−z≥0,p≥0,νjpj=0,p−z−ν=0p=\max(z,0),\quad\nu=p-z\ge0,\quad p\ge0,\quad\nu_jp_j=0,\quad p-z-\nu=0

With constraints −pj≤0, these are stationarity, feasibility and complementary slackness. Strict convexity makes this the unique optimum. For every actual nonnegative observation x we also directly check ‖p−x‖²≤‖z−x‖². This property concerns the chosen Euclidean loss.

Calculated impact of the additional projection over 1440 records
CheckValueInterpretation
Records with negative approximation756Not a count of negative sensor readings
Original approximation squared error63,278.909359680 Wh²Stored SVD values versus actual records
Projected approximation squared error63,260.119509798 Wh²Same records and coordinate scales
Total squared projection movement18.789849881 Wh²Change introduced by the added model stage
Think first, then reveal: Does this also solve the original rank-one SVD problem better?

No. The original constraint was rank one for a centered matrix; the current constraint is nonnegativity of each restored approximation. Coordinatewise clipping need not preserve rank one after subtracting the original mean. Smaller error to observations can accompany leaving the rank-constrained feasible set. Nonnegative low-rank approximation requires a separately specified problem with both constraints.

Source: Hebrail and Berard · UCI actual household records (CC BY 4.0) · CSV distinguishing actual and derived values

Company case · Why stop at a boundary when the ordinary gradient is nonzero?

Let x, z be actual Apple category net sales for FY 2023 and FY 2024. Units are million nominal USD, not profit. FY 2023 had 53 weeks; FY 2024 had 52. Fit the descriptive reference αx to z and assume the teaching box α∈[0.95,1.01]. These bounds are not actual company policy or a growth restriction.

Five categories selected from actual filings
CategoryFY 2023 (million USD)FY 2024 (million USD)
iPhone200,583201,183
Mac29,35729,984
iPad28,30026,694
Wearables, Home and Accessories39,84537,005
Services85,20096,169

Use dimensionless F(α)=Σ(αxi−zi)²/[10×(100000 million USD)²]. α is dimensionless. Name this case’s quadratic coefficients A, B, C₀ to distinguish them from another chapter’s intercept a.

F(α)=A2α2−Bα+C0,A=1.01485854726,B=1.03315266404,C0=∑izi210(100000)2F(\alpha)=\frac A2\alpha^2-B\alpha+C_0,\quad A=1.01485854726,\quad B=1.03315266404,\quad C_0=\frac{\sum_i z_i^2}{10(100000)^2}

The unconstrained minimizer αu=B/A≈1.018026272557 exceeds the upper bound. The constrained optimum is α*=1.01 with F′(α*)=−0.0081455313074. Moving farther right lowers the loss but is infeasible.

1. Take a forward step, then project into the permitted interval

αk+1=Π[ℓ,u](αk−ηF′(αk)),ℓ=0.95, u=1.01, η=0.2, α0=1\alpha_{k+1}=\Pi_{[\ell,u]}\bigl(\alpha_k-\eta F^{\prime}(\alpha_k)\bigr),\quad\ell=0.95,\ u=1.01,\ \eta=0.2,\ \alpha_0=1

η≤1/A satisfies a sufficient fixed-step condition for this convex quadratic. The first forward trial is 1.003658823356. Here α₄ reaches the cap after four updates. Finite arrival follows from this dataset, scalar geometry, starting point and step; it is not a general four-iteration guarantee for proximal algorithms.

Projected GD computed from actual data · not a fiscal-time sequence
kFeasible αkOrdinary F′(αk)Forward trial before clippingPrimal minus dual bound
01.000000000000-0.0182941167801.0036588233560.000182941168
11.003658823356-0.0145809286241.0065750090810.000092460244
21.006575009081-0.0116214126161.0088992916040.000039803233
31.008899291604-0.0092625946311.0107518105300.000010195416
41.010000000000-0.0081455313071.0116291062610.000000000000
51.010000000000-0.0081455313071.0116291062610.000000000000
Think first, then reveal: Compute the forward trial and gradient mapping at the optimum.
α∗−0.2F′(α∗)=1.01162910626148,Gη(α)=α−ΠC(α−ηF′(α))η\alpha_*-0.2F^{\prime}(\alpha_*)=1.01162910626148,\qquad G_\eta(\alpha)=\frac{\alpha-\Pi_C(\alpha-\eta F^{\prime}(\alpha))}{\eta}

The trial exceeds the cap, so projection returns 1.01. Thus Gη(α*)=0: the constraint-aware update residual vanishes while the ordinary gradient does not. α* is a fixed point of proxηI_C(α*−ηF′(α*)).

2. Certify stopping with a dual lower bound

Write gU(α)=α−u≤0 and gL(α)=ℓ−α≤0, with νU, νL≥0. Minimize the Lagrangian over the primal variable α to get a lower bound d. This is not simultaneous minimization over the multipliers. The dual problem maximizes the lower bound.

L=F(α)+νU(α−u)+νL(ℓ−α),d(νU,νL)=C0−(B−νU+νL)22A−νUu+νLℓ\mathcal L=F(\alpha)+\nu_U(\alpha-u)+\nu_L(\ell-\alpha),\qquad d(\nu_U,\nu_L)=C_0-\frac{(B-\nu_U+\nu_L)^2}{2A}-\nu_Uu+\nu_L\ell

Every dual-feasible multiplier gives d≤F(α*)≤F(αk). The table uses νUk=max(0,−F′(αk)) and νLk=max(0, F′(αk)), making αk the minimizer of its Lagrangian over α. Interior iterates still violate complementary slackness, leaving a positive gap.

F(αk)−d(νUk,νLk)=νUk(u−αk)+νLk(αk−ℓ)≥0F(\alpha_k)-d(\nu_{Uk},\nu_{Lk})=\nu_{Uk}(u-\alpha_k)+\nu_{Lk}(\alpha_k-\ell)\ge0
Think first, then reveal: Why is the gap zero at the upper bound?

Set νU*=0.0081455313074 and νL*=0. Stationarity F′(α*)+νU*−νL*=0 and complementary slackness both hold. Then d(ν*)=F(1.01)=0.001184971020. A bound valid for every feasible candidate matches the current objective, certifying global optimality. Negative inequality multipliers would invalidate this lower-bound argument for g≤0.

Think first, then reveal: Is ordinary GD better if it crosses the cap and reaches a lower loss?

That point is infeasible for the chosen constrained problem. Unconstrained and constrained optima answer different problems. A small descriptive fitting error does not remove unequal fiscal weeks or forecast next-year sales or valuation. Separate the actual filings from the assumed algorithmic path.

Source: SEC EDGAR · Apple 2024 Form 10-K actual net sales · CSV distinguishing actual and derived values

Penalty path and exact dual certificates CSV · Projected GD and duality gaps CSV · Actual inputs, assumptions, processing and SHA-256

기초Foundations

44. 읽기·영상·다음 장으로 이어 가기44. Reading, embedded videos and the next chapter

Parikh와 Boyd의 Proximal Algorithms에서는 정의·정사영·soft thresholding·근접 경사법을 읽으세요. 모든 수렴 결론을 한꺼번에 외우기보다 우리 장의 f와 g, 보폭 조건과 같은지 표를 만들어 대조하면 좋습니다.

Boyd·Duchi·Pilanci·Vandenberghe의 Subgradients는 지지선 정의와 최적성, 합 규칙을 확장합니다. Boyd와 Vandenberghe의 Convex Optimization 3장은 Jensen과 켤레를, 5장은 쌍대성의 조건을 보완합니다.

MIT의 Jensen 강의 노트는 확률의 기대값과 볼록성의 만남을 보여 줍니다. 아래 사례 자료에 포함된 영상은 본문 안에서 재생합니다. 24장에서는 측도·적분으로 5절의 적분 가능 조건과 극한 교환을 더 정확히 읽습니다.

Python · R · 공개 원자료·증명 계산·출처

Read definitions, projection, soft thresholding and proximal gradient in Parikh and Boyd, Proximal Algorithms. Match each result to our f,g and step assumptions.

The official Subgradients notes extend support, optimality and sum rules. Chapters 3 and 5 of Convex Optimization cover Jensen, conjugates and duality.

The MIT Jensen lecture notes connect convexity with expectation. Case enrichment includes videos played within the chapter. Chapter 24 develops the measure and integration assumptions behind Section 5.

Python · R · Public inputs, proved calculations and sources

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.

python math23-reproduce.py
Rscript --vanilla --encoding=UTF-8 math23-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.

영상·학자·함께 읽기Videos, thinkers and guided reading

본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.

Lasso·ridge와 회귀 모형의 선택Regression Analysis (cont.): ridge and Lasso

MIT OpenCourseWare 18.642 · Lecture 11

본문에서 공식 강의를 보고 계수에 벌점을 주는 모형의 의미를 살펴봅니다. 국가 사례에서는 자료를 고정한 채 τ만 바꿔 보세요. prox의 세부 알고리즘은 이 장의 유도와 함께 읽습니다.Watch the official lecture in this chapter and examine coefficient penalties. In the country case, keep observations fixed while changing τ; pair the lecture with this chapter’s proximal derivations.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 벌점을 크게 해서 기울기가 0이 되면 경제가 실제로 멈춘 것인가요?Does a zero slope under a larger penalty mean the real economy stopped?

생각을 점검하는 해설Check your reasoning

아닙니다. 선택한 적합 기준이 계수를 0으로 만든 것입니다. 실제 관측은 그대로이며, 계수 축척·손실 정규화·τ를 함께 기록해야 해석할 수 있습니다.No. The selected fitting criterion sets a coefficient to zero while observations remain unchanged. Interpretation requires the coordinate scale, loss normalization and τ.

장자크 모로 · 볼록해석과 매끈하지 않은 역학Jean-Jacques Moreau: convex analysis and nonsmooth mechanics

Université de Montpellier · research seminar introduction

대학 소개에서 모로의 볼록해석·비정규 역학 연구를 읽습니다. 접촉·허용집합처럼 경계가 있는 문제에서 미분만으로 부족할 때가 있음을 생각해 보세요.Read the university account of Moreau’s work in convex analysis and nonsmooth mechanics. Consider why derivatives alone may be insufficient for boundaries, contact and feasible sets.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 가구 사례에서 미분 가능한 거리 제곱 외에 어떤 정보가 필요한가요?What is needed beyond the differentiable squared distance in the household case?

생각을 점검하는 해설Check your reasoning

비음수 허용집합의 정보가 필요합니다. 집합의 지시함수와 사영은 그 제약을 연산에 포함합니다. 경계에 놓인 최적점은 제약 없는 미분 0과 다르게 판정할 수 있습니다.The nonnegative feasible set matters. Its indicator and projection encode the constraint; boundary optimality differs from setting an unconstrained derivative to zero.

prox 정의에서 사영·soft threshold·proximal gradient까지From proximal definitions to projection, soft thresholding and proximal gradient

Neal Parikh · Stephen Boyd · Proximal Algorithms

§1.1~1.2, §4.2, §6.5.2(인쇄 124~126, 148~151, 188쪽)를 차례로 읽습니다. 저자 정오표도 함께 열어 보세요. 정의·지시함수·분할의 조건을 확인합니다.Read §§1.1–1.2, 4.2 and 6.5.2 (printed pp.124–126, 148–151, 188), alongside the authors’ errata. Track assumptions for definitions, indicators and splitting.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading proxηg의 인수는 현재 점인가요, 경사 전진점인가요?In proximal gradient, what enters proxηg: the current point or a forward gradient trial?

생각을 점검하는 해설Check your reasoning

x−η∇f(x)를 넣습니다. 가구 사례는 주어진 z의 직접 사영이고, 기업 사례는 먼저 손실의 기울기로 전진한 뒤 box 지시함수의 prox를 적용합니다.Use x−η∇f(x). The household directly projects a given z; the company first follows the smooth loss gradient, then applies the box-indicator prox.

쌍대함수: 원목적값 아래에 놓이는 이유The dual function: why it lies below primal objectives

Stephen Boyd · Lieven Vandenberghe · Convex Optimization §5.1

§5.1.1~5.1.3(인쇄 215~216쪽)의 라그랑지안·하한 증명을 읽습니다. 원문 기호 λ는 부등식, ν는 등식에 쓰이므로 이 장의 부등식 ν 표기와 역할을 대응시킵니다.Read §§5.1.1–5.1.3 (printed pp.215–216): the Lagrangian and lower-bound proof. The book uses λ for inequalities and ν for equalities; translate roles to this chapter’s inequality ν.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 가능한 α와 음이 아닌 승수에서 왜 d(ν)≤F(α)인가요?Why does d(ν)≤F(α) hold for feasible α and nonnegative inequality multipliers?

생각을 점검하는 해설Check your reasoning

가능한 α에서는 νg(α)≤0라서 라그랑지안≤F(α)입니다. 그 라그랑지안을 모든 원변수에 대해 최소화한 d는 더 작거나 같습니다. 일치하는 원값·쌍대값은 최적성 인증을 줍니다.For feasible α, νg(α)≤0, so the Lagrangian is at most F(α). Minimizing it over the primal variable lowers it further. Matching feasible primal and dual values certifies optimality.

연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof

먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.

1. 에피그래프의 두 점Two epigraph points

f(x)=x²에서 (−1,1),(3,9)의 중점이 에피그래프 안인지 확인하고 볼록 부등식과 연결하세요.

For f(x)=x², check the midpoint of (−1,1),(3,9) and connect it to convexity.

풀이와 확인할 이유Solution and explanation

중점은 (1,5)입니다. f(1)=1≤5이므로 에피그래프 안입니다. 입력 평균의 제곱 1은 함수값 평균 5 이하입니다. 선분의 다른 모든 가중평균에서도 같은 조건이 성립해야 함수의 볼록성을 보장합니다.

The midpoint is (1,5), and f(1)=1≤5. The square of the mean is at most the mean of the squares. Convexity requires the analogous inclusion for every weight and pair, rather than this single check.

2. 가중 Jensen 계산Weighted Jensen calculation

값 1,3에 가중치 1/4,3/4를 주고 제곱함수의 Jensen 양변과 차이를 계산하세요.

For values 1,3 with weights 1/4,3/4, compute both sides of square-function Jensen and their difference.

풀이와 확인할 이유Solution and explanation

평균은 5/2이고 그 제곱은 25/4입니다. 제곱의 가중평균은 1/4+27/4=7입니다. 우변−좌변=3/4≥0입니다. 가중치의 비음수성과 합 1이 이 해석의 조건입니다.

The mean is 5/2 and its square is 25/4. The weighted mean of squares is 7. Their difference is 3/4≥0. Nonnegative weights summing to one are essential.

3. 정규화 전에는 다른 부등식Normalization matters

두 원자에 측도 질량이 각각 1이고 X=1일 때 φ(x)=x²의 φ(∫X)와 ∫φ(X)를 계산하세요.

Two atoms each have measure one and X=1. Compute φ(∫X) and ∫φ(X) for φ(x)=x².

풀이와 확인할 이유Solution and explanation

전체 질량은 2이고 ∫X=2입니다. 따라서 φ(∫X)=4, ∫φ(X)=2라 확률 Jensen 모양이 실패합니다. 질량 2로 나눈 평균을 쓰면 1²≤1이 됩니다. 측도와 확률을 구별해야 합니다.

Total mass is two, so the two values are four and two. The probability-form inequality fails. Normalize the measure to mass one and obtain 1≤1. This separates an integral from a normalized average.

4. 엄격성이 없는 등호Equality without strictness

|x|에 값 1,3과 동일 가중치를 쓰면 Jensen 등호가 성립하나요? 이것이 엄격볼록인가요?

For |x| and equally weighted inputs 1,3, does Jensen have equality? Does this show strict convexity?

풀이와 확인할 이유Solution and explanation

|(1+3)/2|=2이고 (|1|+|3|)/2=2라 등호입니다. 두 입력이 다른데도 등호가 되므로 |x|는 이 구간에서 엄격볼록이 아닙니다. 볼록성과 엄격볼록성의 등호 조건은 다릅니다.

Both sides equal two despite distinct inputs. Absolute value is convex but not strictly convex on that positive interval. Strict equality conditions cannot be borrowed from strictly convex functions.

5. 제곱함수의 지지선A supporting line for a square

f(x)=½x²의 a=2 지지선을 쓰고 모든 x에서 아래에 있음을 증명하세요.

Write the supporting line to f(x)=½x² at a=2 and prove it is globally below f.

풀이와 확인할 이유Solution and explanation

f(2)=2,f′(2)=2이므로 선은 2+2(x−2)=2x−2입니다. 차이는 ½x²−2x+2=½(x−2)²≥0입니다. x=2에서만 차이 0이므로 접촉과 전역 아래 지지가 모두 확인됩니다.

The line is 2+2(x−2)=2x−2. The difference is ½(x−2)²≥0, with equality only at two. This verifies contact and global support.

6. 접촉만으로 지지는 아니다Contact is insufficient

|x|의 원점을 지나는 ℓ(x)=2x가 아래 지지선인지 검산하세요.

Does ℓ(x)=2x support |x| from below at zero?

풀이와 확인할 이유Solution and explanation

원점에서는 둘 다 0이라 접촉합니다. 그러나 x=1에서 ℓ(1)=2>1=|1|이므로 아래 지지가 아닙니다. ∂|·|(0)=[−1,1]에 2가 없는 것과 같은 결론입니다.

It touches at zero, but at x=1 the line equals two while |x| equals one. It is not a global lower support. Correspondingly, two is outside the subdifferential [−1,1].

7. 원점의 부분기울기 도출Derive the subgradient interval

|y|≥s y가 모든 y에서 성립할 s를 양수·음수 y로 나눠 구하세요.

Find all s for which |y|≥s y for every y, using positive and negative y.

풀이와 확인할 이유Solution and explanation

y>0이면 y≥sy에서 s≤1입니다. y<0이면 −y≥sy를 음수로 나누어 s≥−1입니다. 두 조건의 교집합은 [−1,1]이고, 그 안의 s는 모든 부호에서 실제 부등식을 만족합니다.

Positive y requires s≤1. Dividing the negative-y inequality reverses its sign and gives s≥−1. Their intersection is [−1,1], and each member satisfies both cases.

8. 부분기울기와 좌표 편미분Subgradients versus partial derivatives

벡터함수의 편미분과 볼록함수 ∂f(a)의 의미가 같은지 설명하고 f(x)=|x|,a=0을 예로 드세요.

Explain whether a coordinate partial derivative and the convex subdifferential ∂f(a) are the same, using |x| at zero.

풀이와 확인할 이유Solution and explanation

편미분은 한 좌표 방향의 미분계수입니다. ∂f(a)는 함수 아래를 전역적으로 지지하는 기울기 벡터들의 집합입니다. |x|의 0에서는 보통 미분이 없지만 부분기울기 집합 [−1,1]은 존재합니다. 표기 ∂만 보고 같은 연산이라고 판단하지 않습니다.

A partial derivative is a coordinate-direction derivative. A subdifferential is a set of globally supporting slope vectors. At zero, |x| is not differentiable but its subdifferential is [−1,1]. Similar symbols do not identify the operations.

9. 매끄러운 볼록함수의 집합Smooth convex singleton

f(x)=x²+3x의 x=−1에서 부분기울기 집합을 구하고 0 포함 여부를 해석하세요.

Find ∂f(−1) for f(x)=x²+3x and interpret whether it contains zero.

풀이와 확인할 이유Solution and explanation

미분은 2x+3이므로 집합은 {1}입니다. 내부에서 미분 가능한 볼록함수이기에 기울기가 유일한 부분기울기입니다. 0이 없으므로 −1은 전역 최소가 아니며 실제 최소는 −3/2입니다.

The derivative is 2x+3, so the set is {1}. Differentiable convex interior points have a singleton subdifferential. It excludes zero; the minimizer is instead −3/2.

10. 경계에서 비어 있는 집합An empty boundary subdifferential

f(x)=−√x (x≥0), 그 밖은 +∞일 때 0의 유한 부분기울기가 없음을 보이세요.

Show that f(x)=−√x for x≥0 and +∞ otherwise has no finite subgradient at zero.

풀이와 확인할 이유Solution and explanation

유한한 s가 있다면 모든 y>0에서 −√y≥sy여야 합니다. y로 나누면 −1/√y≥s인데 왼쪽은 y↓0에서 −∞로 갑니다. 어떤 고정 유한 s도 만족하지 못합니다. proper 닫힌 볼록함수라도 모든 경계에서 부분기울기가 존재하지는 않습니다.

A finite s would require −1/√y≥s for every positive y. The left side tends to negative infinity as y decreases to zero. No finite s works. Proper closed convex functions need not have subgradients at every boundary point.

11. 0의 최적성Zero subgradient optimality

F(x)=½(x−2)²+0.5|x|의 x=1.5가 최소인지 부분기울기로 보이세요.

Use subgradients to verify x=1.5 minimizes F(x)=½(x−2)²+0.5|x|.

풀이와 확인할 이유Solution and explanation

x=1.5>0에서 매끄러운 항의 미분은 −0.5이고 절댓값 항의 부분기울기는 {0.5}입니다. 합이 {0}이므로 전역 최소입니다. 이 함수는 강볼록이라 최소도 유일합니다. 일반 기울기 −0.5만 보고 실패라고 판단하면 비매끄러운 항을 빠뜨린 것입니다.

The smooth derivative is −0.5 and the absolute-value contribution is {0.5}. Their sum contains zero, certifying the global minimum. Strong convexity makes it unique. Requiring the smooth term alone to vanish would omit part of the objective.

12. 구간의 법선 부호Normal-cone signs

C=[−1,2]의 x=−1,0,2에서 NC(x)를 구하고, singleton C={2}와 비교하세요.

Find NC(x) for C=[−1,2] at −1,0,2, and compare C={2}.

풀이와 확인할 이유Solution and explanation

정의 s(y−x)≤0을 모든 y∈C에 적용하면 왼끝은 (−∞,0], 내부는 {0}, 오른끝은 [0,∞)입니다. singleton에서는 y−x=0뿐이라 모든 실수 s가 허용됩니다. 끝점의 법선 부호를 안쪽 허용방향으로 검산할 수 있습니다.

From s(y−x)≤0 for all feasible y, the cones are (−∞,0],{0},[0,∞). For a singleton every real s is allowed because y−x is always zero. Check signs against feasible inward directions.

13. 켤레의 완전제곱Complete the square for a conjugate

f(x)=½x²의 켤레와 최댓값을 주는 x를 완전제곱으로 구하세요.

Find the conjugate of f(x)=½x² and its maximizing x by completing the square.

풀이와 확인할 이유Solution and explanation

sx−½x²=½s²−½(x−s)²입니다. 따라서 최고는 x=s에서 ½s²이며 f*(s)=½s²입니다. 켤레의 입력은 원변수 x가 아니라 지지 기울기 s입니다.

sx−½x²=½s²−½(x−s)². Its maximum is ½s² at x=s. The conjugate takes a slope s as input.

14. 이동·곡률이 있는 켤레Shifted quadratic conjugate

f(x)=½h(x−a)²,h=2,a=3에서 f*(s)와 s=4일 때 최적 x를 구하세요.

For f(x)=½h(x−a)² with h=2,a=3, find f*(s) and the maximizing x at s=4.

풀이와 확인할 이유Solution and explanation

일반식은 f*(s)=as+s²/(2h)입니다. 여기서는 3s+s²/4이고 최적 x=a+s/h입니다. s=4이면 x=5, 켤레 값 16입니다. 직접 4·5−(5−3)²=16으로 검산합니다.

The conjugate is as+s²/(2h)=3s+s²/4. Its maximizing x is a+s/h. At s=4, x=5 and the value is 16; direct substitution gives 20−4=16.

15. 절댓값 켤레의 무한값Infinite conjugate values

f=|x|의 s=0.5,1,1.2에서 켤레를 구하고 마지막 값이 큰 유한 수가 아닌 이유를 설명하세요.

Find the conjugate of |x| at s=0.5,1,1.2 and explain why the final value is infinite rather than merely large.

풀이와 확인할 이유Solution and explanation

|s|≤1에서는 sx−|x|≤0이고 x=0에서 0이므로 켤레는 0입니다. s=1.2이면 x>0에서 0.2x가 무한히 커집니다. 따라서 +∞이며, 유한한 화면 최대가 원래 전체 실수 정의역의 최고값을 대신하지 못합니다.

For |s|≤1, sx−|x|≤0 and zero is attained at x=0. For s=1.2 and positive x, the expression is 0.2x and grows without bound. A finite plotting window cannot replace the full-domain supremum.

16. 벌점 0의 켤레Zero-penalty conjugate

τ=0일 때 f(x)=τ|x|의 켤레를 구하세요.

Find the conjugate of f(x)=τ|x| when τ=0.

풀이와 확인할 이유Solution and explanation

f는 모든 x에서 0입니다. s=0이면 sx−f=0이므로 켤레 0이고, s≠0이면 같은 부호의 x를 크게 보내 +∞를 얻습니다. 따라서 {0}의 볼록해석 지시함수입니다. τ|x|의 켤레가 [−τ,τ] 지시함수라는 식과 일치합니다.

The function is identically zero. Its conjugate is zero at s=0 and infinite elsewhere by sending x to infinity with the sign of s. It is the indicator of {0}, matching the interval [−τ,τ] formula.

17. 제곱함수 Fenchel 간극Quadratic Fenchel gap

f(x)=½x²,x=3,s=1에서 Fenchel 간극을 계산하고 등호 입력을 구하세요.

Compute the Fenchel gap for f(x)=½x²,x=3,s=1 and identify equality.

풀이와 확인할 이유Solution and explanation

간극은 ½·9+½·1−3=2입니다. 식으로는 ½(x−s)²입니다. s=x일 때만 0이며 이는 s∈∂f(x)와 같습니다.

The gap is 4.5+0.5−3=2, or ½(x−s)². It vanishes exactly when s=x, equivalently when s is a subgradient at x.

18. 절댓값 Fenchel 간극Absolute-value Fenchel gaps

f=|x|에서 (x,s)=(−2,−1),(2,0.5)를 비교하고 s=2이면 무엇이 달라지는지 설명하세요.

For |x|, compare (x,s)=(−2,−1),(2,0.5), then explain what changes at s=2.

풀이와 확인할 이유Solution and explanation

첫 간극은 2−2=0, 두 번째는 2−1=1입니다. 첫 쌍만 s∈∂|x|를 만족합니다. s=2이면 켤레가 +∞라 유한한 수치 간극으로 비교할 수 없습니다. 쌍대 정의역부터 검사해야 합니다.

The gaps are zero and one. Only the first pair satisfies subgradient equality. At s=2 the conjugate is infinite, so there is no finite numeric gap; check dual domain first.

19. 닫힌 함수와 닫힌 정의역Closed function versus closed domain

f(x)=−ln x (x>0), 그 밖 +∞는 정의역이 열린데도 닫힌 함수일 수 있나요?

Can f(x)=−ln x for x>0, extended by +∞ otherwise, be closed even though its domain is open?

풀이와 확인할 이유Solution and explanation

볼록해석의 닫힘은 에피그래프의 닫힘입니다. x↓0에서 f가 +∞로 가므로 유한 높이에서 빠진 경계점이 생기지 않습니다. 따라서 이 확장함수는 닫혔지만 유효 정의역 (0,∞)는 열렸습니다. 두 닫힘을 같은 것으로 보면 안 됩니다.

Closedness concerns the epigraph. As x decreases to zero, f tends to infinity, leaving no missing finite-height limit point. The extended function is closed while its effective domain is open. These are different properties.

20. 열린 집합의 이중켤레Biconjugate of an open-set indicator

f=δ_(0,∞)의 켤레를 구하고 이중켤레의 x=0 값을 원래 값과 비교하세요.

Find the conjugate of δ_(0,∞) and compare its biconjugate at zero with the original.

풀이와 확인할 이유Solution and explanation

s≤0이면 supₓ>₀ sx=0이고, s>0이면 +∞입니다. 다시 켤레를 취하면 x≥0에서 0, x<0에서 +∞로 δ_[0,∞)가 됩니다. x=0에서 원래 f는 +∞였지만 이중켤레는 0입니다. 원함수가 닫히지 않았기 때문에 가능한 차이입니다.

The conjugate is zero for s≤0 and infinite for s>0. Its conjugate is δ_[0,∞). At zero, the original value is infinite but the biconjugate is zero. The missing closedness assumption matters.

21. 정사영 계산Projection calculations

v=3을 [−1,2]에, v=−4를 같은 구간에 정사영하고 최소 제곱거리 ½(x−v)²를 구하세요.

Project v=3 and v=−4 onto [−1,2], and find min ½(x−v)².

풀이와 확인할 이유Solution and explanation

첫 정사영은 2이고 최소값은 ½입니다. 두 번째는 −1이고 최소값은 9/2입니다. 내부가 가능하면 v 자신이 최소지만, 바깥에서는 가장 가까운 끝점이 최소입니다. 도함수 0이 구간 밖인 경우까지 포함합니다.

The projections are two and negative one. The objective values are ½ and 9/2. Exterior inputs choose the nearest endpoint, even when the unconstrained zero derivative lies outside the interval.

22. 존재·유일성의 다른 실패Different projection failures

v=0을 C=(0,∞)와 C={−1,1}에 각각 정사영할 때 무엇이 실패하나요?

Project zero onto C=(0,∞) and C={−1,1}. Which property fails in each?

풀이와 확인할 이유Solution and explanation

열린 양의 반직선에서는 거리 infimum 0이지만 0이 허용되지 않아 해가 없습니다. 두 점 집합에서는 두 점 모두 거리 1이라 해가 둘입니다. 첫 경우는 닫힘, 두 번째는 볼록성 조건이 빠진 효과입니다.

The open half-line has infimum distance zero but no minimizer. The two-point set has two minimizers at equal distance one. Missing closedness and missing convexity cause different failures.

23. prox의 λ=0Zero proximal parameter

prox 정의에서 λ=0을 그대로 대입할 수 있나요? g=τ|x|에서 τ=0과 비교하세요.

May λ=0 be substituted directly in the prox definition? Compare τ=0 in g=τ|x|.

풀이와 확인할 이유Solution and explanation

정의의 거리항은 1/(2λ)이므로 λ=0을 그대로 넣지 않습니다. 알고리즘의 보폭 0은 갱신 없음으로 별도 정의할 수 있지만, 그때 기울기 사상은 0/0입니다. 반면 τ=0이고 λ>0인 L1 prox는 항이 사라져 항등사상 v입니다.

No: the quadratic coefficient contains 1/(2λ). A zero algorithm step may separately mean no update, but its gradient mapping is undefined. With positive λ and zero L1 weight, the prox is well-defined and equals v.

24. 이차함수의 암묵 갱신Implicit versus explicit quadratic step

g(x)=½x²,v=4,λ=1에서 prox를 구하고 explicit gradient v−λg′(v)와 비교하세요.

For g(x)=½x²,v=4,λ=1, compute the prox and compare v−λg′(v).

풀이와 확인할 이유Solution and explanation

최적 조건 p+ (p−4)=0에서 p=2입니다. explicit gradient는 4−4=0입니다. prox는 p=v−λg′(p)라는 새 점의 미분을 쓰는 암묵 식이고 explicit은 기존 v의 미분을 쓰므로 다릅니다.

Optimality gives p+(p−4)=0, so p=2. The explicit gradient step gives zero. The prox evaluates the gradient at the new point through an implicit equation, rather than at v.

25. soft의 세 구간Three soft-threshold regions

λ=2,τ=0.5에서 v=3,−3,0.5,1의 prox를 계산하세요.

With λ=2,τ=0.5, compute the prox at v=3,−3,0.5,1.

풀이와 확인할 이유Solution and explanation

문턱 λτ=1입니다. 순서대로 2,−2,0,0입니다. 문턱과 정확히 같은 입력 1도 0으로 갑니다. 큰 입력도 그대로 보존하지 않고 크기 1만큼 줄이는 점이 hard threshold와 다릅니다.

The threshold is one. The outputs are 2,−2,0,0. Equality at the threshold belongs to the zero region. Large inputs are shrunk rather than left unchanged, unlike hard thresholding.

26. 벡터 L1의 분리Separable vector L1

v=(3,−1,0.2),λ=0.5,g(x)=2‖x‖₁의 prox를 계산하고 좌표별 계산이 가능한 이유를 설명하세요.

Compute prox for v=(3,−1,0.2),λ=0.5,g(x)=2‖x‖₁ and explain separability.

풀이와 확인할 이유Solution and explanation

각 좌표의 문턱은 1이므로 결과는 (2,0,0)입니다. L1 합과 유클리드 거리 제곱이 모두 좌표별 합으로 분리되므로 독립된 스칼라 최소화로 풀 수 있습니다. 다른 비분리 노름이나 결합 제약에는 이 공식을 자동 적용하지 않습니다.

The coordinate threshold is one, yielding (2,0,0). Both the L1 term and squared Euclidean distance split into coordinate sums. Coupled constraints or nonseparable norms require different calculations.

27. 벌점과 보폭의 분리Penalty versus step

½(x−2)²+0.5|x|에서 η=0.5와 η=1은 같은 문제를 푸나요? 각 문턱과 최적점을 비교하세요.

For ½(x−2)²+0.5|x|, do η=0.5 and η=1 solve the same problem? Compare thresholds and targets.

풀이와 확인할 이유Solution and explanation

τ=0.5가 고정되어 같은 목적함수입니다. 문턱은 각각 0.25와 0.5지만 최적점은 둘 다 1.5입니다. η는 반복 경로를 바꾸고 τ는 원문제를 바꿉니다. 보폭을 벌점 강도와 혼동하지 않습니다.

They share the same objective and minimizer 1.5. Their thresholds are 0.25 and 0.5. The step changes the iteration, while the fixed penalty defines the problem.

28. 비확장과 엄격 수축Nonexpansive versus strict contraction

g=0의 prox는 무엇이며 모든 prox가 공통 ρ<1의 수축이라는 주장을 반박하나요?

What is the prox of g=0, and does it refute that every prox has contraction factor ρ<1?

풀이와 확인할 이유Solution and explanation

g=0이면 prox(v)=v입니다. 서로 다른 v,z의 출력 거리가 입력 거리와 정확히 같으므로 1-Lipschitz지만 ρ<1로 줄지 않습니다. 따라서 근접 연산의 비확장성을 곧바로 Banach 엄격 수축으로 읽을 수 없습니다.

It is the identity. Distances between distinct points are unchanged, so it is nonexpansive but not a strict contraction. Banach contraction cannot be inferred from nonexpansiveness alone.

29. 단단한 비확장 부등식Firm nonexpansiveness derivation

p=proxλg(v),q=proxλg(z)에서 두 최적 조건과 부분기울기 단조성으로 ‖p−q‖²≤(p−q)ᵀ(v−z)를 유도하세요.

For p=proxλg(v),q=proxλg(z), use optimality and subgradient monotonicity to derive ‖p−q‖²≤(p−q)ᵀ(v−z).

풀이와 확인할 이유Solution and explanation

(v−p)/λ∈∂g(p),(z−q)/λ∈∂g(q)입니다. 단조성은 (p−q)ᵀ[(v−p)−(z−q)]/λ≥0을 줍니다. λ>0으로 곱하고 정리하면 원하는 식입니다. Cauchy–Schwarz로 1-Lipschitz가 따르며 p=q에서는 나누지 않아도 성립합니다.

The two subgradients are (v−p)/λ and (z−q)/λ. Monotonicity makes their difference inner product with p−q nonnegative. Rearrangement gives the inequality, then Cauchy–Schwarz gives nonexpansiveness. If p=q, no division is needed.

30. Moreau 숫자 검산Numerical Moreau check

g(x)=0.5|x|,λ=2,v=3에서 proxλg(v)+λprox_(g*/λ)(v/λ)를 계산하세요.

For g(x)=0.5|x|,λ=2,v=3, evaluate proxλg(v)+λprox_(g*/λ)(v/λ).

풀이와 확인할 이유Solution and explanation

첫 항은 soft(3,1)=2입니다. g*는 [−0.5,0.5] 지시함수이므로 둘째 prox는 1.5를 이 구간에 정사영한 0.5입니다. λ를 곱하면 1이고 합은 3입니다. 켤레 지시함수를 양수 λ로 나누어도 같은 제약을 나타냅니다.

The first term is soft(3,1)=2. The conjugate is the indicator of [−0.5,0.5], so the second prox projects 1.5 to 0.5. Multiplying by λ gives one, and the sum is three.

31. 근접 경사 세 단계Three proximal-gradient steps

f=½(x−2)²,g=0.5|x|,η=0.5,x₀=−2에서 세 번 갱신하세요.

For f=½(x−2)²,g=0.5|x|,η=0.5,x₀=−2, perform three updates.

풀이와 확인할 이유Solution and explanation

첫 trial은 −2−0.5(−4)=0이고 soft 문턱 0.25를 거쳐 0입니다. 다음 trial은 1이라 결과 0.75입니다. 세 번째 trial은 1.375라 결과 1.125입니다. 목표 1.5와 점차 가까워지지만 세 단계 숫자만으로 일반 수렴을 증명하지는 않습니다.

The first trial is zero and remains zero after thresholding by 0.25. The next trial is one, producing 0.75. The third trial is 1.375, producing 1.125. The general convergence claim still needs the stated theorem.

32. 특별한 한 단계 해A special one-step solution

f=½h(x−s)²,g=τ|x|에서 η=1/h가 모든 시작값으로부터 정확한 해를 주는 이유를 설명하세요.

Explain why η=1/h solves ½h(x−s)²+τ|x| in one step from any start.

풀이와 확인할 이유Solution and explanation

trial x−(1/h)h(x−s)=s로 시작값이 소거됩니다. soft 문턱은 τ/h이므로 갱신은 soft(s,τ/h), 정확한 최적점입니다. 이는 하나의 스칼라 곡률 h 구조이며 임의 행렬 이차식의 같은 숫자 보폭에 일반화되지 않습니다.

The trial is x−(x−s)=s, independent of the start. Thresholding by τ/h gives the exact minimizer. This is a special scalar-curvature structure, not a generic matrix-quadratic result.

33. 기울기 사상 계산Gradient-mapping calculation

같은 f=½(x−2)²,g=0.5|x|에서 η=0.5,x=1의 Tη와 Gη를 구하고 x=1.5와 비교하세요.

For f=½(x−2)²,g=0.5|x|,η=0.5, calculate Tη,Gη at x=1 and compare x=1.5.

풀이와 확인할 이유Solution and explanation

x=1의 trial은 1.5, soft 결과는 1.25이므로 G=(1−1.25)/0.5=−0.5입니다. x=1.5의 trial은 1.75, 결과는 1.5라 G=0입니다. 그때 일반 기울기는 −0.5지만 비매끄러운 항과 균형을 이룹니다.

At one, the trial is 1.5, the result 1.25 and the mapping −0.5. At 1.5, the trial 1.75 shrinks back to 1.5, so the mapping is zero. The smooth gradient remains −0.5, balanced by the other term.

34. 고정 보폭 부분기울기 왕복A subgradient cycle

|x|에서 η=1,x₀=0.4의 sign 업데이트와 prox 업데이트를 두 단계 비교하세요.

For |x|,η=1,x₀=0.4, compare two sign steps and two proximal steps.

풀이와 확인할 이유Solution and explanation

sign 업데이트는 0.4→−0.6→0.4로 왕복합니다. prox soft(x,1)는 0.4→0→0입니다. 첫 방법은 기존 점의 부분기울기를 빼고, 둘째는 함수와 제곱거리의 합을 정확히 최소화합니다. 서로 다른 알고리즘입니다.

The sign method cycles 0.4,−0.6,0.4. Soft thresholding gives 0.4,0,0. One subtracts an old-point subgradient; the other minimizes a local convex problem exactly.

35. 감소량 수치 검산Check the descent bound

f=½(x−2)²,g=0.5|x|에서 x=1,η=0.5,p=1.25입니다. F(x)−F(p)와 33절 하한을 비교하세요.

For f=½(x−2)²,g=0.5|x|,x=1,η=0.5,p=1.25, compare actual decrease with Section 33.

풀이와 확인할 이유Solution and explanation

F(1)=1, F(1.25)=0.28125+0.625=0.90625라 감소는 0.09375입니다. L=1이고 (1/η−L/2)(p−x)²=1.5·0.0625=0.09375입니다. 이 예에서는 하한과 같습니다. 더 보수적인 ‖p−x‖²/(2η)는 0.0625입니다.

The objective falls from one to 0.90625, decreasing by 0.09375. With L=1, the sharper bound is (2−0.5)(0.25)²=0.09375. The simpler bound ‖p−x‖²/(2η) is 0.0625.

36. O(1/k)의 반복 수Iteration count from O(1/k)

34절의 모든 가정, 특히 0<η≤1/L을 만족하고 최소가 달성된다고 합시다. η=0.5,‖x₀−x*‖=3일 때 일반율로 함수값 오차 ≤0.01을 보장할 k를 구하세요.

Assume all Section 34 hypotheses, including 0<η≤1/L and an attained minimum. With η=0.5 and initial distance three, use the general rate to guarantee objective error ≤0.01.

풀이와 확인할 이유Solution and explanation

상계는 9/(2·0.5·k)=9/k입니다. 9/k≤0.01이면 k≥900입니다. 이는 보편 상계로 보장하는 반복 수이며 실제 오차가 처음 그 아래로 내려가는 최소 반복 수는 아닙니다. 엄격한 <0.01이면 k≥901이 필요합니다.

The bound is 9/k, so k≥900 suffices. It is a certified count from this bound, not necessarily the earliest actual crossing. Strict error below 0.01 would require k≥901 from this bound.

37. 큰 보폭의 반례An excessive-step counterexample

τ=0,h=1,s=0,η=2,x₀=1인 근접 경사 반복을 쓰고 수렴 조건과 비교하세요.

For τ=0,h=1,s=0,η=2,x₀=1, write the proximal-gradient sequence and compare its assumptions.

풀이와 확인할 이유Solution and explanation

g=0이라 x다음=(1−2)x=−x입니다. 1,−1,1로 왕복하며 0으로 수렴하지 않습니다. η≤1/L=1이라는 이 장의 일반율 조건 밖입니다. 어떤 큰 보폭의 성공 사례도 이 왕복 반례를 없애지는 못합니다.

With zero g, the update is xnext=−x. It cycles between one and negative one. The step lies outside η≤1/L=1, illustrating why a larger-step success elsewhere is not a universal guarantee.

38. 제약이면 정사영Projection as a proximal step

f(x)=½(x−3)²,g=δ_[0,1],η=0.5,x=0에서 첫 갱신과 최적점을 구하세요.

For f(x)=½(x−3)²,g=δ_[0,1],η=0.5,x=0, find the update and optimum.

풀이와 확인할 이유Solution and explanation

trial은 0−0.5(−3)=1.5이고 정사영 결과는 1입니다. 구간에서 f가 감소하므로 최적점도 1입니다. ∇f(1)=−2지만 법선 [0,∞)에 +2가 있어 합의 0 조건을 만족합니다.

The trial is 1.5 and projects to one, also the minimizer. Its smooth gradient is −2; the normal cone contains +2, giving composite optimality.

39. 같은 제약을 두 보폭으로Different trials, same constrained fixed point

f=½(x−3)²,C=[0,1],x*=1에서 η=0.1과 η=1의 trial과 기울기 사상을 비교하세요.

For f=½(x−3)²,C=[0,1],x*=1, compare trials and gradient mappings for η=0.1 and η=1.

풀이와 확인할 이유Solution and explanation

trial은 각각 1.2와 3이지만 둘 다 1로 정사영됩니다. 따라서 양수 η에서 두 사상은 모두 (1−1)/η=0입니다. 고정점이 같은 것이 trial까지 같다는 뜻은 아닙니다.

The trials are 1.2 and three, both projecting to one. Both mappings are zero. Equal fixed points do not require equal unconstrained trials.

40. τ가 목표를 바꾸는 방식How τ changes the target

½(x−2)²+τ|x|의 τ=0,0.5,2,3에서 최적점을 구하세요.

Find minimizers of ½(x−2)²+τ|x| for τ=0,0.5,2,3.

풀이와 확인할 이유Solution and explanation

최적점은 soft(2,τ)입니다. 순서대로 2,1.5,0,0입니다. τ=2의 문턱 경계도 0입니다. 보폭이 아닌 벌점 자체를 바꾸었기 때문에 최적점이 변합니다.

Use soft(2,τ), giving 2,1.5,0,0. Equality at the threshold also yields zero. These changes alter the objective rather than merely its algorithm.

41. 좌표 변환의 벌점Transforming penalty units

원단위 x=100q일 때 τ|x|를 q의 함수로 쓰세요. q에 같은 숫자 τ|q|를 쓰면 같은 문제인가요?

If physical x=100q, rewrite τ|x|. Does using the same number τ|q| preserve the problem?

풀이와 확인할 이유Solution and explanation

τ|100q|=100τ|q|입니다. 같은 원단위 의미를 보존하려면 q의 가중치도 100배여야 합니다. τ|q|를 그대로 쓰면 원래 x에서 가중치 τ/100인 다른 벌점입니다. 정규화와 규제 강도를 함께 기록해야 합니다.

The equivalent penalty is 100τ|q|. Reusing τ|q| corresponds to weight τ/100 on physical x and changes the objective. Coordinate normalization and penalty scaling must be tracked together.

42. 실제 GDP의 soft 문턱Actual-data GDP threshold

실제 과거 적합 b*=754.47592853475, v=b/100,h=0.1에서 τ=0.1의 bτ와 기울기를 0으로 만드는 최소 τ를 구하세요.

With b*=754.47592853475,v=b/100,h=0.1, find bτ at τ=0.1 and the smallest penalty making the slope zero.

풀이와 확인할 이유Solution and explanation

s=7.5447592853475이고 문턱 τ/h=1입니다. 따라서 vτ=6.5447592853475, bτ=654.47592853475입니다. 0이 되려면 τ≥hs=0.75447592853475입니다. 이는 선택한 정규화 손실의 답이며 실제 GDP의 변화가 사라졌다는 뜻은 아닙니다.

s=7.5447592853475 and τ/h=1, giving vτ=6.5447592853475 and bτ=654.47592853475. Zero begins at τ=hs=0.75447592853475. This describes the chosen objective, not a disappearance of actual GDP growth.

43. 국가 쌍대 인증의 유도Derive the scalar country dual

½h(v−s)²+τ|v|에서 h>0일 때 쌍대 하한 su−u²/(2h), |u|≤τ를 유도하세요.

For ½h(v−s)²+τ|v| with h>0, derive the lower bound su−u²/(2h),|u|≤τ.

풀이와 확인할 이유Solution and explanation

τ|v|≥uv가 |u|≤τ에서 성립합니다. 따라서 원목적은 ½h(v−s)²+uv 이상입니다. v로 최소화하면 v=s−u/h이고 하한은 su−u²/(2h)입니다. 최대화는 u=hs를 구간에 정사영하므로 clip(hs,−τ,τ)입니다.

The inequality τ|v|≥uv holds for |u|≤τ. Minimize the resulting quadratic plus uv at v=s−u/h. The value is su−u²/(2h), maximized by clipping hs to [−τ,τ].

44. 쌍대 간극 0의 숫자A numerical zero dual gap

h=0.1,s=2,τ=0.1인 ½h(v−s)²+τ|v|에서 최적 v,u와 양쪽 값을 계산하세요.

For ½h(v−s)²+τ|v| with h=0.1,s=2,τ=0.1, compute optimal v,u and both values.

풀이와 확인할 이유Solution and explanation

v=soft(2,1)=1,u=clip(0.2,−0.1,0.1)=0.1입니다. 원값은 0.05+0.1=0.15입니다. 쌍대값은 2·0.1−0.01/0.2=0.15입니다. 두 후보가 가능하고 간극 0이므로 최적성이 인증됩니다.

The solutions are v=1,u=0.1. The primal value is 0.05+0.1=0.15 and the dual value 0.2−0.05=0.15. Feasibility and zero gap certify optimality.

45. 비음수 정사영의 원관측 구별Projection versus stored observations

실제 (0,0) Wh의 SVD 근사가 z=(0.5832324743,−0.1576524620) Wh입니다. 정사영 결과와 원자료에 남겨야 할 값을 쓰세요.

An actual (0,0) Wh pair has SVD approximation z=(0.5832324743,−0.1576524620) Wh. State the projection and what remains in the observation columns.

풀이와 확인할 이유Solution and explanation

정사영 근사는 (0.5832324743,0) Wh입니다. 실제 측정 열은 계속 (0,0) Wh이고 근사·정사영 근사를 다른 열에 둡니다. 원관측을 음수 근사의 문제 때문에 바꾸면 자료 생성 지위를 혼동하게 됩니다.

The projected approximation is (0.5832324743,0) Wh. Observation columns remain (0,0), with derived approximations stored separately. Repairing a model output does not rewrite its input measurement.

46. 비음수 관측 대비 오차Error against a nonnegative observation

y≥0이고 z<0인 스칼라에서 z를 0으로 정사영하면 제곱오차가 늘지 않음을 보이세요.

For scalar y≥0,z<0, prove projecting z to zero cannot increase squared error to y.

풀이와 확인할 이유Solution and explanation

(z−y)²−(0−y)²=z²−2zy입니다. z²≥0이고 zy≤0이므로 차이는 비음수입니다. 여러 좌표에 더해 같은 결론이 납니다. 이 성질은 비음수 관측 대비 거리이며 SVD rank 제약 보존과는 별개입니다.

The decrease is (z−y)²−y²=z²−2zy≥0. Sum this over coordinates. The distance property does not prove preservation of an SVD rank constraint.

47. clip과 rank의 반례Clipping can change rank

rank-1 행렬 [[1,−1],[−1,1]]의 음수 성분을 0으로 바꾼 결과와 rank를 구하세요.

Clip negative entries of rank-one [[1,−1],[−1,1]] to zero and find the resulting rank.

풀이와 확인할 이유Solution and explanation

원행렬의 둘째 행은 첫째 행의 −1배라 rank 1입니다. clip 결과는 2×2 항등행렬이라 rank 2입니다. 따라서 좌표별 비음수 정사영이 rank-1 구조를 항상 보존한다는 주장은 틀립니다. 실제 SVD 사례도 별도 rank 검산이 필요합니다.

The original rows are negatives of each other, so its rank is one. Clipping produces the identity, whose rank is two. Coordinatewise projection does not universally preserve low rank.

48. 실제 기업 첫 갱신First actual-company update

A=1.01485854726,B=1.03315266404,F′(α)=Aα−B에서 α₀=1,η=0.2,C=[0.95,1.01]의 첫 갱신을 구하세요.

For A=1.01485854726,B=1.03315266404,F′(α)=Aα−B,α₀=1,η=0.2 and C=[0.95,1.01], find the first update.

풀이와 확인할 이유Solution and explanation

기울기는 −0.01829411678입니다. trial은 1−0.2(−0.01829411678)=1.003658823356입니다. 구간 내부이므로 정사영이 값을 바꾸지 않습니다. 고정된 실제 공시로 만든 손실의 가정 계수를 갱신한 값입니다.

The gradient is −0.01829411678. The trial is 1.003658823356, inside the interval, so projection leaves it unchanged. This updates a chosen descriptive coefficient, not the actual sales observations.

49. 실제 기업의 경계 사상Boundary mapping for the company

F′(1.01)=−0.0081455313074,η=0.2,C=[0.95,1.01]에서 trial,Tη,Gη를 계산하세요.

Given F′(1.01)=−0.0081455313074,η=0.2,C=[0.95,1.01], compute the trial,Tη,Gη.

풀이와 확인할 이유Solution and explanation

trial=1.01162910626148입니다. 정사영 결과는 1.01이므로 G=(1.01−1.01)/0.2=0입니다. 일반 기울기가 0이 아니어도 합의 최적 조건이 성립합니다. 상한 법선 승수는 +0.0081455313074입니다.

The trial is 1.01162910626148 and projects to 1.01. The mapping is zero despite the nonzero smooth gradient. A positive upper normal multiplier 0.0081455313074 balances it.

50. 유한한 Fenchel 간극A finite Fenchel certificate

f(x)=½(x−2)²,g(x)=0.5|x|에서 x=1.5,u=0.5의 D(u)=−f*(−u)−g*(u)를 계산하세요.

For f(x)=½(x−2)²,g(x)=0.5|x|,x=1.5,u=0.5, calculate D(u)=−f*(−u)−g*(u).

풀이와 확인할 이유Solution and explanation

f*(s)=2s+s²/2이므로 f*(−0.5)=−1+0.125=−0.875입니다. g*(0.5)=0이라 D=0.875입니다. 원값도 0.125+0.75=0.875입니다. −u=f′(1.5)=−0.5, u∈∂g(1.5)라 두 Fenchel 등호가 동시에 성립합니다.

f*(s)=2s+s²/2, so f*(−0.5)=−0.875. The other conjugate is zero and D=0.875, equal to the primal 0.125+0.75. Both Fenchel equality conditions hold.

51. 가능하지 않은 쌍대 후보An infeasible dual candidate

직전 문제의 g(x)=0.5|x|에서 u=0.7로 작은 간극을 계산했다고 합니다. 무엇을 먼저 고쳐야 하나요?

For g(x)=0.5|x|, someone reports a small finite gap at u=0.7. What must be corrected first?

풀이와 확인할 이유Solution and explanation

쌍대 유효 구간은 |u|≤0.5입니다. u=0.7이면 g*(u)=+∞이고 D(u)=−∞라 유한한 작은 간극이 아닙니다. 켤레를 유한한 화면 최고값으로 대체했는지 검사해야 합니다. 가능성을 먼저 확인한 뒤 값을 비교합니다.

The dual domain is |u|≤0.5. At 0.7, g* is infinite and D is negative infinity, not a finite small-gap certificate. Check whether a finite plotting maximum replaced the true conjugate.

52. Jensen의 적분 가능 조건Jensen integrability conditions

(0,1)의 균등확률에서 X(t)=1/t에 적분 Jensen의 유한 평균 정리를 바로 적용할 수 있나요?

For uniform probability on (0,1) and X(t)=1/t, may the finite-mean Jensen theorem be applied directly?

풀이와 확인할 이유Solution and explanation

∫₀¹1/t dt=+∞라 X는 절대 적분 가능하지 않습니다. 본문의 유한한 m=E[X]를 쓰는 정리를 적용할 수 없습니다. 어떤 확장값 부등식이 별도로 성립할 수 있는지와 이 유한 정리의 조건을 혼동하지 않습니다.

The integral of 1/t is infinite, so X is not absolutely integrable. The stated theorem requiring finite m=E[X] does not apply. Extended-valued variants require their own hypotheses.

53. 근사 그림과 전역 증명A plot is not a global proof

|x|의 원점에서 s=1.000001인 직선을 좁은 화면에서 아래 지지처럼 보았다고 합니다. 정확한 반례와 수치 검산 방법을 쓰세요.

A slope s=1.000001 through the origin appears to support |x| in a narrow plot. Give an exact counterexample and a numeric check.

풀이와 확인할 이유Solution and explanation

임의의 양수 y에서 sy−|y|=0.000001y>0이므로 지지가 아닙니다. y=1이면 위반은 10⁻⁶입니다. 화면 해상도나 반올림 때문에 작은 차이를 못 볼 수 있으므로 정확한 부등식으로 검산합니다. 유한한 화면의 비위반은 전역 증명이 아닙니다.

For every positive y, sy−|y|=0.000001y>0. At y=1 the violation is 10⁻⁶. Pixels or rounding can hide it; check the exact inequality. A finite plot without a visible violation is not a global proof.

54. 정지와 작은 이동의 구별Stopping versus rounded small movement

양수 η에서 x−Tη(x)의 표시값이 0.000으로 나옵니다. 이것만으로 최적점이나 원단위 오차 0을 주장할 수 있나요?

For positive η, displayed x−Tη(x) is 0.000. Does this establish optimality or zero physical error?

풀이와 확인할 이유Solution and explanation

반올림된 이동 0.000은 실제 이동이 0이라는 뜻이 아닙니다. η로 나눈 사상에도 평가 오차가 있을 수 있고 거리 인증에는 추가 오차 상계가 필요합니다. 정확한 고정점의 최적성 정리와 반올림된 관찰을 구별하고 잔차·허용오차·산술 정밀도를 함께 기록합니다.

A rounded zero movement is not exact zero. The mapping also contains evaluation error, and distance certification needs an additional bound. Record residuals, tolerances and arithmetic precision rather than treating a display as a theorem.

55. 종합 설계 감사An integrated design audit

실제 자료 분석자가 τ와 η를 바꾸고 원관측을 clip한 뒤 “쌍대 간극 0이므로 정책 효과가 증명됐다”고 씁니다. 네 가지 구분을 짚으세요.

An analyst changes τ and η, clips original observations, then claims a zero dual gap proves a policy effect. Identify four distinctions.

풀이와 확인할 이유Solution and explanation

τ는 원목적,η는 알고리즘을 바꾸므로 따로 기록합니다. 원관측과 근사 출력은 분리하고 자료를 정사영해 덮어쓰지 않습니다. 원·쌍대 가능성과 가정을 확인한 유한 간극 0은 선택한 최적화 문제만 인증합니다. 인과 정책 효과에는 별도의 식별 설계가 필요하며 그 인증에서 나오지 않습니다.

τ changes the objective, while η changes its algorithm. Preserve observations separately from projected model outputs. A feasible finite zero gap certifies only the specified optimization problem under its assumptions. Causal policy effects need a separate identification design.

자료와 출처Data and sources

23장 실제 자료 사례Chapter 23 actual-data cases · 단위·가공 이력·정확 계산·원자료Units, transformations, exact calculations and source data

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms