Abstract

This study utilized the empirical mode decomposition (EMD) technique and examined which group of investors based on their trading frequencies influence stock prices in Ghana. We applied this technique to a dataset of daily closing prices of GSE Financial Stock Index for the period 04/01/2011 to 28/08/2015. The daily closing prices were decomposed into six intrinsic mode functions (IMFs) and a residue. We used the hierarchical clustering method to reconstruct the IMFs into high frequency, low frequency, and trend components. Using statistical measures such as Pearson product moment correlation coefficient and the Kendall rank correlation, we found that the low frequency and trend components of stock prices are the main drivers of the GSE stock index. These low-frequency traders are the institutional investors. Therefore, stock prices on the GSE are affected by real economic growth but not short-lived market fluctuations.

1. Introduction

The analysis of financial time series remains a challenging task because of its extremely complex nonlinear and nonstationarity dynamic behaviour [1]. For stock market prices, several factors such as business cycle, government policies, types of investors, and firm-specific factors deepen its complexity [2]. The behaviour of stock prices to quickly discover market imperfections, exploited and corrected by market participant, makes use of conventional time-domain tools inappropriate in analyzing stock markets [3]. For example, the dynamic low-frequency traders like institutional and central banks bringing to the market price formation differ from high-frequency traders like speculators and market makers. This shows that price formation in the stock market is determined by the diverse traders with different trading frequencies. Consequently, some attractive characteristics may not be uncovered if stock prices are analyzed within the time-domain framework. Owing to these, a number of methods have been used in the analysis of stock prices, in general, ranging from linear and nonlinear methods in the frequency-domain [4, 5].

In an attempt to solve the problem of nonlinearity and nonstationary in time series data, Huang et al. [6] proposed a time-frequency method named Hilbert–Huang transform (HHT) which is popular in signal analysis [7, 8]. The technique works through performing a time adaptive decomposition operation named empirical mode decomposition (EMD) on the signal, and then the signal will be decomposed into a set of complete and almost orthogonal components named intrinsic mode function (IMF), which is almost monocomponent. It has been increasingly recognized as an effective analysis model in financial time series. The application of EMD has already been explored in the analysis of economic and financial data. For instance, it has been applied in modelling crude oil price [911], exchange rate [1215], electricity price [16, 17], gold price [18, 19], and carbon price [20].

In contrast to previous methods such as wavelet analysis and spectrum analysis, EMD is intuitive, direct, posterior, and adaptive [21]. The EMD can be used to decompose a series into a finite and often small number of intrinsic mode functions (IMFs) [6].

Similar to EMD, wavelet has been used to study nonstationary signal analysis. Studies such as Tiwari et al. [22, 23]; Jammazi et al. [24]; Jiang et al. [25]; Ferrer et al. [26]; Yang et al. [27]; Wang et al. [28]; Boubaker and Raza [29]; and Frimpong et al. [30] used wavelet-based methods to study the behaviour of financial variables such as oil prices, exchange rates, inflation, and stock prices at different frequencies. However, wavelet has certain drawbacks which EMDs can easily overcome. For instance, wavelet analysis restricts one from selecting an objective wavelet function from a set of wavelet functions. In a wavelet, choosing the basis function and decomposition levels is subjective, and this may lead to the extraction of false cycles forming the time series [31, 32]. EMD nevertheless does not require a subjective test since the decomposition is based on the local characteristic time scale of the data. However, EMD has not been widely used in the analysis of stock prices. Some of the recent studies which have used EMDs in analyzing stock prices are [21, 3335].

In this paper, we apply EMD in time-frequency analysis for GSE index for the period from 04/01/2011 to 28/08/2015. The main objective of this study is to determine which group of investors based on their trading frequencies influence stock prices in Ghana.

It remains imperative to detect the frequencies that have a significant impact on stock prices. Generally, the stock market reflects the economic conditions of an economy. In a growing economy, there is an increase in output leading to firms experiencing high profitability. These higher profits make shares of companies more attractive because they are able to pay higher dividends to shareholders. A long period of economic growth tends to benefit shareholders.

This study is innovative in the sense that it investigates the group of investors that drive stock prices on the Ghana stock exchange using the empirical mode decomposition (EMD). The following contributions are also made to the literature. First, it provides a detailed analysis of the use of EMD to decompose the stock price into several IMFs and one residue.

Second, these IMFs and the residue are reconstructed into high frequency, low frequency, and trend components using the hierarchical clustering method. Different measures were then used to assess the importance of each frequency for the overall stock price series.

Finally, the economic significance of these components is identified as short-term fluctuations and long-term trend. If the effect of the low frequency or trend components of stock prices on the aggregate stock prices is dominant, it can be concluded that stock prices are driven by the real growth of the economy.

The remainder of the paper is structured as follows. Section 2 provides a brief description of the data. Section 3 describes the methodology. Section 4 contains the results of our analysis, and Section 5 concludes the paper.

2. Data

The data which were obtained from DataStream are the daily closing prices of the GSE Financial Stock (GSE-FSI) index coded in DataStream as GSEFSII (Price Index). The data period is between January 4, 2011, and August 28, 2015. The period of study was chosen because of data availability. The closing prices were transformed into returns which were calculated by taking the natural log first difference of prices.

3. Methodology

We follow Zhu et al. [20] in presenting the EMD algorithm. The EMD technique assumes that the stock prices of GSEFSII have many IMFs of different oscillations and that an IMF must satisfy two conditions according to Huang et al. [6] as follows:(i)An IMF has the same number of extremum and zero crossing or differs by one at the most(ii)An IMF is symmetric with the local zero mean(iii)To extract IMFs, EMD uses the following sifting process:(a)All the maxima and minima of the time series (stock prices of GSEFSII) denoted were identified(b)Next, we generated upper and lower envelopes and using cubic spline interpolation(c)The point-by-point mean denoted were calculated from the upper and lower envelopes as(d)The mean was extracted from and we defined the difference between and as . Thus .(e)The properties of were checked. If was found to be an IMF, we denoted as the IMF and replaced with the residue; . The IMF is often denoted as where is its index. However, if was not an IMF, was replaced with .

Steps (a)–(e) were repeated until the residue satisfied some stopping criteria. See Zhu et al. [20] for more on the stopping criteria.

Therefore, the stock price can be expressed as the sum of IMFs and a residue. This can be mathematically represented aswhere is the number of IMFs, is the final residue, and is the IMF.

4. Results and Discussion

A plot of the natural logarithmic values of the daily closing prices of GSEFSII for the period from 04/1/2011 to 28/08/2015 is shown in Figure 1. Using the empirical mode decomposition (EMD) method, the natural logarithmic values of the prices were decomposed into six different frequencies called the intrinsic mode functions (IMFs) and one residue. The IMFs as plotted in Figure 2 are arranged from high to low frequencies.

Next, the IMFs are analyzed using the following measures: first, we recorded the mean period of each IMF. The mean period is measured as the length of an IMF divided by the number of peaks.

Subsequently, the Pearson product moment correlation coefficient and the Kendall rank correlation coefficient were used to measure correlations between each IMF (residue) and the observed stock prices.

Finally, in order to explain the movement of each IMF (residue) to the total movement of stock prices, we computed the variance and variance percentage of each IMF (residue). The results obtained for each of these measures are presented in Table 1.

We observed from Table 1 that, the residue which is known as the deterministic long-term trend by Huang et al. [6] was the dominant mode. It had the highest correlation coefficient with the observed prices of 0.9764 and 0.7769 for Pearson and Kendall correlation coefficients, respectively. The next was IMF6 with a mean period of 121.4. The residue contributed 94.9% of the total variation. For IMF1, IMF2, IMF3, IMF4, and IMF5, the values of the correlation coefficients were very low. These IMFs (IMF1–IMF5) only accounted for 1.39% of the total variation. This shows that the effect of (IMF1–IMF5) on stock prices was very low.

Next, following Zhu et al. [20], we used the hierarchical clustering and the Euclidean distance between pairs of any two IMFs or between an IMF and the residue to group the IMFs into three components. The clustering results are shown in Figure 3. When the Euclidean distance was less than 10, an IMF was classified as a high-frequency component, when the Euclidean distance was between 10 and 20, an IMF was classified as a low-frequency component, and an IMF with a Euclidean distance of more than 20 was classified as the trend component. Therefore, IMF1–IMF5 were grouped as high-frequency component, IMF6 as the low-frequency component, and the residue served as the trend component. A plot of the extracted components and their statistical measures are presented in Figure 4 and Table 2, respectively.

Each of the 3 components in Figure 4 had distinct features. The residue varied around the long-term trend slowly. The residue was as thus considered as the long-term trend of stock prices. The correlation between the trend and stock prices contributed to about 96% of the total variation of the stock prices. The trend affected the long-term movement of stock prices in the long-run.

The high-frequency component reflected the effect of short-term market fluctuations such as speculation. Market fluctuations were short-lived and had little effect on stock prices as observed from the mean periods and variance values from Table 1.

The low-frequency component such as excessive government spending and the global financial crisis affected stock prices. An upward or downward movement indicated the effects of significant trend break on stock prices. The effect lasted longer than investors anticipated as evidenced by the mean period and variance values in Table 2.

The low frequency and trend components contributed to about 99.7% of the total variation and hence were considered as the most important components of the stock prices. Thus, the Nigerian stock exchange has driven real growth of the economy but not short-lived market fluctuations. Our results confirm the findings obtained in studies by Tiwari et al. [23] and Heaton and Lucas [36].

5. Conclusion

The empirical mode decomposition (EMD) was used to decompose the natural logarithmic values of the daily closing prices of the GSE Financial Stock (GSE-FSI) index between 04/01/2011 and 28/08/2015 into six IMFs and a residue. Statistical measures such as the mean period, Pearson product moment correlation coefficient, and the Kendall rank correlation coefficient were used in assessing the effects of the IMFs and the residue on stock prices. The use of hierarchical clustering and Euclidean distance techniques helped us group IMFs and residue into high frequency, low frequency, and trend components. The trend and low-frequency components constituted about 99.7% of the total variation of the stock prices and were thus considered to affect stock prices than the high-frequency components.

We, therefore, conclude that stock prices on the Ghana stock exchange are affected by real economic growth but not short-lived market fluctuations.

Data Availability

The data used were obtained from Thomson Reuters DataStream.

Conflicts of Interest

The authors declare that they have no conflicts of interest.