scieee AI-readable full text Open interactive document viewer

Financial insights from the last few components of a stock market PCA

Yang, Libin,Rea, William,Rea, Alethea

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Yang, Libin; Rea, William; Rea, Alethea Article Financial insights from the last few components of a stock market PCA International Journal of Financial Studies Provided in Cooperation with: MDPI – Multidisciplinary Digital Publishing Institute, Basel Suggested Citation: Yang, Libin; Rea, William; Rea, Alethea (2017) : Financial insights from the last few components of a stock market PCA, International Journal of Financial Studies, ISSN 2227-7072, MDPI, Basel, Vol. 5, Iss. 3, pp. 1-12, https://doi.org/10.3390/ijfs5030015 This Version is available at: https://hdl.handle.net/10419/195650 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by/4.0/ International Journal of Financial Studies Article Financial Insights from the Last Few Components of a Stock Market PCA Libin Yang 1, William Rea 1,* and Alethea Rea 2 1Department of Economics and Finance, University of Canterbury, Private Bag 4800, Christchurch 8140, New Zealand; just−[email protected] 2Centre for Applied Statistics, University of Western Australia, 35 Stirling Hwy, Crawley 6009, Australia; [email protected] *Correspondence: [email protected]; Tel.: +64-021-106-8964 Academic Editor: Nicholas Apergis Received: 14 March 2017; Accepted: 12 July 2017; Published: 20 July 2017 Abstract: We show that the last few components in the principal component analysis of the correlation matrix of a group of stocks may contain useful financial insights by identifying highly correlated pairs or larger groups of stocks. The results of this type of analysis can easily be included in the information an investor uses to manage an investment portfolio. Keywords: principal component analysis; stock correlation; diversification; stock portfolios; ASX 200 JEL Classification: G11 1. Introduction In recent years, principal component analysis (PCA) has been widely applied to the study of financial markets. PCA (Jolliffe 1986) is a standard method in statistics for extracting an ordered set of uncorrelated sources of variation in a multivariate system, and is widely used as a dimension reduction method. The correlation matrix is computed from a finite sample, and it is well-understood that small sample effects increase the observed correlations. Thus, a PCA can be used to clean a correlation matrix by removing potentially spurious correlations which are only a consequence of sampling. PCA is an attractive method to apply, given that financial markets are typically characterised by a high degree of multicollinearity—implying that there are only a few independent sources of information in a market. Using random matrix theory (or, more specifically, the spectral decomposition theorem—see Jolliffe 1986, p. 13), many authorities have divided the eigenvectors into three distinct groups based on their eigenvalues. For example, Kim and Jeong (2005) decomposed a correlation matrix of 135 stocks which traded on the New York Stock Exchange (NYSE) into three parts: 1. The first principal component (PC1) with the largest eigenvalue which they asserted represents a market-wide effect that influences all stocks. 2. A variable number of principal components (PCs) following the market component which represent synchronized fluctuations affecting groups of stocks. 3. The remaining PCs indicate randomness in the price fluctuations. Authorities such as Driesson et al. (2003), Kim and Jeong (2005), Pérignon et al. (2007), Kritzman et al. (2011) ,Billio et al. (2012), and Zheng et al. (2012) all assumed without any real question that the PCs of interest were PC1 and—depending on the author’s purposes—some or all of the PCs in group (2) above. The PCs in group (3) above have the smallest eigenvalues, and hence the smallest amount of information; it is very likely that they only contain noise. As a consequence of this well-understood fact, it is likely that if a PCA of a stock market correlation matrix is carried out, the Int. J. Financial Stud. 2017,5, 15; doi:10.3390/ijfs5030015 www.mdpi.com/journal/ijfs Int. J. Financial Stud. 2017,5, 15 2 of 12 analyst or researcher will not bother to examine the high-numbered components because she or he believes that they contain nothing of interest. In this paper we show that the highest-numbered PCs may contain useful financial insights, while at the same time they may contain little or no information in the sense that that word is used in information science. We explain below how this apparent paradox arises—that a high-numbered PC can have little or no information yet there may still be useful financial insights to be gleaned from it. While relatively unknown (and hence unexploited in the finance literature), it is widely understood in the both the statistical and econometric literatures that within group (3) (the random or noise PCs), there may be two more sub-categories of PC—both of which may be of interest to a stock (or other financial) market analyst. The first is the detection of outlier variables (rather than outlier observations). It is well understood that the presence of an outlier in a sample may dramatically affect an analysis of that sample. In the context of a stock market, an outlier stock would be one which behaves in a manner unlike any other individual stock or group of stocks in that market. The identification of such a stock or stocks would potentially be of considerable interest. However, in the analysis of our data below, we did not find any PCs of this type, so we are unable to give any further guidance on how to interpret the presence of such a stock, should one or more be found. Consequently, will not pursue this further, but see Jolliffe (1986, chp. 10) for details on this type of PC and Hawkins (1980), Barnett and Lewis (1994), or Aggarwal (2013) for further discussion on outlier detection and analysis. The other type of PC is near-constant relationships between variables described in Jolliffe (1986, sct. 3.4) . It is somewhat counter-intuitive that a high-numbered PC—which by definition contains very little explanatory power—can identify a grouping of stocks or other financial assets which are of interest to a financial analyst or portfolio manager. To see how these are detected, consider two stocks which are highly correlated with each other. We will consider the final ( nth ) PC from the PCA, although as will be seen below, in our sample the last PC was not the only PC which detected stocks with a near-constant relationship. Assume the eigenvalue of the final principal component, PC n , is small and close to zero. This assumption can be justified on the basis that the final PC explains the least amount of variation within the sample and thus will be the PC with the eigenvalue closest to zero. The actual amount of variation explained by any given principal component is given by Variation Explained by Component j= λj ∑n i=1λi ×100 (1) where λi=Eigenvalue of Component i. The eigenvector of each principal component is a linear combination of all variables (Jolliffe 1986), which can be written as α0 nx= n ∑ i=1 αnixi(2) where α0 nx is the eigenvector of component n , and αni is the coefficient (or loading) of variable i (in our case stock i) in component k. For each principal component (for example, component n), n ∑ i=1 α2 ni =1. (3) If variables x1 and x2 are the two highly correlated variables (stocks) being detected in component n , these two variables will have large coefficients while the remainder of the variables will have near-zero coefficients (note that the variation associated with each of the highly correlated variables Int. J. Financial Stud. 2017,5, 15 3 of 12 and other variables in the data set will be captured in other principal components). Equation (3) can then be written α2 n1+α2 n2+ n ∑ i=3 α2 ni =1 (4) but where n ∑ i=3 α2 ni ≈0 (5) so that α2 n1+α2 n2≈1. (6) As a consequence, the closer αn1 and αn2 are in magnitude, the more correlated are the x1 and x2 variables (stocks). To see why such a principal component explains so little variation (and hence contains so little information in the technical sense), it is clear from Equation (5) that the contribution of variables 3 through n are negligible because their coefficients (loadings) are near zero. If x1 and x2 are highly positively correlated, then αn1 and αn2 in Equation (6) will have opposite signs so that variation in variable (stock) 1 is largely cancelled by variation in variable (stock) 2. If x1 and x2 are negatively correlated, the αn1 and αn2 will have the same sign. Again, however, the variation in x1 will be cancelled by variation in x2 . Thus, the manner in which the information has been eliminated from the PC to yield a small eigenvalue is of financial interest to us because it allows us to identify stocks with near-linear relationships, should such stocks exist. In this illustration, we have used two stocks; however, associations of larger groups may be found and in the results below, where we report larger associations. In these cases, Equations (4) and (6) need to be modified to increase the number of stocks with significant loadings. In any given market, such highly correlated assets may or may not exist. We argue that if a financial analyst or portfolio manager undertakes a PCA of a stock or other financial market as part of their routine analysis, then they should examine the last few components for the presence of highly correlated stocks. If they do exist, finding them is straight-forward, as we will show below and the implications for stock selection and portfolio management are easily understood. Using the information available in the PCA may mean the analyst could avoid using a separate clustering analysis (e.g., K -means) to identify these stocks (Ding and He 2004). However, there is no point in undertaking a PCA if the only goal is to identify highly correlated stocks, because there are much more computationally efficient methods of finding them. It is possible to automate this process of identifying highly correlated stocks in the process of portfolio selection and management; we gave details of this in an earlier paper (Yang et al. 2016). The remainder of this paper is structured as follows: Section 2describes the data and methods, Section 3presents our results, and Section 4concludes. 2. Data and Methods 2.1. Data Our research is based on the Australian market. The main index for the market is the ASX200, which is a market capitalization weighted index of the 200 largest shares by capitalization listed on the Australian Securities Exchange. The index in its current form was created on 31 March 2000. We investigated the constituents of the ASX200 index from inception to February 2014. The ASX200 index is a capitalization index, and so does not adjust for dividends. In our research, we calculated the returns for all constituents, which included the dividends paid. Int. J. Financial Stud. 2017,5, 15 4 of 12 There was a high frequency of stocks that were added to or deleted from the index over time, so we identified all stocks which had been in the ASX200 for the whole study period. After adjusting for mergers, acquisitions, and name changes, we obtained a final data set of 524 unique stocks. We obtained daily closing prices and dividends for each stock from the SIRCA database (http://www.sirca.org.au/). All the prices and dividends were adjusted to be based on the AUD. The return was calculated in the following steps: 1. We created a new variable associated with each stock called the Dividend Factor. We started with a factor of 1, and every time a dividend was paid we multiplied the Dividend Factor, Daily Dividend Factori(t) = (1 if no dividend 1+Di(t) Pi(t)if dividend ) Cumulative Dividend Factori(t) = t ∏ j=1 (Daily Dividend Factori(t)) where Di(t) is the dividend for stock i in time t , and Pi(t) is the price of stock i at time t in units of one trading day. 2. We adjusted the price series with the Cumulative Dividend Factor , the adjusted price was calculated by PNEWi(t) = Pi(t)×Cumulative Dividend Factori(t). 3. The return series for a given stock iwas calculated as Ri(t) = PNEWi(t+1)−PNEWi(t) PNEWi(t). (7) We extracted a set of stocks that had complete return information for the whole study period, and there were 156 such stocks. The remaining 368 stocks were either listed after April 2000 or delisted before February 2014. 2.2. Principal Component Analysis PCA can be applied to either a correlation matrix or a covariance matrix, but there are some problems associated with using a covariance matrix. If there are large differences between the variances of variables, then using a covariance matrix will result in low-numbered principal components being dominated by variables that have a large variance. All PCAs reported in this paper were carried out on correlation matrices generated from the return series. Correlation matrices and PCAs were were carried out using functions in R (R Core Team 2014). The PCs were not rotated. We note that rotation of PCs is common, but should not be carried out in this type of application. To determine whether any of the last few PCs provide evidence of either stocks with near-linear relationships or outlier stocks, we started at the last PC (PC 156) and worked towards the first until no further PCs of either type were found. To identify such PCs, we made scatter plots of the last few PCs using plotting functions in the graphics package in base R and examined them for near constant relationships. In the results below, we present the scatter plots starting with PC151/PC152, the lowest-numbered PCs which showed evidence of stocks with a near-linear relationship. There is a more general method of plotting PCs against each other known as biplots, see Jolliffe (1986, sct. 5.3) for further details. 3. Results In this section, we present some details on the eigenvalues of the last six PCs: , their values and variance explained in Table 1, scatter plots of their loadings in Figures 1,2, and 3, which successfully Int. J. Financial Stud. 2017,5, 15 5 of 12 picked up groups of stocks with highly correlated returns, together with time series plots of their adjusted price in Figures 4–8. As noted in Equation (6) , the αi values (loadings) of the highly correlated stocks will dominate the principal component and this can be visualised with a scatter plot. For our own reference, we made more scatter plots than are reported here. For the purpose of reporting, only the pairs which showed the behaviour of interest are reported. We start with principal components 151 and 152, which picked up three pairs of near-linear relationships and then discuss the “big four” banks and two mining firms. Each eigenvector is presented only once, as the vectors are dominated by just a handful of stocks. These six low-variance principal components detected stocks with high correlations. In some applications, the eigenvalues associated with the last few principal components are very close to zero. In our case, the eigenvalues of the last few principal components were small but clearly different from zero. Nevertheless, they still picked up near-linear relationships between some stocks—see Table 1for a list of their eigenvalues and percentage of variance explained. Table 1. Eigenvalues and variances explained by the last six principal components. The percent of variation explained was calculated using Equation (1). Eigenvalue Variance Explained (%) PC151 0.398 0.255% PC152 0.380 0.244% PC153 0.321 0.206% PC154 0.304 0.195% PC155 0.286 0.183% PC156 0.244 0.157% In Figure 1, we present scatter plots of PCs 151 and 152. BHP Billiton (BHP) and CFS Retail Property Trust Group (CFX) in the real estate industry (CFX changed its name to Novion Property Group after the close of the study period and now has the ticker symbol NVN) clearly form a pair, they have high loadings of opposite signs on PC151 but low loadings on PC152. Mirvac Group (MGR), Stockland (SGP), Santos Limited (STO) and Woodside Petroleum Limited (WPL) form a group of four and have high loadings on both PC151 and PC152. This group of four can be broken into two pairs based on the signs of their loadings in PC151 and PC152 : STO with WPL, and MGR with SGP. Both pairs of stocks are positively correlated (see Table 2), accounting for the loading having opposite signs in these PCs. Int. J. Financial Stud. 2017,5, 15 6 of 12 −0.4 −0.2 0.0 0.2 0.4 −0.4 −0.2 0.0 0.2 0.4 BHP CFX MGR SGP STO WPL Component 151 Component 152 Figure 1. Scatter plots of relative weights of each stock in components 151 and 152 arising from a principal components analysis (PCA) on a correlation matrix from the whole study period. The lines join the origin to the point representing the coefficient in the 151th eigenvalue (x-axis) and 152nd eigenvalue (y-axis). The stocks are colour-coded using the Industry Classification Benchmark Industry (ICB) classification. Financials are blue (33 stocks), Health Care are red (9 stocks), Industrials are yellow (24 stocks), Consumer Services are brown (19 stocks), Basic Materials are green (31 stocks), Oil & Gas are purple (16 stocks), Utilities are orange (5 stocks), Consumer Goods are black (9 stocks), Telecommunications are orchid (4 stocks), Technology are grey (6 stocks). Stocks with a loading of at least 0.2 in one of the PCs are labelled with their ticker symbol. From this scatterplot, we can conclude that there are six highly correlated stocks structured as three pairs: namely, STO and WPL, SGP and MGR, and BHP and CFX. Table 2. The correlations of stocks with near-linear relationships in principal components (PCs) 151, 152, and 155. See Figures 1and 3. Pair Correlation PCs MGR-SGP 0.71 151, 152 STO-WLP 0.95 151, 152 BHP-RIO 0.77 155 Curiously, the first pair of stocks are not in the same industry. BHP is in Basic Materials and CFX in the real estate industry. They tended to move in the same direction from the start of the study period until 2011. Their price trajectories then began to move in different directions after this time, as can be seen in Figure 4. The second pair—MGR and SGP—are both large diversified real estate groups. They had nearly the same stock price level in the beginning of 2000, and have diverged since then. The similarity in their price movements can be easily seen over short time frames, but over the longer term, their price level has diverged, as can be seen in Figure 5. The third pair of stocks are STO and WPL, which are in the Oil & Gas industry. Both companies explore for and produce oil and gas from onshore and offshore wells. The high correlations in their price movements over both the short- and long-term are clearly evident, as can be seen in Figure 6. The last four components (PC 153–156, Figures 2and 3) all picked up the four largest banks in Australia, often referred to as the “four pillars”; their ticker symbols are ANZ, CBA, NAB, and WBC. The strong relationships in price (and consequently returns) are easily seen in Figure 7; their correlations Int. J. Financial Stud. 2017,5, 15 7 of 12 are reported in Table 3. To help in visualizing the price co-movement of the four largest banks, we used a different scale for CBA. Its dividend-adjusted price changed from $20 in the beginning of our study period to approximately $150 at the end of study period, while the other three banks had price levels that ranged from $10 to $70. Obviously, NAB was least correlated with others among the four banks. However, after the 2008 financial crisis, all four banks converged to move very similarly. Table 3. Price correlation coefficients of the four largest banks. ANZ WBC CBA NAB ANZ 1 0.97 0.96 0.85 WBC 0.97 1 0.98 0.76 CBA 0.96 0.98 1 0.73 NAB 0.85 0.76 0.73 1 −0.6 −0.4 −0.2 0.0 0.2 0.4 −0.4 −0.2 0.0 0.2 0.4 0.6 ANZ CBA NAB WBC Component 153 Component 154 Figure 2. Scatter plots of relative weights of each stock in components 153 and 154 arising from a PCA on a correlation matrix from the whole study period. The lines join the origin to the point representing the coefficient in the 153rd eigenvalue (x-axis) and 154th eigenvalue (y-axis). The stocks are colour-coded using the colour scheme described in Figure 1. Stocks with a loading of at least 0.25 in one of the PCs are labelled with their ticker symbol. From this scatterplot, we can conclude that there are four highly correlated stocks structured as two pairs: namely, CBA (Commonwealth Bank of Australia) and ANZ (ANZ), and NAB (National Australia Bank) and WPC (Westpac). Int. J. Financial Stud. 2017,5, 15 8 of 12 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 −0.6 −0.4 −0.2 0.0 0.2 0.4 0.6 ANZ BHP CBA NAB RIO WBC Component 155 Component 156 Figure 3. Scatter plots of relative weights of each stock in components 155 and 156 arising from a PCA on a correlation matrix from the whole study period. The lines join the origin to the point representing the coefficient in the 155th eigenvalue (x-axis) and 156th eigenvalue (y-axis). The stocks are colour-coded using the colour scheme described in Figure 1. Stocks with a loading of at least 0.2 in one of the PCs are labelled with their ticker symbol. From this scatterplot, we can conclude that there are six highly correlated stocks structured as three pairs: namely, CBA and WBC, NAB and ANZ, and BHP and RIO. Adjusted Price Series for BHP and CFX 2000−04 2002−07 2004−11 2007−03 2009−07 2011−10 2014−02 1.0 1.5 2.0 2.5 3.0 CFX Price 0 20 40 60 80 100 BHP Price BHP CFX Figure 4. Time series plot of two stocks identified in the scatter plot of components 151 and 152: BHP-Billiton (BHP) in basic materials and CFS Retail Property Trust Group (CFX) in the real estate industry.