\( \newcommand{\bm}[1]{\boldsymbol{#1}} \newcommand{\textm}[1]{\textsf{#1}} \newcommand{\textnormal}[1]{\textsf{#1}} \def\T{{\mkern-2mu\raise-1mu\mathsf{T}}} \newcommand{\R}{\mathbb{R}} % real numbers \newcommand{\E}{{\rm I\kern-.2em E}} \newcommand{\w}{\bm{w}} % bold w \newcommand{\bmu}{\bm{\mu}} % bold mu \newcommand{\bSigma}{\bm{\Sigma}} % bold mu \newcommand{\bigO}{O} %\mathcal{O} \renewcommand{\d}[1]{\operatorname{d}\!{#1}} \)

Exercises

Exercise 6.1 (Effect of rebalancing)

  1. Download market data corresponding to \(N\) assets (e.g., stocks or cryptocurrencies) during a period with \(T\) observations, \(\bm{r}_1, \dots, \bm{r}_T \in \R^N\).
  2. Start with the \(1/N\) portfolio at time \(t=1\) and let the portfolio weights naturally evolve as the assets’ prices change over time. Plot the portfolio weights and the NAV over time (assuming transaction costs of 90 bps).
  3. Repeat using a regular calendar-based rebalancing scheme.
  4. Repeat using an adaptive rebalancing scheme when the difference exceeds a threshold.

Exercise 6.2 (Portfolio constraints) Consider a universe of \(N=2\) assets and draw the set of feasible portfolios under the following constraints:

  1. Budget and no-shorting constraints: \[ \bm{1}^\T\w \leq 1, \quad \w \ge \bm{0}. \]
  2. Budget fully invested and no-shorting constraints: \[ \bm{1}^\T\w = 1, \quad \w \ge \bm{0}. \]
  3. Budget, no-shorting, and holding constraints: \[ \bm{1}^\T\w \leq 1, \quad \w \ge \bm{0}, \quad \w \le 0.6\times\bm{1}. \]
  4. Budget and turnover constraints: \[\bm{1}^\T\w \leq 1, \quad \|\w - \w_0\|_1\leq 0.5,\] with \(\w_0\) denoting the \(1/N\) portfolio.
  5. Leverage constraint: \[\|\w\|_1\leq 1.\]

Exercise 6.3 (Performance measures)

  1. Download market data corresponding to the S&P 500 index.
  2. Plot the returns and cumulative returns over time.
  3. Calculate the annualized expected return with arithmetic and geometric compounding.
  4. Calculate the annualized volatility.
  5. Plot the volatility-adjusted returns and cumulative returns over time.
  6. Calculate the annualized Sharpe ratio with arithmetic and geometric compounding.
  7. Calculate the annualized semi-deviation and Sortino ratio.
  8. Calculate the VaR and CVaR.
  9. Plot the drawdown over time.

Exercise 6.4 (Heuristic portfolios)

  1. Download market data corresponding to \(N\) assets during a period with \(T\) observations.
  2. Using 70% of the data, compute the \(1/N\) portfolio and quintile portfolios using different ranking mechanisms.
  3. Plot and compare the different portfolio allocations over time.
  4. Using the remaining 30% of the data, assess the portfolios in terms of cumulative returns, volatility-adjusted cumulative returns, Sharpe ratio, and drawdown.

Exercise 6.5 (Risk-based portfolios) Repeat Exercise 6.4 with the following risk-based portfolios:

  1. GMVP
  2. IVolP
  3. MDivP
  4. MDecP