Try   HackMD

02 Portfolio Optim. for 2 Assets

tags: kkk

Portfolio optimization with 2 assets

Given two risky assets as follows:

{Asset 1: μ=μ1,σ=σ1Asset 2: μ=μ2,σ=σ2
We can use a weight vector
[w1,w2]T
, with
w1+w2=1
to allocate these two assets to have overall mean return
μ
and variance
σ2
:
{μ=w1μ1+w2μ2σ2=w12σ12+w22σ22+2w1w2σ12

Instead of using two parameters in the above expression, we can use only a single parameter
w
, with
w1=w
and
w2=1w
:
{μ=wμ1+(1w)μ2σ2=w2σ12+(1w)2σ22+2w(1w)σ12

dσ2dw=2wσ122(1w)σ22+2(12w)σ12=2w(σ12+σ222σ12)2σ22+2σ12=0

w=σ22σ12σ12+σ222σ12,1w=σ12σ12σ12+σ222σ12
Therefore when the minimum variance occurs at the above weights, we have
μ=μ1(σ22σ12)σ12+σ222σ12+μ2(σ12σ12)σ12+σ222σ12=μ1σ22+μ2σ12σ12(μ1+μ2)σ12+σ222σ12

σ2=(σ22σ12)2σ12(σ12+σ222σ12)2+(σ12σ12)2σ22(σ12+σ222σ12)2+2(σ22σ12)(σ12σ12)σ12(σ12+σ222σ12)2=σ12σ22σ122σ12+σ222σ12
(You need to verify this by yourself!)

We can go one step further to find the equation defining the relationship betweeen

μ and
σ
. First of all, we have
w=μ2μμ2μ1,1w=μμ1μ2μ1

Therefore
σ2=(μ2μμ2μ1)2σ12+(μμ1μ2μ1)2σ22+2(μ2μμ2μ1)(μμ1μ2μ1)σ12=1(μ2μ1)2[(μ22μ2μ+μ22)σ12+(μ22μ1μ+μ12)σ222(μ2(μ1+μ2)μ+μ1μ2)σ12]=1(μ2μ1)2[(σ12+σ222σ12)μ22(μ2σ12+μ1σ22(μ1+μ2)σ12)μ+μ22σ12+μ12σ222μ1μ2σ12]

Since
σ12+σ222σ122(σ1σ2σ12)0
, the above equation is a hyperbola on the
σμ
plane. It can reduce to a parabola if
σ12+σ222σ12=0
.

Note that we can express

σ12 as follows:
σ12=σ1σ2ρ12,

where
ρ12
is the correlation coefficient for the return rates of assets 1 and 2, with
1ρ121
. This leads to the following expressions of the overall
μ
and
σ
:
{μ=w1μ1+w2μ2σ2=w12σ12+w22σ22+2w1w2σ1σ2ρ12

Let's discuss 3 cases when

ρ12 is equal to 1, 0, and -1, respectively.

  • When
    ρ12=1
    , we have
    σ2=w12σ12+w22σ22+2w1w2σ1σ2=(w1σ1+w2σ2)2{μ=w1μ1+w2μ2σ=|w1σ1+w2σ2|
    As
    w1
    is changing from 0 to 1, the above equations represent a line connecting
    (σ1,μ1)
    (when
    w1=1
    and
    w2=0
    ) and
    (σ2,μ2)
    (when
    w1=0
    and
    w2=1
    ). So the minimum variance is
    min(σ12,σ22)
    .
  • When
    ρ12=0
    , we have
    σ2=w12σ12+w22σ22
    By using Cauchy-Schwartz inequality, we have
    (w12σ12+w22σ22)(σ12+σ22)(w1+w2)2=1
    Therefore the minimum variance can be derived as follows:
    σ2=w12σ12+w22σ22(σ12+σ22)1=σ12σ22σ12+σ22
    The equality holds when
    w12σ12/σ12=w22σ22/σ22w1=σ22σ12+σ22,w2=σ12σ12+σ22
    And the corresponding overall
    μ
    can be expressed as
    μ=μ1σ22+μ2σ12σ12+σ22
  • When
    ρ12=1
    , we have
    σ2=w12σ12+w22σ222w1w2σ1σ2=(w1σ1w2σ2)2

    In this case, we can achieve zero risk by setting
    w1σ1=w2σ2w1=σ2σ1+σ2,w2=σ1σ1+σ2.
    Therefore the minimum variace is 0, and the corresponding return is
    σ2μ1+σ1μ2σ1+σ2
    .

The plot of efficient frontiers with various values of

ρ12 when
(σ1,μ1)=(0.15,0.2)
and
(σ2,μ2)=(0.25,0.3)
is shown next. In particular, if we restrict
w
to be within the interval
[0,1]
, then the feasible area for the efficient frontiers of varying correlation coefficients is a triangle with tips at
(σ1,μ1)
,
(σ2,μ2)
, and
(0,σ1μ2+σ2μ1σ1+σ2)
.
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

And here is another plot for
(σ1,μ1)=(0.2,0.1)
and
(σ2,μ2)=(0.1,0.3)
.
Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Exercises

  1. In PO for 2 assets, when will the efficient frontier reduce to a straight line?
  2. In PO for 2 assets, when will the efficient frontier reduce to a parabola?
  3. In PO for 2 assets, when will the overall risk go to zero? What are the weights when this happens?
  4. In PO for 2 assets, can you derive the general formula for minimum-variance portfolio?
    • What is the minimum variance?
    • What is the corresponding return and weights?
  5. Given two risky assets as follows:
    {Asset 1: μ=0.2,σ=0.1Asset 2: μ=0.3,σ=0.2
    Under the following conditions, what are the corresponding minimum variances when we achieve minimum-variance portfolio?
    • ρ12=1
    • ρ12=0
    • ρ12=1
  6. Given two risky assets as follows:
    {Asset 1: μ=0.2,σ=0.1Asset 2: μ=0.3,σ=0.2
    And the correlation coefficient of these two assets is
    ρ12=0
    . We want to perform portfolio optimization with investment weigthing of
    w1
    and
    w2
    for assets 1 and 2, respectively.
    • What are the overall
      μ
      (return) and
      σ
      (volatility) when
      w1=0.4
      and
      w2=0.6
      ?
    • What are the overall
      μ
      , overall
      σ
      , and
      w1
      for achieving the minimum-variance portfolio?
  7. Given two risky assets as follows:
    {Asset 1: μ=0.2,σ=0.1Asset 2: μ=0.3,σ=0.2
    And the correlation coefficient of these two assets is
    ρ12=0.4
    . We want to perform portfolio optimization with investment weigthing of
    w1
    and
    w2
    for assets 1 and 2, respectively.
    • What are the overall
      μ
      (return) and
      σ
      (volatility) when
      w1=0.4
      and
      w2=0.6
      ?
    • What are the overall
      μ
      , overall
      σ
      , and
      w1
      for achieving the minimum-variance portfolio?