EconBase
← Back to paper

Subspace Clustering for Panel Data with Interactive Effects

Extracted main text — title through conclusion, appendix excluded. This is what our citation measures are computed over, published so the extraction can be checked by eye.

80,305 characters · 16 sections · 40 citation commands

Rendered from LaTeX for readability, not typeset faithfully. Citation keys are highlighted; maths is left as source; figures, tables and equation environments are summarised rather than reproduced; unrecognised commands are greyed out so nothing is silently dropped. Email addresses are removed.

Subspace Clustering for Panel Data with Interactive Effects

\jyear{2020}

\startabstract{

abstract\abstractsection{Abstract} In this paper, we study a statistical model for panel data with unobservable grouped factor structures which are correlated with the regressors and the group membership can be unknown. The factor loadings are assumed to be in different subspaces and the subspace clustering for factor loadings are considered. A method called least squares subspace clustering (LSSC) is proposed to estimate the model parameters by minimizing the least-square distance and to perform the subspace clustering simultaneously. The consistency of the proposed subspace clustering is proved and the asymptotic properties of the proposed estimators are studied under certain conditions. Monte Carlo simulation studies are used to illustrate the advantages of the proposed methodologies. A model selection criterion is proposed to choose the subspace dimensions consistently. Further considerations for the situations that the number of subspaces and the dimension of factors are unknown are also discussed. For illustrative purposes, the proposed methods are applied to study the linkage between income and democracy across countries.

} \makechaptertitle

Introduction

Panel data, also known as longitudinal data, contain multi-dimensional observations obtained over multiple periods for a sample of individuals. There is evidence to show that unobservable heterogeneity among different individuals in multiple dimensions exists in panel data and hence, suitable statistical models are needed. Among the models for panel data, the interactive fixed-effect model uses the interactive effects that combined individual effects and time effects to reveal the effects of the common factors, which can capture the unobserved information. Panel data model with interactive effects has been widely studied in the literature Pesaran2006,Bai2009.

Due to the number of parameters in the standard fixed-effects model is the same as the number of individuals, the estimation of the fixed-effects may be inaccurate. Therefore, in order to study the individual heterogeneity, the number of parameters in the panel data model needs to be reduced. The grouped panel data model is an effective method to solve this incidental-parameter problem. In a grouped panel data model, individuals in the same group are assumed to have the same effect, which is called group effect, and these group effects can reflect the individual heterogeneity. Grouped panel data models have been studied in the past decade. For example, Lin2012 studied the linear panel data models with time-varying grouped heterogeneity by using the $K$-means clustering algorithm. Bonhomme2015 developed the “grouped fixed-effects" (GFE) estimation method to estimate the model parameters and derived the statistical properties of the GFE estimators when the sample sizes of cross-section ($N$) and length of the time series ($T$) are large. Ando2016 studied the grouped panel data models with unobserved group factor structures, and estimated the model parameters by minimizing the sum of least-squared errors with a shrinkage penalty. Ando2016 also proved the consistency and asymptotic normality of the estimators under large $N$ and large $T$. SuPhillips2016 proposed the C-Lasso method to estimate the parameters in heterogeneous linear panel data models, where the slope parameters are heterogeneous across groups but homogeneous within a group with unknown group membership. Su_Ju2018 considered the penalized principal component estimation method by extending the C-Lasso method to deal with panel data with interactive fixed effects. Su_Ju2018 also assumed the individual slope parameters are heterogeneous across groups but homogeneous within a group.

In those existing studies, the unobserved heterogeneous parts are assumed to live in the same space and they have the ball-shaped (spherical Gaussian) clusters. In many practical applications, a data object often has multiple attributes and many of which may be live in some low dimensional subspaces. For example, for disease detection in newborns, various tests (e.g., blood test and heart rate test) are performed on the newborns and the level of those factors are measured. Each newborn is associated with a vector containing the values of the factors and one can further construct a newborn-factor level matrix in which each row contains the factor levels of a different newborn. Pediatricians want to cluster groups of newborns based on the disease those newborns suffer from. Usually, each disease is correlated with a specific set of factors, which implies that points corresponding to newborns suffering from a given disease in a lower-dimensional subspace Kriegel2009. Therefore, the clustering of newborns based on their specific diseases together with the identification of the relevant factors associated with each disease can be formulated as a subspace clustering problem. The $K$-means algorithm clusters data from around cluster centers to the clustered data in the entire data space and estimates the cluster centers by minimizing the sum of squared distances from the data points to their nearest cluster centers. Therefore, traditional clustering methods such as the $K$-means algorithm may not be meaningful in these cases.

In this paper, we characterize the unobserved effects of the $i$-th unit at time $t$ as $\eta_{it}=\mbox{\boldmath $f$}_t'\mbox{\boldmath $\lambda$}_i$, where $\mbox{\boldmath $f$}_t$ and $\mbox{\boldmath $\lambda$}_i$ are $r \times 1$ dimensional vectors and $\mbox{\boldmath $\lambda$}_i$ $i = 1, \cdots, N$ live in some low-dimensional subspaces. A key feature of the low dimensional subspaces is that it can deal with more general data types, and the factor loadings live in the low dimensional subspaces can encapsulate the main direction of variation. Terada2014 showed that subspace clustering is a more general clustering method which includes the conventional $K$-means clustering method as a special case. A novel approach called least squares subspace clustering (LSSC) is proposed to simultaneously estimate the model parameters and cluster the individual effects by using the least-squares criterion with the subspace clustering principle. In the clustering of individual effects, we treat each individual effect as a vector in a high-dimensional space and then cluster these vectors into some low-dimensional subspaces. The main contributions of this article are highlighted as (i) the grouping is done according to limiting the data points to a specific subspace instead of according to the distance between points, which can better reflect the underlying structure of the data and can be applied to a more general data structure. Furthermore, the consistency of the clustering procedure are proved; (ii) the proposed model allows the covariates to be correlated with the factor structure, and Monte Carlo simulation results show that the LSSC method performs well even when $T$ is small; (iii) the proposed methods allow different groups to share common factors, and different groups of factors can be correlated. The model structure can well capture the spatial structure of individual effects and reflect the cluster structure in real data; (iv) we proposed a model selection criterion to choose the subspace dimensions consistently, which makes the proposed model and methods more general and flexible.

The rest of this paper is organized as follows. In Section 2, we describe the model and states some constraint conditions. In Section 3, we propose an algorithm for estimating the model parameters and subspace clustering simultaneously. In Section 4, we derive the consistency of the subspace clustering and study the asymptotic properties of the estimators. In Section 5, Monte Carlo simulation studies with different settings are used to illustrate the performance of the proposed method and to compare with the GFE estimation method and the method proposed in Bai2009. In Section 6, we discuss some further considerations when the number of subspaces for factors, the dimension of factors and the dimension of subspaces are unknown. For illustrative purposes, the proposed approach is applied to study the relationship between income and democracy in Section 7. Finally, some concluding remarks are provided in Section 8. All the proofs of the theoretical results and additional simulation results are provided in the Supplementary Materials.

Model Description

Let $k$ be the number of subspaces which is unknown but fixed, and $G = \{g_{1}, g_{2}, \ldots, g_{N}\}$ be the grouping of the cross-sectional units into the $k$ subspaces, where the subspace membership variable $g_{i} = j$ denotes the $i$-th unit belongs to the $j$-th subspace with $g_{i} \in \{1, 2, \ldots, k\}$. We further let $N_{j}$ be the number of cross-sectional units within the $j$-th subspace and the total number of units is $N = \sum_{j=1}^{k} N_{j}$. We consider the following panel data model with subspace factor structure

eqnarray[eqnarray omitted — 225 chars of source]

where $y_{it}$ is the respond variable of the $i$-th unit observed at time $t$, $\mbox{\boldmath $x$}_{it}$ is a $p \times 1$ observable vector, $\mbox{\boldmath $\beta$}$ is a $p \times 1$ unknown regression coefficient vector. $\mbox{\boldmath $\lambda$}_{g_{i},i} = (\lambda_{g_{i},i}^{1}, \ldots, \lambda_{g_{i},i}^{r})^{'}$ is a $r \times 1$ factor loading vector that represents the unobserved unit/individual effect for the $i$-th individual. $\mbox{\boldmath $f$}_{g_{i}, t}$ is a $r \times 1$ vector of unobservable subspace-specific pervasive factors that affect the units only in $g_{i}$-th subspace, and $\varepsilon_{i,t}$ is the unit-specific error.

In this paper, we assume that all the factor loadings or individual effects are inside a $r$-dimensional space, which contains some low-dimensional subspaces and these subspaces contain all the individual effects $\mbox{\boldmath $\lambda$}_{i},\;i=1, 2, \ldots, N$. The mathematical notation can be expressed as $\mbox{\boldmath $\lambda$}_{i:g_{i} = j} \subset S_{j}$ and $\displaystyle\bigcup_{j=1}^{k}S_{j} \subset \mathbb{R}^{r}$, where $S_{j}$ is the $j$-th subspace. The covariate $\mbox{\boldmath $x$}_{it}$ can be correlated to $\mbox{\boldmath $\lambda$}_{g_i,i}$ alone or to $\mbox{\boldmath $f$}_{g_i,t}$ alone, or it can be correlated to both $\mbox{\boldmath $\lambda$}_{g_i,i}$ and $\mbox{\boldmath $f$}_{g_i,t}$ simultaneously. Here, $\mbox{\boldmath $x$}_{it}$ can be a nonlinear function of $\mbox{\boldmath $\lambda$}_{g_i,i}$ and $\mbox{\boldmath $f$}_{g_i,t}$. Stacking the observations over $t$, we have $\mbox{\boldmath $F$} = (\mbox{\boldmath $f$}_{1}, \mbox{\boldmath $f$}_{2}, \ldots, \mbox{\boldmath $f$}_{T})$. Furthermore, if we let $\mbox{\boldmath $F$}_{j}$ be the vector of factors for the $j$-th subspace, then we have $\mbox{\boldmath $F$}_{j} = (\mbox{\boldmath $f$}_{g_{i}=j,1}, \mbox{\boldmath $f$}_{g_{i}=j,2}, \ldots, \mbox{\boldmath $f$}_{g_{i}=j,T})^{'}$. Similarly, we have $\mbox{\boldmath $\Lambda$}_{j}=(\mbox{\boldmath $\lambda$}_{j,1},\mbox{\boldmath $\lambda$}_{j,2},\cdots,\mbox{\boldmath $\lambda$}_{j,N_j})^{'}$. We also consider the constraints $\mbox{\boldmath $F$}_{j}^{'}\mbox{\boldmath $F$}_{j}/T = I_{r}(j=1,2, \ldots,k)$, $\;\mbox{\boldmath $\Lambda$}_{j}^{'}\mbox{\boldmath $\Lambda$}_{j}(j=1,2,\ldots,k)$ being diagonal for the issue of identifiability as described in Bai2009, Ando2016 and Stock2002. We aim to estimate the parameters $\mbox{\boldmath $\beta$}$, $\mbox{\boldmath $\Lambda$}_{j}$, $\mbox{\boldmath $F$}_{j}$, $j = 1, 2, \ldots,k$ for each subspace, identify the subspace membership $G=\{g_{1}, g_{2}, \ldots,g_{N}\}$ and the bases $B_{1},\ldots,B_{k}$ of the orthogonal spaces of $S_{1},\ldots,S_{k}$ (denoted as $S_{1}^{\bot},\ldots,S_{k}^{\bot}$) simultaneously.

Parameter Estimation and Clustering

In this section, we propose a method for the estimation of model parameters and subspace clustering simultaneously. The proposed method is a natural generalization and combination of both the least-squares estimation method and the $K$-means clustering algorithm. Thus, the proposed parameter estimation and clustering is innovative compared to those existing approaches because most of the existing statistical methods are based on the $K$-means and least-squares method to cluster and estimate simultaneously.

Estimation Procedure

For a given number of subspaces $k$, the objective function is

eqnarray[eqnarray omitted — 423 chars of source]

where $\mbox{\boldmath $y$}_{i}=(y_{i1},y_{i2},\cdots,y_{iT})$, $\mbox{\boldmath $x$}_{i}=(\mbox{\boldmath $x$}_{i1},\mbox{\boldmath $x$}_{i2},\cdots,\mbox{\boldmath $x$}_{iT})$. The estimator of the vector of model parameters $\{\hat{\mbox{\boldmath $\beta$}},\hat{\mbox{\boldmath $F$}}_{1},\ldots,\hat{\mbox{\boldmath $F$}}_{k},\hat{\mbox{\boldmath $\Lambda$}}_{1},\ldots,\hat{\mbox{\boldmath $\Lambda$}}_{k},\hat{B}_{1},\ldots,\hat{B}_{k},\hat{G} \}$ is defined as

eqnarray[eqnarray omitted — 651 chars of source]

subject to the constraints $\mbox{\boldmath $F$}_{j}^{'}\mbox{\boldmath $F$}_{j}/T = I_{r} (j = 1, \ldots, k)$, $\mbox{\boldmath $\Lambda$}_{j}^{'}\mbox{\boldmath $\Lambda$}_{j} (j = 1, \ldots, k)$ being diagonal, where $\mbox{\boldmath $\Lambda$}_{j}^{'}=(\mbox{\boldmath $\lambda$}_{j,1}$, $\ldots,\mbox{\boldmath $\lambda$}_{j,N_{j}})$ is the $r\times N_{j}$ factor loading matrix $(j=1,\ldots,k)$ for the subspace-specific factors and they live in $k$ different subspaces embedding in the $r$-dimensional space. In Eq. ((ref)), $span\{B_{j}\}$ represents the subspace spanned by the basis $B_{j}$, and the $span\{B_{j}\}^{\bot}$ is the orthogonal subspace of $span\{B_{j}\}$. These constraints and assumptions are needed to ensure the model is identifiable. Here, we aim to estimate the model parameters and to cluster the $\mbox{\boldmath $\lambda$}_{i} \in \mathbb{R}^{r}, i = 1, 2, \ldots, N$ into the $k$ different subspaces simultaneously. Different from the existing classification methods, we approach this challenging problem from a subspace clustering point-of-view. The major idea is to divide the space $\mathbb{R}^{r}$ into several subspaces and project $\mbox{\boldmath $\lambda$}_{i}$ $(i = 1, 2, \ldots, N)$ into the nearest subspace for the classification.

The constrained minimization of the objective function $Q(\mbox{\boldmath $\beta$}, \mbox{\boldmath $F$}_{1}, \ldots, \mbox{\boldmath $F$}_{k}, \mbox{\boldmath $\Lambda$}_{1}, \ldots, {\mbox{\boldmath $\Lambda$}}_{k}, {B}_{1}, \ldots, {B}_{k}, G )$ in Eq. ((ref)) can be obtained by the following iterative algorithm:

itemize• Initialize the starting value $\mbox{\boldmath $\beta$}^{(0)}$ and set $h = 0$. • Given the value of $\mbox{\boldmath $\beta$} = \mbox{\boldmath $\beta$}^{(h)}$, we define $$\mbox{\boldmath $y$}^{*}_{i} = \mbox{\boldmath $y$}_{i}-\mbox{\boldmath $x$}_{i}\mbox{\boldmath $\beta$} = \mbox{\boldmath $F$}\mbox{\boldmath $\lambda$}_{i}+\mbox{\boldmath $\varepsilon$}_{i},$$ which is a pure factor model. We can readily obtain $\mbox{\boldmath $\Lambda$}^{'} = (\mbox{\boldmath $\lambda$}_{1}, \ldots, \mbox{\boldmath $\lambda$}_{N})$. • Given $ \mbox{\boldmath $\Lambda$}^{'} = (\mbox{\boldmath $\lambda$}_{1}, \ldots, \mbox{\boldmath $\lambda$}_{N})$, using the subspace clustering method, we can obtain the bases $B_{1},\ldots,B_{k}$ of the orthogonal spaces of $S_{1},\ldots,S_{k}$ (denoted as $S_{1}^{\bot},\ldots,S_{k}^{\bot}$) and \begin{equation} g_{i} = \arg \min_{j =1,\ldots,k}|| B_{j}^{T} \boldmath $\lambda$_{i} ||,\;i = 1, 2, \ldots, N. \end{equation} • Given $\mbox{\boldmath $\beta$} = \mbox{\boldmath $\beta$}^{(h)}$ and $g_{i},\;i = 1, 2, \ldots, N$, we can obtain the estimators of $\mbox{\boldmath $F$}, \mbox{\boldmath $\Lambda$}$ in each subspace by using the method similar to Step 2. These estimators are denoted as $\mbox{\boldmath $F$}_{1}, \ldots, \mbox{\boldmath $F$}_{k}$ and $\mbox{\boldmath $\Lambda$}_{1}, \ldots, \mbox{\boldmath $\Lambda$}_{k}$. • Given $\mbox{\boldmath $\Lambda$}_{1}, \ldots, \mbox{\boldmath $\Lambda$}_{k}, \mbox{\boldmath $F$}_{1}, \ldots, \mbox{\boldmath $F$}_{k}$ and $g_{i},\;i=1\ldots,N$, we can define $$\mbox{\boldmath $y$}_{i}-\mbox{\boldmath $F$}_{g_{i}}^{'}\mbox{\boldmath $\lambda$}_{g_{i},i} = \mbox{\boldmath $x$}_{i}^{'}\mbox{\boldmath $\beta$}+\mbox{\boldmath $\varepsilon$}_{i},\;i=1,\ldots,N,$$ then the updated least squares estimator $\mbox{\boldmath $\beta$}^{(h+1)}$ can be obtained and set $h = h + 1$. • Repeat Step 2 -- Step 5 until convergence occurs.

Although the least squares objective function is not globally convex Bai2009, from the results of the Monte Carlo simulation studies, the proposed algorithm is robust to the starting value under large $N$ and large $T$. In the numerical experiments, we propose using the least squares method to get the initial value $\mbox{\boldmath $\beta$}^{(0)}$ by ignoring the unobserved group factor structures. We observe in the Monte Carlo simulation studies (Section 5) that the initial value $\mbox{\boldmath $\beta$}^{(0)}$ has good convergence property. In practice, if one has concern that the algorithm may converge to a local optimizer, we suggest using different random starting values, and then select the solution that yields the lowest value of the objective function if those solutions are different.

To evaluate the complexity of the above iterative procedure, we consider the complexity of Steps 2--4 in the above algorithm. In Step 2, we need to obtain the top $r$ singular values of the $T \times N$ data matrix in order to obtain the values $\mbox{\boldmath $F$}$ and $\mbox{\boldmath $\Lambda$}$, which requires a complexity of $O(\delta_{NT}^2\tilde{\delta}_{NT})+O(\delta_{NT}^3)$ where $\delta_{NT}=\min[N,T],\tilde{\delta}_{NT}=\max[N,T]$. Step 3 of the algorithm requires sorting the $\mbox{\boldmath $\lambda$}_i$ according to their projection distances to these subspaces; the computational cost is $O(Nkr)$. In Step 4, the least squares estimation requires a complexity of $O(p^2N)$ because of the inverse operation. Thus, the complexity of the above iterative process is $O(\delta_{NT}^2\tilde{\delta}_{NT})+O(\delta_{NT}^3)+O(Nkr)+O(p^2N)=O(\delta_{NT}^2\tilde{\delta}_{NT})$.

Subspace Clustering for Factor Loadings

In this section, we present the procedure of the subspace segmenting {for the factor loadings $\mbox{\boldmath $\lambda$}_{i},\;i=1,\ldots,N$. We assume that the $i$-th factor loading $\mbox{\boldmath $\lambda$}_{i}\in \mathbb{R}^{r}$ ($i=1,\ldots,N$) is inside $k$ different subspaces, in which the dimension of these $k$ subspaces are $d_{1}, d_{2}, \ldots, d_{k}$, where $\;0 < d_{j} < r, \;j=1,2, \ldots, k$. For the $j$-th subspace $S_{j} \subset \mathbb{R}^{r}$ with dimension $d_{j}$, a basis $B_{j} = [\mbox{\boldmath $b$}_{j1},\ldots,\mbox{\boldmath $b$}_{j,r-d_{j}}]\in \mathbb{R}^{r\times (r-d_{j})}$ is selected for its orthogonal complement $S_{j}^{\perp}$.} Using these notations, we can obtain the following equation for the $j$-th subspace $S_{j}$ and the $i$-th factor loading $\mbox{\boldmath $\lambda$}_i$:

equation[equation omitted — 318 chars of source]

Since $\mbox{\boldmath $\lambda$}_i \in \mathbb{R}^{r}$ belongs to $\cup_{j=1}^{k}S_{j}$ if and only if $( \mbox{\boldmath $\lambda$}_i \in S_{1}) \vee \ldots \vee (\mbox{\boldmath $\lambda$}_i\in S_{k})$, where the notation $\bigvee$ represents the “or" operator. This condition is equivalent to

equation[equation omitted — 326 chars of source]

where the notation $\bigwedge$ represents the “and" operator, and $\sigma$ is a particular choice of the normal vector $\mbox{\boldmath $b$}_{j\sigma(j)}$ from the $j$-th basis $B_{j}$. Note that the right-hand side of Eq. ((ref)) is obtained by exchanging the “and" and “or" operators using De Morgan's laws. Since

equation[equation omitted — 277 chars of source]

which is a homogeneous polynomial of degree $k$ in $r$ variables, we can write each of the polynomials as

equation[equation omitted — 428 chars of source]

where $\mbox{\boldmath $c$}_{k}$ is the vector of polynomial coefficients, $c_{k_{1},k_{2},\ldots,k_{r}}$ is the polynomial coefficient, $\mbox{\boldmath $\lambda$}_i = (\lambda_{i1},\cdots,\lambda_{ir})$, $\mbox{\boldmath $v$}_{k}: \mathbb{R}^{r}\rightarrow \mathbb{R}^{M_{k}(r)}$ is the Veronese map of degree $k$ Fischler1981 which is also known as the polynomial embedding in machine learning defined as $\mbox{\boldmath $v$}_{k}: [\lambda_{i1}, \ldots, \lambda_{ir}]^{T} \mapsto [\ldots,\mbox{\boldmath $\lambda$}_i^{I},\ldots]^{T}$ with $I$ being chosen in the degree-lexicographic order, $\mbox{\boldmath $\lambda$}_i^{I}=\lambda_{i1}^{k_{1}}\lambda_{i2}^{k_{2}}\ldots \lambda_{ir}^{k_{r}}$ and the dimension $M_{k}(r)=C_{k+r-1}^{r-1}$.

Since the polynomial in Eq. ((ref)) can be satisfied by all the factor loadings $\mbox{\boldmath $\lambda$}_{i}, i = 1, 2, \ldots, N$, we can then use these factor loadings to obtain the subspaces. Although the polynomial equations in Eq. ((ref)) are nonlinear in each point $\mbox{\boldmath $\lambda$}_i$, these polynomials are actually linear in the vector of polynomial coefficients $\mbox{\boldmath $c$}_{k}$. Indeed, since each polynomial $p_{k \sigma}(\mbox{\boldmath $\lambda$}_i)=\mbox{\boldmath $c$}_{k}^{T}\mbox{\boldmath $v$}_{k}(\mbox{\boldmath $\lambda$}_i)$ must be satisfied by every data point, we can obtain $\mbox{\boldmath $c$}_{k}^{T}\mbox{\boldmath $v$}_{k}(\mbox{\boldmath $\lambda$}_{i})=0$ for all $i = 1, 2, \ldots, N$.

Suppose that $I_{k}$ is the space of the vector of polynomial coefficients $\mbox{\boldmath $c$}_{k}$ of all the homogeneous polynomial that vanishes in the $k$ subspaces, then the vector of polynomial coefficients of the factorizable polynomial defined in Eq. ((ref)) span a (possibly proper) subspace in $I_{k}$ as $span_{\sigma}\{ p_{k\sigma} \}\subseteq I_{k}$. As every vector $\mbox{\boldmath $c$}_{k}$ in $I_{k}$ represents a polynomial that vanishes on all the data points (on the subspaces), the vector $\mbox{\boldmath $c$}_{k}$ must satisfy the system of linear equations

equation[equation omitted — 229 chars of source]

where $V_{k}(r)\in \mathbb{R}^{M_{k}(r)\times N}$ is the embedded data matrix.Hance, we have the relationship $I_{k} \subseteq null(V_{k}(r))$.

Remark 1: The zero set of each vanishing polynomial $p_{k}(\mbox{\boldmath $\lambda$}_i),\;i=1, 2, \ldots, N$ is a surface in $\mathbb{R}^{r}$, therefore, the derivative of $p_{k}(\mbox{\boldmath $\lambda$}_i)$ at $\mbox{\boldmath $\lambda$}_{i} \in S_{j}$, denoted as $Dp_{k}(\mbox{\boldmath $\lambda$}_i)$, gives a vector normal to the surface. Since a union of subspaces is locally flat, i.e., in a neighborhood of $\mbox{\boldmath $\lambda$}_{i}$ the surface is merely the surface $S_{j}$, then the derivative at $\mbox{\boldmath $\lambda$}_{i}$ lies in the orthogonal complement $S_{j}^{\perp}$ of $S_{j}$. By evaluating the derivatives of all the polynomials in $I_{k}$ at the same point $\mbox{\boldmath $\lambda$}_{i}$, we obtain a set of normal vectors that span the orthogonal complement of $S_{j}$.

Following the results in Theorem 3 of Vidal2005, we can obtain a set of polynomial $p_k(\mbox{\boldmath $\lambda$}_i),i=1\cdots,N$ with coefficients equal to the eigenvectors in the null space of $V_{k}(r)$. By evaluating the derivatives $Dp_k(\mbox{\boldmath $\lambda$}_i)$ at each $\mbox{\boldmath $\lambda$}_i$, $i = 1, \cdots,N$, we can obtain a set of vectors orthogonal to the subspace that the points lie in. Note that the generalized principal component analysis method Vidal2005,Vidal2016 relies on reliable samples per subspace to segment the dataset, however, in the presence of noise, the sample may not be reliable. Here, for each sample, we assume that the sample could be obtained from all the candidate co-dimension classes, and the sample is voted by the dominate vectors of $Dp_k(\mbox{\boldmath $\lambda$}_i)$ as a basis. Finally, the base associated with the highest vote will be used as the normal vectors perpendicular to the subspaces as suggested by Yang2005. After obtaining the orthogonal bases of those subspaces, we can assign $\mbox{\boldmath $\lambda$}_{i}$ to the subspace $j^{*}$, where $j^{*} = \arg \min_{j =1,\ldots,k}|| B_{j}^{T}\mbox{\boldmath $\lambda$}_{i}||$.

Asymptotic Properties

In this section, we characterize the asymptotic properties of the estimators as $N$ and $T$ tend to infinity. We prove that the estimated clustering converges to the corresponding true subspaces under some conditions. In particular, we follow the method in Pollard1981 to establish the consistency of subspace clustering.

Consistency of clustering procedure

The proposed clustering procedure prescribes a criterion for partitioning a set of points into $k$ subspaces. To divide the factor loadings $\mbox{\boldmath $\lambda$}_{1}, \ldots, \mbox{\boldmath $\lambda$}_{N}$ in $\mathbb{R}^{r}$, we first choose $k$ ($k$ is fixed) cluster subspaces $S_{1},S_{2},\ldots,S_{k}$ with dimensions $d_{1}, d_{2}, \ldots, d_{k}$, respectively, that minimize

equation[equation omitted — 134 chars of source]

where $\mbox{\boldmath $\lambda$}_{1}, \ldots, \mbox{\boldmath $\lambda$}_{N}$ can be viewed as $N$ vectors of the sample points and $\Delta( \mbox{\boldmath $\lambda$}_{i},S_{j} )$ is the angle between the vector $\mbox{\boldmath $\lambda$}_{i}$ and the subspace $S_{j}$ which is a value in $[0, \pi/2]$. Let $|| \mbox{\boldmath $\lambda$}_{i} ||=1$ and $\mbox{\boldmath $b$}_{j1},\ldots,\mbox{\boldmath $b$}_{jm}$ be an orthonormal basis of $S_{j}$ and $\theta$ be the angle between $\mbox{\boldmath $\lambda$}_{i}$ and $S_{j}$, then $\sin(\theta)=|| \mbox{\boldmath $\lambda$}_{i}-\sum_{\ell=1}^{m}\mbox{\boldmath $b$}_{j \ell}(\mbox{\boldmath $b$}_{j \ell}^{T}\mbox{\boldmath $\lambda$}_{i}) ||=\sqrt{1-\sum_{\ell=1}^{m}(\mbox{\boldmath $b$}_{ j\ell}^{T}\mbox{\boldmath $\lambda$}_{i})^{2}}$. Thus, clustering by angles is equivalent to clustering by projecting the $\mbox{\boldmath $\lambda$}_{i}$ to the nearest subspace. Here, the function $\phi$ must satisfy some regularity conditions that $\phi$ is continuous and nondecreasing, with $\phi(0) = 0$. For any subspaces $\mbox{\boldmath $x$}$ and $\mbox{\boldmath $y$}$, $\Delta(\mbox{\boldmath $x$}, \mbox{\boldmath $y$}) \in [0,\pi/2]$, therefore, $\phi(\Delta( \mbox{\boldmath $x$},\mbox{\boldmath $y$} ))$ must be in a compact set.

Since $\max\limits_{1\leq i \leq N}||\hat{\mbox{\boldmath $\lambda$}}_i-\mbox{\boldmath $\lambda$}_i||=o_{p}(1)$, we can show that the empirical distribution function converge uniformly to the true distribution function by the strong law of large numbers and the Glivenko-Cantelli theorem, i.e., $$\lim\limits_{N\rightarrow \infty} \sup\limits_{\mbox{\boldmath $x$}\in \mathbb{R}^{r}}|\hat{P}_{N}(\mbox{\boldmath $x$})-P(\mbox{\boldmath $x$})|=0,$$ where $\hat{P}_{N}(\mbox{\boldmath $x$})=\frac{1}{N}\sum\limits_{i=1}^{N}I_{\{ \hat{\mbox{\boldmath $\lambda$}}_{i}\leq \mbox{\boldmath $x$} \}}$, with $I_{A} = 1$ if $A$ is true and 0 otherwise, is the empirical distribution function and $P(\mbox{\boldmath $x$})$ is the true distribution function. Therefore, clustering for the estimate $\hat{\mbox{\boldmath $\lambda$}}_{i}$ obtained by our proposed method is equivalent to clustering for the true value $\mbox{\boldmath $\lambda$}_{i}$ ($i = 1, 2, \ldots, N$). Since $\phi(\Delta( \mbox{\boldmath $\lambda$},S ))$ is an increasing function of the angle deviation which can be used in defining a within cluster sum of angle deviations, the criterion considered here minimizes the within-cluster sum of angle deviations.

We assume that $\{\mbox{\boldmath $\lambda$}_{1},\ldots,\mbox{\boldmath $\lambda$}_{N}\}$ is a sample of independent observations on some probability measure $P$. Here, we consider the empirical measure

equation[equation omitted — 177 chars of source]

where $\mathcal{S}$ is a set of subspaces. For a fixed set of subspaces $\mathcal{S}$, we can obtain

equation[equation omitted — 201 chars of source]

where $\mbox{\boldmath $\lambda$}_{1},\ldots,\mbox{\boldmath $\lambda$}_{N}$ are the $N$ vectors of the sample points which can be clustered by minimizing the within cluster sum of angle deviations. Let $\mathcal{S}_{N}$ be the set of subspaces that minimizes $W(\cdot, {\hat P}_{N})$ (i.e., the set of optimal clustered subspaces based on the samples) and $\bar{\mathcal{S}}$ be the set of subspaces that minimizes $W(\cdot, P)$. Provided that $\bar{\mathcal{S}}$ can be uniquely determined, it is expected that $\mathcal{S}_{N}$ should lie close to $\bar{\mathcal{S}}$.

For a probability measure $Q$ on $\mathbb{R}^{r}$ and a finite set of subspaces $\mathcal{S}$ of $\mathbb{R}^{r}$, we define

equation[equation omitted — 151 chars of source]

and

eqnarray[eqnarray omitted — 169 chars of source]

For a given value of $k$, the set of optimal clustered subspaces based on the samples $\mathcal{S}_{N} = \mathcal{S}_{N}(k)$ is chosen to satisfy $\Phi(\mathcal{S}_{N}, {\hat P}_{N})=m_{k}({\hat P}_{N})$ and the set of optimal population clustered subspaces $\bar{\mathcal{S}}=\bar{\mathcal{S}}(k)$ is chosen to satisfy $\Phi(\bar{\mathcal{S}},P)=m_{k}(P)$.

To define the distance measures, we have the following assumption:\\ Assumption A. Suppose that $\int \phi(|| x ||)P(dx)<\infty$ and that $m_j(P)>m_k(P)$ for $j=1,\cdots,k-1$.

Our aim here is to prove a consistency result for the cluster subspaces that $\mathcal{S}_{N} \xrightarrow{a.s.} \bar{\mathcal{S}}$. To show $\mathcal{S}_{N}\xrightarrow{a.s.}\bar{\mathcal{S}}$, we first consider the subspace distance defined in LiWang2006:

Definition 1. The symmetric distance between any $m$ dimensional subspace $U$ and $n$-dimensional subspace $\tilde{U}$ is defined as

eqnarray[eqnarray omitted — 222 chars of source]

where $(\mbox{\boldmath $u$}_{1},\ldots,\mbox{\boldmath $u$}_{m})$ and $(\tilde{\mbox{\boldmath $u$}}_{1},\ldots,\tilde{\mbox{\boldmath $u$}}_{n})$ are the bases of $U$ and $\tilde{U}$ respectively. Note that this subspace distance satisfies the triangle inequality

eqnarray*[eqnarray* omitted — 61 chars of source]

where $W$ is any non-empty subspace.

Remark 2: The angle $\Delta(\cdot, \cdot)$ used in Eq. ((ref)), $$\Delta(U,\tilde{U})=\sqrt{\min(m,n)-\sum_{i=1}^{m}\sum_{j=1}^{n}(\tilde{\mbox{\boldmath $u$}}_{j}^{'}\mbox{\boldmath $u$}_{i})^{2}},$$ is different from the distance defined in Definition 1 for measuring the subspaces distance. In fact, the angle $\Delta(\cdot, \cdot)$ projects the low subspace onto the high-dimensional subspace, while the distance $D(\cdot,\cdot)$ projects the high-dimensional subspace onto the low subspace. In order to avoid different dimension subspaces being treated as the same subspace, $D(\cdot, \cdot)$ is used to characterize the difference between two subspaces. For example, consider a two-dimensional plane and a line which is parallel to this plane as two subspaces, if we use the distance $\Delta(\cdot, \cdot)$ to characterize the difference between these two subspaces, it is likely to get the result that these two subspaces are treated as the same subspace because the angel between these two subspaces is $0$. However, using the distance $D(\cdot, \cdot)$ can avoid this issue. Here, we further define a distance measure similar to the Hasudroff distance:\\ Definition 2. Let $\mathcal{X}$ and $\mathcal{Y}$ be two non-empty compact subsets that contain multiple subspaces. We define their Hausdorff distance $D_{H}(\mathcal{X}, \mathcal{Y})$ by

equation[equation omitted — 179 chars of source]

where $x \in \mathcal{X}$ is a subspace rather than a point, and the $D(\cdot,\cdot)$ is the distance between two subspaces defined in Definition 1.

By Definition 2, we have $D_{H}(\mathcal{X},\mathcal{Y}) < \delta$ if and only if every subspace of $\mathcal{X}$ is within the distance $\delta$ of at least one of the subspaces of $\mathcal{Y}$, and vice versa. Suppose $\mathcal{X}$ contains exactly $k$ distinct subspaces, and that $\delta$ is chosen to be a value less than half of the minimum distance between the subspaces of $\mathcal{X}$. Then, if $\mathcal{Y}$ is any set of $k$ or fewer subspaces for which $D_{H}(\mathcal{X},\mathcal{Y})< \delta$, the $\mathcal{Y}$ must contain exactly $k$ distinct subspaces. Therefore, the almost sure convergence of $\mathcal{X}_{N}$ in the above sense of distance could be translated into the almost sure convergence of subspaces with a suitable labeling. By definition, for any two subspaces $S_{1}$ and $S_{2}$, if $D(S_{1},S_{2}) < \delta$, then $\Delta( S_{1},S_{2})<\delta$. We will provide the following theorem for the consistency of clustering procedure. Since the conclusion of the theorem is in terms of almost sure convergence, there might be aberrant null sets of subspaces $S$'s for which the convergence does not hold. In order to estimate the parameters in the model presented in Eq. ((ref)) and to prove the consistency of the estimators, similar to Bonhomme2015 and Ando2016, we add the following assumption, Assumption B, that each group must have a certain proportion individuals. This assumption also guarantees the uniqueness because the null set situation is excluded.

Assumption B. All units are divided into a finite number of subspaces $k$, each of them containing $N_j$ units such that $0<\underline{a}<N_j/N<\bar{a}<1$.

For notational simplicity and clarity, we assume that $\lambda_i, i = 1, \cdots, N$ is known in the following theorem.

theorem{Theorem 1.} Suppose Assumptions A and B hold and for each $j = 1, 2, \ldots, k$ there exists an unique set of subspaces $\bar{\mathcal{S}}(j)$ that satisfies $\Phi(\bar{\mathcal{S}}(j),P)=m_{j}(P)$, then, $\mathcal{S}_{N} \xrightarrow{a.s.} \bar{\mathcal{S}}(k)$, and $\Phi(\mathcal{S}_{N},P_{N})\xrightarrow{a.s.}m_{k}(P)$.

The proof of Theorem 1 is presented in the Supplementary Materials S2.

Consistency of the estimators

In this subsection, we discuss the asymptotic properties of the proposed estimators. Recall that the proposed estimators can be obtained by minimizing the objective function defined in Eq. ((ref)) subject to the constraints $g_{i}=\arg\min\limits_{j \in\{1,\ldots,k\}} || B_{j}^{T}\mbox{\boldmath $\lambda$}_{i}||$, $\mbox{\boldmath $F$}_{j}^{'}\mbox{\boldmath $F$}_{j}/T=I_{r}(j=1,\ldots,k),\mbox{\boldmath $\Lambda$}_{j}^{'}\mbox{\boldmath $\Lambda$}_{j}(j=1,\ldots,k)$ being diagonal. While the consistency of the subspace clustering procedure has been discussed in Section 4.1, we have the following theorems (Theorems 2, 3 and 4) to show the property of the estimators when $T$ and $N$ are large. To show the property of the estimators, Assumptions C, D, E and F, are needed as presented in Bai2009 and Ando2016 and we present Assumptions C--F in the Supplementary Materials S1.

theorem{Theorem 2.} Suppose that Assumptions A--E hold, as $N \rightarrow \infty$ and $T \rightarrow \infty$, the following statements hold: \begin{itemize} • $||\hat{\mbox{\boldmath $\beta$}}-\mbox{\boldmath $\beta$}^{0}||=o_{p}(1)$, • $||P_{\hat{\mbox{\boldmath $F$}}_{j}}-P_{\mbox{\boldmath $F$}^{0}_{j}}||=o_{p}(1),j=1,\ldots,k.$ \end{itemize}
theorem{Theorem 3.} Consistency of the estimator of group membership: Suppose that Assumptions A--E hold, then for all $\tau > 0$ and $T, N \rightarrow \infty$, we have \begin{eqnarray*} P\left(\sup\limits_{i\in\{1,\cdots,N\}} \left| \hat{g}_i(\hat{\boldmath $\beta$},\hat{\boldmath $F$},\hat{\boldmath $\Lambda$},\hat{B}_1,\cdots,\hat{B}_k)-g_i^0 \right| \right)=o(1)+o(N/T^{\tau}). \end{eqnarray*}
theorem{Theorem 4.} Asymptotic normality: Suppose that Assumptions A--F hold and $T/N \rightarrow \rho>0$, then \begin{eqnarray*} \sqrt{NT}(\hat{\boldmath $\beta$}-\boldmath $\beta$^0)\rightarrow^d N(v_0,V_\beta(\boldmath $F$_1^0,\cdots,\boldmath $F$_k^0,B^0_1,\cdots,B^0_k)), \end{eqnarray*} where $v_0$ is the probability limit of \begin{eqnarray*} v & = & \sqrt{\frac{T}{N}}\sum\limits_{j=1}^{k}D(F_1^0,\cdots,F_k^0,B_1^0,\cdots,B_k^0)^{-1}\eta_j +\sqrt{\frac{T}{N}}\sum\limits_{j=1}^{k}D(F_1^0,\cdots,F_k^0,B_1^0,\cdots,B_k^0)^{-1}\zeta_j \end{eqnarray*} with \begin{eqnarray*} \eta_j&=& -\frac{1}{N_j}\sum\limits_{i:g_i^0=j}\sum\limits_{\ell:g_\ell^0=j} \frac{(x_i-V_{j,i})^{'}F_j^0}{T} \left(\frac{F^{0'}_{j}F^{0}_{j}}{T} \right)^{-1}\left(\frac{\Lambda_j^{0'}\Lambda_j^{0}}{N_j} \right)^{-1} \lambda_{g_\ell^0,\ell}\left(\frac{\varepsilon_i^{'}\varepsilon_\ell}{T}\right),\\ \zeta_j&=& \sum\limits_{j=1}^{k}\frac{1}{N_j T}\sum\limits_{i:g_i^0=j}\sum\limits_{\ell:g_\ell^0=j}x_i^{'}M^0_j \Omega_kF^0_j(F^{0'}_{j}F^0_j/T)^{-1} (\Lambda_j^{0'}\Lambda_j^{0}/N_j)^{-1}\lambda^0_{j,i}, \end{eqnarray*} \begin{eqnarray*} D(F_1^0,\cdots,F_k^0; B_1^0,\cdots,B_k^0)& = & \frac{1}{NT}\sum\limits_{j=1}^{k}\sum\limits_{i:g_i^0=j}x_i^{'}M^0_jx_i-\frac{1}{NT}\sum\limits_{j=1}^{k} \left[\frac{1}{N_j}\sum\limits_{i:g_i^0=j}\sum\limits_{\ell:g_\ell^0=j}x_i^{'}M^0_jx_\ell c_{j,\ell i} \right], \end{eqnarray*} \begin{eqnarray*} V_\beta(F_1^0,\cdots,F_k^0;B_1^0,\cdots,B_k^0)&=&D_0(F_1^0,\cdots,F_k^0;B_1^0,\cdots,B_k^0)^{-1}J_0(F_1^0,\cdots,F_k^0;B_1^0,\cdots,B_k^0)\\ &&D_0(F_1^0,\cdots,F_k^0;B_1^0,\cdots,B_k^0)^{-1}, \end{eqnarray*} where $D_0(F_1^0,\cdots,F_k^0;B_1^0,\cdots,B_k^0)$ is the probability limit of $D(F_1^0,\cdots,F_k^0;B_1^0,\cdots,B_k^0)$ and $J_0(F_1^0,\cdots,F_k^0;B_1^0,$ $\cdots,B_k^0)$ is defined in Assumption F and $V_{j,i}=N_j^{-1}$ $\sum\limits_{\ell:g_\ell^0=j}c_{j,\ell i}x_\ell x_i$, and $M^0_j=\frac{1}{T}F^0_{j}B^0_jB_j^{0T}F^{0T}_{j}$.

The proofs of Theorems 2--4 are presented in the Supplementary Materials S3.

Monte Carlo Simulation Studies

In this section, Monte Carlo simulation studies with different settings are used to illustrate the proposed methodologies and to study the finite sample properties of the proposed methods. We assume that $\mbox{\boldmath $\lambda$}_{i}$ ($i = 1, 2, \ldots, N$) comes from different subspaces with dimension $d_{1}, d_{2}, \ldots d_{k}$ and $\mbox{\boldmath $\lambda$}_{i}$ can follow different probability distributions over different subspaces. Furthermore, we consider that $\mbox{\boldmath $\lambda$}_{i}, i=1,2,\ldots, N$, can have moderate noise. The simulation results are based on $100$ simulations.

Setting 1

We consider the situation that there are three different subspaces in the $\mathbb{R}^{3}$ space with known dimensions $d_{1}$, $d_{2}$ and $d_{3}$, i.e., $k = 3$ and $r = 3$. The bases of the three subspaces with dimensions $d_{1}$, $d_{2}$ and $d_{3}$ are represented as $\mbox{\boldmath $\alpha$}_{1}$, $\mbox{\boldmath $\alpha$}_{2}$ and $\mbox{\boldmath $\alpha$}_{3}$, respectively. Let $N_{\ell_1 \times \ell_2}(\mu, \sigma^{2})$ be a $\ell_1 \times \ell_2$ matrix whose elements are random variables that are independent and identically distributed as normal with mean $\mu$ and variance $\sigma^{2}$. Under this setting, we generate the panel data $y_{it}$ in the $j$-th subspace ($j = 1, 2, 3$; $i = 1, 2, \ldots, N_{j}$; $t = 1, 2, \ldots, T$) based on the panel data model in Eq. ((ref)) with $N_{1} = N_{2} = N_{3} = N = 100$, $T = 6$ and the following scheme:

itemize$\mbox{\boldmath $\lambda$}_{i} \sim N_{r \times 1}(1, 1)$ with random noise from a normal distribution with mean 0 and variance 0.1, i.e., $\mbox{\boldmath $\Lambda$}_{j} = N_{N_{j} \times d_{j}}(1, 1) \mbox{\boldmath $\alpha$}_{j}' + N_{N_{j} \times r}(0, 0.1),\mbox{\boldmath $\alpha$}_{j}~\sim N_{r \times d_j}(0, 1)~j = 1, 2, 3;$$p = 2$ with $\mbox{\boldmath $\beta$} = (\beta_{1}, \beta_{2})' = (1, 2)'$; • the covariate $\mbox{\boldmath $X$}$ is a $T\times N \times p$ array with \begin{eqnarray*} \boldmath $X$_{\cdot \cdot 1} = \boldmath $\mu$_{1} + c_{1}\boldmath $F$ \boldmath $\Lambda$' + \boldmath $\tau$ \boldmath $\Lambda$' + \mbox{\boldmath $\eta$}_{1} {\mbox {, }} \mbox{\boldmath $X$}_{\cdot \cdot 2} = \mbox{\boldmath $\mu$}_{2} + c_{2}\mbox{\boldmath $F$} \mbox{\boldmath $\Lambda$}' + \mbox{\boldmath $\tau$} \mbox{\boldmath $\Lambda$}' + \mbox{\boldmath $\eta$}_{2}, \end{eqnarray*} where $\mbox{\boldmath $X$}_{\cdot \cdot 1}$ and $\mbox{\boldmath $X$}_{\cdot \cdot 2}$ are $T \times N$ matrices, $\mbox{\boldmath $\mu$}_{1}, \mbox{\boldmath $\mu$}_{2}$ are $T \times N$ matrices of all the elements that are $1$, and $c_{1}=c_{2}=0.5$; • $\mbox{\boldmath $F$}\mbox{\boldmath $\Lambda$} = (\mbox{\boldmath $F$}_{1} \mbox{\boldmath $\Lambda$}_{1}^{T}, \mbox{\boldmath $F$}_{2} \mbox{\boldmath $\Lambda$}_{2}^{T},\mbox{\boldmath $F$}_{3}\mbox{\boldmath $\Lambda$}_{3}^{T})$, where $\mbox{\boldmath $F$}_{1},\mbox{\boldmath $F$}_{2},\mbox{\boldmath $F$}_{3}$ are $T \times r$ matrices that satisfy $\mbox{\boldmath $F$}_{j}^{'}\mbox{\boldmath $F$}_{j}/T=I_{r},\;j=1,2,3$; • $\mbox{\boldmath $\eta$}_{1} \sim N_{T \times N}(0, 1)$ and $\mbox{\boldmath $\eta$}_{2} \sim N_{T \times N}(0, 1)$; • $\mbox{\boldmath $\tau$}$ is a $T\times r$ matrix of all the elements that are $1$; • the random error $\varepsilon_{i,t} \stackrel{\text{i.i.d}}{\sim} N(0, 0.5)$, $i = 1, 2, \ldots, N, t = 1, 2, \ldots, T$.

In the simulation study, we compare the performance of the proposed LSSC method with the GFE method Bonhomme2015 and the estimation method proposed by Bai2009 (BAI) in terms of the biases and the root mean squared errors (RMSEs). The simulated biases and RMSEs of the estimators obtained from the GFE, BAI and LSSC estimation methods for Setting 1 are presented in Table (ref). From Table (ref), we observe that the proposed LSSC method has better performance than the GFE and BAI's methods in terms of biases and RMSEs. It is noteworthy that although the theoretical proofs of the asymptotic properties require $T$ to be large, the simulation results show that the proposed method performs well even when $T$ is small.

table*[table* omitted — 1,186 chars of source]

To compare the performance of the clustering methods, we present the simulated average misclassification rates of the clustering methods based on GFE and the proposed LSSC in Table (ref). From Table (ref), we can see that the simulated misclassified rates of the LSSC method are lower than the corresponding misclassified rates of the GFE method.

table*[table* omitted — 479 chars of source]

To verify the consistency of the proposed LSSC method, in addition to $N_{1} = N_{2} = N_{3} = N = 100$, we consider different sample sizes $N = 50$, 200, 300 and 500 in order to study the effect of the sample size on the biases and RMSEs. We also consider different values of time period $T = 5$, 10, 30, 50, 100 to study the effect of the time period on the biases and RMSEs of parameter $\mbox{\boldmath $\beta$}$. The results are presented in Tables (ref) and (ref). From Tables (ref) and (ref), we can see that the biases and RMSEs of the LSSC estimators decrease as the sample size $N$ or time period $T$ increases, which verifies Theorem 2.

table*[table* omitted — 675 chars of source]
table*[table* omitted — 700 chars of source]

Setting 2

The method proposed by Ando2016 is effective when the regressors are not correlated with factors and factor loadings under large $N$ and large $T$, but it does not performs well when the regressors and the factors are correlated, such as the set-up in Setting 1. To further compare the proposed method with the method proposed by Ando2016, we consider the following settings:

itemize• Let the regressors $\mbox{\boldmath $x$}_{it}\sim Uniform(-2,2)$, and the other settings are the same as Setting 1. In this setup, the regressors are not correlated with the factors and the factor loadings. The simulated biases and RMSEs of the estimation method proposed by Ando2016 (denoted as {\it Ando-Bai}) and the proposed LSSC for time periods $T = 10$ and 100 are presented in Tables (ref) and (ref), respectively. From Table (ref), we can see that the proposed LSSC method has smaller biases and RMSEs compared to the {\it Ando-Bai} method when $T=10$. From Table (ref), the {\it Ando-Bai} method is performing well while the proposed LSSC method still perform better when $T = 100$. • Consider the regressors and the factor loadings are correlated with the followings: \begin{itemize} • the covariate $\mbox{\boldmath $X$}$ is a $T\times N \times p$ array with \begin{eqnarray*} \boldmath $X$_{\cdot \cdot 1} = \rho \boldmath $\tau$ \boldmath $\Lambda$' + \boldmath $\eta$_{1} {, } \boldmath $X$_{\cdot \cdot 2} = \rho \mbox{\boldmath $\tau$} \mbox{\boldmath $\Lambda$}' + \mbox{\boldmath $\eta$}_{2}, \end{eqnarray*} where $\mbox{\boldmath $X$}_{\cdot \cdot 1}$ and $\mbox{\boldmath $X$}_{\cdot \cdot 2}$ are $T \times N$ matrices; • $\mbox{\boldmath $\eta$}_{1} \sim Uniform_{T \times N}(-2,2)$ and $\mbox{\boldmath $\eta$}_{2} \sim Uniform_{T \times N}(-2,2)$; • $\mbox{\boldmath $\tau$}$ is a $T\times r$ matrix of all the elements that are $1$; • $\rho$ is a constant which represents the correlation between the covariate $\mbox{\boldmath $X$}$ and the factor loadings. \end{itemize} The other settings are the same as those settings presented in Setting 1. Figure (ref) presents the simulated biases and RMSEs of the estimators for $\beta_1$ and $\beta_2$ obtained from the LSSC and {\it Ando-Bai} methods with $\rho$ varies from $0$ to $1$. From Figure (ref), we can see that the LSSC method is more stable and gives smaller biases and RMSEs compared to the {\it Ando-Bai} method.
table*[table* omitted — 1,166 chars of source]
table*[table* omitted — 1,157 chars of source]
figure*[figure* omitted — 495 chars of source]

Model Selection and Possible Extensions

In the previous sections, we assume that the number of subspaces and the dimension of subspaces are known. In this section, we extend the procedure to a more general setting in which the dimension of factors is unknown and discuss the situations that the number of subspaces for the factors and the dimension of these subspaces are unknown.

Determine the number of subspaces for factors

One of the critical aspects of cluster analysis is to determine the number of subspaces empirically based on the observed data. For experimental data, however, there is no real “true" number of subspaces, but only a choice of the suitable value of $k$ which can provide stable and replicable results with a good fit to the data. In fact, the problem of estimating the subspaces number is a challenging model selection problem. Here, we are not intended to give a detailed review of all the existing methods for obtaining the number of subspaces for factor, but we aim to provide a feasible solution based on the work by Liu_Ma2013.

Liu_Ma2013 proposed a novel objective function named low-rank representation (LRR), which seeks the lowest rank representation among all the candidates that can represent the samples as linear combinations of the bases in a given dictionary. The computational procedure of LRR is to solve a nuclear norm regularized problem Fazel2002, which is a convex optimization problem that can be solved in polynomial time. The estimate of the number of subspaces can be obtained as Liu_Ma2013

eqnarray[eqnarray omitted — 99 chars of source]

where $\tau$ is a cut-off threshold, $\sigma_{i}$ denotes a singular value of the normalized Laplacian matrix of the affinity matrix of data, $\text{int}[a]$ is the nearest integer of a real number $a$ and $f_{\tau}$ is a summation function which counts different values regarding that $\sigma_{i}<\tau$ defined as $f_{\tau}(\sigma)=1$ if $\sigma \geq \tau$ and $f_{\tau}(\sigma)=\log_{2}(1+\frac{\sigma^{2}}{\tau^{2}})$ if $\sigma < \tau$, where $0<\tau<1$ is a parameter. Specifically, we can use the following steps to obtain the number of subspaces:

itemize• Given $\mbox{\boldmath $\beta$}$, update $\mbox{\boldmath $F$}$ and $\mbox{\boldmath $\Lambda$}$ by ignoring the subspace structures; • Given $\mbox{\boldmath $F$}$ and $\mbox{\boldmath $\Lambda$}$, update $\mbox{\boldmath $\beta$}$; • Repeat Steps 1--2 until convergence occurs. Let $\mbox{\boldmath $y$}_{i}-\mbox{\boldmath $x$}_{i}^{'}\mbox{\boldmath $\beta$} = \mbox{\boldmath $F$}^{'}\mbox{\boldmath $\lambda$}_{i}+\mbox{\boldmath $\varepsilon$}_{i},\;i=1,\ldots,N$, then we can compute the affinity matrix $W$ by using Algorithm 2 in Liu_Ma2013; • Compute the Laplacian matrix $L=I-D^{-\frac{1}{2}}WD^{-\frac{1}{2}}$, where $$D=\text{diag}(\sum_{j}[W]_{1j},\ldots,\sum_{j}[W]_{nj});$$ • Obtain the number of subspaces, ${\hat k}$, by Eq. ((ref)).

To verify the performance of the above algorithm in obtaining the number of subspaces, we assume that the numbers of subspaces in Settings 1 and 2 are unknown and apply the above algorithm to obtain the number of subspaces based on each simulated data set. Based on the simulation study, we find that the above algorithm can obtain ${\hat k} = 3$ correctly for all the 100 simulated data sets. For future research, evaluating the performance of the above algorithm for obtaining the number of subspaces under different settings (e.g., different sample sizes, different number of subspaces, etc.) is of interest.

Determine the dimension of factors and the dimension of subspaces

Determination of the dimension of factors (dimension of ambient space) is an interesting research topic. The dimension of factors can be specified based on the particular practical problem using professional or expert knowledge. When professional or expert knowledge about the dimension of factors is not available, Bai_Ng2019 developed a regularization criterion to determine the number of factors, and this criterion is more stable when the nominal number of factors is inflated by the presence of weak factors or large measurement noise. To choose the dimension of factors $r \in [0, rmax]$, the expression of the criterion is $$\bar{r} = \min\limits_{r = 0, \cdots, rmax} \log\left[ 1-\sum\limits_{j=1}^r(D_{jj}-\gamma)^2 \right] + kg(N,T),$$ where $g_{N,T}=\frac{N+T}{NT}\log(\frac{NT}{N+T})$, $D_{jj}$ is the $j$-th singular value of the scaled observable data, and $\gamma$ is a constant threshold. Through Monte Carlo simulation, we found that this criterion performs well in determining the number of factors when the factors and factor loadings have the subspace structure.

When the dimensions of the subspaces are unknown, determining the dimension for each subspace is still an open and challenging problem. In this section, we suggest to obtain the solution of the optimal model selection as

eqnarray[eqnarray omitted — 204 chars of source]

where $SSR(\hat{Z})$ represents the mean squared errors under the subspaces set $\hat{Z}$ (i.e., a measure of the data fidelity), $\tau$ is the error tolerance, $d_j$ is the dimension of the $j$-th subspace and $N_j$ is the number of individuals in $j$-th subspace, $k$ is the number of subspaces, $\hat{\sigma}^2$ is the estimated variance, and $\sum_{i=1}^{k}d^2_i \frac{T+N_i}{NT}\log(TN_i)$ is the penalty term which measures the model complexity under the subspaces set $\hat{Z}$. The proposed criterion can be viewed as a tradeoff between how well the model fits the data and the model complexity. It can be shown that the penalty function $d^2_j \frac{T+N_j}{NT}\log(TN_j)\to 0$ and $\min\{N,T\}d^2_j \frac{T+N_j}{NT}\log(TN_j)\to \infty$ as $T,N\to \infty$ and $T/N$ converges to constant.

theorem{Theorem 5.} Suppose that Assumptions A--F hold and $T/N \rightarrow \rho>0$, then the dimensions of subspaces $\{\hat{d}_1,\cdots,\hat{d}_k\}$ obtained by using Eq. ((ref)) converge in probability to the true dimensions of subspaces $\{d_1^0, \cdots, d_k^0\}$.

To examine the proposed method for model selection, we simulated the panel data from the models with number of factors $r = 3$ and 4 and then obtain the solution of the optimal model selection in Eq. (ref) with different number of units in each subspace and different time period $T$. We consider that there is no covariate, i.e., $\beta = 0$ and we use the error tolerance $\tau=\frac{10 (d_1^3 + \cdots + d_{k-1}^3)}{\min\{N,T\}}$. The simulated percentages of identifying the correct dimension of subspaces (based on 1000 simulations for each setting) are presented in Tables (ref) and (ref) for $r = 3$ and 4 with three and four subspaces, respectively. From the simulation results in Tables (ref) and (ref), the proposed model selection method performs reasonably well in the case of hyperplane, i.e., these subspaces have the same dimensions. Compared with the case of the hyperplane, when the dimensions of the subspaces are not all the same, the simulated percentages of identifying the correct dimension can be lower to about 80%.

table*[table* omitted — 928 chars of source]
table*[table* omitted — 985 chars of source]

Real Data Application

In this section, we illustrate the proposed methodologies by using the real data provided by Bonhomme2015 and studying the linkage between income growth and democracy across different countries. Following Bonhomme2015, we use the linear dynamic model to identify the group membership and the linkage between income growth and democracy across countries, i.e.,

eqnarray*[eqnarray* omitted — 184 chars of source]

where $democracy_{it}$ is the democracy index (measured by the Freedom House indicator with values in between 0 (the lowest) and 1 (the highest)) for the $i$-th country at time $t$, $GDPpc_{it}$ is the GDP per capita of the $i$-th country at time period $t$, and $\mbox{\boldmath $\lambda$}_{g_i,i}$ and $\mbox{\boldmath $f$}_{g_i,t}$ are the unobservable grouped factor loadings and factors, respectively. Here, the dependent variable is the country's democracy index and the explanatory variables are the first-order lagged democracy index and the income of a country measured by the logarithm of GDP per capita.

The data set contains a balanced panel of 90 countries and 7 periods at a five-year interval over 1970--2000. First, using the information criteria suggested in Bai_Ng2019 to estimate the number of factors, we obtain the dimension of factor space as $r = 5$. Then, the number of subspaces is estimated as $k = 3$ based on Eq. ((ref)). The results are consistent with those presented in SuPhillips2016. Next, we use the criterion in Eq. ((ref)) to select the optimal model, and the results show that the optimal model have the dimensions $d_1 = d_2 = d_3 = 4$. Finally, we use BAI, GFE and LSSC methods to obtain the parameter estimates as $(\hat{\theta}_1, \hat{\theta}_2)$ and corresponding fitting errors (defined as $\hat{SSR}=\frac{1}{NT}\sum\limits_{i=1}^N\sum\limits_{t=1}^T(democracy_{it}-\theta_1 democracy_{i(t-1)} -\theta_2log GDPpc_{i(t-1)} - \mbox{\boldmath $\lambda$}_{g_i,i} \mbox{\boldmath $f$}_{g_i,t})^2$). The estimated results are presented in Table (ref). From Table (ref), we can see that all these estimates imply the effect of income on democracy is positive, but the LSSC method has the smallest fitting error.

table*[table* omitted — 659 chars of source]

In order to visualize the group membership obtained by the proposed method, we put these grouped countries on a world map in Figure (ref) in which the countries in the same group are represented in the same color. The detailed lists of grouped countries are presented as followings:

itemize• Group 1 (45 countries): Argentina, Australia, Bangladesh, Burkina Faso, Burundi, Cameroon, Canada, Chile, Congo, Costa Rica, Denmark, Dominican Rep., Ecuador, El Salvador, France, Gambia, Ghana, Guatemala, Honduras, Iran, Israel, Italy, Jamaica, Jordan, Kenya, Luxembourg, Malawi, Malaysia, Morocco, Nepal, New Zealand, Nicaragua, Nigeria, Norway, Paraguay, Peru, Philippines, Romania, Spain, Sweden, Togo, Trinidad and Tobago, United States, Venezuela, Zambia. • Group 2 (24 countries): Algeria, Belgium, Bolivia, Brazil, China, Colombia, Egypt, Finland, Greece, Indonesia, Ireland, Japan, Korea, Lesotho, Mali, Netherlands, Niger, Portugal, Rwanda, South Africa, Sri Lanka, Tunisia, United Kingdom, Uruguay. • Group 3 (21 countries): Austria, Barbados, Benin, Chad, Gabon, Guinea, Hungary, Iceland, India, Madagascar, Mauritius, Mexico, Panama, Senegal, Switzerland, Syria, Tanzania, Thailand, Turkey, Uganda, Zimbabwe.
figure*[figure* omitted — 142 chars of source]

From these groupings, it can be seen that most of the early developed countries are distributed in the first group, which has a certain relationship with the economic and political structure. It includes the United States and Canada, most of the countries in continental Europe, coastal countries of South America and Australia. Most of the countries in the second group are developing countries with rapid economic development in Asia, Africa and South America, which includes China, Brazil and South Africa. Japan and South Korea also belong to the second group because they are both countries with high-speed economic development during this period and similar culture and policies. Most of the countries in the third group have slower development and relatively backward economies and policies during this period.

Concluding Remarks

In this paper, we consider a panel data model that allows the covariates and the unobservable latent variables to be correlated. We propose a subspace clustering method for factor loadings of the panel data model that captures the grouped unobserved heterogeneity. The common regression parameters, grouped unobservable factor structure and group membership can be estimated simultaneously with the proposed method. The asymptotic results show that the subspace clustering and the estimators are consistent. The Monte Carlo simulation results show that the proposed methodologies outperform the existing methods under different settings. Under the model considered in this paper, we propose a consistent model selection criterion to determine a suitable subspace dimension. We also discuss some possible future research directions in determining the number of subspaces and factor dimension when these values are unknown. These issues are under investigation and we hope to report the results in a future paper.

thebibliography\bibitem[\citeauthoryear{Ahn et al.}{Ahn et al.}{2013}]{Ahn} Ahn, S. C., Lee, Y. H. & Schmidt, P. (2013). \hskip .11em\ Panel data models with multiple time-varying individual effects. \hskip .11em\ {\em Journal of Econometrics\/}, {174}, 1--14. \bibitem[\citeauthoryear{Amemiya}{Amemiya}{1971}]{Amemiya} Amemiya, T. (1971). \hskip .11em\ The estimation of the variances in a variance-components model. \hskip .11em\ {\em International Economic Review\/}, {12}, 1--13. \bibitem[\citeauthoryear{Ando & Bai}{Ando & Bai}{2016}]{Ando2016} Ando, T. & Bai, J. S. (2016). \hskip .11em\ Panel data models with grouped factor structure under unknown group membership. \hskip .11em\ {\em Journal of Applied Econometrics\/}, {31}, 163--191. \bibitem[\citeauthoryear{Bai}{Bai}{2009}]{Bai2009} Bai, J. S. (2009). \hskip .11em\ Panel data models with interactive fixed effects. \hskip .11em\ {\em Econometrica\/}, {77}, 1229--1279. \bibitem[\citeauthoryear{Bai & Ng}{Bai & Ng}{2002}]{Bai2002} Bai, J. S. & Ng, S. (2002). \hskip .11em\ Determining the number of factors in approximate factor models. \hskip .11em\ {\em Econometrica\/}, {70}, 191--221. \bibitem[\citeauthoryear{Bai & Ng}{Bai & Ng}{2019}]{Bai_Ng2019} Bai, J. S. & Ng, S. (2019). \hskip .11em\ Rank regularized estimation of approximate factor models. \hskip .11em\ {\em Journal of Econometrics\/}, {212}, 78--96. \bibitem[\citeauthoryear{Bonhomme & Manresa}{Bonhomme & Manresa}{2015}]{Bonhomme2015} Bonhomme S. & Manresa E. (2015). \hskip .11em\ Grouped patterns of heterogeneity in panel data. \hskip .11em\ {\em Econometrica\/}, {83}, 1147--1184. \bibitem[\citeauthoryear{Fazel}{Fazel}{2002}]{Fazel2002} Fazel, M. (2002). \hskip .11em\ Matrix Rank Minimization with Applications. \hskip .11em\ {\em Ph.D. thesis, Department of Electrical Engineering, Stanford University.\/} \bibitem[\citeauthoryear{Fischler & Bolles}{Fischler & Bolles}{1981}]{Fischler1981} Fischler, M. A. & Bolles, R. C. (1981). \hskip .11em\ Random sample consensus: A paradigm for model fitting with applications to image analysis and automated cartography. \hskip .11em\ {\em Communications of the ACM\/}, {26}, 381--395. \bibitem[\citeauthoryear{Gobillon & Magnac}{Gobillon & Magnac}{2016}]{Gobillon2016} Gobillon, L. & Magnac, T. (2016). \hskip .11em\ Regional policy evaluation: interactive fixed effects and synthetic controls. \hskip .11em\ {\em The Review of Economics and Statistics\/}, {98}, 535--551. \bibitem[\citeauthoryear{Hsiao et al.}{Hsiao et al.}{2012}]{Hsiao2012} Hsiao, C., Ching, H. S. & Wan, S. K. (2012). \hskip .11em\ A Panel Data Approach for Program Evaluation: Measuring the Benefits of Political and Economic Integration of Hong Kong with Mainland China. \hskip .11em\ {\em Journal of Applied Econometrics\/}, {27}, 705--740. \bibitem[\citeauthoryear{Kanatani}{Kanatani}{2012}]{Kanatani2012} Kanatani, K. (2012). \hskip .11em\ Motion segmentation by subspace separation: model selection and reliability evaluation. \hskip .11em\ {\em International Journal of Image and Graphics\/}, {2}, 179--197. \bibitem[\citeauthoryear{Kriegel et al.}{Kriegel et al.}{2009}]{Kriegel2009} Kriegel H. P., Kr\"{o}ger P. & Zimek A. (2009). \hskip .11em\ Clustering high-dimensional data: A survey on subspace clustering, pattern-based clustering, and correlation clustering. \hskip .11em\ {\em ACM Transactions on Knowledge Discovery from Data (TKDD)\/}, {3}, 1--58. \bibitem[\citeauthoryear{Lin & Ng}{Lin & Ng}{2012}]{Lin2012} Lin, C. & Ng, S. (2012). \hskip .11em\ Estimation of panel data models with parameter heterogeneity when group membership is unknown. \hskip .11em\ {\em Journal of Econometric Methods\/}, {1}, 42--55. \bibitem[\citeauthoryear{Liu et al.}{Liu et al.}{2013}]{Liu_Ma2013} Liu, G., Lin, Z., Yan, S., Sun, J., Yu, Y. & Ma, Y. (2013). \hskip .11em\ Robust recovery of subspace structures by low-rank representation. \hskip .11em\ {\em IEEE Transactions on Pattern Analysis and Machine Intelligence\/}, {35}, 171--184. \bibitem[\citeauthoryear{Nickel}{Nickel}{1981}]{Nickel1981} Nickel, S. (1981). \hskip .11em\ Biases in dynamic models with fixed effects. \hskip .11em\ {\em Econometrica\/}, {49}, 1417--1426. \bibitem[\citeauthoryear{Pesaran}{Pesaran}{2006}]{Pesaran2006} Pesaran, H. M. (2006). \hskip .11em\ Estimation and inference in large heterogeneous panels with a multi-factor error structure. \hskip .11em\ {\em Econometrica\/}, {74}, 967--1012. \bibitem[\citeauthoryear{Pollard}{Pollard}{1981}]{Pollard1981} Pollard, D. (1981). \hskip .11em\ Strong consistency of $k$-mean clustering. \hskip .11em\ {\em The Annals of Statistics\/}, {9}, 135--140. \bibitem[\citeauthoryear{Shi & Lee}{Shi & Lee}{2017}]{Shi2017} Shi, W. & Lee, L. F. (2017). \hskip .11em\ Spatial dynamic panel data models with interactive fixed effects. \hskip .11em\ {\em Journal of Econometrics\/}, {197}, 323--347. \bibitem[\citeauthoryear{Stock & Watson}{Stock & Watson}{2002}]{Stock2002} Stock, J. H. & Watson, M. W. (2002). \hskip .11em\ Forecasting using principal components from a large number of predictors. \hskip .11em\ {\em Journal of the American Statistical Association\/}, {97}, 1167--1179. \bibitem[\citeauthoryear{Su et al.}{Su et al.}{2016}]{SuPhillips2016} Su, L., Shi, Z. & Phillips, P. C. B. (2016). \hskip .11em\ Identifying latent structures in panel data. \hskip .11em\ {\em Econometrica\/}, {84}, 2215--2264. \bibitem[\citeauthoryear{Su and Ju}{Su and Ju}{2018}]{Su_Ju2018} Su, L. & Ju, G. S. (2018). \hskip .11em\ Identifying latent grouped patterns in panel data models with interactive fixed effects. \hskip .11em\ {\em Journal of Econometrics\/}, {206}, 554--573. \bibitem[\citeauthoryear{Terada}{Terada}{2014}]{Terada2014} Terada, Y. (2014). \hskip .11em\ Strong consistency of reduced $k$-means clustering. \hskip .11em\ {\em Scandinavian Journal of Statistics\/}, {41}, 913--931. \bibitem[\citeauthoryear{Vidal & Sastry}{Vidal & Sastry}{2005}]{Vidal2005} Vidal, M. Y. R. & Sastry, S. (2005). \hskip .11em\ Generalized principal component analysis (gpca). \hskip .11em\ {\em IEEE Transactions on Pattern Analysis and Machine Intelligence\/}, {27}, 1945--1959. \bibitem[\citeauthoryear{Vidal & Sastry}{Vidal & Sastry}{2016}]{Vidal2016} Vidal, M. Y. R. & Sastry, S. (2016). \hskip .11em\ Generalized principal component analysis. \hskip .11em\ {\em New York: Springer-Verlag\/}. \bibitem[\citeauthoryear{Wallace & Hussain}{Wallace & Hussain}{1969}]{Wallace1969} Wallace, T. D. & Hussain, A. (1969). \hskip .11em\ The use of error components models in combining cross section with time series data. \hskip .11em\ {\em Econometrica\/}, {37}, 55--72. \bibitem[\citeauthoryear{Wang et al.}{Wang et al.}{2006}]{LiWang2006} Wang, L. W., Wang, X. & Feng, J. F. (2006). \hskip .11em\ Subspace distance analysis with application to adaptive Bayesian algorithm for face recognition. \hskip .11em\ {\em Pattern Recognition\/}, {39}, 456--464. \bibitem[\citeauthoryear{Yang et al.}{Yang et al.}{2005}]{Yang2005} Yang, A., Rao, S., Wagner, A., Ma, Y. & Fossum, R. M. (2005). \hskip .11em\ Hilbert functions and applications to the estimation of subspace arrangements. \hskip .11em\ {\em Tenth IEEE International Conference on Computer Vision\/}, {5}, 158--165.