scieee AI-readable full text Open interactive document viewer

Generalized factor models : a bayesian approach

Tekatli, Necati

Abstract

There is recent interest in the generalization of classical factor models in which the idiosyncratic factors are assumed to be orthogonal and there are identification restrictions on cross-sectional and time dimensions. In this study, we describe and implement a Bayesian approach to generalized factor models. A flexible framework is developed to determine the variations attributed to common and idiosyncratic factors. We also propose a unique methodology to select the (generalized) factor model that best fits a given set of data. Applying the proposed methodology to the simulated data and the foreign exchange rate data, we provide a comparative analysis between the classical and generalized factor models. We find that when there is a shift from classical to generalized, there are significant changes in the estimates of the structures of the covariance and correlation matrices while there are less dramatic changes in the estimates of the factor loadings and the variation attributed to common factors.

Full text

GENERALIZED FACTOR MODELS: A BAYESIAN APPROACH Necati TEKATLI ∗† October 2007 Abstract There is recent interest in the generalization of classical factor models in which the idiosyncratic factors are assumed to be orthogonal and there are identification restrictions on cross-sectional and time dimensions. In this study, we describe and implement a Bayesian approach to generalized factor models. A flexible framework is developed to determine the variations attributed to common and idiosyncratic factors. We also propose a unique methodology to select the (generalized) factor model that best fits a given set of data. Applying the proposed methodology to the simulated data and the foreign exchange rate data, we provide a comparative analysis between the classical and generalized factor models. We find that when there is a shift from classical to generalized, there are significant changes in the estimates of the structures of the covariance and correlation matrices while there are less dramatic changes in the estimates of the factor loadings and the variation attributed to common factors. ∗Institute for Economic Analysis, CSIC, Barcelona †I am indebted to John Geweke for his valuable comments and suggestions in this research. I wish to thank Chuck Whiteman, Beth Ingram, Gene Savin, Ashish Tiwari, participants of the Iowa Alumni Workshop, the Midwest Econometrics Meeting and the Symposium for Economic Analysis, and the seminar participants at the University of Iowa and the Institute for Economic Analysis (CSIC, Barcelona) for helpful comments and discussions. Financial support from CREA Barcelona Economics Program is gratefully acknowledged. 1 1 Introduction Financial and economic activities are characterized by some common movements with booms and depressions as the extreme examples. Cyclical behaviors or business cycles express the same common belief that there is a common movement between the variables. One can also refer to this common behavior as the state of the economy or the state of the market. If this common behavior is strong, it makes sense to represent the state of the economy or the market by an index characterizing the comovement of such economic or financial variables. A method that has been widely used to derive the common components of the variables is factor analysis. A factor model has two significant parts: common factors and idiosyncratic factors. Factor models have many applications in finance and economics: 1. Asset pricing and risk measurement (Ross (1976), Geweke and Zhou (1996)); 2. Monitoring the economy and the market (Forni, Hallin, Lippi and Reichlin (FHLR 2000), Stock and Watson (1998) and Kose, Otrok and Whiteman (2003)); 3. Economic indicators and forecasting (Stock and Watson (2002)); 4. Trading strategies (Tong (2006)). Classical factor models and the need for new factor models. Classical factor models have been widely used in financial and economic applications since mid-1970s; however, these models have some limitations and use some restrictive assumptions (see Bai (2003) and FHLR (2000, 2001)): 1) Classical factor analysis assumes that cross-sectional dimension Nis small and fixed. However, there are many large sample problems available these days; 2) Idiosyncratic factors are assumed to be orthogonal; however, this is an unrealistic and restrictive assumption. To relax these assumptions and extend the range of applications of factor models, there has been recent interest in finding more flexible and “generalized” factor models. Generalized factor models are proposed recently by Stock and Watson (1998, 2002), FHLR (2000, 2001), Bai and Ng (2002), Bai (2003) and Boivin and Ng (2006). However, these recently developed “generalized” factor models also have some limitations: 1) They assume weak idiosyncratic cross-sectional correlation; 2) The infinite cross-sectional dimension is the key assumption to identify the common components, idiosyncratic components and factor loadings. As discussed in FHLR (2000), for fixed number of cross-sections reasonable assumptions, without orthogonality, for identification of the factor structure can hardly be found. In order to overcome these limitations, we develop a Bayesian generalized factor model allowing for non-orthogonality of the idiosyncratic factors and the flexibility of cross-sectional dimension. This proposed generalization is mainly for small samples but it can be applied to large samples as well. In this paper, we also evaluate the assumption of orthogonality of idiosyncratic factors and give a comparative analysis between the classical and generalized models to find out if there is a gain from a generalized factor 2 model. Moreover, we propose a unique methodology to choose the generalized factor model that best fits the given data set. The assumptions, orthogonality of idiosyncratic factors and restrictions on the crosssectional dimension, are necessary for identification of factors and the parameters of the models proposed in the current literature; however, their applications are limited to the extend that the data series satisfy these assumptions. Allowing the idiosyncratic factors to be correlated and working with small samples can make the factor analysis framework suited for a wider range of economic applications. Recent developments and the need for improved models. Among the early studies that introduce factor models as a tool for the study of time series in the economics literature are Geweke (1977) and Sargent and Sims (1977). However, Chamberlain and Rothschild (1983) is the first study to allow for idiosyncratic cross-sectional correlation. They define an approximate factor structure and show that a weaker assumption that allows for some correlation in the idiosyncratic factors is sufficient for the result in Ross (1976) that says if there is a factor structure, then the mean asset returns are approximately linear functions of factor loadings. Stock and Watson (1998, 2002) extends this idea and applies in an index model which they call an approximate dynamic factor model. They work with asymptotic cross-sections and asymptotic time dimensions while allowing for weak cross-sectional correlation. In three other recent papers, FHLR (2000), FHLR (2004) and Forni and Lippi (2001) propose a factor model with non-orthogonal idiosyncratic components which they call the generalized dynamic factor model. Their model combines the characteristics of Geweke (1977) and Chamberlain and Rothschild (1983). Using the asymptotic analysis in both cross-sections and time series, they utilize the principal components method to estimate the common components and idiosyncratic components. A very recent study on the generalization of the classical factor structure is Bai and Ng (2002) which develops a theory on estimating consistently the number of factors in a factor model within the framework of infinite cross sections Nand infinite time dimension T. In another paper, Bai (2003) derives the limiting distributions and the rate of convergence of the estimated factors and factor loadings as Nand Tgo to infinity. In both of these papers, the method of asymptotic principal components is used to estimate the factors and factor loadings. These studies provide a tractable methodology to replace the classical orthogonality assumption with a more flexible one. However, these papers also have restrictive assumptions to achieve identification of the common and the idiosyncratic components. First, they assume weak idiosyncratic cross-sectional correlation. Second, they have to work with infinite cross-sectional dimensions. A methodology to generalize the classical factor structure for finite samples (either Nfinite, or both Nand Tfinite) is still miss- 3 ing. As pointed out in FHLR (2000), reasonable assumptions, without orthogonality, for identification of the idiosyncratic and the common component is hard to find for fixed N. Hence the infinite cross-section is crucial for identification in the generalized models discussed so far. In addition to these, the recent work by Boivin and Ng also supports the need for an alternative model that allows cross-sectional correlations and heteroscedastic variances for idiosyncratic factors within the framework of both small and large samples. Boivin and Ng (2006) shows that we do not need large data sets for better forecasting; idiosyncratic cross-sectional correlations and heteroscedastic variances of idiosyncratic factors are important assumptions to achieve precise estimation and have better forecasting results; and underestimating the number of factors has large efficiency loss in the factor estimates and forecasts. However, the idiosyncratic factors are correlated when the number of factors are underestimated. Therefore it is also important to know the patterns of covariations left unexplained by the common factors. Major contributions and the main results of this paper. The main problem with the generalization of the classical factor structure, obviously, is the identification issue. If we can find proper priors on the model parameters, the Bayesian analysis of a non-identified model is always possible (Poirier (1998)). Thus, in this paper we propose a Bayesian approach for generalized factor models allowing for non-orthogonality of the idiosyncratic factors and the flexibility of cross-sectional dimension. To the best of our knowledge, this paper is the first Bayesian approach for generalized factor models. Moreover, the generalized factor methodology for small data is still missing; thus, this is the first study for generalized factor analysis of small data. While the proposed model is applied for the small cross-sectional data, it can also be used for the factor analysis of large data sets. Another nice feature of the model is that it can easily be transformed into a classical factor model because of the flexible setup of the model. This study also provides a unique methodology for model selection. Using Bayes factors, we show how to select the generalized factor model that best fits the given data and characterizes the structure of the correlation and covariance matrices. The proposed model setup provides a flexible approach to determine the variations attributed to common and idiosyncratic factors. Applying the proposed model to both the simulated data and the foreign exchange rates data, we provide a comparative analysis between the classical and generalized models, and evaluate the assumption of no cross-sectional correlation between the idiosyncratic factors. We find that when there is a shift from classical to generalized, there are significant changes in the estimates of the structure of the correlation matrix while we find less dramatic changes in the estimates of the factor loadings and the variation attributed to common factors. 4 The paper is organized as follows. Section 2 introduces the proposed generalized factor model. Section 3 describes how to make inference using the Bayesian framework and gives a simulation analysis of the model. Section 4 presents the data and comparative analysis with the foreign exchange rate data. Section 5 provides the model selection. Finally, section 6 summarizes the conclusions. 2 The Generalized Factor Model In this section, we introduce and examine the generalized factor model and the prior beliefs associated with the model. This section is split into three parts. We describe the model in the first part. Then we introduce the prior beliefs that accompany the model to complete the generalization structure. The mechanics and advantages of the proposed methodology are provided in the last part of this section. 2.1 The Model The basic structure of the generalized factor model proposed in this paper is represented by, yit =Λift+ciiεit (1) for i= 1, . . . , N and t= 1, . . . , T. For the ith cross-section, yit is the observed variable at time t,Λiis the 1 ×rvector of factor loadings, εit is the idiosyncratic factor at time tand ftdenotes r×1 unobservable random factors at time t. In the model, cii is part of the decomposition of the variance-covariance matrix, which is one of the major components of the generalized factor model in this study. The mechanics of the generalization methodology is provided in section 2.3. A more convenient way to work with the model is the vector form which is expressed in an Ndimensional dynamic model: yt=Λft+Cεt(2) in which ytis N×1 observable random variables, Λis N×rfactor loadings that is Λ= (Λ0 1, . . . , Λ0 N)0,εtis N×1 idiosyncratic factors, and C=diag(c11, . . . , cNN ). Further assumptions on the model are: ft i.i.d. ∼N(0,Ir) (3) εt i.i.d. ∼N(0,Σ) (4) where εt= (ε1t, . . . , εNt)0and Σis N×Npositive definite matrix. Also, we assume that Cov(εit,fjt) = 0 for all i,jand t. Orthogonality of the factors is a common 5 assumption to exploit the information from the data. We also assume N > r, that is, factor structure of the data is not more complicated than that of the observed data. Otherwise, there would not be much gain from the factor analysis. One should notice that variables on the left hand side of the equation (2) are observable whereas none of the variables on the right hand side are observable. A significant difference in this setup is the allowance for cross-correlations across idiosyncratic components which is represented by the positive definite variance-covariance matrix Σ. Thus, the cross sections of observables vector ytcan be contemporaneously correlated through both common factors ftand idiosyncratic errors εt. The variancecovariance matrix Σand the diagonal matrix Care the two components of the model that allows the flexibility and the generalization of the classical factor models. An additional assumption is on the factor loadings to avoid identification problems arising because of location shifts of the factor loading matrix (see Geweke and Zhou (1996)). The factor loading matrix is assumed to be of the following form: Λ=             λ11 0 0 . . . 0 λ21 λ22 0. . . 0 . . .. . .. . .. . .. . . λr1λr2λr3. . . λrr λr+1,1λr+1,2λr+1,3. . . λr+1,r . . .. . .. . .. . .. . . λN1λN2λN3. . . λNr             (5) where λii >0, i= 1, . . . , r. One can observe that the specification of the model in equation (2) implies that the unconditional distribution of the observable variable is yt i.i.d. ∼N(0,ΛΛ0+CΣC) (6) We denote the covariance matrix of the observables by Ωwhich is linked to the parameters by Ω=ΛΛ0+CΣC. 2.2 Prior Distributions The Bayesian method assigns uncertainty to the model parameters. Therefore parameters are assumed to be random variables in the Bayesian framework. Hence, prior distributions for the parameters, in addition to the data distribution, are defined in this subsection. 6 We consider a set of informative priors on the parameters of the model. Let Λ∗ i= (λi1, . . . , λii)for i= 1, . . . , r and Λ∗ i=Λifor i=r+1, . . . , N. Let λ= (Λ∗ 1, . . . , Λ∗ N)0 be the [(2N+1−r)r/2]×1 vector of nonnegative elements of Λ. We adopt the following class of priors on λ(or, equivalently Λ), Cand Σ: cii i.i.d. ∼HN(0, h−1 c), i = 1, . . . , N (7) λ∼N(λ,H−1 λ), λii >0, i = 1, . . . , r (8) νΣ−1∼W(IN, ν +N+ 1), ν > 2 (9) In the prior specification for C,HN denotes a normal distribution truncated below at 0 and hcis the precision hyperparameter. Prior for λis normal with mean λand positive definite precision matrix Hλ. In this prior setup, factor loadings are allowed to be correlated in the prior, which gives more flexibility and interaction between loadings. The constraint λii >0 is for identification purposes due to the structural form in (5). The covariance matrix Σis assumed to have a Wishart prior with the scale parameter ν, the identity scale matrix INand the degrees of freedom equal to the sum ν+N+1. The condition ν > 2 is derived from the restrictions of the Wishart distribution explained in Appendix A. How these prior specifications give us the flexibility to generalize the factor model is discussed in the next section. 2.3 Advantages of the Proposed Model Structure In this section, we provide several advantages of the proposed model structure given by (2)-(4) and (7)-(9), and show how this structure generalizes the classical factor model. Lawley and Maxwell (1971) and Timm (2002) can be referred to for detailed description of the classical factor models. The main problem with the generalization of the classical factor structure is the identification issue. Therefore we first clarify the concept of identification and the related problems in the generalized factor framework in order to understand how the proposed approach in this study uniquely identifies factors, factor loadings and other parameters of interest. Then we explain further advantages of the model to show the usefulness of the flexible structure of the model in generalization, model selection and empirical applications. Identification. Kadane (1974) provides that identification concept is a property of the likelihood function L(θ;Y) where, for example, θ= (Λ,C,Σ) in our case and, hence, is the same in both Bayesian and non-Bayesian analysis. Therefore the solution to the identification problem requires more information; however, this is usually not an additional data information but a non-data information. Although there is a consensus that the concept of identification and the solution requirement are the same whether a Bayesian or a non-Bayesian framework is considered, approaches to introduce additional 7 information to achieve the identification differ from one another. As Poirier (1998) indicated, if a proper prior is specified on all the parameters, a Bayesian analysis of a nonidentified model is always possible. The reader can refer to Poirier (1998) for more demonstrations and further discussions of the identification issue. On the other hand, a non-Bayesian approach requires additional restrictions and assumptions on the unknown parameters until they are identified. Now we can specifically analyze the identification problem in the generalization of the factor structure. Let Φrepresent the idiosyncratic variance-covariance matrix in a generalized factor model –for example, Φis equal to CΣC in our model– in order that Φis some N×Npositive definite symmetric matrix and the variance-covariance matrix of the observables density is Ω=ΛΛ0+Φ. Then the likelihood is L(Ω;Y) or equivalently L((Λ,Φ); Y). The data would determine only the covariance matrix Ω; however, Λand Φwould not be identified because the right hand side of Ω=ΛΛ0+Φ has (N2+3N+2r)/2 unknowns, whereas the left hand side has (N2+N)/2 determined distinct elements. So there is clearly an identification problem. Proposing a Bayesian approach, we solve the identification problem by introducing the information through prior densities. We introduce proper priors for the model parameters (Λ,C,Σ). This leads to proper posteriors and ensures the existence of posterior moments such as posterior means and posterior medians for all the parameters. In addition, we need the assumption that Λbe of full column rank rto avoid identification problems arising through invariance of the model under location shifts of the factor loading matrix. Factors and factor loadings should be invariant under linear transformations. On this issue, following the setup used in the literature such as Aguilar and West (2000) and Geweke and Zhou (1996), we adopt the structural constraint of the form given in expression (5). This guarantees that Λis of full column rank r. This structural form will ensure the invariance of the component ΛΛ0and uniquely identify the factors and loadings. This is just a technical model identification. It has no impact on the estimates of the observable variances, covariances, or their decompositions. Flexibility of the Model and the Generalization Issue. After studying the identification problem, our next issue is to give a full analysis of the prior beliefs that have significant role on the generalization of the classical factor model. Normal prior on Λis a standard prior assumption for the coefficients. The critical part of the model setup is the construction of the covariation attributed to idiosyncratic factors; that is, the covariance matrix of the idiosyncratic components CΣC and the prior beliefs on the parameters of this covariance structure. This part requires particular attention since it characterizes the generalization of the classical factor analysis. What are the implications of the structural form of the idiosyncratic covariance matrix CΣC for the generalization? What do the priors associated with this covariance structure, specifically priors on Cand Σ, imply for this task? Now we will discuss this important 8 feature of the model. First of all, a nice feature of the generalized model is that if Σ=IN, then the factor model defined in (2), (3) and (4) fall into the classical factor modeling where idiosyncratic components are cross-sectionally uncorrelated. In this special case, the variance-covariance matrix of the observables is Ω=ΛΛ0+CC. In the proposed model setup, νis the key parameter to determine the amount of idiosyncratic cross-sectional correlation. In addition to the structural form CΣC, having νin front of Σ, setting the degrees of freedom equal to ν+N+ 1 and also setting the scale matrix equal to INin the prior provide three advantages. First, the size of the scale parameter νgives us the flexibility to set the level of idiosyncratic correlations. As νincreases [decreases], Σgets tightened [loosened] up at around the scale matrix IN. At the extreme case, Σp →IN as ν→ ∞; this leads us to the classical factor model. The algebraic derivation of this idea is available in Appendix A. Second, as νchanges, only variances and covariances of the elements of Σchange whereas the mean of Σis kept the same. This is what we desired because we just intend to investigate how the parameter estimates change with different levels of idiosyncratic correlations. We just do not want mean shifts; therefore Σis centered at INfor any value of ν. This is also demonstrated in Appendix A. Third, as Nchanges, neither variances and covariances nor the mean changes in the prior belief, technical details of which are provided in Appendix A. So the prior beliefs are the same whether we include additional observable variables in the model or not. On the other hand, the diagonal matrix Cin the covariance structure is a technical part to handle the estimation of idiosyncratic variance-covariance matrix CΣC as the estimate of Σchanges due to a change in the size of ν. For example, when νis sufficiently large, Σis almost equal to the identity matrix. In this case, idiosyncratic standard deviations are estimated by diagonal elements of C. Hence, Cdisplays as a scaling depending on whether Σhas a loose or tight prior. The major technical contribution of this paper is the specification characterized by the covariance structure CΣC and the priors in (7) and (9). This is a unique specification that can be used to determine the covariance and correlation structures between idiosyncratic components in factor analysis or between error terms in linear models. Model Selection. Another advantage of the proposed model structure is about the model selection. We use Bayes factors to choose the model that best explain the correlation structure of the data, which is a model comparison between a “more” classical model and a “more” generalized model. The calculation of the Bayes factor for model selection in this study is quite straightforward because different factor models are characterized by the priors, (7)-(9), rather than the body of the model, (2). This idea is explained in detail in section 5. 9 and financial applications is future research interest. 5 Model Comparison The purpose of this section is two-fold: First, we want to propose a methodology to select the generalized factor model that best explains the given data. We wish to do a formal model comparison between different specifications of the generalized factor structure, including the classical factor structure. We use Bayes factors to choose the model that best fits the data. The calculation of the Bayes factor for model selection in this study simplifies substantially because different factor models are characterized by different prior beliefs rather than the body of the model in (2). Second, we want to run a comparative analysis between models. We show that the data favor a generalized factor model over a classical factor model unless a significant amount of each covariation within the data is explained by the common factors. Moreover, we study the implications of the selected model setup for the structures of the covariance and correlation matrices. Each specification of the model is characterized by the choice of the scale parameter ν. So selection of the model for the true characterization of the data is determined by selection of the scale parameter. This analysis also provides an answer to the problem of model comparison between the classical and generalized framework. The prior hyperparameters for the posterior simulation analysis are given in section 4.2. Bayesian model selection proceeds by pairwise comparison of the models through their Bayes factors. A nice feature of the proposed model setup is that the computation of the Bayes factor simplifies substantially since any pair of models have the same conditional probability densities of observables but have different prior densities. The derivation of the Bayes factor is available in Appendix B. The resulting Bayes factor for a pair of models is BFo=E{p(Σ|ν1) p(Σ|ν2)|Y, ν2}(15) where p(Σ|ν1) and p(Σ|ν1) are prior densities for the models with scale parameters ν1and ν2, respectively. Let {Σ(m)}M m=1 be the output from the posterior simulator p(Σ|Y, ν2). Then, the Bayes factor can be approximated consistently by BF =1 M M X m=1 p(Σ(m)|ν1) p(Σ(m)|ν2)(16) under the conditions that posterior moment in expression (15) be well defined and finite, and the ratios of prior densities p(Σ|ν1) p(Σ|ν2)be bounded in the parameter space 16 of ν2(Geweke (2005)). Data favors the model characterized by the parameter ν1if BF > 1 whereas it favors the model characterized by the parameter ν2if BF < 1. It is essential that the model characterized by the parameter ν2be more diffuse (less restrictive); hence we must have ν2< ν1. Another important point, however, is that we are not able to compute the Bayes factor consistently if ν2is a lot smaller than ν1 because we lose the numerical efficiency as the difference between these two numbers grows substantially. For example, we can hardly compare a model with ν2= 10 and a model with ν1= 400. In section 5.1, we run an experiment using the simulated data to implement and illustrate the model selection method. In section 5.2, we explore the empirical implications of the model selection for the foreign exchange rate data and study the structures of the covariance and correlation matrices implied by the generalized factor model. 5.1 Results with Simulated Data We build a pseudo-true model and study the implications of the model selection procedure in the light of the simulated data from this model. We construct the pseudo-true model with N= 7, T= 60 and r= 2 and Σ=IN. To determine the model parameters Λand C, we draw them from their priors given the values of the hyperparameters in section 4.2. Under these specifications, the data are generated according to the expressions (2), (3) and (4). This two-factor model is the “true model” to be estimated by the generalized factor model. Observe that all the covariations are driven by two common factors in this simulation study. We next apply the generalized factor model to the simulated data. Using the MCMC output {Σm}M m=1 from the generalized factor model with r= 1, r= 2 and r= 3, we compute the Bayes factors. Bayes factors for various pairs of models conditional on one factor, two factors and three factors are presented in Tables 9, 10 and 11, respectively. The models compared using the Bayes factor are pairwise listed in the first two columns. The first column represents the model characterized by ν1and the second column displays the model characterized by ν2in equation (16). Using Bayes factors, we can select the best generalized factor model for a given number of factors. Assuming a one-factor model (Table 9), marginal likelihood rises sharply until ν1= 7. Then it drops slowly afterwards and become flatter as the model approaches a classical model. The shape of the log marginal likelihood function is depicted in Figure 2, which has the mode at ν1= 7. Hence the model characterized by the scale parameter ν1= 7 is chosen under the framework of a one-factor model. So idiosyncratic factors are not orthogonal and some covariations are not explained by the common factor. This is no surprise because our “true model” is a two-factor model with orthogonal idiosyncratic 17 components. Then we try the two-factor and three-factor model. With the two-factor model whose results are reported in Table 10, the marginal likelihood increases until the model completely converges to the classical factor setup. This picture is depicted in Figure 3. The three-factor model (Table 11) has the same picture as the two-factor model. The only difference is that the log marginal likelihood function (Figure 4) is flatter for the three-factor model. So the log marginal likelihood favors the two-factor model which is the “true model”. After this verification and illustration of the model selection methodology, now we can apply the model to the foreign exchange rates data. 5.2 Empirical Results The generalized factor model is applied to the foreign exchange rates data in order to explore the empirical implications of the proposed model setup. As in the simulated data analysis, we show how to choose the generalized factor structure that best characterize the data and study the implications of the model for the structures of the covariance and correlation matrices. Bayes factors for the models with one factor, two factors and three factors are reported in Tables 12, 13 and 14, respectively. Pairs of models compared using the Bayes factor in (16) are listed in the first two columns and their corresponding Bayes factors are given in the third column. NSEs are also reported in each table. From Table 12, one can clearly see that the marginal likelihood increases steeply until ν1= 12 and then falls gradually afterwards. Hence the log marginal likelihood function have a picture as graphed in Figure 5. The mode is at ν1= 12. Therefore we can conclude that the best model specification is at ν1= 12 for a one-factor model. Table 13 shows that, with two factors, the more restrictive the model is, the higher the log marginal likelihood is. The graph of the log marginal likelihood should be like the one depicted in Figure 6. Thus the data favors the restrictive model with a diagonal idiosyncratic covariance matrix. Results for a three-factor model in Table 14 are quite similar to those for the two-factor model. Bayes factors favor the restricted model again but now the log marginal likelihood function, displayed in Figure 7, is flatter than the one for the two-factor model. These results are almost the same as the ones derived using the simulated data in the previous section. Only the one-factor model requires a loose Σ, hence favors a less restrictive model. Thus from the analysis of log marginal likelihoods we conclude that two factor model is chosen for the foreign exchange rates since the intuitive idea behind the factor analysis is to explain the covariation between observed variables with the minimum number of factors. 18 With two and three factors, the best model is characterized by a quite large hyperparameter ν. Therefore the idiosyncratic factors for these models are orthogonal, which implies a generalized factor model equivalent to a classical factor model. However, with a one-factor model the idiosyncratic factors are not orthogonal but correlated. For this model, the proposed structure allows us to analyze the patterns of covariance and correlation that are not driven through the dynamics of the common factor. Tables 15 and 16 show that these patterns of covariation left unexplained by the common factor are significant amount. For example, much of the covariation between the Australian Dollar and the Canadian Dollar are determined by the idiosyncratic factor but not the common factor. This may not be surprising because the common factor is almost a “Euro factor”. We can summarize this section in three parts. As a first result, we show how to choose the best generalized factor model in financial and economic applications. Second, for any given number of factors, we are able to select the model that best characterize the idiosyncratic component as well as the common component of the covariance and correlation matrices. This allows us to study the patterns of covariations within a data set. Third, even in a factor model where the computation of the marginal likelihood to determine the number of factors is complicated, as in this model, we can still make inferences about the number factors that best characterize the data. 6 Concluding Remarks In this study, we describe and implement a Bayesian approach for generalized factor models in which idiosyncratic factors can be correlated and identification does not require any restrictions neither on cross-sectional dimensions nor on time dimensions. We also propose a methodology to choose the generalized factor model that best describe the factor structure of a given data set. This model selection methodology is specific to factor analysis questions; however, it is more efficient –in terms of time cost, analytical derivations and computational effort– to employ this method than the marginal likelihood method. For the convenience of many repeated experiments and simulations for this study, the model is applied for the analysis of a small cross-sectional data set but it can be used for large data analysis as well. Applying the model to the foreign exchange rate data, we discuss whether the generalization of the classical factor model makes any changes in the estimates for the functions of factor loadings and factors, and evaluate the controversial assumption of no cross-sectional correlation between idiosyncratic factors. We find that when there is a shift from classical to generalized model, there are significant changes in the estimates of correlation structure while we find less dramatic changes in the estimates of the 19 factor loadings and variation attributed to common factors. This study can initiate possible further research projects that can be based on the idea of generalization. The model and the ideas in this paper can lead to several empirical and technical extensions. First, the current paper presents the statistical differences between the outputs of generalized and classical factor models. However, an interesting empirical question will be to study the differences these models will make in economic and financial applications. Second, the generalized factor models are relatively new ideas. Therefore their applications in empirical problems are just expanding recently. Pattern analysis of covariances and correlations –for example, patterns of covariations in bank default rates or international markets– are just some possible empirical applications. Third, the generalized factor model for serially correlated data can be a major extension of this project. Forth, the proposed model selection approach is relatively an efficient method; however, a development of a model with hierarchical structure may improve the efficiency, which is an on-going research project. 20 References Aguilar, O. and M. West, (2000), “Bayesian dynamic factor models and portfolio allocation,” Journal of Business and Economic Statistics, 18, 338. Bai, J., (2003), “Inferential theory for factor models of large dimensions,” Econometrica, 71, 135-171. Bai, J. and S. Ng, (2002), “Determining the number of factors in approximate factor models,” Econometrica, 70, 191-221. Boivin, J. and S. Ng, (2006), “Are more data always better for factor analysis,” Journal of Econometrics, 132, 169-194. Chamberlain, G. and M. Rothschild, (1983), “Arbitrage, factor structure, and meanvariance analysis on large asset markets,” Econometrica, 51, 1305-1324. Forni, M., Hallin, M., Lippi, M. and L. Reichlin, (2000), “The generalized dynamicfactor model: Identification and estimation,” Review of Economics and Statistics, 82, 540-554. Forni, M., Hallin, M., Lippi, M. and L. Reichlin, (2004), “The generalized dynamicfactor model: Consistency and Rates,” Journal of Econometrics, 119, 231-255. Forni, M. and L. Lippi, (2001), “The generalized dynamic factor model: Representation Theory,” Econometric Theory, 17, 1113-1141. Geweke, J. (1977), “The dynamic factor analysis of economic time series,” in D.J. Aigner and A.S. Goldberger eds. Latent Variables in Socio-Economic Models, Amsterdam: North Holland Publishing, Chapter 19. Geweke, J. (2004), “Getting it right: Joint distribution tests of posterior simulators,” Journal of the American Statistical Association, 99, 799-804. Geweke, J. (2005), Contemporary Bayesian Econometrics and Statistics, John Wiley and Sons. Geweke, J. and K. J. Singleton, (1981), “Interpreting the likelihood ratio statistic in factor models when sample size is small,” Journal of the American Statistical Association, 75, 133-137. 21 Geweke, J. and G. Zhou, (1996), “Measuring the pricing error of the arbitrage pricing theory,” The Review of Financial Studies, 9, 557-587. Kadane, J. B., (1974), “The Role of identification in Bayesian theory,” In S.E. Fienberg and A. Zellner (eds.), Studies in Bayesian Econometrics and Statistics, 175- 191. Amsterdam: North Holland. Kose, M. A., Otrok C. and C. H. Whiteman, (2003), “International business cycles: World, region, and country-specific factors,” The American Economic Review, 93, 1216. Lawley, D. N. and A. E. Maxwell, (1971), Factor Analysis as a Statistical Method, American Elsevier Publishing: New York. Poirier, D. J., (1998), “Revising Beliefs in Non-identified Models,” Econometric Theory, 14, 483-509. Ross, S. A., (1976), “The arbitrage theory of capital asset pricing,” Journal of Economic Theory, 13, 341-360. Sargent, T. J. and C. Sims, (1977), “Business cycle modeling without pretending to have too much a priori economic theory,” In New methods in business cycle research, ed. Christopher A. Sims. Minneapolis: Federal Reserve Bank of Minneapolis. Stock, J. H. and M. W. Watson, (1990), “Business cycle properties of selected U.S. economic time series,” Working Paper no.3376, Cambridge, Mass.: NBER, June. Stock, J. H. and M. W. Watson, (1998), “Diffusion indexes,” NBER working paper, No. 6702. Stock, J. H. and M. W. Watson, (2002), “Macroeconomic forecasting using diffusion indexes,” Journal of Business and Economic Statistics, 20, 147-162. Timm, N. H. (2002), Applied Multivariate Analysis, Springer, pp.496-511. Tong, Y. (2006), “Dynamic factors and the source of momentum profits ,” Journal of Business and Economic Statistics, forthcoming. 22 Appendix A Analysis of the Prior For Variance-Covariance Matrix Let Ube N×Nsymmetric and positive definite matrix. If Ufollows an inverted Wishart distribution with scale matrix Gand degrees of freedom v, that is, U∼ IW (G, v), then first and second moments are given by E(U) = G v−2N−2, v −2N−2>0 V ar(uij) = giigjj +(v−2N) (v−2N−2)g2 ij (v−2N−1)(v−2N−2)(v−2N−4), v −2N−4>0 Cov(uij , ukl) = 2 (v−2N−2)gijgkl +gikgjl +gilgkj (v−2N−1)(v−2N−2)(v−2N−4), v −2N−4>0 for all i, j, k, l and G= (gij ). In the prior specification of Σ,νΣ−1∼W(IN, ν +N+ 1) implies that 1 νΣ∼ IW (IN, ν + 2N+ 2). Hence, with v=ν+ 2N+ 2 and G=IN, we have ν > 2 and following prior moments E(Σ) = IN V ar(σii) = 2 ν−2 V ar(σij) = ν (ν+ 1)(ν−2) for i6=jand Σ= (σij). Variances go to zero as νincreases and converge to infinity as νapproaches to 2. Hence variances are monotone decreasing functions of ν. Similarly one can straightforwardly show that these are true for covariances as well. B Derivation of the Bayes Factor Using Bayes factors, we compare two (generalized) factor models to choose the one that better characterizes the data. Each specification of the model is represented by the choice of the scale parameter ν. Let ν1and ν2represent the two competing models, say model 1 and model 2. In the model setup of this paper, these models share the 23 same conditional probability densities of observables but have different prior densities. Therefore the computation of the Bayes factor simplifies substantially. Let δ= (C,λ,Σ,F) be the set of model parameters and latent factors. Let also ∆1 and ∆2be parameter spaces for models 1 and 2, respectively. Then the Bayes factor in favor of model 1 is BFo=Z∆1 p(Σ|ν1)p(C)p(λ)p(F)p(Y|C,λ,Σ,F)dδ Z∆2 p(Σ|ν2)p(C)p(λ)p(F)p(Y|C,λ,Σ,F)dδ =Z∆1 [p(Σ|ν1)/p(Σ|ν2)]p(Σ|ν2)p(C)p(λ)p(F)p(Y|C,λ,Σ,F)dδ Z∆2 p(Σ|ν2)p(C)p(λ)p(F)p(Y|C,λ,Σ,F)dδ =Z∆2 p(Σ|ν1) p(Σ|ν2) p(Σ,C,λ,F,Y|ν2) p(Y|ν2)dδ =E{p(Σ|ν1) p(Σ|ν2)|Y, ν2} The condition ∆1⊆∆2should be satisfied for the validity of the derivation above. 24 0 20 40 60 −2 −1 0 1 2 3 t (month) (a) factor 0 20 40 60 −2 −1 0 1 2 3(b) t (month) factor 0 20 40 60 −2 −1 0 1 2 3(c) t (month) factor 0 20 40 60 −2 −1 0 1 2 3(d) t (month) factor Figure 1: Factor estimates over time for four values of the scale parameter: (a) scale parameter=5, (b) scale parameter=10, (c) scale parameter=100 and (d) scale parameter=500. 25 ν1ν2Mean NSE 6 5 1.4256 0.0675 11 10 1.1124 0.0263 12 11 1.0716 0.0180 13 12 0.9609 0.0126 21 20 0.9049 0.0081 101 100 0.9366 0.0010 501 500 0.9939 0.0002 Table 12: Estimates of the Bayes factor with r= 1 for forex data. Posterior mean and numerical standard error are reported. Number of iterations is 10000. 0 Log marginal likelihood Scale parameter12 Figure 5: The log marginal likelihood as a function of the scale parameter νfrom the one-factor model applied to forex data. ν1ν2Mean NSE 6 5 1.4564 0.0586 11 10 1.2221 0.0260 21 20 1.1226 0.0078 101 100 1.0087 0.0009 501 500 1.0003 0.0001 Table 13: Estimates of the Bayes factor with r= 2 for forex data. Posterior mean and numerical standard error are reported. Number of iterations is 10000. 0 Log marginal likelihood Scale parameter Figure 6: The log marginal likelihood as a function of the scale parameter νfrom the two-factor model applied to forex data. ν1ν2Mean NSE 6 5 1.2664 0.0359 11 10 1.1404 0.0240 21 20 1.0583 0.0068 101 100 1.0052 0.0008 501 500 1.0003 0.0001 Table 14: Estimates of the Bayes factor with r= 3 for simulated data. Posterior mean and numerical standard error are reported. Number of iterations is 10000. 0 Log marginal likelihood Scale parameter Figure 7: The log marginal likelihood as a function of the scale parameter νfrom the three-factor model applied to forex data. 32 Table 15: Unexplained covariance in one-factor model CURRENCY AUD CAD EUR CAD SEK CHF GBP AUD 7.1261 2.8770 0.1371 0.9934 1.0261 -0.9069 -0.0018 (0.0078) (0.0040) (0.0025) (0.0053) (0.0037) (0.0026) (0.0033) CAD 2.8770 3.0090 0.0846 0.3401 0.7198 -0.6279 -0.2431 (0.0040) (0.0032) (0.0016) (0.0034) (0.0023) (0.0018) (0.0022) EUR 0.1371 0.0846 0.1910 -0.0363 0.1126 0.0446 0.0408 (0.0025) (0.0016) (0.0012) (0.0014) (0.0014) (0.0008) (0.0009) JPY 0.9934 0.3401 -0.0363 7.6221 0.3861 0.0869 0.1506 (0.0053) (0.0034) (0.0014) (0.0084) (0.0030) (0.0021) (0.0033) SEK 1.0261 0.7198 0.1126 0.3861 2.0067 -0.2859 -0.0170 (0.0037) (0.0023) (0.0014) (0.0030) (0.0029) (0.0011) (0.0018) CHF -0.9069 -0.6279 0.0446 0.0869 -0.2859 0.8093 0.0386 (0.0026) (0.0018) (0.0008) (0.0021) (0.0011) (0.0018) (0.0012) GBP -0.0018 -0.2431 0.0408 0.1506 -0.0170 0.0386 2.7448 (0.0033) (0.0022) (0.0009) (0.0033) (0.0018) (0.0012) (0.0031) Patterns of covariance left unexplained by the one-factor model denoted by CΣC. Numerical standard errors are in the parenthesis. Number of iterations is 30000. 33 Table 16: Idiosyncratic correlations in one-factor model CURRENCY AUD CAD EUR JPY SEK CHF GBP AUD 1.0000 0.6190 0.2675 0.1494 0.2686 0.3852 0.1008 (0) (0.0004) (0.0010) (0.0006) (0.0007) (0.0008) (0.0004) CAD 0.6190 1.0000 0.2721 0.1112 0.2904 0.4063 0.1240 (0.0004) (0) (0.0010) (0.0005) (0.0007) (0.0008) (0.0005) EUR 0.2675 0.2721 1.0000 0.1757 0.2316 0.2325 0.1674 (0.0010) (0.0010) (0) (0.0008) (0.0009) (0.0010) (0.0007) JPY 0.1494 0.1112 0.1757 1.0000 0.1302 0.1193 0.0994 (0.0006) (0.0005) (0.0008) (0) (0.0005) (0.0005) (0.0004) SEK 0.2686 0.2904 0.2316 0.1302 1.0000 0.2490 0.1051 (0.0007) (0.0007) (0.0009) (0.0005) (0) (0.0008) (0.0005) CHF 0.3852 0.4063 0.2325 0.1193 0.2490 1.0000 0.1166 (0.0008) (0.0008) (0.0010) (0.0005) (0.0008) (0) (0.0005) GBP 0.1008 0.1240 0.1674 0.0994 0.1051 0.1166 1.0000 (0.0004) (0.0005) (0.0007) (0.0004) (0.0005) (0.0005) (0) Mean absolute idiosyncratic correlation coefficients for the one-factor model. Numerical standard errors are in the parenthesis. Number of iterations is 30000. 34