Questions tagged [covariance-matrix]
The covariance-matrix tag has no usage guidance.
114
questions
0
votes
1
answer
860
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 ...
0
votes
1
answer
320
views
is it possible to get minimum variance line having only covariance matrix?
Hey I have covariance matrix:
$$C=\begin{pmatrix} 0,01 & 0.01 & 0\\ \\ 0.01 & 0,02 & -0.01 \\ \\ 0 & -0.01 & 0,03 \end{pmatrix}$$
So the variance of porfolio is:
$$\...
2
votes
1
answer
85
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 ...
3
votes
2
answers
478
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
2
answers
2k
views
Creating a Covariance Matrix
Lets say that you have the correlation of x,y and you have the standard deviations of x and y , how would you then find the covariance of x,y using the correlation of x,y and and the standard ...
0
votes
1
answer
180
views
Demonstration of the Schweinler-Wigner Orthogonalization procedure
Can anyone give me a practical demonstration of the Schweinler-Wigner Orthogonalization procedure? The steps of performing it or possibly a code snippet.
The Schweinler-Wigner Orthogonalization ...
4
votes
6
answers
478
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
2
answers
1k
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.
3
votes
2
answers
3k
views
Why annualizing sampled covariance matrix changes stock weight vector?
Question
While optimizing a portfolio using 'Global Minimum Variance' (GMV) method, I found that annualizing a sampled covariance matrix makes a difference in stock weight vector.
Q1. Why ...
0
votes
1
answer
111
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 ...
4
votes
2
answers
1k
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
0
answers
2k
views
Barra covariance matrix construction
I am trying to replicate the covariance matrix used by Barra risk models.
All Barra models have half life parameters for volatilities and correlations (e.g. if the half life for volatlity is 90 days, ...
0
votes
1
answer
598
views
Variance-Covariance VaR: how to get the volatility?
Because the variance-covariance VaR assumes that the returns are normally distributed, in theory it is easy to get VaR by simply finding the mean and the volatility (standard deviation) of the ...
1
vote
0
answers
176
views
Black Litterman - numerical instability
I am trying to work out the formula for the posterior mean in Black Litterman's model assuming 100% confidence :
Ref: https://corporate.morningstar.com/ib/documents/MethodologyDocuments/IBBAssociates/...
0
votes
1
answer
901
views
beginner portfolio statistics - annualized volatility of multi-asset portfolio
Sorry for the dumb question, but I wanted to make sure my understanding of what I read and compiled was correct! I am trying to calculate the variance-covariance matrix, and annualized volatility of a ...
0
votes
0
answers
573
views
How to compute the portfolio risk when weights are negative?
In QMiF (p. 239) , the variance of a portfolio is defined as:
V(R) = w'Vw = w'DCDw = x'Cx
Does this formula hold if the weights are negative (i.e., short)?
For example, if I have a 5x5 covariance ...
0
votes
2
answers
9k
views
Why is my Covariance matrix not positive definite?
I'm trying to do PCA on historic forward rates. I'm using forward rates from the Bank of England going from Jan 2015 through end of May 2018. I calculate the differences in the rates from one day to ...
3
votes
2
answers
606
views
Filtering smallest eigenvalues
In Risk Budgeting and Diversification Based on Optimized Uncorrelated Factors [1], which introduces minimum torsion bets, Meucci gives an example involving the computation of covariance matrices on ...
-2
votes
1
answer
301
views
Variance covariance matrix - number of periods required
Hi I am reviewing the example of Barra risk model in the following document page 23 there is the statement:
"Estimating a covariance matrix for, say, 3,000 stocks requires data
for at least 3,...
0
votes
1
answer
670
views
Which program for a DCC-MIDAS model?
for a thesis research, I plan to use a DCC-MIDAS model. The program I was working with (STATA) is not able to run this.
Do you have any suggestions as to which program is best for this analysis?
...
10
votes
2
answers
2k
views
Hierarchical Risk Parity with allocation constraints?
In the really interesting paper by Marcos Lopez de Prado a variation of risk parity is applied whereby the underlying assets of the portfolio are first split in 'correlation clusters' and the ...
1
vote
1
answer
177
views
Solving a system of two equations with non-convex matrix multiplication for MV optimization
Scenario: I am trying to do a variation of the MV optimization for a portfolio. In this instance, I already have a vector of mean returns ($\mu$), a vector of ones, a covariance matrix ($\Sigma$), and ...
-1
votes
1
answer
146
views
Covariance Interest Rate Risk Time Series
Apologies in advance if this question has been asked already.
I am estimating basis risk for different term points in the curve. Imagine i have three time series (1-month, 3-month, 1-year). I ...
1
vote
1
answer
2k
views
principal component analysis on non stationary data
I read that since stock prices are non-stationary it does not make sense to take their covariance. So I took the log returns of stocks, computed covariance matrix, took the top few eigen vectors that ...
2
votes
0
answers
64
views
Covariance Matrix: Calculating Error [duplicate]
I have a sample covariance matrix that is non positive-semi definite (due to missing data points). I am looking at a number of techniques to 'fix' my covariance matrix and make it positive semi-...
0
votes
1
answer
644
views
Portfolio Optimisation/Covariance Estimation on a large scale
When using Markowitz Portfolio Theory, e.g. for finding an optimal portfolio composition, one needs to have estimates of the returns, but most importantly of the covariance matrix. If our universe of ...
2
votes
0
answers
74
views
Reduced rank / matrix factorisation techniques and their uses in portfolio optimisation?
I am interested in reduced rank / matrix factorisation techniques and their uses across finance and portfolio optimisation. For example, PCA might be used to reduce the number of components you are ...
2
votes
2
answers
4k
views
Variance Matrix with 'nan' values
I am trying to optimize a simple portfolio using several random weights and choosing the best. When the number of assets is large I get a covariance matrix with 'nan' values because some asset pairs ...
6
votes
1
answer
473
views
How can I use a more efficient volatility estimator to improve the co-variance matrix?
Using mean-variance, I need to estimate a co-variance matrix $\Sigma$ to obtain the best weights in my portfolio.
However, there are other ways to compute the volatility $\sigma$ than historical ...
1
vote
1
answer
2k
views
What is the difference between the Single Index Model and Multi-Index Models in computing the variance-covariance matrix of stock returns?
Would be very grateful for some help in comparing the single index model with other multi-index models in computing the variance-covariance matrix.
8
votes
3
answers
6k
views
Why does the Markowitz mean-variance model require the assumption of normality?
Given $N$ assets, the Markowitz mean-variance model requires expected returns, expected variances and a $N \times N$ covariance matrix. The joint distribution is fully defined by these measures.
...
11
votes
2
answers
4k
views
What is the total correlation between assets in a portfolio?
Suppose I have portfolio with 10 assets, each one of them with a weight of 10% from the total portfolio (equally weighted).
It's well known how to measure from historical prices->returns a variance-...
1
vote
2
answers
185
views
Explanations regarding Minimum Variance Portfolio
I am sorry in advance if this question seems a bit stupid but during my class my lecturer said that:
"The traditional estimator of the variance-covariance matrix is the sample covariance. However ...
0
votes
1
answer
199
views
Prove that a determinant in markowitz method derivation is greater than zero
I want to prove that the following determinant, that appears in the markowitz method of portfolio allocation is greater than zero.
($\mu$ is the vector of returns and $\sum$ is the covariance matrix)
3
votes
1
answer
3k
views
How to compute the variance of a Long-Short Equity Portfolio?
I am calculating the historical portfolio variance of various long-short equity portfolios. For simplicity, assume the portfolio is long stock A with weight 1.0 and short stock B with weight -0.5. ...
2
votes
1
answer
133
views
Transform raw forecasts into orthogonal forecasts
I am trying to combine multiple forecasts on each of N assets in line with Grinold and Kahn's methodology, taken from Active Portfolio Management, 2nd ed. On p.311, they suggest transforming the raw ...
1
vote
3
answers
1k
views
Generating a random covariance matrix with variances in range
I would like to generate a random covariance matrix with variances in certain range.
How can it be done? (In R if possible)
I tried to generate a lower triangular matrix $L$ where the diagonal $D = ...
4
votes
0
answers
5k
views
Annualize a covariance matrix?
I am attempting to find the annualized covariance between assets in a portfolio but I only have daily data. So how do I annualize the covariance matrix between these assets?
1
vote
1
answer
166
views
How to adjust corporate actions for VaR
I am using variance co variance matrix for calculating the VaR. Now if the some corporate action comes in between like stock split, resulting a huge VaR number on that particular day as the volatility ...
0
votes
1
answer
495
views
Average Correlation
We're given a spreadsheet with a correlation matrix for four stocks.
Then there is a calculation for average correlation, but I don't know how it's derived.
$$=\left(\operatorname{Average}(C14:F17)-\...
4
votes
1
answer
1k
views
Interpreting Eigenvalues of Co-variance Matrix
Im working on market reaction to events and I'm using the co-variance matrix to do this. In this paper the author writes
It has been known for some time that the largest eigenvalue (λ1) contains ...
6
votes
2
answers
565
views
PCA for stand alone equity VaR
I am trying to compute equity VaR, forex VaR and total VaR on an international portfolio (10 stocks x 4 countries). Since I am not interested in the risk disaggregation among diffrent countries I was ...
4
votes
0
answers
1k
views
Variance of a portfolio based on log-returns
Modern Portfolio Theory Optimization Problem is based on expected linear returns and covariances of linear returns.
That's said, variance and expected return of a portfolio based on linear returns r ...
1
vote
1
answer
570
views
Historical Scenario analysis for stress testing
I am doing historical scenario analysis in order to calculate stressed VAR for which I have taken 2007-2008 US crisis. I have two question in this regard:-
1) As we have to take prices for stocks ...
1
vote
1
answer
1k
views
Variance covariance matrix for a portfolio containing bonds also with other asset classes
What should we take for a bond or a zero coupon bond in order to make a variance covariance matrix?
For example:-
Equities - we take the market price
Cash - we take the spot rates
Bonds - Do we take ...
4
votes
1
answer
440
views
Portfolio with lots of subportfolios
An account manager has $N$ distinct, equally-sized pots of money, which will be used to make $N$ distinct subportfolios, each of which is drawn from a slightly different (but potentially overlapping) ...
3
votes
3
answers
2k
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
2
answers
2k
views
Correlation Between 2 Portfolios
I have a set of assets, n. I'm trying to find the correlation between 2 portfolios, say x and y, where x is nested in, or, a sub-set of y. That is, x is a portfolio based on a sub-set of n, while y is ...
3
votes
0
answers
322
views
Residual Covariance Matrix, and MVO for Residual Variance and Alpha
My overall goal is to find an efficient frontier using QP in terms of $\alpha$ and residual variance ($\omega^2$) for a portfolio $P$ given a benchmark $B$.
We know the equation for residual variance ...
2
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 ...