Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [covariance]

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

44
votes
5answers
8k views

How do I graphically represent the evolution of a covariance matrix over time?

I am working with a set of covariance matrices evaluated at various points in time over some history. Each covariance matrix is $N\times N$ for $N$ financial time-series over $T$ periods. I would ...
42
votes
4answers
16k views

What is the best way to “fix” a covariance matrix that is not positive semi-definite?

I have a sample covariance matrix of S&P 500 security returns where the smallest k-th eigenvalues are negative and quite small (reflecting noise and some high correlations in the matrix). I am ...
40
votes
12answers
27k views

Why does the minimum variance portfolio provide good returns?

I've been a researching minimum variance portfolios (from this link) and find that by building MVPs adding constraints on portfolio weights and a few other tweaks to the methods outlined I get ...
24
votes
3answers
3k 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 ...
18
votes
4answers
5k 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 ...
18
votes
2answers
2k 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 ...
14
votes
4answers
5k views

Why shrink the covariance matrix?

I'm trying to understand why it's useful to shrink the covariance matrix for portfolio construction or in fact general. Think I missing something. I know if you have 5,000 stocks it's a lot of ...
14
votes
1answer
549 views

Covariance estimation: shrinkage, random matrix theory, what else?

Shrinkage was much en-vogue before random matrix theory (RMT) took everybody's attention in covariance matrix estimation, however the latter also showed its limits. A plethora of other estimators has ...
13
votes
1answer
595 views

How to estimate the covariance of an index with a basket of stocks?

What would be an ideal way to estimate the covariance of an index with a basket of stocks? For example, should I use one-tail ANOVA test or an individual stock & index F-test?
11
votes
1answer
2k views

What do eigenvalues/eigenvectors of the yield/forward rates covariance matrices mean?

I have 5 bonds (with maturities 1,2,3,4,5 years) which I calculated the yield curve for 10 days. I also calculated the forward rates from the yield rates. Now I've been told to calculate the ...
8
votes
2answers
2k views

Analytical relationship between a covariance matrix and cross-sectional dispersion

Given an expected returns vector and a covariance matrix, one can perform a joint draw and measure the average cross-sectional variation as the standard deviation across returns for a particular joint ...
8
votes
3answers
413 views

age-sensitive correlation measurements in finances

When it comes to comparing returns or prices of instruments like stocks/ETFs, are there any well-established formulas, or ones in common use, that place stronger emphasis on recent correlations more ...
8
votes
3answers
547 views

CAPM model as a regression

The CAPM model states that the returns of a stock are- $r_s=r_f+\beta (r_m-r_f)+\varepsilon_s$ The $\beta$ defined above is then calculated as $\frac{cov(r_s,r_m)}{var(r_m)}$. My question is ...
8
votes
2answers
224 views

Is there an optimal covariance one would want forecasts to have?

Often in a quant process, one will generate a time series of return forecasts and use them in some sort of optimization to generate a portfolio. Generally, there will be a covariance matrix of market ...
7
votes
1answer
301 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 ...
7
votes
1answer
122 views

Finding a minimum variance portfolio when using a regulariser?

I am aware that the minimum variance portfolio of a market with $n$ securities can be shown to be: \begin{equation} w^* = (1^T_n\Sigma^{-1}1_n)^{-1}\Sigma^{-1}1_n, \\ s.t. \ \ 1^T_nw = 1 \end{...
6
votes
2answers
419 views

What is the preferred GARCH method in practice?

My advance apologies, if this question is too naive or basic. Please be patient with my first experiences with SE; ask for clarification, if needed. I recognize there are many (often-criticized) ...
6
votes
0answers
362 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 ...
5
votes
1answer
696 views

Proof for non-positive semi-definite covariance matrix estimator

It is well known that the standard estimator of the covariance matrix can lose the property of being positive-semidefinite if the number of variables (e.g. number of stocks) exceeds the number of ...
5
votes
2answers
403 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 ...
5
votes
1answer
5k views

How to use Newey West covariance corrector?

I have implemented the following model: daily_vol(t+1) = A*daily_vol(t) + B*weekly_vol(t) + C*monthly_vol(t) + error where vol means volatility, and A, B, C are ...
5
votes
0answers
408 views

Analyzing the angle between vector of weights and vector of returns in mean-variance optimization

I am using the paper "A Sharper Angle on Optimization" by Golts and Jones (2009) as a basis for my (minor) masters thesis in mathematical finance. The paper focuses on the mean-variance analysis of ...
4
votes
2answers
269 views

Are two stochastic processes independent if the Wiener processes inside are uncorrelated

Assume there are two stochastic processes: $dx_t = \alpha_1(x_t,t)dt + \beta_1(x_t,t)dW^1_t$ and $dy_t = \alpha_2(y_t,t)dt + \beta_2(y_t,t)dW^2_t$. Does $dW^1_t\times{dW^2_t} = 0$ imply that $\...
4
votes
1answer
138 views

Correlation -1 and standard deviation [closed]

My book says that for a portfolio of two stocks: $\sigma_p = \sqrt{w_A^2 \sigma_A^2 + (1-w_A)^2 \sigma_B^2 + 2 w_A (1 - w_A) \rho_{AB} \sigma_A \sigma_B}$ Elsewhere it says that if the correlation ...
4
votes
1answer
732 views

How to calculate tracking error given mismatches in available data

Apologies if this is an overly simple question. I have a series of stock returns, and I would like to estimate my portfolio's ex-ante tracking error versus the benchmark (S&P 500) given the ...
4
votes
1answer
1k views

Regime Switching for Dynamic Correlations

I would like to implement a Regime Switching for Dynamic Correlations in an out-of-sample analysis using MATLAB. After looking at the literature on the subject, they all refer to an article by Denis ...
4
votes
1answer
1k views

Need overlapping sample autocorrelation correction for calculating asset return correlations

I want to measure the covariance structure of various asset returns based on varying investment periods. Campbell and Viceira (2005) do this, using known return predictors (i.e. dividend yield, ...
4
votes
1answer
731 views

Beta between stock and option

In Black Scholes model I would like to compute $$ \beta_K = \frac{\mathrm{cov}(C_{K,T},S_T)}{\mathrm{cov}(S_T,S_T)} = \frac{\mathrm{cov}((S_T - K)^+,S_T)}{\mathrm{cov}(S_T,S_T)} $$ with respect to say ...
4
votes
4answers
782 views

portfolio diversification tester

Are there any online tools (optionally with developer API, to spare me the scraping) that given an existing portfolio, calculate how well a new candidate position would score to increase combined ...
4
votes
0answers
192 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 ...
3
votes
2answers
1k views

Covariance for arbitrarily large portfolios

I am implementing a method in Java to calculate the variance, covariance, and value at risk for a portfolio, which should be flexible for use with any number of assets in a portfolio. I am struggling ...
3
votes
3answers
3k views

Handling Missing values in stocks returns when estimating the co variance matrix

What is the best way to handle missing values when stocks did not exist for the entire historical period?.
3
votes
1answer
134 views

How to calculate the covariance between two stochastic integrals?

How to calculate the covariance between the integral of a Brownian motion at different times: $$\text{Cov}\left(\int^{t_1}_0\sigma(t)dW_t,\int^{t_2}_0\sigma(t)dW_t\right)\ ?$$ I know the answer is: $$\...
3
votes
1answer
2k views

Covariance matrix and Cholesky decomposition

I am simulating a spread option with stochastic volatility using Monte Carlo simulation. I have the positive-definite covariance matrix $$ \rho = \left( \begin{array}{cccc} 1 & \rho_{1,2} & \...
3
votes
2answers
262 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 ...
3
votes
1answer
991 views

What is the covariance of two correlated Ornstein-Uhlenbeck processes?

What is the covariance of two correlated Ornstein-Uhlenbeck processes? I was trying correlation(1,2)*Var1^(1/2)*Var2^(1/2), but I am not sure! I took Var1=(sigma1^2/(2*speedofmeanreversion1))*(1-exp(-...
3
votes
1answer
595 views

Markowitz Mean-Variance Implied Returns

What is the closed form solution for the following inverse Markowitz problem? Given a mean-variance optimized fully invested portfolio $X$, a risk aversion parameter $\lambda$ and a var-covar ...
3
votes
2answers
531 views

How to get Multivariate Betas from an Estimated EWMA co variance Matrix?

I have a portfolio of 4 assets. I also have returns for 3 indices. I want to get the multivariate betas for these 4 assets-based on these assets. I only have the 7 x 7 covariance matrix estimated by a ...
3
votes
1answer
132 views

How can I evaluate how poor a fit a parametric VaR result would be for a given holding?

I'm currently working on an application that, among other things, computes a one-day parametric VaR for security positions. I understand that the parametric method of computing VaR is a poor fit for ...
3
votes
0answers
51 views

Is Ledoit-Wolf Shrinkage with a Constant Correlation Prior Reasonable for a Stock/Bond Mix?

I've been looking into Ledoit-Wolf shrinkage but I've found the papers concentrate on large numbers of assets that tend to all be highly correlated. Often a universe of large cap stocks. I'm ...
3
votes
0answers
131 views

Parametric VaR of a portfolio of a stock and an option on that stock

I understand how to calculate the parametric VaR of a stock and an option separately. But I don't understand how one can calculate the VaR of a portfolio of a stock and an option on that stock using ...
3
votes
0answers
221 views

Finding mean vector and covariance matrix for annual returns given quarterly returns

I am currently trying to calculate a vector for the mean annual returns of 4 different asset classes along with their 4x4 covariance matrix in excel. However, I am having problems since the data I ...
3
votes
0answers
206 views

Should I use Resampling or Expectation Maximization to compute a robust covariance matrix?

I have several assets, each with different return histories. Some of the assets have 75 days of return history, others have 40 or so days. In calculating a robust covariance matrix, should I be using ...
3
votes
0answers
274 views

Good criteria to sort state-space $\beta_{t}$ according to Kalman filter output

Let's assume the usual state-space linear model without constant term for simplicity: $y_{t}=\beta_{t} X_{t}+\epsilon_{t}$ If we apply Gaussian Kalman filter to estimate $\beta_{t}$ we get $P_{t}$, ...
2
votes
3answers
1k 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 ...
2
votes
3answers
296 views

Negative variance?

Using the formula w*Cov*t(w) I can generate a negative portfolio variance. What are the implications of a negative variance? Should I just assume it's zero? A negative variance is troublesome ...
2
votes
1answer
3k views

Using CAPM to find correlation of two assets with each other

I stumpled upon an exercise in an investments book: The data below describe a three-stock financial market that satisfies the single-index model. ...
2
votes
1answer
733 views

Correlation of asset to portfolio, given certain variables

Ultimately I'm trying to calculate stdev contribution, but I've hit a hurdle. What I have: 20x20 correlation matrix for various assets Standard deviations for each asset Returns for each asset ...
2
votes
1answer
336 views

How to score a portfolio's diversity based on security returns?

What is the best way to score a portfolio's diversity based on it's returns covariance matrix? I know that if my portfolio has two securities and their returns' correlation coefficient is -1 that is ...
2
votes
1answer
89 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 ...