MSML604_Homework_4
MSML604_Homework_4
Peeyush Dyavarashetty
March 2025
1 Question 1
1.1 Question 1.a
The domain x ∈ Rn is convex, since any line segment between x1 , x2 ∈ Rn i.e
θx1 + (1 − θ)x2 stays in R⋉ , where θ ∈ [0, 1]. So,
1
This proves that Sn is a convex set. Now, to prove for convex function, taking
A, B ∈ Sn and θ ∈ [0, 1]
f (A) = trace(A)
f (B) = trace(B)
f (θA + (1 − θ)B) = trace(θA + (1 − θ)B)
= θtrace(A) + (1 − θ)trace(B)
= θf (A) + (1 − θ)f (B)
Here, f (θx + (1 − θ)y) = θf (x) + (1 − θ)f (y) ∀θ ∈ [0, 1], proving that f is a
convex function.
λmax (M ) = sup||v||=1 v T M v
Here, we can observe that λmax (M ) is linear w.r.t the matrix M . Therefore, it
is an affine function, which is convex.
2 Question 2
2.1 Question 2.a
Pn
Given total budget B = 1, which is i=1 Ii = 1, We need to
max E[RT ]
subject to V ar(RT ) ≤ σT2
Xn
Ii = 1
i=1
min − E[RT ]
subject to V ar(RT ) ≤ σT2
Xn
Ii = 1
i=1
2
The problem is that we do not know whether any P
of these minimization problems
n
or constraints are convex. Now, we know RT = i=1 Ri · Ii
n
X
E[RT ] = E[ Ri · Ii ]
i=1
n
X n
X
= E[Ri ]Ii = ri Ii
i=1 i=1
I1
I2
where Σ is a covariance matrix and I = . .
..
In
Since the covariance matrix ∇2 V ar(RT ) = Σ is symmetric and positive semi-
definite, implying that the second derivative is positive. So V ar(RT ) − σT2 is
convex.
Since investment cannot be negative Ii ≥ 0 ∀i ∈ [n]. Therefore, the convex opti-
T
mization for this problem, where I = I1 I2 . . . In , and Σ is covariance matrix
3
is
n
X
minI1 ,I2 ,...,In − ri Ii
i=1
subject to IΣI − σT2 ≤ 0
T
Xn
Ii − 1 = 0
i=1
− Ii ≤ 0
min V ar(RT )
subject to E[RT ] ≥ Rmin
Xn
Ii − 1 = 0
i=1
− Ii ≤ 0
Now, we know that
min V ar(RT ) = IΣI T
n
X
subject to E[RT ] = ri Ii ≥ Rmin
i=1
n
X
Ii − 1 = 0
i=1
− Ii ≤ 0
where both equations are convex. Using these equations, we can convert the
following convex optimization problem to the following
minI IΣI T
n
X
min
subject to R − ri Ii ≤ 0
i=1
n
X
Ii − 1 = 0
i=1
− Ii ≤ 0
3 Question 3
Given sample information s1 , s2 , . . . sm ∈ Rn , we need to find non-negative
weights w = (w1 , w2 , . . . , wm ) ∈ Rm+ such that sum of the weights wi is 1.
4
Therefore, the conditions are
wi ≥ 0 ∀ i ∈ [m] =⇒ −wi ≤ 0 ∀i ∈ [m] (3)
Xm
wi = 1 (4)
i=1
Xm Xm
= wj · (si − sj )
i=1 j=1 2