Questions tagged [covariance]

A measure of the degree of linear association between a pair of random variables.

Filter by
Sorted by
Tagged with
0
votes
0answers
32 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 ...
1
vote
1answer
248 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
0answers
13 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
1answer
59 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 ...
0
votes
1answer
45 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} ...
1
vote
0answers
40 views

Do you need multi-period ahead covariance forecast, in order to construct portfolios with weekly/monthly rebalancing?

Suppose I want to rebalance my portfolio each week. Do I then need weekly covariance forecasts, from some multivariate volatility model to do this? Ie. Insert the weekly covariance forecast $\Sigma_{t+...
1
vote
1answer
68 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 ...
1
vote
1answer
52 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 ...
2
votes
2answers
317 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.
0
votes
1answer
57 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
2answers
501 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
0answers
24 views

Is it possible to apply PCA to a time-series of covariances?

I understand that Principal Component Analysis (PCA) can be applied for cross-sectional as well as for time-series data. Nevertheless, I am trying to figure out if there is anything wrong with ...
0
votes
1answer
37 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
1answer
119 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
3answers
150 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
1answer
208 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 ...
0
votes
0answers
46 views

Ranking assets by covariance vs correlation

After every change in portfolio (i.e. every trade), I need to calculate a price for each asset in my portfolio. But the calculator is slow. So I want to order the sequence of price updates, from the ...
0
votes
2answers
293 views

Why is portfolio optimization a convex problem if variance is concave?

Variance is concave, so portfolio risk must be too. The mean-variance model employs quadratic programming to optimize (minimize) portfolio risk. My understanding is that quadratic programming requires ...
0
votes
2answers
136 views

Meaning of an identity matrix for the covariance in portfolio optimization

Instead of using a sample covariance matrix for portfolio optimization, Ledoit and Wolf use an estimator that is the weighted average of the sample covariance matrix and the identity matrix, $I$. This ...
0
votes
0answers
30 views

Covariance of Individual Return and Portfolio Return

Hi guys, Is it possible to get the covariance between the individual return and portfolio return given the correlation matrix, volatility matrix, weights matrix and return matrix? I know how to get ...
0
votes
2answers
77 views

What do large weights above 1 in a portfolio represent?

If I have a portfolio consisting of weights -12,11,3,-2,5,-5, I know that negative weights correspond to shorting but what do these large weights represent? I thought the weights are the proportion of ...
0
votes
0answers
56 views

Can I build an efficient frontier using matrix algebra?

If i have a vector of expected returns $A$, a covariance matrix $C$ and a vector of the corresponding weights $W$ for each investment, is it possible to generate the efficient frontier with vector ...
1
vote
3answers
216 views

Simulating covariance matrices with nonzero correlation

How would you simulate a covariance matrix of 1,000 stocks where each pair has nonzero correlation? I have literally no idea how to start with this. Any suggestions?
2
votes
1answer
97 views

Variance-Covariance Matrix under $\mathbb{P}$ and $\mathbb{Q}$

I'd like to understand why $\Sigma$ is the same under both measures $\mathbb{P}$ and $\mathbb{Q}$. Is it an assumption or a general fact based on theoretical concepts?
1
vote
1answer
69 views

Covariation of Ito semimartingales

If we have two Ito semimartingales over $[0,T]$: $$d X_t^i=a^i_tdt+\sigma_t^idW_t^i,\quad i=1,2$$ What is the relationship between $$\langle X^1,X^2 \rangle_t \quad \text{and} \quad \langle W^1,W^2 \...
0
votes
0answers
119 views

Decomposition of Contribution to Variance

$C$ is a $N\times N$ covariance matrix of stock returns. Assuming $w$ is a vector of positions in each asset, the total variance of the portfolio is $$w^TCw$$ The contribution to total variance of the ...
1
vote
1answer
118 views

How do i find the covariance between two portfolios?

I know that the formula for covariance is But this is for two securities. How do I find the covariance between two portfolios? more specifically between the global minimum variance (GMV) and the mean-...
3
votes
1answer
103 views

Turning a covariance sum into an integral

I am reading Lorenzo's Bergomi's book Stochastic Volatility Modeling, and I have come to this passage. I just would like to understand the derivation between the first and the second equality. I ...
20
votes
3answers
3k views

Cleansing covariance matrices via Random matrix theory

I am exploring de-noising and cleansing of covariance matrices via Random Matrix Theory. RMT is a competitor to shrinkage methods of covariance estimation. There are various methods expressed usually ...
1
vote
0answers
107 views

covariance matrix in the CAPM model

I'm running a simulation for a 5 asset portfolio, calculating the optimal weights of each asset both with the statistical model (i.e. single index) and with the CAPM. my question is: how do you ...
0
votes
1answer
227 views

Computing covariance matrix with historical data

I have been reading Active Portfolio Management by Grinold and Khan. In the chapter about risk, they mention, "The third elementary model relies on historical variances and covariances. This ...
4
votes
1answer
269 views

Why the weight vector of 'global minimum variance' the 'eigenvector' with the minimum eigenvalue?

Question Why is it the case that the weight vector of the global minimum variance portfolio the eigenvector of the covariance matrix with the smallest eigenvalue? Question with more details I ...
0
votes
0answers
61 views

Trading Bands for Tactical Asset Allocation

I am currently working through Portfolio Construction and Risk Budgeting, 4th edition, by Dr. Bernd Scherer. In chapter 12.6 the following methodology to construct trading bands around a tactical ...
2
votes
1answer
73 views

Calculating covariance from three variances

I have been asked to look to refactor some code. There is a line shown below: $\text{implied covariance} = -\frac{(\text{var}_1 - \text{var}_2 - \text{var}_3)} {2}$, where $\text{var}_1$ is the ...
1
vote
1answer
1k views

How to efficiently get covariance matrices from a rolling window in Matlab?

I'am trying to produce a rolling window to estimate a covariance matrix using a for-loop. I have my returns under the variable returns_sec and I have 260 ...
1
vote
0answers
32 views

Is there a differentiable formulation of Prado's HRP algo?

I get the sense the algo is just a graph representation the dependency structure. Am wondering if there is anything written on learning the weights by optimizing some parameters rather than a forward ...
2
votes
2answers
163 views

Estimate covariance matrix using prices

We generally estimate the covariance matrix of assets using their returns instead of prices. Why is that the case? I can think of two possible reasons and would appreciate comments/feedback regarding ...
3
votes
1answer
323 views

target market correlation for long / short equity portfolio

Given a long / short equity portfolio, I want to have some net long market exposure. My portfolio volatility is fixed to a target, so I don't think it makes sense to target market beta. I think I ...
4
votes
6answers
311 views

Is a more robust Covariance estimation possible?

I'm working on a mean-variance optimization problem, but instead of financial securities I'm choosing a 'portfolio' of N athletes. It is a 1-period optimization problem over one generic statistic ...
2
votes
3answers
1k views

Ledoit-Wolf Shrinkage estimator not giving positive definite covariance matrix

I used ten year daily data for 407 stocks and computed the daily and monthly covariance matrices. Since I have more variables than observations for the monthly matrix, I wasn't surprised to find the ...
0
votes
2answers
163 views

Prove ρ(X,Z) = ρ

The covariance of two random variables $X$ and $Y$ is defined by: $$\mathrm{Cov}(X,Y)= \operatorname{E}(X-\operatorname{E}(X))(Y-\operatorname{E}(Y))=\operatorname{E}(XY)-\operatorname{E}(X)\...
1
vote
0answers
63 views

One day standard deviation of a portfolio (long/short, different scalars)

I am attempting to calculate the expected one-day standard deviation of a portfolio in dollars. In other words, I am looking for the following: "I expect my portfolio to move _______ dollars on ...
6
votes
1answer
325 views

Using Kendall rank correlation to construct a covariance matrix?

I am wondering if it's mathematically 'correct' to employ a correlation matrix based on Kendall-correlation when constructing a covariance matrix? I.e., is it wrong to multiply standard deviations of ...
1
vote
0answers
41 views

Covariance time frequency

I have rolling 3-year returns for an asset and a benchmark. I want to compare the covariance of the asset and benchmark, should I use the covariance of the rolling 3-year returns or the covariance ...
0
votes
1answer
79 views

Covariance matrix from GJR-GARCH?

I am implementing a AR(1)-GJR-GARCH(1,1) model to some asset returns, and I would need to have a covariance matrix but I struggle to see how I can compute one from the model I used? I know I can have ...
24
votes
3answers
4k views

Tools in R for estimating time-varying copulas?

Are there libraries in R for estimating time-varying joint distributions via copulas? Hedibert Lopes has an excellent paper on the topic here. I know there is an existing packaged called copula but ...
3
votes
2answers
770 views

Widely accepted methods for coming up with the co-variance matrix of assets?

Question What are the widely accepted ways for coming up with co-variance matrix of assets after the Markowitz's modern portfolio theory? Question explained in more detail After Modern portfolio ...
1
vote
1answer
62 views

Generate scenarios of multiple related parameters

Assume I have three industry datasets: interest rates, inflation and unemployment. Data contains information of last ten years and it's monthly. Now, I would like to create N possible scenarios of ...
4
votes
0answers
96 views

Why are thousand-ish-factor vendor risk models not extremely overfit and inaccurate?

Many vendor risk models have many hundreds, or even thousands of factors (many of which are highly correlated with each other). Underlying all these risk models is some sort of covariance matrix in ...
2
votes
1answer
100 views

Co-variance of Portfolio A with Portfolio B

I'm trying to calculate the correlation between two separate portfolios. I've used A*COV(AB)*B to calculate the co-variance of each portfolio where: A = Array ...