# Solution of the Exam (2015)

*This is the solution of the exam for the 2015 ensae course.*

## Exercise 1

### Part 1

- \(\sum_{i=1}^{N} \pi_{i}=1.\)
- \(W_{1}=W_{0}R_{p}\) with \(R_{p}=\sum_{i=1}^{N}\pi_{i}R_{i}\) or \(r_{p}=\sum_{i=1}^{N}\pi_{i}r_{i}\).
- \(\mu_{p}=\sum_{i=1}^{N}\pi_{i}\mu_{i}=\pi'\mu\) and \(\sigma^{2}_{p}=\pi'\Sigma\pi\).
- \[ \underset{\pi}{\text{min}} \; \pi'\Sigma\pi\] \[\text{s.t.}: \;\; \pi'e=1.\] Lagrangian: \(\frac{1}{2}\pi'\Sigma\pi-\gamma (\pi'e-1)\). First order condition: \(\Sigma \pi^{1}=\gamma e\). Value of the Lagrange multiplier and solution: \[\gamma =\frac{1}{e'\Sigma e},\; \pi^{1}=\frac{\Sigma^{-1}e}{e'\Sigma e}.\] All risky asset portfolios which are efficient must have a rate of return in excess of: \[\mu^{1}=\frac{\mu'\Sigma^{-1}e}{e'\Sigma e}=\frac{e'\Sigma^{-1}\mu}{e'\Sigma e}.\]
- \[ \underset{\pi}{\text{min}} \; \pi'\Sigma\pi\] \[\text{s.t.}: \;\; \pi'e=1,\; \pi'\mu=\mu_{p}.\] Lagrangian: \(\frac{1}{2}\pi'\Sigma\pi-\gamma (\pi'e-1)-\delta (\pi'\mu-\mu_{p})\). First order condition: \(\Sigma \pi^{p}=\gamma e+\delta \mu\) or \(\pi^{p}=\gamma \Sigma^{-1}e+\delta\Sigma^{-1}\mu\). The linear system which determines the multipliers comprises two equations which correspond to the constraints in which the value of \(\pi^{p}\) has been injected: \[\delta \mu' \Sigma^{-1}\mu+\gamma \mu' \Sigma^{-1}e=\mu_{p},\] \[\delta e'\Sigma^{-1}\mu+\gamma e'\Sigma^{-1}e=1.\]
- The determinant of the linear system is: \((\mu'\Sigma^{-1}\mu)(e'\Sigma^{-1}e)-(\mu'\Sigma^{-1}e)^{2}\). Under the conditions quoted in the text, it is strictly positive.
- The linear system has a unique solution for each \(\mu_{p}\). If \(\gamma\) is zero, we must have \(\delta=\frac{1}{e'\Sigma^{-1}\mu}\). As a consequence: \[\mu^{\mu}=\frac{\mu'\Sigma^{-1}\mu}{e'\Sigma^{-1}\mu}.\] We have: \[\pi^{\mu}=\frac{\Sigma^{-1}\mu}{e'\Sigma^{-1}\mu}.\]
- The formula for \(\pi^{p}\) can be written: \[\gamma (e'\Sigma^{-1}e) \frac{\Sigma^{-1}e}{e'\Sigma^{-1}e}+\delta (\mu'\Sigma^{-1}\mu)\frac{\Sigma^{-1}\mu}{\mu'\Sigma^{-1}\mu}.\] Thus: \[\gamma (e'\Sigma^{-1}e) \pi^{1}+\delta (\mu'\Sigma^{-1}\mu)\pi^{\mu}.\] We have: \[\gamma (e'\Sigma^{-1}e)+\delta (\mu'\Sigma^{-1}\mu)=\lambda+(1-\lambda)=1,\] from the linear system, using \(\lambda=\gamma (e'\Sigma^{-1}e)\). When the required rate of return increases from \(\mu^{1}\) to \(\mu^{\mu}\), \(\lambda\) decreases from \(1\) to \(0\). The Lagrange multiplier of the budget constraint decreases until it reaches \(0\). When the required rate of return exceeds \(\mu^{\mu}\), the solution consists in selling the minimum variance portfolio so as to leverage \(\pi^{\mu}\). The Lagrange mutliplier of the budget constraint measures the price of the constraint. The price is high for the minimum variance portfolio because lowering the sum of weights below one would obviously allow to lower the variance further. When a rate of return constraint is imposed (\(\mu_{p}>\mu^{1}\)), the latter constraint prevents from lowering the variance. The price of the budget constraint comes down.
- The linear system delivers the Lagrange multipliers as a function of \(A=\mu'\Sigma^{-1}\mu,B=\mu'\Sigma^{-1}e,C=e'\Sigma^{-1}e\): \[\sigma_{p}^{2}=\frac{A-2B\mu_{p}+C\mu_{p}^{2}}{AC-B^2}.\] The efficient frontier is the trace in the half plane \(\sigma_{p}>0\) of the geometric locus of the quadratic equation: \[C\mu_{p}^{2}-(AC-B^2)\sigma_{p}^{2}-2B\mu_{p}+A=0.\] This defines a hyperbola (see conic sections).
- Two distinct efficient portfolios: \[\pi_{p_{1}}=\lambda_{p_{1}}\pi^{1}+(1-\lambda_{p_{1}})\pi^{\mu},\] \[\pi_{p_{2}}=\lambda_{p_{2}}\pi^{1}+(1-\lambda_{p_{2}})\pi^{\mu}.\] The matrix that maps \(\pi^{1}\) and \(\pi^{\mu}\) to the new efficient portfolios is invertible as soon as \(\lambda_{p_{1}} \neq \lambda_{p_{2}}\).

### Part 2

The Sharpe ratio of a portfolio is inherited from the risky asset subportfolio. Take two portfolios. They have risky asset subportfolios. If the two subportfolios are proportional to one another, the original portfolios have the same Sharpe ratio. Indeed, the Sharpe ratio of a portfolio \((\pi_{0},\pi)\) satisfies: \[\frac{\pi'(\mu-r^{f})}{Vol(\pi'\tilde{r})}=\frac{\theta\pi'(\mu-r^{f})}{Vol(\theta\pi'\tilde{r})},\] for any real number \(\theta>0\). By adjusting the cash level and changing in a proportionate way the risky asset portfolio (so as to preserve \(\pi_{0}+e'\pi=1\)), one can reach any level of volatility without changing the Sharpe ratio of the initial portfolio. One can thus ‘port’ a given Sharpe ratio over the whole volatility range. Thus, starting from two portfolios, \(P_{1}\) and $P_{2} $with distinct Sharpe ratios, we can choose the one with the highest Sharpe ratio (say \(P_{1}\)), adjust its cash holding and risky asset subportfolio (in a proportionate way) so as to build a new portfolio which matches the volatility of \(P_{2}\), and has the Sharpe ratio of \(P_{1}\). Thus \(P_{2}\) cannot be mean variant efficient if it has a Sharpe ratio that is strictly lower that that of \(P_{1}\). From a geometric standpoint, the efficient frontier is a half-line in the standard deviation/expected return space. It goes through the point \((0,r^{f})\) and through a point on the risky asset efficient frontier.

Consider the half-lines which satisfy the criteria established in the previous questions. These half-lines can be ordered because for any pair of such distinct half-lines, one is necessarily above the other. The ranking metric is the Sharpe ratio. The upper enveloppe of the set of half-lines is the efficient frontier \({\cal F}\). It is necessarily tangent to the risky asset efficient frontier \({\cal E}\). To see this, one has to realize that the efficient frontier \({\cal E}\) is vertical at \((\mu^{1},\sigma^{1})\), that it is concave: its slope in the \((\sigma,\mu)\) space is decreasing in \(\sigma\); finally this slope converges to zero asymptotically. In this configuration, the half-line which maximizes the Sharpe ratio has to intersect the efficient frontier \(\cal{E}\) at an ‘interior’ point, at a point with volatility \(\sigma\) satisfying \(\sigma^{1}<\sigma<\infty\).

- The optimization program reads: \[ \underset{\pi}{\text{min}} \; \pi'\Sigma\pi\] \[\text{s.t.}: \;\; \pi_{0}+\pi'e=1,\; \pi'(\mu-r^{f})=\mu_{p}-r^{f}.\] This is equivalent to: \({\cal P}(\mu_{p}-r^{f})\): \[ \underset{\pi}{\text{min}} \; \pi'\Sigma\pi\] \[\text{s.t.}: \;\; \pi'(\mu-r^{f})=\mu_{p}-r^{f},\] imposing \(\pi_{0}=1-\pi'e\).
If \(\pi\) is a portfolio that satisfies the contraint \(\pi'(\mu-r^{f})=\mu_{p,1}-r^{f}\), \(\hat{\pi}=\theta\pi\) with \(\theta=(\mu_{p,2}-r^{f})/(\mu_{p,1}-r^{f})\) satisfies \(\hat{\pi}'(\mu-r^{f})=\mu_{p,2}-r^{f}\). \({\cal P}(\mu_{p,1}-r^{f})\) can be written: \[ \underset{\pi}{\text{min}} \; \theta^{2}\pi'\Sigma\pi\] \[\text{s.t.}: \;\; \pi'(\mu-r^{f})=\mu_{p,1}-r^{f},\] since \(\theta\) is a constant. Thanks to this transformation, this program becomes: \[ \underset{\hat{\pi}}{\text{min}} \; \hat{\pi}'\Sigma\hat{\pi}\] \[\text{s.t.}: \;\; \hat{\pi}'(\mu-r^{f})=\mu_{p,2}-r^{f},\] which is just \({\cal P}(\mu_{p,2}-r^{f})\). Thus if \(\pi^{*}\) is the solution of \({\cal P}(\mu_{p,1}-r^{f})\), \(\theta\pi^{*}\) is the solution of \({\cal P}(\mu_{p,2}-r^{f})\). This works backwards as well. If the two corresponding optimal portfolios are proportional via \(\theta\), their excess-returns and their volatility are both multiplied by the same factor. As a consequence, the Sharpe ratio is conserved. It is maximized at the optimum since the program minimizes variance and thus volatility for a given excess return. The programs \({\cal P}\) identify the unique portfolio of maximum Sharpe ratio. This portfolio corresponds to point \(I\).

## Exercise 2

I assume \(\gamma<>1\), the log case being very similar. The dynamics of the wealth process is: \[\frac{dW_{u}}{W_{u}}=r^{f}du+\pi_{u}'(\mu-r^{f}e)du+\pi_{u}'\sigma dB_{u}.\] It is a geometric process. If \(W_{t}\) is multiplied by \(\theta\), the value of \(W_{T}\) is multiplied by \(\theta\) as well

**for any trajectory of the Brownian motion and all portfolio choices**\(\pi_{[t,T]}\). The criterion to be maximized for the starting point \(\hat{W_{t}}=\theta W_{t}\) is thus \(E_{t}[u(\theta W_{T})]=\theta^{1-\gamma}E_{t}[u(W_{T})]\) for \(\gamma\neq 1\). The investment process that is optimal for \(W_{t}\) still is for the initial condition \(\hat{W_{t}}\) and \(V(t,\hat{W_{t}})=\theta^{1-\gamma}V(t,W_{t})\).We have: \[V(t+\Delta,W_{t+\Delta})-V(t,W_{t})=\] \[\int_{t}^{t+\Delta}[V_{1}(u,W_{u})du+V_{2}(u,W_{u})dB_{u}]+\frac{1}{2}\int_{t}^{t+\Delta}V_{2,2}(u,W_{u})d[B]_{t}.\] Taking the expectation: \[\int_{t}^{t+\Delta}[V_{1}(u,W_{u})du+V_{2}(u,W_{u})W_{u}(r^{f}du+\pi_{u}'(\mu-r^{f}e)du)]+\] \[\frac{1}{2}\int_{t}^{t+\Delta}V_{2,2}(u,W_{u})W_{u}^{2} \pi_{u}'\Sigma\pi_{u}du.\]

- We have: \[ \underset{\pi_{t}}{\text{max}} \; \Big\{V_{1}(t,W_{t})+V_{2}(t,W_{t})W_{t}(r^{f}+\pi_{t}'(\mu-r^{f}e))+\frac{1}{2}V_{2,2}(t,W_{t})W_{t}^{2} \pi_{t}'\Sigma\pi_{t}\Big\}=0.\]
- The function to be maximized: \[V_{2}(t,W_{t})W_{t}\pi_{t}'(\mu-r^{f}e)+\frac{1}{2}V_{2,2}(t,W_{t})W_{t}^{2} \pi_{t}'\Sigma\pi_{t}.\] Since \(V\) is concave in \(W_{t}\), the second derivative is negative and the maximimum of the quadratic form is characterized by the first order condition: \[\pi^{*}_{t}=-\frac{V_{2}(t,W_{t})}{W_{t}V_{2,2}(t,W_{t})}\Sigma^{-1}(\mu-r^{f}e).\] Given question \(1\), on have: \[-\frac{V_{2}(t,W_{t})}{W_{t}V_{2,2}(t,W_{t})}=\frac{1}{\gamma}.\] The solution depends neither on \(t\) nor on \(T\).
- We have: \[\Sigma \pi^{\star}=\frac{1}{\gamma}(\mu-r^{f}e),\] which gives the first equation. We have as well: \[\sigma\sigma'\pi^{\star}=\frac{1}{\gamma}(\mu-r^{f}e),\] \[\sigma'\pi^{\star}=\frac{1}{\gamma}\lambda,\] \[\pi^{\star\prime}\sigma=\frac{1}{\gamma}\lambda',\] \[\pi^{\star\prime}=\frac{1}{\gamma}\lambda'\sigma^{-1},\] and this gives the second equation by multiplying by \((\mu-r^{f}e)\) on the right.
- \[d\log(W^{\gamma,\star}_{u})=r^{f}du+(1-\frac{1}{2\gamma})\frac{1}{\gamma}\kappa^{2}du+\frac{1}{\gamma}\lambda'dB_{u},\] \[W^{\gamma,\star}_{T}=W_{0}\exp\left(r^{f}T+(1-\frac{1}{2\gamma})\frac{1}{\gamma}\kappa^{2}T+\frac{1}{\gamma}\lambda'B_{T}\right).\]
- \[\frac{\log(W^{\gamma,*}_{T})-\log(W_{1})}{T}=\] \[r^{f}+(1-\frac{1}{2\gamma})\frac{1}{\gamma}\kappa^{2}+\frac{1}{\gamma}\frac{\lambda'B_{T}}{T}.\] The last term converges almost surely to \(0\) when \(T\) goes to \(+\infty\) (law of large numbers). The asymptotic rate of log growth reads: \[r^{f}+(1-\frac{1}{2\gamma})\frac{1}{\gamma}\kappa^{2}.\] It increases as \(\gamma\) rises up to \(1\) and then decreases beyond that point.
For a finite \(T\), the level of risk taken enters the picture whereas it does not enter into account in the asymptotic ranking of growth. Preference for risk matters for finite \(T\). The maximum growth portfolio is not optimal for \(\gamma<>1\). For \(\gamma<1\), the investor likes risk so much that he finds the max growth portfolio too safe. The investor wants to gamble more. For \(\gamma>1\), the investor finds the max growth portfolio too risky.