机器学习代写-CSE 250B
时间:2021-02-18
CSE 250B Winter 2020 - Quiz 3
Feb 21, 2020 - 30 Minutes Name: PID:
(1) This is a closed book, closed notes exam. Switch off your cell phone and do not communicate with anyone
other than an exam proctor.
(2) Start writing when instructed. Stop writing when your time is up.
(3) Remember that your work is graded on the quality of your writing and explanation as well as the validity of
the mathematics.
(1) In each of the following cases, state if f(x) is a convex function. Justify your answer.
(a) (5 points) f(x) = e−x
>x.
∂f
∂xi
= e−x
T x(−2xi)
∂f
∂x
= e−x
T x(−2x)
∂2f
∂xj∂xi
=
e−x
T x(4x2i − 2) xi = xj
e−x
T x(4xixj) xi 6= xj
∴ H = ∂
2f
∂x2
= e−x
T x(4xTx− 2I)
For a vector of all ones z, zTHz < 0 at x = 0. Therefore, H is not PSD.
(b) (5 Points) Suppose g and h are convex functions (not necessarily differentiable). f(x) = g(x) + h(x).
Since g and h are convex functions, for any x and y
g(λx+ (1− λ)y) ≤ λg(x) + (1− λ)g(y)
h(λx+ (1− λ)y) ≤ λh(x) + (1− λ)h(y)
For any x and y ∈ Df ,
f(λx+ (1− λ)y) = g(λx+ (1− λ)y) + h(λx+ (1− λ)y)
≤ λg(x) + (1− λ)g(y) + λh(x) + (1− λ)h(y)
= λg(x) + λh(x) + (1− λ)g(y) + (1− λ)h(y)
= λf(x) + (1− λ)f(y)
1
(2) (5 points) Suppose A and B are convex sets. Is the following set convex? Justify your answer.
C = {x+ y|x ∈ A, y ∈ B}
Letz1 = x+ y ∈ C =⇒ x ∈ A, y ∈ B
Letz2 = a+ b ∈ C =⇒ a ∈ A, b ∈ B
For any λ ∈ [0, 1],
λx+ (1− λ)a ∈ A ∵ x ∈ A, a ∈ A
λy + (1− λ)b ∈ B ∵ y ∈ B, b ∈ B
∴ λx+ (1− λ)a+ λy + (1− λ)b ∈ C ∵ λx+ (1− λ)a ∈ A, λy + (1− λ)b ∈ B
=⇒ λ(x+ y) + (1− λ)(a+ b) ∈ C
∴ λz1 + (1− λ)z2 ∈ C
∴ C is convex.




















































学霸联盟


essay、essay代写
essay、essay代写