Thursday, December 20, 2018

optimization - Maximum Sharpe portfolio (no short selling restrictions)


Suppose we have n assets whose expected return vector is r and is positive, and whose covariance matrix is Σ. Is there a closed form or quasi closed form (like the eigenvector of a matrix etc) solution to the portfolio weights vector w which maximises the Sharpe ratio wTr/wTΣw? (Assume no restriction on short selling.)


If in general its not possible, does a closed form solution exists for low dimensional cases like n=2,3? I remember being taught a closed form solution for n=2 in the class. The expression is a bit complicated and unfortunately isn't accompanied with a proof.


I tried differentiating wrt w but the gradient is a mess. I don't think we can get anything useful out of it.




Per the comment, the linked source claims that the maximiser is in the direction of Σ1r. Could someone explain or suggest otherwise? Thanks.

Answer



There are two cases, where short sales are allowed: With riskless lending and borrowing and without. As mentioned in the comments, you just have to solve a linear system.





With riskless lending and borrowing


The existence of a riskless lending and borrowing rate rf implies that there is a single portfolio of risky assets, that is preferred to all other portfolios. You want to maximize the function


θ=ˉRPRfσp


subject to the constraint Ni=1Xi=1.


ˉRP denotes the average portfolio return of N assets i with weights Xi and σP is the standard deviation of portfolio returns. From the definition of portfolio return, Rf=1Rf=(Ni=1Xi)Rf=Ni=1(XiRf), and their standard deviation, you get


θ=Ni=1Xi(ˉRiRf)[Ni=1(X2iσ2i)+Ni=1Nj=1jiXiXjσij]12

where σij is the covariance of asset returns ri and rj.


It is a simple maximization problem, you take the derivative with respect to each variable and set it equal to zero. You get a system of equations:



  1. dθdX1=0


  2. dθdX2=0

  3. dθdXi=0

  4. ...


In general: dθdXi=(λX1σ1i+λX2σ2i+...+λXiσ2i+...+λXN1σN1,i+λXNσNi)+ˉRiRf=0


with


λ=Ni=1Xi(ˉRiRf)Ni=1(X2iσ2i)+Ni=1Nj=1jiXiXjσij


After defining a new variable Zk=λXk, the formulation simplifies to the system (lets call it A):


ˉR1Rf=Z1σ21+Z2σ12+Z3σ13+ZNσ1N

ˉR2Rf=Z1σ12+Z2σ22+Z3σ23+ZNσ2N
...
ˉRNRf=Z1σ1N+Z2σ2N+Z3σ3N+ZNσ2N


The ZN are proportional to the optimum amount to invest in each security. First, solve the above system for ZN, then the optimum weight Xk for each asset k is



Xk=ZkNi=1Zi


Without riskless lending and borrowing


If a riskless rate Rf is not available, the solution above has to be modified. Assume that Rf exists and find the optimum portfolio with the method above. Then assume a different Rf and find the optimum portfolio that corresponds to this slightly changed riskless rate. Continue changing the assumed rate until the full efficient frontier is determined.


Consider again the linear system A. However, we do not have to substitute in a particular value of Rf. We can simply leave Rf as a general parameter and solve for Zk in terms of Rf. This results in a solution of the form


Zk=C0k+C1kRf


where C0k and C1k are constants. They have a different value for each asset k, but that value does not change with changes in Rf. Once the Zk are determined as functions of Rf, we could vary Rf to determine the amount to invest in each security at various points along the efficient frontier.




Additional remark


Lintner(1965) has an alternative definition of short sales which is more realistic. He assumes correctly that when an investor sells stock short, cash is not received but rather is held as collateral. Furthermore, the investor must put up an additional amount of cash equal to the amount of stock he or she sells short. In summary, the constrain here becomes Ni=1|Xi|=1.





Reference


Elton/Gruber/Brown/Götzmann (2014), Modern Portfolio Theory and Investment Analysis, ed. 9, John Wiley & Sons.


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...