Nonlinear shrinkage estimation of large-dimensional covariance matrices

Olivier Ledoit, Michael Wolf

Introduction

Many statistical applications require an estimate of a covariance matrix and/or of its inverse when the matrix dimension, pp, is large compared to the sample size, nn. It is well known that in such situations, the usual estimator—the sample covariance matrix—performs poorly. It tends to be far from the population covariance matrix and ill-conditioned. The goal then becomes to find estimators that outperform the sample covariance matrix, both in finite samples and asymptotically. For the purposes of asymptotic analyses, to reflect the fact that pp is large compared to nn, one has to employ large-dimensional asymptotics where pp is allowed to go to infinity together with nn. In contrast, standard asymptotics would assume that pp remains fixed while nn tends to infinity.

One way to come up with improved estimators is to incorporate additional knowledge in the estimation process, such as sparseness, a graph model or a factor model; for example, see Bickel and Levina (2008), Rohde and Tsybakov (2011), Cai and Zhou (2012), Ravikumar et al. (2008), Rajaratnam, Massam and Carvalho (2008), Khare and Rajaratnam (2011), Fan, Fan and Lv (2008) and the references therein.

However, not always is such additional knowledge available or trustworthy. In this general case, it is reasonable to require that covariance matrix estimators be rotation-equivariant. This means that rotating the data by some orthogonal matrix rotates the estimator in exactly the same way. In terms of the well-known decomposition of a matrix into eigenvectors and eigenvalues, an estimator is rotation-equivariant if and only if it has the same eigenvectors as the sample covariance matrix. Therefore, it can only differentiate itself by its eigenvalues.

Ledoit and Wolf (2004) demonstrate that the largest sample eigenvalues are systematically biased upwards, and the smallest ones downwards. It is advantageous to correct this bias by pulling down the largest eigenvalues and pushing up the smallest ones, toward the grand mean of all sample eigenvalues. This is an application of the general shrinkage principle, going back to Stein (1956). Working under large-dimensional asymptotics, Ledoit and Wolf (2004) derive the optimal linear shrinkage formula (when the loss is defined as the Frobenius norm of the difference between the estimator and the true covariance matrix). The same shrinkage intensity is applied to all sample eigenvalues, regardless of their positions. For example, if the linear shrinkage intensity is 0.5, then every sample eigenvalue is moved half-way toward the grand mean of all sample eigenvalues. Ledoit and Wolf (2004) both derive asymptotic optimality properties of the resulting estimator of the covariance matrix and demonstrate that it has desirable finite-sample properties via simulation studies.

A cursory glance at the Marčenko and Pastur (1967) equation, which governs the relationship between sample and population eigenvalues under large-dimensional asymptotics, shows that linear shrinkage is the first-order approximation to a fundamentally nonlinear problem. How good is this approximation? Ledoit and Wolf (2004) are very clear about this. Depending on the situation at hand, the improvement over the sample covariance matrix can either be gigantic or minuscule. When p/np/n is large, and/or the population eigenvalues are close to one another, linear shrinkage captures most of the potential improvement over the sample covariance matrix. In the opposite case, that is, when p/np/n is small and/or the population eigenvalues are dispersed, linear shrinkage hardly improves at all over the sample covariance matrix.

The intuition behind the present paper is that the first-order approximation does not deliver a sufficient improvement when higher-order effects are too pronounced. The cure is to upgrade to nonlinear shrinkage estimation of the covariance matrix. We get away from the one-size-fits-all approach by applying an individualized shrinkage intensity to every sample eigenvalue. This is more challenging mathematically than linear shrinkage because many more parameters need to be estimated, but it is worth the extra effort. Such an estimator has the potential to asymptotically at least match the linear shrinkage estimator of Ledoit and Wolf (2004) and often do a lot better, especially when linear shrinkage does not deliver a sufficient improvement over the sample covariance matrix. As will be shown later in the paper, this is indeed what we achieve here. By providing substantial improvement over the sample covariance matrix throughout the entire parameter space, instead of just part of it, the nonlinear shrinkage estimator is as much of a step forward relative to linear shrinkage as linear shrinkage was relative to the sample covariance matrix. In terms of finite-sample performance, the linear shrinkage estimator rarely performs better than the nonlinear shrinkage estimator. This happens only when the linear shrinkage estimator is (nearly) optimal already. However, as we show in simulations, the outperformance over the nonlinear shrinkage estimator is very small in such cases. Most of the time, the linear shrinkage estimator is far from optimal, and nonlinear shrinkage then offers a considerable amount of finite-sample improvement.

A formula for nonlinear shrinkage intensities has recently been proposed by Ledoit and Péché (2011). It is motivated by a large-dimensional asymptotic approximation to the optimal finite-sample rotation-equivariant shrinkage formula under the Frobenius norm. The advantage of the formula of Ledoit and Péché (2011) is that it does not depend on the unobservable population covariance matrix: it only depends on the distribution of sample eigenvalues. The disadvantage is that the resulting covariance matrix estimator is an oracle estimator in that it depends on the “limiting” distribution of sample eigenvalues, not the observed one. These two objects are very different. Most critically, the limiting empirical cumulative distribution function (c.d.f.) of sample eigenvalues is continuously differentiable, whereas the observed one is, by construction, a step function.

The main contribution of the present paper is to obtain a bona fide estimator of the covariance matrix that is asymptotically as good as the oracle estimator. This is done by consistently estimating the oracle nonlinear shrinkage intensities of Ledoit and Péché (2011), in a uniform sense. As a by-product, we also derive a new estimator of the limiting empirical c.d.f. of population eigenvalues. A previous such estimator was proposed by El Karoui (2008).

Extensive Monte Carlo simulations indicate that our covariance matrix estimator improves substantially over the sample covariance matrix, even for matrix dimensions as low as p=30p=30. As expected, in some situations the nonlinear shrinkage estimator performs as well as Ledoit and Wolf’s (2004) linear shrinkage estimator, while in others, where higher-order effects are more pronounced, it does substantially better. Since the magnitude of higher-order effects depends on the population covariance matrix, which is unobservable, it is always safer a priori to use nonlinear shrinkage.

Many statistical applications require an estimate of the precision matrix, which is the inverse of the covariance matrix, instead of (or in addition to) an estimate of the covariance matrix itself. Of course, one possibility is to simply take the inverse of the nonlinear shrinkage estimate of the covariance matrix itself. However, this would be ad hoc. The superior approach is to estimate the inverse covariance matrix directly by nonlinearly shrinking the inverses of the sample eigenvalues. This gives quite different and markedly better results. We provide a detailed, in-depth solution for this important problem as well.

The remainder of the paper is organized as follows. Section 2 defines our framework for large-dimensional asymptotics and reviews some fundamental results from the corresponding literature. Section 3 presents the oracle shrinkage estimator that motivates our bona fide nonlinear shrinkage estimator. Sections 4 and 5 show that the bona fide estimator is consistent for the oracle estimator. Section 6 examines finite-sample behavior via Monte Carlo simulations. Finally, Section 7 concludes. All mathematical proofs are collected in the supplement [Ledoit and Wolf (2012)].

Large-dimensional asymptotics

Let nn denote the sample size and p≡p(n)p\equiv p(n) the number of variables, with p/n→c∈(0,1)p/n\to c\in(0,1) as n→∞n\to\infty. This framework is known as large-dimensional asymptotics. The restriction to the case c<1c<1 that we make here somewhat simplifies certain mathematical results as well as the implementation of our routines in software. The case c>1c>1, where the sample covariance matrix is singular, could be handled by similar methods, but is left to future research.

The following set of assumptions will be maintained throughout the paper.

The population covariance matrix Σn\Sigma_{n} is a nonrandom pp-dimensional positive definite matrix.

Let XnX_{n} be an n×pn\times p matrix of real independent and identically distributed (i.i.d.) random variables with zero mean and unit variance. One only observes Yn≡XnΣn1/2Y_{n}\equiv X_{n}\Sigma_{n}^{1/2}, so neither XnX_{n} nor Σn\Sigma_{n} are observed on their own.

Supp⁡(H){\operatorname{Supp}}(H), the support of HH, is the union of a finite number of closed intervals, bounded away from zero and infinity. Furthermore, there exists a compact interval in (0,+∞)(0,+\infty) that contains Supp⁡(Hn){\operatorname{Supp}}(H_{n}) for all nn large enough.

In the remainder of the paper, we shall use the notation Re⁡(z){\operatorname{Re}}(z) and Im⁡(z){\operatorname{Im}}(z) for the real and imaginary parts, respectively, of a complex number zz, so that

The Stieltjes transform of a nondecreasing function GG is defined by

which holds if GG is continuous at aa and bb. Thus, the Stieltjes transform of the e.d.f. of sample eigenvalues is

where II denotes a conformable identity matrix.

2 Marčenko–Pastur equation and reformulations

Marčenko and Pastur (1967) and others have proven that Fn(λ)F_{n}(\lambda) converges almost surely (a.s.) to some nonrandom limit F(λ)F(\lambda) at all points of continuity of FF under certain sets of assumptions. Furthermore, Marčenko and Pastur discovered the equation that relates mFm_{F} to HH. The most convenient expression of the Marčenko–Pastur equation is the one found in Silverstein [(1995), equation (1.4)],

This version of the Marčenko–Pastur equation is the one that we start out with. In addition, Silverstein and Choi (1995) showed that

The limiting e.d.f. of the eigenvalues of n−1Yn′Yn=n−1Σn1/2Xn′XnΣn1/2n^{-1}Y_{n}^{\prime}Y_{n}=n^{-1}\Sigma_{n}^{1/2}X_{n}^{\prime}X_{n}\Sigma_{n}^{1/2} was defined as FF. In addition, define the limiting e.d.f. of the eigenvalues of n−1YnYn′=n−1XnΣnXn′n^{-1}Y_{n}Y_{n}^{\prime}=n^{-1}X_{n}\Sigma_{n}X_{n}^{\prime} as F‾\underline{F}. It then holds

Let the linear operator LL transform any c.d.f. GG into

Combining LL with the Stieltjes transform, we get

Thus, we can rewrite equation (4) more concisely as

As Silverstein and Choi [(1995), equation (1.4)] explain, the function defined in equation (3) is invertible. Thus we can define the inverse function

We can do the same thing for equation (5) and define the inverse function

Equations (2), (3), (5), (6) and (7) are all completely equivalent to one another; solving any one of them means having solved them all. They are all just reformulations of the Marčenko–Pastur equation.

As will be detailed in Section 3, the oracle nonlinear shrinkage estimator of Σn\Sigma_{n} involves the quantity m˘F(λ){\breve{m}}_{F}(\lambda), for various inputs λ\lambda. Section 2.3 describes how this quantity can be found in the hypothetical case that FF and HH are actually known. This will then allow us later to discuss consistent estimation of m˘F(λ){\breve{m}}_{F}(\lambda) in the realistic case when FF and HH are unknown.

3 Solving the Marčenko–Pastur equation

To simplify, we will assume from here on that Supp⁡(F){\operatorname{Supp}}(F) is a single compact interval, bounded away from zero, with F′>0F^{\prime}>0 in the interior of this interval. But if Supp⁡(F){\operatorname{Supp}}(F) is the union of a finite number of such intervals, the arguments presented in this section as well as in the remainder of the paper apply separately to each interval. In particular, our consistency results presented in subsequent sections can be easily extended to this more general case. On the other hand, the even more general case of Supp⁡(F){\operatorname{Supp}}(F) being the union of an infinite number of such intervals or being a noncompact interval is ruled out by assumption (A4). By our assumption then, Supp⁡(F){\operatorname{Supp}}(F) is given by the compact interval [z~F‾(u1),z~F‾(u2)][\widetilde{z}_{\underline{F}}(u_{1}),\widetilde{z}_{\underline{F}}(u_{2})] for some u1<u2u_{1}<u_{2}. To keep the notation shorter in what follows, let z~1≡z~F‾(u1)\widetilde{z}_{1}\equiv\widetilde{z}_{\underline{F}}(u_{1}) and z~2≡z~F‾(u2)\widetilde{z}_{2}\equiv\widetilde{z}_{\underline{F}}(u_{2}).

The converse is also true. Since Supp⁡(F)=[z~F‾(u1),z~F‾(u2)]{\operatorname{Supp}}(F)=[\widetilde{z}_{\underline{F}}(u_{1}),\widetilde{z}_{\underline{F}}(u_{2})], for every x∈(u1,u2)x\in(u_{1},u_{2}), there exists a unique y>0y>0, denoted by yxy_{x}, such that

In other words, yxy_{x} is the unique value of y>0y>0 for which Im⁡[(x+iy)−c(x+iy)mLH(x+iy)]=0{\operatorname{Im}}[(x+iy)-c(x+iy)m_{LH}(x+iy)]=0. Also, if λx\lambda_{x} denotes the value of λ\lambda for which we have (x+iyx)−c(x+iyx)mLH(x+iyx)=λ(x+iy_{x})-c(x+iy_{x})m_{LH}(x+iy_{x})=\lambda, then, by definition, zλx=x+iyxz_{\lambda_{x}}=x+iy_{x}.

Once we find a way to consistently estimate yxy_{x} for any x∈[u1,u2]x\in[u_{1},u_{2}], then we have an estimate of the (asymptotic) solution to the Marčenko–Pastur equation. For example, Im⁡[−1/(x+iyx)]/(cπ){\operatorname{Im}}[-1/(x+iy_{x})]/(c\pi) is the value of the density F′F^{\prime} evaluated at Re⁡[(x+iyx)−c(x+iyx)mLH(x+iyx)]=(x+iyx)−c(x+iyx)mLH(x+iyx){\operatorname{Re}}[(x+iy_{x})-c(x+iy_{x})m_{LH}(x+iy_{x})]=(x+iy_{x})-c(x+iy_{x})m_{LH}(x+iy_{x}).

From the above arguments, it follows that

Oracle estimator

In the absence of specific information about the true covariance matrix Σn\Sigma_{n}, it appears reasonable to restrict attention to the class of estimators that are equivariant with respect to rotations of the observed data. To be more specific, let WW be an arbitrary pp-dimensional orthogonal matrix. Let Σ^n≡Σ^n(Yn)\widehat{\Sigma}_{n}\equiv\widehat{\Sigma}_{n}(Y_{n}) be an estimator of Σn\Sigma_{n}. Then the estimator is said to be rotation-equivariant if it satisfies Σ^n(YnW)=W′Σ^n(Yn)W\widehat{\Sigma}_{n}(Y_{n}W)=W^{\prime}\widehat{\Sigma}_{n}(Y_{n})W. In other words, the estimate based on the rotated data equals the rotation of the estimate based on the original data. The class of rotation-equivariant estimators of the covariance matrix is constituted of all the estimators that have the same eigenvectors as the sample covariance matrix; for example, see Perlman [(2007), Section 5.4]. Every rotation-equivariant estimator is thus of the form

and where UnU_{n} is the matrix whose iith column is the sample eigenvector ui≡un,iu_{i}\equiv u_{n,i}. This is the class we consider.

The starting objective is to find the matrix in this class that is closest to Σn\Sigma_{n}. To measure distance, we choose the Frobenius norm defined as

[Dividing by the dimension of the square matrix AA′AA^{\prime} inside the root is not standard, but we do this for asymptotic purposes so that the Frobenius norm remains constant equal to one for the identity matrix regardless of the dimension; see Ledoit and Wolf (2004).] As a result, we end up with the following minimization problem:

Elementary matrix algebra shows that its solution is

The interpretation of di∗d_{i}^{*} is that it captures how the iith sample eigenvector uiu_{i} relates to the population covariance matrix Σn\Sigma_{n} as a whole. As a result, the finite-sample optimal estimator is given by

By generalizing the Marčenko–Pastur equation (2), Ledoit and Péché (2011) show that di∗d_{i}^{*} can be approximated by the quantity

from which they deduce their oracle estimator

The key difference between Dn∗D^{*}_{n} and DnorD^{or}_{n} is that the former depends on the unobservable population covariance matrix, whereas the latter depends on the limiting distribution of sample eigenvalues, which makes it amenable to estimation, as explained below.

Note that SnorS_{n}^{or} constitutes a nonlinear shrinkage estimator: since the value of the denominator of diord_{i}^{or} varies with λi\lambda_{i}, the shrunken eigenvalues diord_{i}^{or} are obtained by applying a nonlinear transformation to the sample eigenvalues λi\lambda_{i}; see Figure 3 for an illustration. Ledoit and Péché (2011) also illustrate in some (limited) simulations that this oracle estimator can provide a magnitude of improvement over the linear shrinkage estimator of Ledoit and Wolf (2004).

2 Precision matrix

Often times an estimator of the inverse of the covariance matrix, or the precision matrix, Σn−1\Sigma_{n}^{-1} is required. A reasonable strategy would be to first estimate Σn\Sigma_{n}, and to then simply take the inverse of the resulting estimator. However, such a strategy will generally not be optimal.

By arguments analogous to those leading up to (12), among the class of rotation-equivariant estimators, the finite-sample optimal estimator of Σn−1\Sigma_{n}^{-1} with respect to the Frobenius norm is given by

In particular, note that Pn∗≠(Sn∗)−1P_{n}^{*}\neq(S_{n}^{*})^{-1} in general.

Studying the asymptotic behavior of the diagonal matrix An∗A_{n}^{*} led Ledoit and Péché (2011) to the following oracle estimator:

In particular, note that Pnor≠(Snor)−1P_{n}^{or}\neq(S_{n}^{or})^{-1} in general.

One can see that both oracle estimators SnorS_{n}^{or} and PnorP_{n}^{or} involve the unknown quantities m˘F(λi)\breve{m}_{F}(\lambda_{i}), for i=1,…,pi=1,\ldots,p. As a result, they are not bona fide estimators. However, being able to consistently estimate m˘F(λ)\breve{m}_{F}(\lambda), uniformly in λ\lambda, will allow us to construct bona fide estimators S^n\widehat{S}_{n} and P^n\widehat{P}_{n} that converge to their respective oracle counterparts almost surely (in the sense that the Frobenius norm of the difference converges to zero almost surely).

Section 4 explains how to construct a uniformly consistent estimator of m˘F(λ)\breve{m}_{F}(\lambda) based on a consistent estimator of HH, the limiting spectral distribution of the population eigenvalues. Section 5 discusses how to construct a consistent estimator of HH from the data.

3 Further details on the results of Ledoit and Péché (2011)

Ledoit and Péché (2011) (hereafter LP) study functionals of the type

where gg is any real-valued univariate function satisfying suitable regularity conditions. Comparison with equation (1) reveals that this family of functionals generalizes the Stieltjes transform, with the Stieltjes transform corresponding to the special case g≡1g\equiv 1. What is of interest is what happens for other, nonconstant functions gg.

What is remarkable is that, as one moves from the constant function g≡1g\equiv 1 to any other function g(τ)g(\tau), the integration kernel g(τ)τ[1−c−czmF(z)]−z\frac{g(\tau)}{\tau[1-c-czm_{F}(z)]-z} remains unchanged. Therefore equation (19) is a direct generalization of Marčenko and Pastur’s foundational result.

The power and usefulness of this generalization become apparent once one starts plugging specific, judiciously chosen functions g(τ)g(\tau) into equation (19). For the purpose of illustration, LP work out three examples of functions g(τ)g(\tau).

The first example of LP is g(τ)≡\mathbh1(−∞,τ)g(\tau)\equiv\mathbh{1}_{(-\infty,\tau)}, where \mathbh1\mathbh{1} denotes the indicator function of a set. It enables them to characterize the asymptotic location of sample eigenvectors relative to population eigenvectors. Since this result is not directly relevant to the present paper, we will not elaborate further, and refer the interested reader to LP’s Section 1.2.

The second example of LP is g(τ)≡τg(\tau)\equiv\tau. It enables them to characterize the asymptotic behavior of the quantities diord_{i}^{or} introduced in equation (13). More formally, for any u∈(0,1)u\in(0,1), define

where ⌊⋅⌋\lfloor\cdot\rfloor denotes the integer part. LP’s Theorem 4 proves that Δn∗(u)−Δnor(u)→0\Delta_{n}^{*}(u)-\Delta_{n}^{or}(u)\rightarrow 0 a.s.

The third example of LP is g(τ)≡1/τg(\tau)\equiv 1/\tau. It enables them to characterize the asymptotic behavior of the quantities aiora_{i}^{or} introduced in equation (3.2). For any u∈(0,1)u\in(0,1) define

LP’s Theorem 5 proves that Ψn∗(u)−Ψnor(u)→0\Psi_{n}^{*}(u)-\Psi_{n}^{or}(u)\rightarrow 0 a.s.

Fix x∈[u1+η,u2−η]x\in[u_{1}+\eta,u_{2}-\eta], where η>0\eta>0 is some small number. From the previous discussion in Section 2, it follows that the equation

has a unique solution y∈(0,+∞)y\in(0,+\infty), called yxy_{x}. Since u1<x<u2u_{1}<x<u_{2}, it follows that yx>0y_{x}>0; for x=u1x=u_{1} or x=u2x=u_{2}, we would have yx=0y_{x}=0 instead. The goal is to consistently estimate yxy_{x}, uniformly in x∈[u1+η,u2−η]x\in[u_{1}+\eta,u_{2}-\eta].

Define for any c.d.f. GG and for any d>0d>0, the real function

With this notation, yxy_{x} is the unique minimizer in (0,+∞)(0,+\infty) of gH,c(y,x)g_{H,c}(y,x) then. In particular, gH,c(yx,x)=0g_{H,c}(y_{x},x)=0.

In the remainder of the paper, the symbol ⇒\Rightarrow denotes weak convergence (or convergence in distribution).

(i) Let {H^n}\{\widehat{H}_{n}\} be a sequence of probability measures with H^n⇒H\widehat{H}_{n}\Rightarrow H. Let {c^n}\{\widehat{c}_{n}\} be a sequence of positive real numbers with c^n→c\widehat{c}_{n}\to c. Let K⊆(0,∞)K\subseteq(0,\infty) be a compact interval satisfying {yx\dvtxx∈[u1+η,u2−η]}⊆K\{y_{x}\dvtx x\in[u_{1}+\eta,u_{2}-\eta]\}\subseteq K. For a given x∈[u1+η,u2−η]x\in[u_{1}+\eta,u_{2}-\eta], let y^n,x≡min⁡y∈KgH^n,c^n(y,x)\widehat{y}_{n,x}\equiv\min_{y\in K}g_{\widehat{H}_{n},\widehat{c}_{n}}(y,x). It then holds that y^n,x→yx\widehat{y}_{n,x}\to y_{x} uniformly in x∈[u1+η,u2−η]x\in[u_{1}+\eta,u_{2}-\eta].

(ii) In case of H^n⇒H\widehat{H}_{n}\Rightarrow H a.s., it holds that y^n,x→yx\widehat{y}_{n,x}\to y_{x} a.s. uniformly in x∈[u1+η,u2−η]x\in[u_{1}+\eta,u_{2}-\eta].

It should be pointed out that the assumption {yx\dvtxx∈[u1+η,u2−η]}⊆K\{y_{x}\dvtx x\in[u_{1}+\eta,u_{2}-\eta]\}\subseteq K is not really restrictive, since one can choose K≡[ε,1/ε]K\equiv[\varepsilon,1/\varepsilon], for ε\varepsilon arbitrarily small.

We also need to solve the “inverse” estimation problem, namely starting with λ\lambda and recovering the corresponding vλv_{\lambda}. Fix λ∈[z~1+δ~,z~2−δ~]\lambda\in[\widetilde{z}_{1}+\widetilde{\delta},\widetilde{z}_{2}-\widetilde{\delta}], where δ~>0\widetilde{\delta}>0 is some small number. From the previous discussion, it follows that the equation

Define for any c.d.f. GG and for any d>0d>0, the real function

(ii) In case of H^n⇒H\widehat{H}_{n}\Rightarrow H a.s., it holds that v^n,λ→vλ\widehat{v}_{n,\lambda}\to v_{\lambda} a.s. uniformly in λ∈[z~1+δ~,z2−δ~]\lambda\in[\widetilde{z}_{1}+\widetilde{\delta},z_{2}-\widetilde{\delta}].

Being able to find consistent estimators of vλv_{\lambda}, uniformly in λ\lambda, now allows us to find consistent estimators of m˘F(λ)\breve{m}_{F}(\lambda), uniformly in λ\lambda, based on (9). Our estimator of m˘F(λ)\breve{m}_{F}(\lambda) is given by

This, in turn, provides us with a consistent estimator of SnorS_{n}^{or}, the oracle nonlinear shrinkage estimator of Σn\Sigma_{n}. Define

It also provides us with a consistent estimator of PnorP_{n}^{or}, the oracle nonlinear shrinkage estimator of Σn−1\Sigma_{n}^{-1}. Define

In particular, note that P^n≠S^n−1\widehat{P}_{n}\neq\widehat{S}_{n}^{-1} in general.

Let {H^n}\{\widehat{H}_{n}\} be a sequence of probability measures with H^n⇒H\widehat{H}_{n}\Rightarrow H. Let {c^n}\{\widehat{c}_{n}\} be a sequence of positive real numbers with c^n→c\widehat{c}_{n}\to c. It then holds that: {longlist}[(b)]

m˘FH^n,c^n(λ)→m˘F(λ)\breve{m}_{F_{\widehat{H}_{n},\widehat{c}_{n}}}(\lambda)\to\breve{m}_{F}(\lambda) uniformly in λ∈[z~1+δ~,z~2−δ~]\lambda\in[\widetilde{z}_{1}+\widetilde{\delta},\widetilde{z}_{2}-\widetilde{\delta}];

In case of H^n⇒H\widehat{H}_{n}\Rightarrow H a.s., it holds that: {longlist}[(b)]

m˘FH^n,c^n(λ)→m˘F(λ)\breve{m}_{F_{\widehat{H}_{n},\widehat{c}_{n}}}(\lambda)\to\breve{m}_{F}(\lambda) uniformly in λ∈[z~1+δ~,z~2−δ~]\lambda\in[\widetilde{z}_{1}+\widetilde{\delta},\widetilde{z}_{2}-\widetilde{\delta}] a.s.;

∥S^n−Snor∥→0\|\widehat{S}_{n}-S_{n}^{or}\|\to 0 a.s.;

∥P^n−Pnor∥→0\|\widehat{P}_{n}-P_{n}^{or}\|\to 0 a.s.

Estimation of H𝐻H

As described before, consistent estimation of the oracle estimators of Ledoit and Péché (2011) requires (uniformly) consistent estimation of m˘F(λ)\breve{m}_{F}(\lambda). Since Im⁡[m˘F(λ)]=πF′(λ){\operatorname{Im}}[\breve{m}_{F}(\lambda)]=\pi F^{\prime}(\lambda), one possible approach could be to take an off-the-shelf density estimator for F′F^{\prime}, based on the observed sample eigenvalues λi\lambda_{i}. There exists a large literature on density estimation; for example, see Silverman (1986). The real part of m˘F(λi)\breve{m}_{F}(\lambda_{i}) could be estimated in a similar manner.

However, the sample eigenvalues do not satisfy any of the regularity conditions usually invoked for the underlying data. It really is not clear at all whether an off-the-shelf density estimator applied to the sample eigenvalues would result in consistent estimation of F′F^{\prime}.

Even if this issue was somehow resolved, using such a generic procedure would not exploit the specific features of the problem. Namely: FF is not just any distribution; it is a distribution of sample eigenvalues. It is the solution to the Marčenko–Pastur equation for some HH. This is valuable information that narrows down considerably the set of possible distributions FF. Therefore an estimation procedure specifically designed to incorporate this a priori knowledge would be better suited to the problem at hand. This is the approach we select.

In a nutshell: our estimator of FF is the c.d.f. that is closest to FnF_{n} among the c.d.f.’s that are a solution to the Marčenko–Pastur equation for some H~\widetilde{H} and for c~≡c^n≡p/n\widetilde{c}\equiv\widehat{c}_{n}\equiv p/n. The “underlying” distribution H~\widetilde{H} that produces the thus obtained estimator of FF is, in turn, our estimator of HH. If we can show that this estimator of HH is consistent, then the results of the previous section demonstrate that the implied estimator of m˘F(λ)\breve{m}_{F}(\lambda) is uniformly consistent.

Section 5.1 derives theoretical properties of this approach, while Section 5.2 discusses various issues concerning the practical implementation.

In this notation, we then have F=FH,cF=F_{H,c}.

It follows from Silverstein and Choi (1995) again that

For a grid QQ on the real line and for two c.d.f.’s G1G_{1} and G2G_{2}, define

The following theorem shows that both FF and HH can be estimated consistently via an idealized algorithm.

Let {Qn}\{Q_{n}\} be a sequence of grids on the real line eventually covering the support of FF with corresponding grid sizes {γn}\{\gamma_{n}\} satisfying γn→0\gamma_{n}\to 0. Let {c^n}\{\widehat{c}_{n}\} be a sequence of positive real numbers with c^n→c\widehat{c}_{n}\to c. Let H^n\widehat{H}_{n} be defined as

where H~\widetilde{H} is a probability measure.

Then we have (i) FH^n,c^n⇒FF_{\widehat{H}_{n},\widehat{c}_{n}}\Rightarrow F a.s.; and (ii) H^n⇒H\widehat{H}_{n}\Rightarrow H a.s.

The algorithm used in the theorem is not practical for two reasons. First, it is not possible to optimize over all probability measures H~\widetilde{H}. But similarly to El Karoui (2008), we can show that it is sufficient to optimize over all probability measures that are sums of atoms, the location of which is restricted to a fixed-size grid, with the grid size vanishing asymptotically.

Let {Qn}\{Q_{n}\} be a sequence of grids on the real line eventually covering the support of FF with corresponding grid sizes {γn}\{\gamma_{n}\} satisfying γn→0\gamma_{n}\to 0. Let {c^n}\{\widehat{c}_{n}\} be a sequence of positive real numbers with c^n→c\widehat{c}_{n}\to c. Let Pn{\mathcal{P}}_{n} denote the set of all probability measures that are sums of atoms belonging to the grid {Jn/Tn,(Jn+1)/Tn,…,Kn/Tn}\{J_{n}/T_{n},(J_{n}+1)/T_{n},\ldots,K_{n}/T_{n}\} with Tn→∞T_{n}\to\infty, JnJ_{n} being the largest integer satisfying Jn/Tn≤λ1J_{n}/T_{n}\leq\lambda_{1}, and KnK_{n} being the smallest integer satisfying Kn/Tn≥λpK_{n}/T_{n}\geq\lambda_{p}. Let H^n\widehat{H}_{n} be defined as

Then we have (i) FH^n,c^n⇒FF_{\widehat{H}_{n},\widehat{c}_{n}}\Rightarrow F a.s.; and (ii) H^n⇒H\widehat{H}_{n}\Rightarrow H a.s.

But even restricting the optimization over a manageable set of probability measures is not quite practical yet for a second reason. Namely, to compute FH~,c^nF_{\widetilde{H},\widehat{c}_{n}} exactly for a given H~\widetilde{H}, one would have to (numerically) solve the Marčenko–Pastur equation for an infinite number of points. In practice, we can only afford to solve the equation for a finite number of points and then approximate FH~,c^nF_{\widetilde{H},\widehat{c}_{n}} by trapezoidal integration. Fortunately, this approximation does not negatively affect the consistency of our estimators.

Let GG be a c.d.f. with continuous density gg and compact support [a,b][a,b]. For a grid Q≡{…,t−1,t0,t1,…}Q\equiv\{\ldots,t_{-1},t_{0},t_{1},\ldots\} covering the support of GG, the approximation to GG via trapezoidal integration over the grid QQ, denoted by G^Q\widehat{G}_{Q}, is obtained as follows. For t∈[a,b]t\in[a,b], let Jlo≡max⁡{k\dvtxtk≤a}J_{lo}\equiv\max\{k\dvtx t_{k}\leq a\} and Jhi≡min⁡{k\dvtxt<tk}J_{hi}\equiv\min\{k\dvtx t<t_{k}\}. Then

Now turn to the special case G≡FH~,c~G\equiv F_{\widetilde{H},\widetilde{c}} and Q≡QnQ\equiv Q_{n}. In this case, we denote the approximation to FH~,c~F_{\widetilde{H},\widetilde{c}} via trapezoidal integration over the grid QnQ_{n} by F^H~,c~;Qn\widehat{F}_{\widetilde{H},\widetilde{c};Q_{n}}.

Assume the same assumptions as in Corollary 5.1. Let H^n\widehat{H}_{n} be defined as

Let m˘FH^n,c^n(λ)\breve{m}_{F_{\widehat{H}_{n},\widehat{c}_{n}}}(\lambda), S^n\widehat{S}_{n}, and P^n\widehat{P}_{n} be defined as in (22), (4) and (4), respectively. Then: {longlist}[(iii)]

FH^n,c^n⇒FF_{\widehat{H}_{n},\widehat{c}_{n}}\Rightarrow F a.s.

For any δ~>0\widetilde{\delta}>0, m˘FH^n,c^n(λ)→m˘F(λ)\breve{m}_{F_{\widehat{H}_{n},\widehat{c}_{n}}}(\lambda)\to\breve{m}_{F}(\lambda) a.s. uniformly in λ∈[z~1+δ~,z~2−δ~]\lambda\in[\widetilde{z}_{1}+\widetilde{\delta},\widetilde{z}_{2}-\widetilde{\delta}].

∥S^n−Snor∥→0\|\widehat{S}_{n}-S_{n}^{or}\|\to 0 a.s.

∥P^n−Pnor∥→0\|\widehat{P}_{n}-P_{n}^{or}\|\to 0 a.s.

2 Implementation details

As discussed before, it is not practical to search over the set of all possible c.d.f.’s H~\widetilde{H}. Following El Karoui (2008), we project HH onto a certain basis of c.d.f.’s (Mk)k=1,…,K(M_{k})_{k=1,\ldots,K}, where KK goes to infinity along with nn and pp. The projection of HH onto this basis is given by the nonnegative weights w1,…,wKw_{1},\ldots,w_{K}, where

Thus, our estimator for FF will be a solution to the Marčenko–Pastur equation for H~\widetilde{H} given by equation (31) for some (wk)k=1,…,K(w_{k})_{k=1,\ldots,K}, and for c~≡p/n\widetilde{c}\equiv p/n. It is just a matter of searching over all sets of nonnegative weights summing up to one.

Choice of basis

We base the c.d.f.’s (Mk)k=1,…,K(M_{k})_{k=1,\ldots,K} on a grid of pp equally spaced points on the interval [λ1,λp][\lambda_{1},\lambda_{p}].

Thus x1=λ1x_{1}=\lambda_{1} and xp=λpx_{p}=\lambda_{p}. We then form the basis {M1,…,Mk}\{M_{1},\ldots,M_{k}\} as the union of three families of c.d.f.’s:

the indicator functions \mathbh1[xi,+∞)\mathbh{1}_{[x_{i},+\infty)} (i=1,…,pi=1,\ldots,p);

the c.d.f.’s whose derivatives are linearly increasing on the interval [xi−1,xi][x_{i-1},x_{i}] and zero everywhere else (i=2,…,pi=2,\ldots,p);

the c.d.f.’s whose derivatives are linearly decreasing on the interval [xi−1,xi][x_{i-1},x_{i}] and zero everywhere else (i=2,…,pi=2,\ldots,p).

This list yields a basis (Mk)k=1,…,K(M_{k})_{k=1,\ldots,K} of dimension K=3p−2K=3p-2. Notice that by the theoretical results of Section 5.1, it would be sufficient to use the first family only. Including the second and third families in addition cannot make the approximation to HH any worse.

Trapezoidal integration

Objective function

The objective function measures the distance between FnF_{n} and the FF that solves the Marčenko–Pastur equation for H~≡∑k=1KwkMk\widetilde{H}\equiv\sum_{k=1}^{K}w_{k}M_{k} and for c~≡p/n\widetilde{c}\equiv p/n. Traditionally, FnF_{n} is defined as càdlàg, that is, Fn(λ1)=1/pF_{n}(\lambda_{1})=1/p and Fn(λp)=1F_{n}(\lambda_{p})=1. However, there is a certain degree of arbitrariness in this convention: why is Fn(λp)F_{n}(\lambda_{p}) equal to one but Fn(λ1)F_{n}(\lambda_{1}) not equal to zero? By symmetry, there is no a priori justification for specifying that the largest eigenvalue is closer to the supremum of the support of FF than the smallest to its infimum. Therefore, a different convention might be more appropriate in this case, which leads us to the following definition:

This choice restores a certain element of symmetry to the treatment of the smallest vs. the largest eigenvalue. From equation (34), we deduce F^n(xi)\widehat{F}_{n}(x_{i}), for i=2,…,p−1i=2,\ldots,p-1, by linear interpolation. With a sup-norm error penalty, this leads to the following objective function:

where F(xi)F(x_{i}) is given by equation (5.2) for i=1,…,pi=1,\ldots,p. Using equation (5.2), we can rewrite this objective function as

Optimization program

We now have all the ingredients needed to state the optimization program that will extract the estimator of m˘F(x1),…,m˘F(xp)\breve{m}_{F}(x_{1}),\ldots,\allowbreak\breve{m}_{F}(x_{p}) from the observations λ1,…,λp\lambda_{1},\ldots,\lambda_{p}. It is the following:

Real optimization program

In practice, most optimizers only accept real variables. Therefore it is necessary to decompose mjm_{j} into its real and imaginary parts: aj≡Re⁡[mj]a_{j}\equiv{\operatorname{Re}}[m_{j}] and bj≡Im⁡[mj]b_{j}\equiv{\operatorname{Im}}[m_{j}]. Then we can optimize separately over the two sets of real variables aja_{j} and bjb_{j} for j=1,…,pj=1,\ldots,p. The Marčenko–Pastur constraint in equation (5.2) splits into two constraints: one for the real part and the other for the imaginary part. The reformulated optimization program is

Sequential linear programming

While the optimization program defined in equations (37)–(42) may appear daunting at first sight because of its non-convexity, it is, in fact, solved quickly and efficiently by off-the-shelf optimization software implementing Sequential Linear Programming (SLP). The key is to linearize equations (5.2)–(5.2), the two constraints that embody the Marčenko–Pastur equation, around an approximate solution point. Once they are linearized, the optimization program (37)–(42) becomes a standard Linear Programming (LP) problem, which can be solved very quickly. Then we linearize again equations (5.2)–(5.2) around the new point, and this generates a new LP problem; hence the name: Sequential Linear Programming. The software iterates until a satisfactory degree of convergence is achieved. All of this is handled automatically by the SLP optimizer. The user only needs to specify the problem (37)–(42), as well as some starting point, and then launch the SLP optimizer. For our SLP optimizer, we selected a standard off-the-shelf commercial software: SNOPT™ Version 7.2–5; see Gill, Murray and Saunders (2002). While SNOPT™ was originally designed for sequential quadratic programming, it also handles SLP, since linear programming can be viewed as a particular case of quadratic programming with no quadratic term.

Starting point

A neutral way to choose the starting point is to place equal weights on all the c.d.f.’s in our basis: wk≡1/K(k=1,…,K)w_{k}\equiv 1/K(k=1,\ldots,K). Then it is necessary to solve the Marčenko–Pastur equation numerically once before launching the SLP optimizer, in order to compute the values of m˘F(xj)\breve{m}_{F}(x_{j}) (j=1,…,p)(j=1,\ldots,p) that correspond to this initial choice of H~=∑k=1KMk/K\widetilde{H}=\sum_{k=1}^{K}M_{k}/K. The initial values for aja_{j} are taken to be Re⁡[m˘F(xj)]{\operatorname{Re}}[\breve{m}_{F}(x_{j})], and Im⁡[m˘F(xj)]{\operatorname{Im}}[\breve{m}_{F}(x_{j})] for bjb_{j} (j=1,…,p)(j=1,\ldots,p). If the choice of equal weights wk≡1/Kw_{k}\equiv 1/K for the starting point does not lead to convergence of the optimization program within a pre-specified limit on the maximum number of iterations, we choose random weights wkw_{k} generated i.i.d. ∼Uniform⁡\sim\operatorname{Uniform} (rescaled to sum up to one), repeating this process until convergence finally occurs. In the vast majority of cases, the optimization program already converges on the first try. For example, over 1000 Monte Carlo simulations using the design of Section 6.1 with p=100p=100 and n=300n=300, the optimization program converged on the first try 994 times and on the second try the remaining 6 times.

Optimization time

Figure 1 gives some information on how the optimization time increases with the matrix dimension.

The main reason for the rate at which the optimization time increases with pp is that the number of grid points in (32) increases linearly in pp. This linear rate is not a requirement for our asymptotic results. Therefore, if necessary, it is possible to pick a less-than-linear rate of increase in the number of grid points to speed up the optimization for very large matrices.

Estimating the covariance matrix

Once the SLP optimizer has converged, it generates optimal values (a1∗,…,ap∗)(a_{1}^{*},\ldots,a_{p}^{*}), (b1∗,…,bp∗)(b_{1}^{*},\ldots,b_{p}^{*}) and (w1∗,…,wK∗)(w_{1}^{*},\ldots,w_{K}^{*}). The first two sets of variables at the optimum are used to estimate the oracle shrinkage factors. From the reconstructed m˘F∗(xj)≡aj∗+ibj∗\breve{m}_{F}^{*}(x_{j})\equiv a_{j}^{*}+ib_{j}^{*}, we deduce by linear interpolation m˘F∗(λj)\breve{m}_{F}^{*}(\lambda_{j}), for j=1,…,pj=1,\ldots,p. Our estimator of the covariance matrix S^n\widehat{S}_{n} is built by keeping the same eigenvectors as the sample covariance matrix, and dividing each sample eigenvalue λj\lambda_{j} by the following correction factor:

Corollary 5.2 assures us that the resulting bona fide nonlinear shrinkage estimator is asymptotically equivalent to the oracle estimator SnorS_{n}^{or}. Also, we can see that, as the concentration c^n=p/n\widehat{c}_{n}=p/n gets closer to zero, that is, as we get closer to fixed-dimension asymptotics, the magnitude of the correction becomes smaller. This makes sense because under fixed-dimension asymptotics the sample covariance matrix is a consistent estimator of the population covariance matrix.

Estimating the precision matrix

The output of the same optimization process can also be used to estimate the oracle shrinkage factors for the precision matrix. Our estimator of the precision matrix Σn−1\Sigma_{n}^{-1} is built by keeping the same eigenvectors as the sample covariance matrix, and multiplying the inverse λj−1\lambda_{j}^{-1} of each sample eigenvalue by the following correction factor:

Corollary 5.2 assures us that the resulting bona fide nonlinear shrinkage estimator is asymptotically equivalent to the oracle estimator PnorP_{n}^{or}.

Estimating H𝐻H

We point out that the optimal values (w1∗,…,wK∗)(w_{1}^{*},\ldots,w_{K}^{*}) generated from the SLP optimizer yield a consistent estimate of HH in the following fashion:

It would have been of additional interest to compare our estimator of HH to the one of El Karoui (2008) in some simulations. But when we tried to implement his estimator according to the implementation details provided, we were not able to match the results presented in his paper. Furthermore, we were not able to obtain his original software. As a result, we cannot make any definite statements concerning the performance of our estimator of HH compared to the one of El Karoui (2008).

The implementation of our nonlinear shrinkage estimators is not trivial and also requires the use of a third-party SLP optimizer. It is therefore of interest whether an alternative version exists that is easier to implement and exhibits (nearly) as good finite-sample properties.

To this end an anonymous referee suggested to estimate the quantities di∗d_{i}^{*} of (11) by a leave-one-out cross-validation method. In particular, let (λi[k],…,λp[k]);(u1[k],…,up[k])(\lambda_{i}[k],\ldots,\allowbreak\lambda_{p}[k]);(u_{1}[k],\ldots,u_{p}[k]) denote a system of eigenvalues and eigenvectors of the sample covariance matrix computed from all the observed data, except for the kkth observation. Then di∗d_{i}^{*} of (11) can be approximated by

where the p×1p\times 1 vector yky_{k} denotes the kkth row of the matrix Yn≡XnΣn1/2Y_{n}\equiv X_{n}\Sigma_{n}^{1/2}.

We are grateful for this suggestion, since the cross-validation quantities dicvd_{i}^{cv} can be computed without the use of any third-party optimization software, and the corresponding computer code is very short.

On the other hand, the cross-validation estimator has three disadvantages. First, when pp is large, it takes much longer to compute the cross-validation estimator. The reason is that the spectral decomposition of a p×pp\times p covariance matrix has to be computed nn times as opposed to only one time. Second, the cross-validation method only applies to the estimation of the covariance matrix Σn\Sigma_{n} itself. It is not clear how to adapt this method to the (direct) estimation of the precision matrix Σn−1\Sigma_{n}^{-1} or any other smooth function of Σn\Sigma_{n}. Third, the performance of the cross-validation estimator cannot match the performance of our method; see Section 6.8.

Another approach proposed recently is the one of Mestre and Lagunas (2006). They use so-called “G-estimation,” that is, asymptotic results that assume the sample size nn and the matrix dimension pp go to infinity together, to derive minimum variance beam formers in the context of the spatial filtering of electronic signals. There are several differences between their paper and the present one. First, Mestre and Lagunas (2006) are interested in an optimal p×1p\times 1 weight vector woptw_{opt} given by

where sds_{d} is a p×1p\times 1 vector containing signal information. Consequently, Mestre and Lagunas (2006) are “only” interested in a certain functional of Σn\Sigma_{n}, while we are interested in the full covariance matrix Σn\Sigma_{n} and also in the full precision matrix Σn−1\Sigma_{n}^{-1}. Second, they use the real Stieltjes transform, which is different from the more conventional complex Stieltjes transform used in random matrix theory and in the present paper. Third, their random variables are complex whereas ours are real. The cumulative impact of these differences is best exemplified by the estimation of the precision matrix: Mestre and Lagunas [(2006), page 76] recommend (1−p/n)Sn−1(1-p/n)S_{n}^{-1}, which is just a rescaling of the inverse of the sample covariance matrix, whereas our Section 3.2 points to a highly nonlinear transformation of the eigenvalues of the sample covariance matrix.

Monte Carlo simulations

In this section, we present the results of various sets of Monte Carlo simulations designed to illustrate the finite-sample properties of the nonlinear shrinkage estimator S^n\widehat{S}_{n}. As detailed in Section 3, the finite-sample optimal estimator in the class of rotation-equivariant estimators is given by Sn∗S_{n}^{*} as defined in (12). Thus, the improvement of the shrinkage estimator S^n\widehat{S}_{n} over the sample covariance matrix will be measured by how closely this estimator approximates Sn∗S^{*}_{n} relative to the sample covariance matrix. More specifically, we report the Percentage Relative Improvement in Average Loss (PRIAL), which is defined as

where Σ^n\widehat{\Sigma}_{n} is an arbitrary estimator of Σn\Sigma_{n}. By definition, the PRIAL of SnS_{n} is 0%, while the PRIAL of Sn∗S_{n}^{*} is 100%.

Most of the simulations will be designed around a population covariance matrix Σn\Sigma_{n} that has 20%20\% of its eigenvalues equal to 11, 40%40\% equal to 33 and 40%40\% equal to 1010. This is a particularly interesting and difficult example introduced and analyzed in detail by Bai and Silverstein (1998). For concentration values such as c=1/3c=1/3 and below, it displays “spectral separation;” that is, the support of the distribution of sample eigenvalues is the union of three disjoint intervals, each one corresponding to a Dirac of population eigenvalues. Detecting this pattern and handling it correctly is a real challenge for any covariance matrix estimation method.

The first set of Monte Carlo simulations shows how the nonlinear shrinkage estimator S^n\widehat{S}_{n} behaves as the matrix dimension pp and the sample size nn go to infinity together. We assume that the concentration ratio c^n=p/n\widehat{c}_{n}=p/n remains constant and equal to 1/31/3. For every value of pp (and hence nn), we run 1000 simulations with normally distributed variables. The PRIAL is plotted in Figure 2. For the sake of comparison, we also report the PRIALs of the oracle SnorS_{n}^{or} and the optimal linear shrinkage estimator S‾n\overline{S}_{n} developed by Ledoit and Wolf (2004).

One can see that the performance of the nonlinear shrinkage estimator S^n\widehat{S}_{n} converges quickly toward that of the oracle and of Sn∗S^{*}_{n}. Even for relatively small matrices of dimension p=30p=30, it realizes 88%88\% of the possible gains over the sample covariance matrix. The optimal linear shrinkage estimator S‾n\overline{S}_{n} also performs well relative to the sample covariance matrix, but the improvement is limited: in general, it does not converge to 100%100\% under large-dimensional asymptotics. This is because there are strong nonlinear effects in the optimal shrinkage of sample eigenvalues. These effects are clearly visible in Figure 3, which plots a typical simulation result for p=100p=100.

One can see that the nonlinear shrinkage estimator S^n\widehat{S}_{n} shrinks the eigenvalues of the sample covariance matrix almost as if it “knew” the correct shape of the distribution of population eigenvalues. In particular, the various curves and gaps of the oracle nonlinear shrinkage formula are well picked up and followed by this estimator. By contrast, the linear shrinkage estimator can only use the best linear approximation to this highly nonlinear transformation. We also plot the 4545-degrees line as a visual reference to show what would happen if no shrinkage was applied to the sample eigenvalues, that is, if we simply used SnS_{n}.

2 Concentration

The next set of Monte Carlo simulations shows how the PRIAL of the shrinkage estimators varies as a function of the concentration ratio c^n=p/n\widehat{c}_{n}=p/n if we keep the product p×np\times n constant and equal to 90009000. We keep the same population covariance matrix Σn\Sigma_{n} as in Section 6.1. For every value of p/np/n, we run 10001000 simulations with normally distributed variables. The respective PRIALs of SnorS_{n}^{or}, S^n\widehat{S}_{n} and S‾n\overline{S}_{n} are plotted in Figure 4.

One can see that the nonlinear shrinkage estimator performs well across the board, closely in line with the oracle, and always achieves at least 90%90\% of the possible improvement over the sample covariance matrix. By contrast, the linear shrinkage estimator achieves relatively little improvement over the sample covariance matrix when the concentration is low. This is because, when the sample size is large relative to the matrix dimension, there is a lot of precise information about the optimal nonlinear way to shrink the sample eigenvalues that is waiting to be extracted by a suitable nonlinear procedure. By contrast, when the sample size is not so large, the information about the population covariance matrix is relatively fuzzy; therefore a simple linear approximation can achieve up to 93%93\% of the potential gains.

3 Dispersion

The third set of Monte Carlo simulations shows how the PRIAL of the shrinkage estimators varies as a function of the dispersion of population eigenvalues. We take a population covariance matrix Σn\Sigma_{n} with 20%20\% of its eigenvalues equal to 11, 40%40\% equal to 1+2d/91+2d/9 and 40%40\% equal to 1+d1+d, where the dispersion parameter dd varies from to 2020. Thus, for d=0d=0, Σn\Sigma_{n} is the identity matrix and, for d=9d=9, Σn\Sigma_{n} is the same matrix as in Section 6.1. The sample size is n=300n=300 and the matrix dimension is p=100p=100. For every value of dd, we run 10001000 simulations with normally distributed variables. The respective PRIALs of SnorS_{n}^{or}, S^n\widehat{S}_{n} and S‾n\overline{S}_{n} are plotted in Figure 5.

One can see that the linear shrinkage estimator S‾n\overline{S}_{n} beats the nonlinear shrinkage estimator S^n\widehat{S}_{n} for very low dispersion levels. For example, when d=0d=0, that is, when the population covariance matrix is equal to the identity matrix, S‾n\overline{S}_{n} realizes 99.9%99.9\% of the possible improvement over the sample covariance matrix, while S^n\widehat{S}_{n} realizes “only” 99.4%99.4\% of the possible improvement. This is because, in this case, linear shrinkage is optimal or (when dd is strictly positive but still small) nearly optimal Hence there is nothing too little to be gained by resorting to a nonlinear shrinkage method. However, as dispersion increases, linear shrinkage delivers less and less improvement over the sample covariance matrix, while nonlinear shrinkage retains a PRIAL above 96%96\%, and close to that of the oracle.

4 Fat tails

One can see that departure from normality does not have any noticeable effect on performance.

5 Precision matrix

The next set of Monte Carlo simulations focuses on estimating the precision matrix Σn−1\Sigma_{n}^{-1}. The definition of the PRIAL, in this subsection only, is given by

where Π^n\widehat{\Pi}_{n} is an arbitrary estimator of Σn−1\Sigma_{n}^{-1}. By definition, the PRIAL of Sn−1S_{n}^{-1} is 0% while the PRIAL of Pn∗P_{n}^{*} is 100%.

We take the same population eigenvalues as in Section 6.1. The concentration ratio c^n=p/n\widehat{c}_{n}=p/n is set to the value 1/31/3. For various values of pp between 3030 and 200200, we run 1000 simulations with normally distributed variables. The respective PRIALs of PnorP_{n}^{or}, P^n\widehat{P}_{n}, S^n−1\widehat{S}_{n}^{-1} and S‾n−1\overline{S}_{n}^{-1} are plotted in Figure 6.

One can see that the nonlinear shrinkage method seems to be just as effective for the purpose of estimating the precision matrix as it is for the purpose of estimating the covariance matrix itself. Moreover, there is a clear benefit in directly estimating the precision matrix by means of P^n\widehat{P}_{n} as opposed to the indirect estimation by means of S^n−1\widehat{S}_{n}^{-1} (which on its own significantly outperforms S‾n−1\overline{S}_{n}^{-1}).

6 Shape

Next, we study how the nonlinear shrinkage estimator S^n\widehat{S}_{n} performs for a wide variety of shapes of population spectral densities. This requires using a family of distributions with bounded support and which, for various parameter values, can take on different shapes. The best-suited family for this purpose is the beta distribution. The c.d.f. of the beta distribution with parameters (α,β)(\alpha,\beta) is

While the support of the beta distribution is ,weshiftittotheinterval, we shift it to the interval by applying a linear transformation. Thanks to the flexibility of the beta family of densities, selecting different parameters (α,β)(\alpha,\beta) enables us to generate eight different shapes for the population spectral density: rectangular (1,1)(1,1), linearly decreasing triangle (1,2)(1,2), linearly increasing triangle (2,1)(2,1), circular (1.5,1.5)(1.5,1.5), U-shaped (0.5,0.5)(0.5,0.5), bell-shaped (5,5)(5,5), left-skewed (5,2)(5,2) and right-skewed (2,5)(2,5); see Figure 7 for a graphical illustration.

For every one of these eight beta densities, we take the population eigenvalues to be equal to

The concentration ratio c^n=p/n\widehat{c}_{n}=p/n is equal to 1/31/3. For various values of pp between 3030 and 200200, we run 10001000 simulations with normally distributed variables. The PRIAL of the nonlinear shrinkage estimator S^n\widehat{S}_{n} is plotted in Figure 8.

As in all the other simulations presented above, the PRIAL of the nonlinear shrinkage estimator always exceeds 88%88\%, and more often than not exceeds 95%95\%. To preserve the clarity of the picture, we do not report the PRIALs of the oracle and of the linear shrinkage estimator; but as usual, the nonlinear shrinkage estimator ranked between them.

7 Fixed-dimension asymptotics

Finally, we report a set of Monte Carlo simulations that departs from the large-dimensional asymptotics assumption under which the nonlinear shrinkage estimator S^n\widehat{S}_{n} was derived. The goal is to compare it against the sample covariance matrix SnS_{n} in the setting where SnS_{n} is known to have certain optimality properties (at least in the normal case): traditional asymptotics, that is, when the number of variables pp remains fixed while the sample size nn goes to infinity. This gives as much advantage to the sample covariance matrix as it can possibly have. We fix the dimension p=100p=100 and let the sample size nn vary from n=125n=125 to n=10\mbox,000n=10\mbox{,}000. In practice, very few applied researchers are fortunate enough to have as many as n=10\mbox,000n=10\mbox{,}000 i.i.d. observations, or a concentration ratio c=p/nc=p/n as low as 0.010.01. The respective PRIALs of SnorS_{n}^{or}, S^n\widehat{S}_{n} and S‾n\overline{S}_{n} are plotted in Figure 9.

where Σ^n\widehat{\Sigma}_{n} is an arbitrary estimator of Σ\Sigma. By definition, the PRIAL of SnS_{n} is 0% while the PRIAL of Σ\Sigma is 100%.

In this setting, Ledoit and Wolf (2004) acknowledge that the improvement of the linear shrinkage estimator over the sample covariance matrix vanishes asymptotically, because the optimal linear shrinkage intensity vanishes. Therefore it should be no surprise that the PRIAL of S‾n\overline{S}_{n} goes to zero in Figure 9. Perhaps more surprising is the continued ability of the oracle and the nonlinear shrinkage estimator to improve by approximately 60%60\% over the sample covariance matrix, even for a sample size as large as n=10\mbox,000n=10\mbox{,}000, and with no sign of abating as nn goes to infinity. This is an encouraging result, as our simulation gave every possible advantage to the sample covariance matrix by placing it in the asymptotic conditions where it possesses well-known optimality properties, and where the earlier linear shrinkage estimator of Ledoit and Wolf (2004) is most disadvantaged.

Intuitively, this is because the oracle shrinkage formula becomes more and more nonlinear as nn goes to infinity for fixed pp. Bai and Silverstein (1998) show that the sample covariance matrix exhibits “spectral separation” when the concentration ratio p/np/n is sufficiently small. It means that the sample eigenvalues coalesce into clusters, each cluster corresponding to a Dirac of population eigenvalues. Within a given cluster, the smallest sample eigenvalues need to be nudged upward, and the largest ones downward, to the average of the cluster. In other words: full shrinkage within clusters, and no shrinkage between clusters. This is illustrated in Figure 10, which plots a typical simulation result for n=10\mbox,000n=10\mbox{,}000.For enhanced ability to distinguish linear shrinkage from the sample covariance matrix, we plot the two uninterrupted lines, even though the sample eigenvalues lie in three disjoint intervals (as can be seen from nonlinear shrinkage).

By detecting this intricate pattern automatically, that is, by discovering where to shrink and where not to shrink, the nonlinear shrinkage estimator S^n\widehat{S}_{n} showcases its ability to generate substantial improvements over the sample covariance matrix even for very low concentration ratios.

8 Additional Monte Carlo simulations

So far, we have compared the nonlinear shrinkage estimator S^n\widehat{S}_{n} only to the linear shrinkage estimator S‾n\overline{S}_{n} and the oracle estimator SnorS_{n}^{or} to keep the resulting figures concise and legible.

It is of additional interest to compare the nonlinear shrinkage estimator also to some other estimators from the literature. To this end we consider the following set of estimators:

The estimator recently proposed by Won et al. (2009). This estimator is based on a maximum likelihood approach, assuming normality, with an explicit constraint on the condition number of the covariance matrix. The resulting estimator turns out to be a nonlinear shrinkage estimator as well: all “small” sample eigenvalues are brought up to a lower bound, all “large” sample eigenvalues are brought down to an upper bound, and all “intermediate” sample eigenvalues are left unchanged.

Therefore, the corresponding transformation from sample eigenvalues to shrunk eigenvalues is step-wise linear: first flat, then a 45-degree line, and then flat again. The upper and lower bounds are determined by the desired constraint on the condition number κ\kappa. If such an explicit constraint is not available from a priori information, a suitable constraint number κ^\widehat{\kappa} can be computed in a data-dependent fashion by a KK-fold cross-validation method, which is the method we use.We are grateful to Joong-Ho Won for supplying us with corresponding Matlab code.

In particular, the cross-validation method selects κ^\widehat{\kappa} by optimizing over a finite grid {κ1,κ2,…,κL}\{\kappa_{1},\kappa_{2},\ldots,\kappa_{L}\} that has to be supplied by the user. To this end we choose L=10L=10 and the κl\kappa_{l} log-linearly spaced between 1 and κ(Sn)\kappa(S_{n}), for l=1,…,Ll=1,\ldots,L; here κ(Sn)\kappa(S_{n}) denotes the condition number of the sample covariance matrix. More precisely, for l=1,…,Ll=1,\ldots,L, κl≡exp⁡(ωl)\kappa_{l}\equiv\exp(\omega_{l}), where {ω1,ω2,…,ωL}\{\omega_{1},\omega_{2},\ldots,\omega_{L}\} is the equally-spaced grid with ω1≡0\omega_{1}\equiv 0 and ωL≡log⁡(κ(Sn))\omega_{L}\equiv\log(\kappa(S_{n})).

The cross-validation version of the nonlinear shrinkage estimator S^n\widehat{S}_{n}; see Remark 5.2.

We repeat the simulation exercises of Sections 6.1–6.3, replacing the oracle estimator and the linear shrinkage estimator with the above set of other estimators. The respective PRIALs of the various estimators are plotted in Figures 11–13.

One can see that the nonlinear shrinkage estimator S^n\widehat{S}_{n} outperforms all other estimators, with the cross-validation version of S^n\widehat{S}_{n} in second place, followed by the estimators of Stein (1975), Won et al. (2009) and Haff (1980).

8.2 Comparisons based on a different loss function

So far, the PRIAL has been based on the loss function

It is of additional interest to add some comparisons based on a different loss function. To this end we use the scale-invariant loss function proposed by James and Stein (1961), namely

We repeat the simulation exercises of Sections 6.1–6.3, replacing LFrL^{Fr} with LJSL^{JS}. The respective PRIALs of SnorS_{n}^{or}, S^n\widehat{S}_{n}, and S‾n\overline{S}_{n} are plotted in Figures 14–16.

One can see that the results do not change much qualitatively. If anything, the comparisons are now even more favorable to the nonlinear shrinkage estimator, in particular when comparing Figure 5 to Figure 16.

Conclusion

Estimating a large-dimensional covariance matrix is a very important and challenging problem. In the absence of additional information concerning the structure of the true covariance matrix, a successful approach consists of appropriately shrinking the sample eigenvalues, while retaining the sample eigenvectors. In particular, such shrinkage estimators enjoy the desirable property of being rotation-equivariant.

In this paper, we have extended the linear approach of Ledoit and Wolf (2004) by applying a nonlinear transformation to the sample eigenvalues. The specific transformation suggested is motivated by the oracle estimator of Ledoit and Péché (2011), which in turn was derived by studying the asymptotic behavior of the finite-sample optimal rotation-equivariant estimator (i.e., the estimator with the rotation-equivariant property that is closest to the true covariance matrix when distance is measured by the Frobenius norm).

The oracle estimator involves the Stieltjes transform of the limiting spectral distribution of the sample eigenvalues, evaluated at various points on the real line. By finding a way to consistently estimate these quantities, in a uniform sense, we have been able to construct a bona fide nonlinear shrinkage estimator that is asymptotically equivalent to the oracle.

Extensive Monte Carlo studies have demonstrated the improved finite-sample properties of our nonlinear shrinkage estimator compared to the sample covariance matrix and the linear shrinkage estimator of Ledoit and Wolf (2004), as well as its fast convergence to the performance of the oracle. In particular, when the sample size is very large compared to the dimension, or the population eigenvalues are very dispersed, the nonlinear shrinkage estimator still yields a significant improvement over the sample covariance matrix, while the linear shrinkage estimator no longer does.

Many statistical applications require an estimator of the inverse of the covariance matrix, which is called the precision matrix. We have modified our nonlinear shrinkage approach to this alternative problem, thereby constructing a direct estimator of the precision matrix. Monte Carlo studies have confirmed that this estimator yields a sizable improvement over the indirect method of simply inverting the nonlinear shrinkage estimator of the covariance matrix itself.

The scope of this paper is limited to the case where the matrix dimension is smaller than the sample size. The other case, where the matrix dimension exceeds the sample size, requires certain modifications in the mathematical treatment, and is left for future research.

Acknowledgments

We would like to thank two anonymous referees for valuable comments, which have resulted in an improved exposition of this paper.

Mathematical proofs \slink[doi]10.1214/12-AOS989SUPP \sdatatype.pdf \sfilenameAOS989_supp.pdf \sdescriptionThis supplement contains detailed proofs of all mathematical results.

References