Skip to content
All library documents

Why CAPM Does Not Require Diagonal Residual Covariance

Article Quant Q&A · Author: Richard Hardy

Summary

The document examines whether the CAPM implies that residuals from a market-factor return regression have a diagonal covariance matrix. Its central point is that CAPM restricts expected returns through the priced market factor; it does not rule out other, unpriced sources of co-movement. In markets with more than two assets, those sources can make residual covariance non-diagonal, so CAPM alone does not justify imposing a diagonal matrix when testing zero alphas.

The discussion distinguishes a diagonal residual covariance matrix as an additional modeling assumption from a consequence of the CAPM. It notes that some risk models begin with independent specific returns and add linked residual risks when data support them. For large covariance matrices, it suggests regularization through Bayesian priors or iterative feature-based modeling. It also describes using the Sherman–Morrison–Woodbury identity to reduce inversion costs in a factor model. These are modeling options, not evidence that residual independence holds; the document gives no empirical test or dataset establishing diagonality for a particular asset universe.

Key ideas

  • The CAPM constrains expected returns but does not require residual returns to be uncorrelated.
  • Unpriced common factors can produce non-diagonal residual covariance, especially in larger asset universes.
  • A diagonal residual covariance matrix is a separate assumption that should be evaluated against data.
  • Bayesian priors or iterative feature additions can regularize covariance estimation.
  • The Sherman–Morrison–Woodbury identity can simplify inversion in factor covariance models.

Tags

Full text
# Imposing diagonality of error covariance matrix when the CAPM holds


# Imposing diagonality of error covariance matrix when the CAPM holds












Assuming that the CAPM holds, the total risk of an asset can be partitioned into systematic risk (associated with the market factor) and idiosyncratic risk. Idiosyncratic risk is asset specific. Does that imply that the error covariance matrix $\Sigma_t=\text{Var}(\varepsilon_t)$ from a cross-sectional regression $$ r^*_{i,t}=\alpha_i+\beta_i r^*_{m,t}+\varepsilon_{i,t} $$ is a diagonal matrix?

If so, would it make sense to impose this diagonality when testing the CAPM (e.g. via GMM as discussed in Cochrane "Asset Pricing" (2005) Part II), e.g. when testing $H_0\colon \alpha_i=0 \ \forall i$? (I believe the test statistic involves an inverse of $\hat\Sigma$ where the latter "covers" all time periods $t=1,\dots,T$.) I am interested in this, as I hope it could alleviate the problem of inverting a large unrestricted estimated covariance matrix when the amount of time series observations is quite small.

## Answer by Richard Hardy (score 2, accepted)

https://quant.stackexchange.com/a/74555

No, the CAPM does not imply the error covariance matrix is diagonal. The distinction between systematic and idiosyncratic risk under the CAPM is not as simple as indicated at the start of the question. The CAPM considers expected values, not the covariance matrix. It implies that there is a single factor that is priced, i.e. it has something to say about the expected return. However, there may be other factors that that are not priced that make the covariance matrix nondiagonal.*

*This would be impossible in a market consisting of only two assets ($N=2$) but becomes possible in a larger market ($N>2$); see e.g. Petersen (2009) section "Asset Pricing Application" (end of p. 34 of the free version here).

## Answer by krkeane (score 1)

https://quant.stackexchange.com/a/74500

The notation $\Sigma$ is often used for covariance matrix Var($r_t$).

Using notation $\Psi_t = \text{Var}(\epsilon_t)$, a common modeling assumption is that the residuals are independent, $\epsilon_{i,t} \perp \epsilon_{j,t}, ~i\neq j$. Given this independence assumption, the covariance of residual returns matrix $\Psi$ is diagonal.

Some factor models (e.g. Barra) implement a concept of "linked specific risk" (LSR), perhaps to model two share classes of the same company. A residual return covariance matrix implementing a concept such as LSR would exhibit non-zero covariance for specific returns.

> Idiosyncratic risk is asset specific. Does that imply that the covariance matrix ... is diagonal?

If your model assumes (your hypothesis asserts) idiosyncratic specific risk, the covariance of residual returns is diagonal. Should you collect sufficient data to reject this assumption, as the Barra model does, your residual returns would not be independent, and the residual return covariance matrix would not be diagonal.

> would it make sense to impose this diagonality

Starting with a simple (maximum entropy) model "makes sense". Adding complexity under duress (rejecting the current hypothesis based upon data) as the Barra example illustrates makes sense. Modeling is an iterative process. Think deep fakes. If you can spot a feature that distinguishes the "real" from the "fake" image (or return series), impose a constraint that the synthesized return series' feature match the observed return series' feature.

> the problem of inverting a large unrestricted estimated covariance matrix

A large estimation effort benefits from regularization. Two potential methods for your modeling efforts are:

- a Bayesian framework, where the prior is a simple model, and the observed data transforms this simple starting point; and,

- a maximum entropy framework, where features are added iteratively to a current model (as you "reject the null hypothesis" in response to statistically significant observed data features inconsistent with synthesized data features).

I wrestled these and related concepts in more detail in my thesis.

Edit: (response to first comment below) Using Sherman-Morrison-Woodbury, and assuming you have a common factor model that could be expressed as loadings on orthogonal common factor returns (rotate and scale original factor returns if necessary) plus residual returns, the effort to invert the covariance matrix is modest. With a $k$-factor model, the only inversion required is of a $k \times k$ matrix $I_k + L^\textrm{T}\Psi^{-1}L$. The remainder of the process is matrix multiplication and matrix subtraction.

$$ \begin{align} \Sigma &= L L^\textrm{T} + \Psi \\ \Sigma^{-1} &= \Psi^{-1} - \Psi^{-1}L (I_k + L^\textrm{T}\Psi^{-1}L)^{-1}L^\textrm{T} \Psi^{-1} \\ \end{align} $$

Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.