Practice questions-EE5180
Practice questions-EE5180
Rahul Meshram
August 22, 2023
1 Convex sets
1. Show that the hyperbolic set {x ∈ R2+ | x1 x2 ≥ 1} is convex.
2. Let C = {x ∈ Rn | α ≤ aT x ≤ β}. Is C convex? Provide proof.
3. Let C = {x ∈ Rn | αi ≤ xi ≤ βi , i = 1, 2, · · · , n}. Is C convex? Provide proof.
4. The set C = {x| x + S2 ⊆ S1 } where S1 , S2 ⊆ Rn with S1 is convex. Is C convex? Provide proof.
5. Let C ⊆ Rn be the solution set of quadratic inequality, i.e.,
C = {x ∈ Rn | xT Ax + bT x + c ≤ 0}
2 Convex functions
1. Suppose f : R → R is convex, with R ⊆ domf. Show that F (x) is convex, where
1 x
Z
F (x) = f (t)dt
x 0
domF = R++ .
2. If f1 and f2 are convex functions, then show that f (x) = max{f1 (x), f2 (x)} is also convex.
3. Show that f (x) = h(g(x)) is convex function, if h is convex, non-decreasing and g is convex function.
1
7. Show that the gradient descent algorithm is same as solution of following optimization problem.
1
wt+1 = arg min ||w − wt ||2 + η f (wt )+ < w − wt , ∇f (wt ) >
(3)
2
Here < x, y >= xT y is the inner product of two vector.
PT
8. Suppose that w = T1 t=1 wt and f is convex function.
• Show that
T
1X
f (w) − f (w∗ ) ≤ (f (wt ) − f (w∗ )) (4)
T t=1
T
1X Bβ
< wt − w∗ , vt >≤ √ .
T t=1 T
• Show that
Bβ
f (w) − f (w∗ ) ≤ √ . (7)
T
For any ϵ > 0, in order to achieve f (w) − f (w∗ ) ≤ ϵ, for how long we have to run Gradient descent
algorithm.
• Book: Understanding Machine Learning Algorithms by Shai Shalev-Shwartz and Shai Ben-David
(Chapter 12, 13 and 14 )