0% found this document useful (0 votes)
10 views2 pages

Quantitative Risk Management Homework 2023

This document outlines homework assignments on quantitative risk management. It includes 4 questions on properties of least squares estimators, linearizable regression functions, analyzing log returns of stock price data, and using classical linear regression to model the German stock index DAX. Students are asked to prove claims about least squares estimators, transform non-linear regression models into linear models, analyze log returns of Volkswagen and BMW stock data, and estimate the drift of the DAX using linear regression on historical closing prices. The solutions are due by November 6th.

Uploaded by

zahir abdellah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Quantitative Risk Management Homework 2023

This document outlines homework assignments on quantitative risk management. It includes 4 questions on properties of least squares estimators, linearizable regression functions, analyzing log returns of stock price data, and using classical linear regression to model the German stock index DAX. Students are asked to prove claims about least squares estimators, transform non-linear regression models into linear models, analyze log returns of Volkswagen and BMW stock data, and estimate the drift of the DAX using linear regression on historical closing prices. The solutions are due by November 6th.

Uploaded by

zahir abdellah
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Institute of Actuarial and Financial Mathematics WiSe 2023/24

Leibniz University Hannover


Prof. Dr. Stefan Weber, [Link]. Sören Bettels

Quantitative Risk Management - Homework 2

Homework 2.1 - Properties of LSE 2 + 3p


Let β̂ be the least squares estimator of the classical linear model

y = Xβ + ε,

where X ∈ Rn×k+1 is the design matrix, β ∈ Rk+1 is the unknown parameter and ε ∈ Rn
are the centered errors with Cov(ε) = σ 2 I. Proof the following claims:

a) β̂ is an unbiased estimator for β.

b) Cov(β̂) = σ 2 (X T X)−1 when conditioned to X and Cov( d β̂) = σ̂ 2 (X T X)−1 is an


1
unbiased estimator for Var(β̂), where σ̂ 2 = n−k−1 ε̂T ε̂.

Homework 2.2 - Linearizable Regression Functions 2 + 2 + 2p


Consider the regression model
yi = f (zi , β, εi ),
for a suitable function f , i ∈ {1, . . . , n} and arbitrary error random variables εi .
Show that for the following functions f (zi , β, εi ) the regression model can be transformed
to a linear model and derive an estimator for β ∈ R2 from the least squares estimator of
the transformed model under the assumption that the after the transformation resulting
additive errors are centred and independent in i.

(a) f (zi , β, εi ) = β1 ziβ2 εi ,

(b) f (zi , β, εi ) = exp(−β1 zi1 exp(−β2 zi2 )εi ),

(c) f (zi , β, εi ) = β1 zi /(β2 + zi + β1 zi εi ).


Homework 2.3 - Empirical Properties of Financial Data 2 + 2 + 2p
Analyze the log returns of the Volkswagen stock from October 27th, 2015, until October
27th, 2020 in MATLAB:

a) Extract the stock price data from a source of your choice (for example: from Yahoo
Finance, stock [Link], closing value) and plot the log returns against time.

b) Fit a normal distribution in mean and variance to the log returns and sample a
time series as i.i.d. samples from the fitted normal distribution. Secondly compare
the log returns in (a) to the fitted normal distribution with a QQ-plot.

c) Calculate skewness and kurtosis of the log returns and perform a Jarque-Bera
test. Is a normal distribution in your opinion an appropriate choice to model the
Volkswagen log returns?

d) Extract BMW stock price data ([Link]) for the same time period and calculate
the corresponding log returns. Compare the BMW and Volkswagen log returns
time series and draw a pairwise scatter plot.

Homework 2.4 - Classical Linear Regression 1 + 2p


Consider the process St , t ∈ {1, . . . , 254} describing the daily closing prices of the german
market index DAX. We assume that the relative increments of St are independent in
time and stationary, such that
St+1 St+1 d Ss+1
|=

St and = ,
St St Ss
where s ̸= t, s, t ∈ {1, . . . , 253}.

a) Download the historical closing prices of the DAX from StudIP and plot the data
and returns SSt+1
t
against time.

b) Assume that St = β0 + β1 t + εt and calculate the least squares estimator for


(β0 , β1 )T to estimate the deterministic drift of log(St ) in the last year. Is this a
good approach to estimate the expected behavior of the DAX?

The solutions to the homework are to be handed in until the 6th of November at 12:15
p.m. via email to [Link]@[Link]

Common questions

Powered by AI

The appropriateness of using a normal distribution for Volkswagen's log returns can be evaluated by computing skewness, kurtosis, and performing a Jarque-Bera test. Skewness measures asymmetry, with a value near zero indicating symmetry typical of normal distributions. Kurtosis measures tailedness, with a value of 3 indicating normality. Significant deviation from these values suggests non-normality. The Jarque-Bera test, which combines skewness and kurtosis to test the normal hypothesis, if returning a low p-value, indicates that log returns are not normally distributed. Thus, if skewness and kurtosis deviate significantly from 0 and 3, respectively, and the Jarque-Bera test suggests rejection of normality, a normal distribution model is inappropriate .

Assuming time independence and stationarity in financial time series, like the DAX index, suggests that returns are consistent in distribution over time, without dependence on past outcomes. This assumption simplifies modeling as it allows use of linear models and time-invariant coefficients. However, financial markets often show volatility clustering and trend components, violating these assumptions. Ignoring such features may lead to inaccurate predictions and misinterpretations of market dynamics, suggesting the use of these assumptions with caution or the introduction of models accounting for time-varying volatility like ARCH or GARCH processes .

The covariance of the least squares estimator \( \hat{\beta} \) is given by \( \operatorname{Cov}(\hat{\beta}) = \sigma^2(X^TX)^{-1} \), conditioned on the design matrix \( X \). To derive an unbiased estimator for the variance, \( \hat{\sigma}^2 \), we use \( \hat{\sigma}^2 = \frac{1}{n-k-1} \hat{\epsilon}^T \hat{\epsilon} \), where \( \hat{\epsilon} = y - X\hat{\beta} \) denotes the residuals. This expression leads to an unbiased estimator for \( \operatorname{Var}(\hat{\beta}) = \hat{\sigma}^2 (X^TX)^{-1} \), assuming normality of errors .

For the non-linear model \( f(z_i, \beta, \epsilon_i) = \exp(-\beta_1 z_{i1} \exp(-\beta_2 z_{i2}) \epsilon_i) \), to linearize it, one can take the logarithm of both sides, yielding \( \log(y_i) = -\beta_1 z_{i1} - \beta_2 z_{i2} + \log(\epsilon_i) \). This transformation aligns with a linear model \( Y' = Z\beta + \epsilon' \) where \( Y' = \log(y_i) \) and \( Z = [-z_{i1}, -z_{i2}] \) with \( \epsilon' = \log(\epsilon_i) \). This allows us to use linear regression methods to estimate \( \beta \) from the model .

The approach proposed for estimating the deterministic drift of \( \log(S_t) \) in the DAX index is to model \( S_t = \beta_0 + \beta_1 t + \epsilon_t \) and use least squares estimation for \( (\beta_0, \beta_1)^T \). This assumes a linear trend in stock prices. However, this approach may not fully capture the complexity of financial time series which can exhibit non-linear trends, volatility clustering, and leptokurtosis. Thus, while it may provide some insights into a general trend, failing to account for these nuances can lead to biased or oversimplified models for forecasting .

To demonstrate that \( \hat{\beta} \) is an unbiased estimator, we rely on the key property that the expected value of the estimator equals the parameter being estimated. In the classical linear model \( y = X\beta + \epsilon \), the least squares estimator \( \hat{\beta} \) is given by \( (X^TX)^{-1}X^Ty \). Taking expectations, \( E[\hat{\beta}] = (X^TX)^{-1}X^TE[y] \). Since \( E[y] = X\beta \), we get \( E[\hat{\beta}] = (X^TX)^{-1}X^TX\beta = \beta \), confirming that \( \hat{\beta} \) is an unbiased estimator for \( \beta \).

Non-linear regression functions like \( f(z_i, \beta, \epsilon_i) = \beta_1 z_i^{\beta_2} \epsilon_i \) can be transformed into linear models by applying logarithmic transformation to linearize the exponents. Taking log on both sides, we have \( \log(y_i) = \log(\beta_1) + \beta_2 \log(z_i) + \log(\epsilon_i) \). This describes a linear relationship between \( \log(y_i) \) and \( \log(z_i) \) with coefficients \( \log(\beta_1) \) and \( \beta_2 \). The transformed model allows the estimation of \( \beta \) using least squares on the transformed variables .

The covariance \( \text{Cov}(\hat{\beta}) = \sigma^2(X^TX)^{-1} \) is calculated under the assumption that the errors \( \epsilon \) are homoscedastic and uncorrelated, meaning that \( \,\text{Cov}(\epsilon) = \sigma^2I \). Independence among errors implies no correlation between errors for different observations, which ensures the validity of this covariance matrix. If the independence condition is violated, resulting heteroscedasticity or autocorrelation would require alternative estimators or adjustments such as using heteroscedasticity-robust standard errors to provide unbiased variance estimates .

A QQ-plot compares the quantiles of the log returns of a stock against those of a fitted normal distribution. Points lying on a 45-degree reference line indicate that the data's distribution aligns with a normal distribution. Deviations from the line suggest disparities in distribution; points above the line in tails indicate heavy tails (leptokurtosis), while deviations in the center indicate skewness or other central distributional differences. A systematic deviation indicates that the data may not follow a normal distribution, suggesting the need for alternative models or distributions to better capture the data characteristics .

To compare the log returns of BMW and Volkswagen stocks, first calculate the log returns for each over the given period. Next, visualize these returns on a time series plot for a direct comparison of their volatility and trends. A scatter plot of BMW against Volkswagen returns can reveal any linear correlation, where clustering along a line indicates correlation. Statistical analysis such as calculating Pearson or Spearman correlation coefficients offers insight into the strength and type of relationship. Further, regression analysis can evaluate how changes in one stock's returns are associated with changes in the other's .

You might also like