0% found this document useful (0 votes)
156 views

STAD70 Statistics & Finance II: Assignment 2

This document outlines an assignment on statistics and finance with 4 problems. Problem 1 involves explaining a stock price drop and relating it to the efficient market hypothesis. Problem 2 involves theoretical and simulated variance ratios for AR(1) and Laplace processes. Problem 3 involves proving a proposition about efficient frontiers and writing a function to plot the frontier. Problem 4 involves fitting and testing global minimum variance portfolios using shrinkage estimators on Dow Jones stock returns from 2017-2022.

Uploaded by

scribdll
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
156 views

STAD70 Statistics & Finance II: Assignment 2

This document outlines an assignment on statistics and finance with 4 problems. Problem 1 involves explaining a stock price drop and relating it to the efficient market hypothesis. Problem 2 involves theoretical and simulated variance ratios for AR(1) and Laplace processes. Problem 3 involves proving a proposition about efficient frontiers and writing a function to plot the frontier. Problem 4 involves fitting and testing global minimum variance portfolios using shrinkage estimators on Dow Jones stock returns from 2017-2022.

Uploaded by

scribdll
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

STAD70 Statistics & Finance II

Assignment 2

Due date: March 9, 2021 (by 11:59pm). Late submissions will be penalized.

Include your codes in your submission.

1. (Open ended question) On Feb 3, 2022, the stock price of Meta Platforms Inc (symbol FB)
dropped by more than 25%.

(a) Given reason(s) to explain the price drop. (no less than 150 words)
(b) Discuss the event in relation to the efficient market hypothesis. Does it support or
oppose the EMH? (no less than 200 words)

In both parts, cite all references (news articles, research papers, price charts, etc) that you
use.

2. (a) Consider a stationary AR(1) process

rt = φrt−1 + εt ,

where |φ| < 1 and (εt ) is an i.i.d. white noise process. Show that the theoretical
variace ratio is equal to

φ 2 φ(1 − φq )
VR(q) = 1 + 2 − , q = 1, 2, . . . .
1 − φ q (1 − φ)2

(b) In Theorem 5.5 of the lecture notes we cited a result about the variance ratio:
√ suppose
rt are i.i.d. (and satisfy suitable technical conditions). Then, as T → ∞, T (VR(q)−
d
1) converges in distribution to N (0, 2(q−1)). [In the earlier version, the p there should
be a q, where q is the lag.] In this problem, we consider a simulation study to observe
this convergence.
i.i.d. i.i.d.
Consider two cases: (i) rt ∼ N (0, 1) and (ii) rt ∼ Laplace(0, 1). Here we recall
that the Laplace distribution Laplace(µ, b) has density
 
1 |x − µ|
f (x) = exp − , x ∈ R.
2b b

Consider q = 1, 2, 3, 4, 5 and T = 10, 100, 1000, 10000. For each case and each q-T
pair, simulate N = 5000 batches of data
√ points. The N batches provide an empirical
distribution for the distribution of T (VR(q)
d − 1). Plot a density estimate and
compare with that of the asymptotic distribution. Your final output should contain
25 = 5 × 5 graphs (arrange them in a matrix of graphs). Comment on the results.
3. (Quadratic programming)

1
(a) Prove Proposition 6.10 of the lecture notes (shape of the unconstrained efficient fron-
tier).
(b) A quadratic programming problem is an optimization problem of the form
1
min b> Db − d> b subject to A> b ≥ b0 .
2
b∈Rn

In R, this can be implemented numerically using the package quadprog.


Consider a collection of risky assets (with given mean vector µ and covariance matrix
Σ). Using the quadprog package, write a single function that plots that produces
the efficient frontier under the constraint that no short selling is allowed (i.e., w ≥ 0
where w is the vector of portfolio weights. Your function should be of the form
plotEF <- function(mu, Sigma) {
# ...
# implementation (it can call other functions)
# ...
# at some point you need to plot the frontier
# e.g. plot(...)
}
Note that your function can call other auxiliary functions. The main point is that you
must wrap the call to plot() (or similar functions such as ggplot()) in plotEF(),
and cannot do so in the main script.
(c) Plot the frontier in (b) for the following µ and Σ:
set.seed(15) # for reproducibility
n_assets <- 10 # number of assets
mu <- rnorm(n = n_assets, mean = 0.1, sd = 0.1)
A <- matrix(rnorm(n_assets*n_assets, mean = 0, sd = 0.2), nrow = n_assets)
Sigma <- diag(rep(0.1, n_assets)) + (5/n_assets)*(A %*% t(A))

4. Consider the following stocks (in the Dow Jone index):

symbol_seq <- c("MMM", "AXP", "AMGN", "AAPL", "BA",


"CAT", "CVX", "CSCO", "KO", "DIS",
"GS", "HD", "HON", "IBM",
"INTC", "JNJ", "JPM", "MCD", "MRK",
"MSFT", "NKE", "PG", "CRM", "TRV",
"UNH", "VZ", "V", "WBA", "WMT")

Consider daily (arithmetic) return of these stocks from 2017-01-01 to 2022-1-31. We use
the data from 2017-01-01 to 2019-12-31 for fitting, and the data from 2020-01-01-2022-
01-31 for testing. For the purposes of this problem, we ignore the time dependency of
the returns. In this problem, we are interested in finding the global minimum variance
portfolio.

(a) Randomly assign the fitting data into two parts. The first part (70%) will be used
as training data, and the rest (30%) will be use for validation. When missing data
exists, use the maximal subset of dates such that the return exists for all stocks.

2
(b) For α ∈ {0, 0.05, 0.1, . . . , 0.95, 1}, consider the skrinkage estimator

Σ̃ = (1 − α)Σ̂ + (1 − α)D̂,

where Σ̂ is the sample covariance matrix, and D̂ is the diagonal matrix of Σ̂.
For each α, estimate Σ̃ using the training data. Compute the global minimum variance
portfolio under the no short selling constraint (see Problem 3).
(c) Using the validation data, pick the α∗ which minimizes the standard deviation of the
portfolio.
(d) Using the α∗ from (c) and the corresponding portfolio, compute the realized standard
deviation of the returns in the testing period. Comment on the performance of your
estimator. [This last part is non-trivial and a good answer can grant you extra credits
(at most 5%, and your total for this assignment cannot exceed 100%).]

You might also like