Exercises
Exercise 9.1 (Non-Gaussian return distribution)
- Download market data for one asset.
- Plot the histograms for different frequencies of returns.
- Try to fit a Gaussian distribution.
- Assess the asymmetry as well as the thickness of the tails for these histograms (use Q-Q plots, compute skewness and kurtosis, etc.).
Exercise 9.2 (Computation of portfolio sample moments)
- Download market data corresponding to \(N\) assets during a period with \(T\) observations, \(\bm{r}_1, \dots, \bm{r}_T \in \R^N\).
- Estimate the mean vector, covariance matrix, co-skewness matrix, and co-kurtosis matrix of the data via sample means.
- Design some portfolio, such as the \(1/N\) portfolio, and compute the four moments of the portfolio returns (i.e., mean, variance, skewness, and kurtosis).
- Additionally, compute the gradient and Hessian of the four portfolio moments.
- Repeat the whole process for different values of \(N\), while keeping track of the computational cost, and make a final plot of complexity versus \(N\).
Exercise 9.3 (Comparison of non-parametric, structured, and parametric moments)
- Download market data corresponding to \(N\) assets during a period with \(T\) observations, \(\bm{r}_1, \dots, \bm{r}_T \in \R^N\).
- Design some portfolio, such as the \(1/N\) portfolio.
- Estimate the mean, variance, skewness, and kurtosis of the portfolio returns in the following ways:
- non-parametric moments: via a direct sample mean estimation of the mean vector, covariance matrix, co-skewness matrix, and co-kurtosis matrix;
- structured moments: via fitting a single market-factor model to the returns;
- parametric moments: via fitting a multivariate skew \(t\) distribution to the returns.
- Repeat the whole process for different values of \(N\), while keeping track of the computational cost, and make a final plot of complexity versus \(N\).
Exercise 9.4 (Sanity check of parametric moment expressions)
- Generate synthetic data according to a multivariate skew \(t\) distribution.
- Design some portfolio, such as the \(1/N\) portfolio,
- Estimate the mean, variance, skewness, and kurtosis of the portfolio returns in the following ways:
- non-parametric moments: first estimate via sample means the mean vector, covariance matrix, co-skewness matrix, and co-kurtosis matrix of the data, then evaluate the portfolio moments (as well as gradients and Hessians);
- parametric moments: first fit a multivariate skew \(t\) distribution to these synthetic returns, then evaluate the moments with the parametric expressions (as well as gradients and Hessians).
- Compare the non-parametric and parametric estimations.
- Repeat the whole process for different number of data samples \(T\), and make a final plot of estimators versus \(T\).
Exercise 9.5 (L-moments)
- Download market data for one asset.
- Compute the first four moments (i.e., mean, variance, skewness, and kurtosis) in a rolling-window fashion and plot them over time.
- Compute the first four L-moments (i.e., L-location, L-scale, L-skewness, and L-kurtosis) in a rolling-window fashion and plot them over time.
- Try different values for the lookback window and compare the regular moments with the L-moments.
Exercise 9.6 (MVSK portfolios)
- Download market data corresponding to \(N\) assets during a period with \(T\) observations, \(\bm{r}_1, \dots, \bm{r}_T \in \R^N\).
- Fit a multivariate skew \(t\) distribution to the data.
- Design a traditional mean–variance portfolio.
- Design a high-order MVSK portfolio.
- Compare their performance. Try to obtain a clear performance improvement via the introduction of higher orders.
Exercise 9.7 (Portfolio tilting)
- Download market data corresponding to \(N\) assets during a period with \(T\) observations, \(\bm{r}_1, \dots, \bm{r}_T \in \R^N\).
- Fit a multivariate skew \(t\) distribution to the data.
- Design some portfolio as a reference.
- Use the portfolio tilting formulation to improve the reference portfolio.
- Compare their performance. Try to obtain a clear performance improvement via tilting.