Questions tagged [covariance]
A measure of the degree of linear association between a pair of random variables.
154
questions
0
votes
1
answer
156
views
Decomposing Co-variance of Two Assets Terminal Prices into Forward measures
Let $X_T,Y_T$ be the terminal values of two price processes following Continuous Gaussian Motion (I.E.) let us assume no jumps. Further assume the correct forwards/futures price is given by $F^X_{t,T} ...
6
votes
1
answer
622
views
Stress testing covariance
Going one level beyond stressed scenarios, to parameters e.g. for a VaR measure: what are the most common approaches for stressing a covariance/correlation matrix, especially taking portfolio exposure ...
1
vote
1
answer
124
views
In practice, how many days are used to estimate the covariance matrix of factor returns?
Let's say we have a factor model with $N$ factors. I understand that the unbiased estimator of the covariance matrix $\Sigma_f$ is:
$$
\Sigma_f = \frac{1}{n-1} X^T X
$$
where $X$ is a matrix of daily ...
0
votes
1
answer
201
views
Covariance Matrix of Correlated Random Variable
Suppose I know or have estimated the covariance matrix for one random variable (for example an asset) and have:
$$
\begin{bmatrix}
<\text{spot, spot}> & <\text{atmv, spot}> \\
<\...
1
vote
2
answers
318
views
$n$-day ahead forecast for asymmetric DCC-GARCH model
I am working on forecasting covariances with the use of MGARCH models. I was wondering if anyone knows how to implement a n-day ahead forecast of the aDCC (asymmetric DCC) model in R. The ...
0
votes
0
answers
35
views
How to prove that the feasible set of a two-asset portfolio is a hyperbola?
The question comes from ‘Mathematics for Finance: An Introduction to Financial Engineering’ by Marek Capiński (Author), Tomasz Zastawniak. The book does not give a complete proof, and I did not find a ...
0
votes
0
answers
58
views
GARCH for Mean Variance Optimization
I am currently trying to carry out a mean variance optimisation, with the implementation of GARCH. I'm not sure if this is going to make complete sense as my understanding of GARCH is limited.
In the ...
0
votes
1
answer
67
views
How to prove the inequality for the standard deviation of a linear combination of two random variables
The variance of the linear combination V of random variables X₁ and X₂ is given by the following formula:
$$
\sigma_{V}^{2} = s^{2} \sigma_{1}^{2}+(1-s)^2 \sigma_{2}^{2}+2 s(1-s) c_{12}
$$
where s and ...
1
vote
0
answers
34
views
Distribution of sample covariance times inverse covariance times sample covariance
I want to understand the distribution of the random variable:
$$S_n = \frac{1}{n^2} 1'\hat \Sigma \Sigma ^{-1} \hat \Sigma 1$$.
1 is a vector of ones of size n, and the variance is of size nxn. $\hat \...
0
votes
0
answers
47
views
Scaling returns to use PCA?
Many machine learning techniques perform better, if the data is preprocessed - either by normalization (MaxMin Scaler) or standardization (Standard Scaler). But that comes with a lack of ...
1
vote
1
answer
147
views
Standard deviation of large equal-weighted portfolios
Say I've got a portfolio of shares with the following parameters: Let $n$ be the number of shares in the portfolio, let $\bar\sigma$ be the average standard deviation (volatility/risk) for each share, ...
1
vote
0
answers
83
views
Discuss how you would allocate your budget between the two assets if their correlation is 1, 0, or -1
An asset A is expected to yield a $2\%$ return with a standard deviation of $1\%$, and another asset B is expected to yield a $1\%$ return with a standard deviation of $1\%$.
Discuss how you would ...
0
votes
1
answer
86
views
covariance between squared returns and past returns
Let $y_t = \sqrt{h_t} \epsilon_t$ where $\epsilon_t\overset{ iid}{\sim} N(0,1)$
$h_t = \alpha_0 +\alpha_1 y_{t-1}^2+\beta_1 h_{t-1}$ with $\alpha_0>0, \alpha_1>0, \beta_1<1,\alpha_1+\beta_1&...
0
votes
1
answer
69
views
Is there any relationship between the Covariance(A, B) and the variance of the synthetic asset A/B?
Let's say we have 2 pairs of currencies: EUR/USD and GBP/USD. The cross-asset (or synthetic asset) would be (EUR/USD) / (GBP/USD) = EUR/GBP.
Is there any relationship between the covariance(EUR/USD, ...
6
votes
0
answers
152
views
How can one quantify the incremental value of better covariance matrix modeling in portfolio optimization?
Let's say we have two estimators of the covariance matrix, $\hat{C}_1$ and $\hat{C}_2$, and the latter is an improvement on the former.
Is there any measure of the improvement that can be sensibly ...
0
votes
2
answers
395
views
Why do we need the covariance when calculating portfolio VaR?
I was recently learning about value at risk and how to calculate it, and one of the steps was to calculate the covariance of the returns of the securities making up the portofolio.
This makes sense ...
0
votes
0
answers
153
views
"fix" a sample covariance matrix which is not positive semidefinite by using daily returns instead of monthly
In the portfolio optimization problem at hand, one of the constraints is that the tracking error should not be greater than $\gamma$.
The constraint is therefore:
$(\textbf{x}-\textbf{w})^\mathrm{T}\...
0
votes
0
answers
177
views
Estimating covariance with intraday data
I have intraday (30 min) data for a number of stocks, and I would like to calculate the covariance matrix of returns.
For the purpose of calculating the covariance matrix, is it better/more correct to ...
3
votes
1
answer
328
views
Covariance Between Two Frontier Portfolios
Based on the definitions of A, B, C, and D in "An Analytic Derivation Of The Efficient Portfolio Frontier" by Robert Merton (1972), how can I prove the following in a line-by-line derivation?...
-1
votes
1
answer
1k
views
Daily vs Monthly vs. other return for volatility calculation?
I thought I read/heard somewhere that annualized volatility, using monthly returns vs daily returns is usually lower. With that said, I can't seem to find any papers on this.
Does anyone have any ...
22
votes
5
answers
9k
views
How do you evaluate a covariance forecast?
Suppose you have two sources of covariance forecasts on a fixed set of $n$ assets, method A and method B (you can think of them as black box forecasts, from two vendors, say), which are known to be ...
3
votes
1
answer
127
views
Sample Variance of Portfolio
Let $w$ denote a vector of portfolio weights, $r_i$ denote the $i$th return vector, $\Sigma$ denote the Covariance matrix of $r_i$ and let $\hat{\Sigma}$ denote the sample covariance matrix of $r_i$.
...
1
vote
1
answer
666
views
Shrinkage of the Sample Covariance matrix, theory
is there any theory behind the covariance matrix shrinkage paper, why it works?
I am talking about this stats exchange thread
6
votes
2
answers
172
views
Covariance of the product of log normal process and normal procces
I tried to compute the following covariance :
$$Cov(e^{\int_{t}^{T}W^1_sds},\int_{t}^{t+1}W^2_sds)$$
where $W^1_t$ and $W^2_t$ are Brownian motions such that $dW_t^1dW_t^2=\rho dt $
My idea was to ...
3
votes
4
answers
3k
views
Semi-variance/Downside Risk, what about the rest of the covariance matrix?
I just bumped into a rather interesting article from wikipedia :
http://en.wikipedia.org/wiki/Downside_risk
where they define the semi-variance also called Downside risk, which bascially only ...
1
vote
2
answers
486
views
What are the units of the variance of returns?
I am a little confused about the units of the variance of returns. One way to compute that would be to look at the units of returns-
$$r=\frac{1}{\Delta t}\ln\frac{P(t+\Delta t)}{P(t)}=\text{...
3
votes
2
answers
838
views
Find k of n assets that "minimize" the correlation matrix
I'm trying to find an efficient way to select $k$ from $n$ risky assets that are the least correlated with each other. I know that I can perform a brute-force search of all $k$-sized combinations of ...
1
vote
0
answers
163
views
Association between a random variable and Radon-Nikodym derivative
Suppose that $X$ is a random variable and $\frac{d\mathbb{Q}}{d\mathbb{P}}$ is the Radon-Nikodym derivative. The quantity under consideration is as follows:
\begin{equation}
Cov(X, \frac{d\mathbb{Q}}{...
0
votes
1
answer
64
views
Show that the following result holds true for the variance of the return of a portfolio of shares
Start with a portfolio $p$ of $n$ shares, each with weight $x_i = \dfrac{1}{n}$ (for $i$ ranging from $1$ to $n$, discretely). Its return is given by:
$$R_p=x_1R_1+\ldots+x_nR_n=\sum_{i=1}^{n}=x_iR_i\...
0
votes
1
answer
1k
views
Covariance Shrinkage - Am I getting the right variances?
I am looking into a quite simple task: shrinking the sample covariance matrix of a minor sample of monthly returns data on 5 different assets.
I am using Python to process my data and have been using ...
3
votes
2
answers
1k
views
Covariance between integral of brownian motion and brownian motion
Let
$$
I = \int_0^1W_tdt,
$$
where $W_t$ is a Brownian motion.
From Integral of Brownian motion w.r.t. time we have that
$$
\mathbb{E}[I]=0,
$$
by Fubini's theorem. And that
$$
\mathbb{V}\text{ar}[I] =...
5
votes
1
answer
3k
views
Covariance of two Brownian Motions
During revision, I came across the following question in a past paper:
Suppose $(B_t, t\geq0)$ is a standard Brownian motion. Compute for $0<s<t$ the covariance $$cov(tB_{3t}-B_{2t}+5, B_s-1).$$
...
0
votes
1
answer
80
views
Show that $\text{Cov}[X_r,X_s]=\text{Cov}[X_{r+h},X_{s+h}]$ for $X_t=a+bZ_t+cZ_{t-2}.$
Problem: Let $\{Zt\}$ be a sequence of independent normal random variables, each with mean $0$ and variance $\sigma^2$, and let $a$,
$b$, and $c$ be constants. Is $X_t=a+bZ_t+cZ_{t-2}$ a (weakly)
...
2
votes
1
answer
108
views
Help understanding the step $\sum_{j=0}^n\sum_{k=0}^ng_jg_k\text{Cov}(\epsilon_{n-1},\epsilon_{n+h-k})=\sum_{j=0}^ng_j^2+h\sigma^2$
Given is that $\epsilon_n$ is a white noise process with $\text{Var}(\epsilon_n)=\sigma^2$ and that $g_j\in\mathbb{R}$. There is a step in my lecture notes that I don't get. It says the following
$$\...
1
vote
1
answer
116
views
Show that $\text{Cov}[Z_t,Z_{t+h}]=\text{Cov}[Z_s,Z_{s+h}].$
Problem: If $X\sim\text{WN}(\mu,\sigma^2).$ Let then $Z$ be the process defined by \begin{equation}
Z_t=\sum_{i=0}^na_iX_{t-i} \end{equation} for some coefficients $a_1,...,a_n\in\mathbb{R}$ with ...
1
vote
1
answer
109
views
Regression of stochastic integral on Wiener process
This question is a follow-up from the following: conditional expectation of stochastic integral
so I won't repeat myself regarding assumptions and notation.
Using Brownian bridge approach, we know ...
2
votes
2
answers
2k
views
Volatility and weights of a portfolio whose value is negative
How do you calculate the one day standard deviation (in dollars) for a portfolio that is short $30,000? How do you calculate the weightings to use? I already have the necessary covariance matrix.
1
vote
0
answers
56
views
Disjoint covariance matrix estimation
I have always estimated correlations and variances disjointly and later combine them to construct covariance matrices. Specifically, variances are estimated in a univariate setting (only using the ...
2
votes
0
answers
83
views
How to reduce a covariance matrix after clustering?
I have an N = 100 covariance matrix. I am clustering the covariance matrix say into 5 clusters.
How can I compute the reduced ...
0
votes
0
answers
597
views
What is the difference between np.cov(array) and array.cov()?
I'm trying to find a covariance matrix, so when i use returns.cov() on my returns variable, I get a good result. Unfortunately, when i want to use ...
2
votes
1
answer
405
views
Is there a way using matrix algebra to add portfolios to a covariance matrix of assets?
What I want to do is the following:
Let's say I have two assets 1 and 2, and have a 2x2 covariance matrix.
Then I have two portfolios A and B made of weights from assets 1 and 2.
What I would like to ...
0
votes
0
answers
25
views
Interpreting factor coefficients when correlation flips
I am looking at mainly value and growth factor coefficients of a fund during the recent Covid market “crisis”.
I have found that said fund had a negative coefficient to value at the start of 2020 (let’...
1
vote
1
answer
132
views
Help Setting a Monte Carlo Simulation
I am trying to replicate the steps of the Barras, Scaillet, Wermer(2010) paper for a Monte-Carlo Simulation. More specifically the steps in Appendix B.1 (Attached image).
I have so far done the ...
1
vote
1
answer
122
views
Covariance AR(2) Process [closed]
I am not sure what the formula is for the covariance of an AR(2) process, described by
$X_t - \mu = \phi_1(X_{t-1} - \mu) + \phi_2(X_{t-2} -\mu ) + \epsilon_t$
where $\mu$ denoted the process mean ...
0
votes
1
answer
136
views
Correlation between mean-variance efficient portfolios
If the covariance solution between the returns series of the minimum-variance portfolio ($A$) and any other portfolio along the efficient frontier ($B$) is
$$Cov_{A, B} = \frac{1}{\mathbf{1}^T\mathbf{\...
8
votes
2
answers
656
views
Most natural generalization of covariance/correlation to model dependence of extreme events
One of the most serious shortcomings of covariance/correlation are the assumptions of linearity and normality.
What is the most natural generalization of these measures of dependence when you want to ...
0
votes
1
answer
208
views
Update sample covariance matrix
I would like to update a covariance matrix $\mathbf{R}_T$ with a new incoming sample at time $T+1$, i.e. I would like a rank-1 update of the form $\frac{1}{T+1} [T \mathbf{R}_T + \mathbf{x}_{T+1}\...
1
vote
1
answer
321
views
Covariance of mean-reverting Vasicek process?
I am dealing with a mean-reverting Vasicek process defined as:
\begin{equation}
S_t = S_0 e^{-at} + b(1-e^{(-at)}) + \sigma e^{(-at)} \int_{0}^{t} e^{(-as)} \ W_t
\end{equation}
I want to ...
2
votes
3
answers
423
views
Interpretation and units of a covariance element in portfolio risk
Given portfolio risk is $\mathbf{w}\boldsymbol{\Sigma}\mathbf{w}$ where $\boldsymbol{\Sigma}$ is the covariance matrix whose diagonal elements $\sigma^2_{n}$ are individual asset return variances and ...
5
votes
1
answer
304
views
Questions about beta, correlation, and covariance
Currently, I calculate beta, correlation, and covariance measures using daily log normal returns of Security A and Benchmark A. What would it mean if I were to use daily log normal excess returns in ...