Sliced inverse regression and efficient estimation of conditional covariance matrices
Archive 2011–2014
Dimension reduction
Semiparametric statistics
R
Why the eigenvectors of Cov(E[X|Y]) recover the dimension-reduction directions, Li’s slicing algorithm, and the idea behind an efficient estimator from my PhD work.
Author
Maikol Solís
Published
May 14, 2012
Modified
November 30, 2026
This post belongs to a series of study notes I first published in 2012, during my PhD. I revised it in 2026: the mathematics was checked and corrected and the text rewritten. The second half summarizes joint work published as Da Veiga et al. (2017); see the paper for the precise estimator and assumptions.
The multivariate kernel post showed how fast nonparametric methods deteriorate with the dimension. This post presents a classic way around it, sliced inverse regression (SIR), and the estimation problem that was at the core of my PhD.
The model
Consider the regression of \(Y \in \mathbb{R}\) on \(X \in \mathbb{R}^p\). When \(p\) is large, estimating \(\mathbb{E}[Y \mid X]\) nonparametrically suffers from the curse of dimensionality. Li (1991) proposed the model
\[
Y = \phi\big(\beta_1^\top X, \ldots, \beta_K^\top X, \varepsilon\big),
\]
where \(\beta_1, \ldots, \beta_K \in \mathbb{R}^p\) are unknown vectors, \(K \ll p\), \(\varepsilon\) is independent of \(X\), and \(\phi\) is an arbitrary unknown function. All the information that \(X\) carries about \(Y\) is contained in the \(K\) projections \(\beta_k^\top X\). If we can estimate the space they span, the effective dimension reduction (e.d.r.) space, the nonparametric problem becomes \(K\)-dimensional instead of \(p\)-dimensional.
Why inverse regression works
The idea is to reverse the roles of \(X\) and \(Y\). Instead of the \(p\)-dimensional regression \(\mathbb{E}[Y \mid X]\), we look at the inverse regression curve\(\mathbb{E}[X \mid Y]\): \(p\) one-dimensional regressions on \(Y\), which are easy. Li’s key assumption is a linearity condition on the design.
Definition 1 (Linearity condition) For every \(b \in \mathbb{R}^p\) there are constants \(c_0, \ldots, c_K\) such that \[
\mathbb{E}\big[b^\top X \mid \beta_1^\top X, \ldots, \beta_K^\top X\big]
= c_0 + c_1 \beta_1^\top X + \cdots + c_K \beta_K^\top X .
\]
It holds, for instance, when \(X\) has an elliptically symmetric distribution, such as the multivariate normal.
Theorem 1 (Li, 1991) Under the model above and the linearity condition, the centered inverse regression curve \(\mathbb{E}[X \mid Y] - \mathbb{E}[X]\) lies in the linear subspace spanned by \(\Sigma_{XX}\beta_1, \ldots, \Sigma_{XX}\beta_K\), where \(\Sigma_{XX} = \operatorname{Cov}(X)\).
It is cleaner to standardize. Let \(Z = \Sigma_{XX}^{-1/2}(X - \mathbb{E}X)\) and \(\eta_k = \Sigma_{XX}^{1/2}\beta_k\). Then \(\mathbb{E}[Z \mid Y]\) lies in \(\operatorname{span}(\eta_1, \ldots, \eta_K)\).
Consequently, the matrix \(\operatorname{Cov}\big(\mathbb{E}[Z \mid Y]\big) = \mathbb{E}\big[\mathbb{E}[Z \mid Y]\,\mathbb{E}[Z \mid Y]^\top\big]\) is degenerate in every direction orthogonal to the \(\eta_k\). If \(v \perp \eta_1, \ldots, \eta_K\), then \(\mathbb{E}[Z \mid Y]^\top v = 0\), and so \(\operatorname{Cov}(\mathbb{E}[Z \mid Y])\, v = 0\). Its eigenvectors with non-zero eigenvalues therefore span the standardized e.d.r. space, and \(\Sigma_{XX}^{-1/2}\eta_k\) are e.d.r. directions in the original scale.
Li’s slicing algorithm
Everything reduces to estimating \(\operatorname{Cov}(\mathbb{E}[Z \mid Y])\). Li’s estimator replaces the regression curve by a step function in \(Y\). Given a sample \((X_i, Y_i)\), \(i = 1, \ldots, n\):
Standardize: \(\hat Z_i = \hat\Sigma^{-1/2}(X_i - \bar X)\), with \(\bar X\) and \(\hat\Sigma\) the sample mean and covariance.
Split the range of \(Y\) into \(H\) slices \(I_1, \ldots, I_H\), and let \(\hat p_h\) be the proportion of \(Y_i\) in \(I_h\).
Compute the mean of \(\hat Z_i\) within each slice: \(\hat m_h = \frac{1}{n\hat p_h}\sum_{Y_i \in I_h} \hat Z_i\).
Form \(\hat V = \sum_{h=1}^H \hat p_h\, \hat m_h \hat m_h^\top\) and compute its eigendecomposition. This is a weighted principal component analysis of the slice means.
Take the eigenvectors \(\hat\eta_1, \ldots, \hat\eta_K\) of the \(K\) largest eigenvalues, and return \(\hat\beta_k = \hat\Sigma^{-1/2}\hat\eta_k\).
A small example with \(p = 10\), \(K = 1\), \(\beta = (1, 1, 0, \ldots, 0)/\sqrt2\) and \(Y = (\beta^\top X)^3 + \varepsilon\):
set.seed(1991)n <-500p <-10H <-10beta <-c(1, 1, rep(0, p -2)) /sqrt(2)X <-matrix(rnorm(n * p), n, p)Y <-drop(X %*% beta)^3+rnorm(n, sd =0.5)sir <-function(X, Y, H, K =1) { S <-cov(X) e <-eigen(S, symmetric =TRUE) S_inv_half <- e$vectors %*%diag(1/sqrt(e$values)) %*%t(e$vectors) Z <-scale(X, scale =FALSE) %*% S_inv_half slice <-cut(rank(Y, ties.method ="first"), H, labels =FALSE) ph <-tabulate(slice) /nrow(X) m <-rowsum(Z, slice) / (ph *nrow(X)) V <-crossprod(m *sqrt(ph)) eta <-eigen(V, symmetric =TRUE)$vectors[, 1:K, drop =FALSE] b <- S_inv_half %*% eta b /sqrt(colSums(b^2))}beta_hat <-sir(X, Y, H)round(drop(beta_hat), 2)
nor the most accurate. The second term is a simple mean. The first term is a nonlinear functional of the joint density\(f\) of \((X_i, X_j, Y)\). Writing \(m_i(y) = \mathbb{E}[X_i \mid Y = y]\), its \((i, j)\) entry is
The natural plug-in approach, which inserts a nonparametric estimate of \(f\) into this formula, inherits the bias of the density estimator. Following Laurent (1996) and Da Veiga & Gamboa for the diagonal case \(i = j\), we proceed in three steps:
Use part of the sample to build a preliminary estimator \(\hat f\).
Expand \(T_{ij}(f)\) around \(\hat f\) as a linear term, plus a quadratic term, plus a remainder.
Estimate the linear term by an empirical mean and the quadratic term by a U-statistic, using projections onto an orthonormal basis and the rest of the sample.
The quadratic correction removes the bias that the plug-in estimator would leave.
The resulting estimator \(\widehat T_{ij}\) satisfies, under smoothness conditions on \(f\),
and \(n\,\mathbb{E}(\widehat T_{ij} - T_{ij}(f))^2 \to C_{ij}(f)\). Moreover, \(C_{ij}(f)\) is the semiparametric efficiency bound: no regular estimator can have a smaller asymptotic variance, locally uniformly around the true density \(f_0\). In other words,
for every estimator sequence \(\widehat T_n\). The estimator attains it, so the nonparametric smoothing costs nothing at the \(\sqrt n\) scale.
The entrywise results extend to the whole matrix. With \(\operatorname{vech}\) denoting the vector of the lower-triangular entries, \(\sqrt n\, \operatorname{vech}(\widehat{\mathbf T} - \mathbf T(f))\) is asymptotically normal with covariance equal to that of \(\operatorname{vech}\) of the matrix with entries \(X_i m_j(Y) + X_j m_i(Y) - m_i(Y)m_j(Y)\). The eigenvectors of the estimated \(\operatorname{Cov}(\mathbb{E}[X \mid Y])\) then give the e.d.r. directions, as in SIR.
References
Da Veiga, Sébastien, Jean-Michel Loubes, and Maikol Solís. 2017. “Efficient Estimation of Conditional Covariance Matrices for Dimension Reduction.”Communications in Statistics – Theory and Methods 46 (9): 4403–24. https://doi.org/10.1080/03610926.2015.1083109.
Laurent, Béatrice. 1996. “Efficient Estimation of Integral Functionals of a Density.”The Annals of Statistics 24 (2): 659–81. https://doi.org/10.1214/aos/1032894458.
Li, Ker-Chau. 1991. “Sliced Inverse Regression for Dimension Reduction.”Journal of the American Statistical Association 86 (414): 316–27. https://doi.org/10.1080/01621459.1991.10475035.