Next Article in Journal
Fuzzy Synchronization of Chaotic Systems with Hidden Attractors
Next Article in Special Issue
TMD Design by an Entropy Index for Seismic Control of Tall Shear-Bending Buildings
Previous Article in Journal
Implicit Solutions of the Electrical Impedance Tomography Inverse Problem in the Continuous Domain with Deep Neural Networks
Previous Article in Special Issue
Entropy as a Measure of Consistency in Software Architecture
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Entropic Approach for Pair Trading in PSX

Department of Economics, National University of Sciences & Technology, Islamabad 44000, Pakistan
*
Author to whom correspondence should be addressed.
Entropy 2023, 25(3), 494; https://doi.org/10.3390/e25030494
Submission received: 22 December 2022 / Revised: 9 February 2023 / Accepted: 14 February 2023 / Published: 13 March 2023
(This article belongs to the Special Issue Concepts of Entropy and Their Applications III)

Abstract

:
The perception in pair trading is to recognize that when two stocks move together, their prices will converge to a mean value in the future. However, finding the mean-reverted point at which the value of the pair will converge as well as the optimal boundaries of the trade is not easy, as uncertainty and model misspecifications may lead to losses. To cater to these problems, this study employed a novel entropic approach that utilizes entropy as a penalty function for the misspecification of the model. The use of entropy as a measure of risk in pair trading is a nascent idea, and this study utilized daily data for 64 companies listed on the PSX for the years 2017, 2018, and 2019 to compute their returns based on the entropic approach. The returns to these stocks were then evaluated and compared with the buy and hold strategy. The results show positive and significant returns from pair trading using an entropic approach. The entropic approach seems to have an edge to buy and hold, distance-based, and machine learning approaches in the context of the Pakistani market.

1. Introduction

According to quantitative models, pair trading involves a driving mechanism for mean reversions using a statistical arbitrage strategy. The perception is to recognize that when two stocks move together, their prices will converge to a mean value in the future [1]. Mean reversion allows traders to make a profit by matching a long position in one stock with an offsetting position in another stock [2]. Pair trading is an efficient method for the formation of portfolios or pair trading [3,4]; however, finding the accurate pairs and boundary points is not an easy task.
The profitability of pair trading decreased due to an increasing share of non-converging pairs [5]. To resolve the issue of non-converging pairs, several researchers contributed to the literature [6,7,8,9] and proposed cointegration as the most efficient solution for structuring pair trading [10].
After settling on how to find accurate pairs, the problem arose of how to find the mean-reverted point between them and how to identify the boundaries for when exactly the investors can buy or sell any asset. Yoshikawa [11] derived the entropy-based optimal boundary points for pair trading using Tokyo Stock Exchange 2015 data. The proposed approach for the optimal stopping problem is motivated by the work of Ekström et al. [12] and Suzuki [13]. This method is based on maximizing profit via pair trading and minimizing the relative entropy (risk). This is a robust method, as it directly tackles model misspecification [14] and provides a more persuasive solution. The choice of pairs is made through cointegration, the most effective way to identify stocks that move together [15]. Entropy has a wide application in finance as well [16,17,18].
In the context of Pakistan, there was a handful of studies conducted on pair trading [19,20], and interestingly, no one has yet considered the optimal stopping problem using stocks listed on the Pakistan Stock Exchange (PSX). This study employs the novel entropic approach proposed by Yoshikawa [11] to explore the optimal boundary points that yield the maximum profit for 64 companies listed on PSX for the period 2017–2019. The concept of maximizing the profit in pair trading based on relative entropy is a nascent idea in the literature, and this study is the first attempt in the context of Pakistan. The performance of this entropic approach is compared with the buy and hold strategy in terms of returns.

2. Data & Methodology

As mentioned in the last section, this study utilized the daily data for 64 companies listed on PSX for the years 2017, 2018, and 2019. These companies cover the major sectors, including cement, chemical, automobile assembler, food and personal care products, oil and gas marketing companies, oil and gas exploration companies, power generation and distribution, refinery, and pharmaceuticals. The firms’ selection criterion was based on year-wise price earnings ratios (PER); a firm with a PER lower than the sample median value was selected in the sample. The underlying idea is that the stock below the median PER is undervalued and signifies potential for higher returns [21,22]. The choice of pairs was made through Johansen cointegration, which is the most effective way to identify stocks that move together [15]. In each year, we formulated all pairs ( ( n 2 n ) / 2 ) of the selected stocks and assessed each pair for cointegration.
Keeping in view the potential jumps/structural breaks in high-frequency financial data [23], the following breakpoint unit root test proposed by Bai and Perron [24] was employed.
Δ y t = α 0 + α 1 t + δ y t 1 + i = 1 p β i Δ y t i + μ t
where μ t is white noise.

3. Ornstein–Uhlenbeck (OU) Process

Pair trading utilizes the mean reversion of the composite process of two stocks. Following Yoshikawa [11], we considered the Ornstein-Uhlenbeck (OU) process X t such that
d X t = μ ( X t α ) d t + σ d B t ,   X 0 = α
where μ and σ are the positive constants, α is the mean-reversion point, and B t is the p-Brownian motion. Let X t α = X ˇ t . Then, Equation (2) implies:
d X ˇ t = μ X ˇ t d t + σ d B t ,   X ˇ 0 = 0
The optimal stopping problem at time t for the process X ˇ t is defined as follows:
v 0 ( t ,   x ) = E x ˇ S τ ϵ S U P   [ e ρ ( τ t ) X ˇ τ ]
where is the set of all stopping points of B, and ρ is the discount rate. The solution of Equation (4) gives us the trading strategy: we short pair X when it attains the highest value and liquidate it when X attains zero value. These values are specified by the above equation. Alternatively, we take the long position for X for zero value and liquidate it for the highest value. The superscript S in Equation (4) is the solution to the following:
I n f s ϵ   { E   x ˇ S [ e ρ ( τ t ) X ˇ τ ] + λ e ρ ( τ t ) H x ˇ   [ S | P ] }
where λ is a positive constant and H(.) is a relative entropy defined as follows:
H x ˇ = { E x ˇ S [ ln ( d S d P ) ,   S ϵ ,   o t h e r w i s e
Thus, the optimal boundary b(t) for Equation (4) is given as:
ln ( b ( t ) ) + 1 σ 2 ρ ρ μ ( g ( t ) b ( t ) ) 2 = ln ( b * ) + 1 σ 2 ρ ρ μ ( b * ) 2
where g ( t ) = σ 2 λ t e μ t   &   b ( 0 ) = b * . Any investor holding pair X should liquidate when X touches b(t) and, if not holding X, should short their position when X touches b(t) and liquidate it when it reverts to mean zero.

4. Results and Discussion

From the eight selected sectors, we found 64 active firms listed on PSX for the years 2017, 2018, and 2019. After applying the PER benchmark, we got 33, 34, and 40 companies, respectively. Having selected the companies, the unit root test was applied to the time series data of these stocks to find the order of integration. All the time series are integrated of order one. This led us to find the cointegrated pairs using the Johansen cointegration test at 0.05 level of significance. We found 79 = (28 + 29 + 23 = 80 − 1) unique cointegrated pairs (one pair was repeated) out of 1869 = (528 + 561 + 780) pairs of the selected stocks in the 3-year period.
Having found the pairs, we applied the maximum likelihood method to find the parameters of the Ornstein–Uhlenbeck processes, μ ,   α , and σ , as given in Equation (2). MATLAB R2021b was used for the coding and estimation of these parameters. However, to compute the optimal boundary points, we needed to find the parameters ρ and λ as well. The parameter ρ is the discount rate, and the parameter λ represents the level of confidence. The lower the value of λ , the lower the confidence of the agent on the reference measure as a true probability measure among the class of all probability measures and vice versa. We used ρ = 0.08978 ,   0.1315 ,   and   0.1440 as per the annual report of State Bank of Pakistan for 2017, 2018, and 2019, respectively, and by following Yoshikawa [11], four cases for the parameter, λ = 0.001 ,   0.01 ,   0.1 , and were considered. Table 1 and Table 2 present the results for only five pairs of stocks in each year involving the top listed companies (see Appendix A, Table A1, Table A2, Table A3, Table A4, Table A5, Table A6 and Table A7 for the results of other companies). After computing the values of μ ,   α , and σ as furnished in Table 1, we estimated the rate of returns for different values of λ for the selected companies (Table 2). On balance, pair trading yielded optimal returns for lower values of λ s , which is understandable, as the parameter lambda is linked with the penalty function. All the estimated parameter values are presented in Figure 1, Figure 2 and Figure 3 and in Table 2 for their respective years. From these figures, it Is evident that the values of the mean reversion parameter differ when the stocks in the pair are selected within the sector in comparison to when the stocks are selected across the sectors.
For the real data sets, the pair trading strategy was to set the position when the pair value touches either the mean reverted point or the boundary. For example, in Figure 1 (pair: PSO and MPLF), the mean reversion point was 60.29 where we set the position, and we liquidated the position when the pair value touched the boundary b(t). If the position was set when the pair value touches the boundary, then it was liquidated when it touched the mean reversion point α . In Figure 2 (pair: PSO and BYCO), if we set our position when the pair value touched the boundary then we would liquidate at the mean reversion point, α = 9.26. The next position was set when the pair value touched either the boundary b(t) or the mean reversion point α and liquidated following the same rule.
Following this trading strategy, we estimated the rate of returns for the 80 unique pairs of the companies for the years 2017, 2018, and 2019. Gatev et al. [6] highlighted the transaction fee as an obstacle in trading. Because the transaction cost in the Pakistan Stock Exchange is 0.15 percent and we are dealing with pair trading, we discounted our return values by 0.3 percent. Table 2 provides these return values for five pairs from each year. The return values ranged from 0.2 to 25.2 percent for the year 2017, 0.4 to 19.5 percent for the year 2018, and 1.5 to 15.7 percent for the year 2019. All positive returns confirm profitable trades, which is line with the findings in the literature [1,11]. For all cointegrated pairs (Appendix A), average return values ranged from 2.9% to 18.5% which are much higher than the return values estimated in [25], which ranged from 0.1% to 1.71% using the distance-based approach for the stocks listed on the PSX during the period 2009–2016. Shaukat et al. (2021) employed the distance-based method to select the pairs and compute returns to pair trading for financial (banks) and non-financial (cement industries) sectors with a formation period of 12 months. Cement industries yielded higher returns, whereas the banks yielded lower returns. Sohail et al. [20] estimated the return on pair trading using 80 stocks from five different sectors: banking, chemicals, cement, textile, and food and care products, all of which were listed on the PSX from 2011 to 2019. Trading periods of two and one year were used for the machine learning algorithm (clustering algorithm) and distance-based methods, respectively. The study found a maximum return of 2.07 percent for the textile sector using the distance-based approach, whereas the clustering algorithm yielded a maximum return of 2.55 percent.
The distance-based approach relies on the average squared differences between the normalized prices of stocks, and principal component analysis (PCA) is used to generate the indices of the stocks that represent the weighted average prices of the stocks to be used in the machine algorithm. By construct, PCA indices resemble those generated with the cointegration technique; we found parameters α   a n d   β such that the linear combination of the two stock prices, α p 1 + β p 2 , yielded a stationary process, whereas the weights in PCA may not yield stationary indices. Further, both the studies [20,25] did not allow cross-sector pairing that might have caused their low returns in comparison with our study. The profitability of pair trading decreases due to non-convergence of the pairs [5], and cointegration is the most efficient method to explore converging pairs [10]. Thus, the entropic approach seems to have an edge over the distance-based and machine learning approaches in the context of the Pakistani market.
Further, to evaluate our results, we contrasted our results against the buy and hold strategy with trading periods of one quarter, annually, 2 years, and 3 years (Table 3). A trading period of one year is in line with the literature [20,25]. The rate of returns for the alternative strategy is summarized in Table 3. In general, except for 2019-Q4, the top-performing stocks made a loss for this strategy, whereas Table 2 shows pair trading provided stable profits. The buy and hold strategy has a considerable risk of human error considering the pressure of all the wrong choices one can make [26]. The optimization of the boundaries backed by the Ornstein–Uhlenbeck process allowed us to incorporate all risks, improve the profitability of pair trading, and receive maximum positive returns [27]. Therefore, we suggest the pair trading strategy while taking model uncertainty into account.

5. Conclusions

This study employed a novel entropic approach to explore the optimal boundary points that yield maximum profit for 64 companies listed on the Pakistan Stock Exchange (PSX) for the period 2017–2019. The concept of maximizing the profit in pair trading based on relative entropy is a nascent idea in literature, and this study is the first attempt to implement it in the context of Pakistan. The performance of this entropic approach is contrasted with the buy and hold strategy in terms of returns. The following are the key findings of the study.
  • The values of the mean reversion parameter differ when the stocks in the pair are selected within the sector in comparison to when the stocks are selected across the sectors.
  • On balance, optimal returns are associated with lower values of λ s ; approximately, 84 percent pairs yielded optimal returns for low values of lambda ( λ = 0.001   a n d   0.01 ) .
  • The return values based on entropic pair trading approached ranges from 0.2 to 25.2 percent for the year 2017, 0.4 to 19.5 percent for the year 2018, and 1.5 to 15.7 percent for the year 2019. These values are much higher than the returns estimated in [20,25].
  • Based on the buy and hold strategy, all the top performing stocks make a loss.
  • The entropic approach seems to have an edge over the buy and hold, distance-based, and machine learning approaches in the context of the Pakistani market.
Pair trading is an efficient method that allows maximization of profitability by eliminating short-term price deviations in favor of long-term historical pricing relationships. The entropy-based pair trading method yielded positive returns for all the cointegrated pairs tested and confirmed their profits, which is line with the findings in literature [1,11]. According to the efficient market hypothesis (EMH), an active investor cannot be more effective than the one who buys and holds. Therefore, the returns estimated from the entropic approach were contrasted against the returns estimated through the buy and hold strategy. The buy and hold strategy yielded negative returns, except for a few cases implying losses. Consequently, we suggest the pair trading strategy while taking model uncertainty into account.

Author Contributions

Methodology, T.U.I.; Software, T.U.I.; Validation, T.U.I.; Formal analysis, L.A.; Data curation, L.A.; Writing–original draft, L.A.; Writing–review & editing, T.U.I. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data is available publicly at https://www.investing.com/.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Table A1. 2017 Ornstein–Uhlenbeck process parameters.
Table A1. 2017 Ornstein–Uhlenbeck process parameters.
Pair Nameµασ
Fauji Food (FAUJ) and Pak State Oil (PSO)3.732.4815.19
Fauji Food (FAUJ) and Gharibwal Cement (GHAR)3.8433.9415.34
Fauji Food (FAUJ) and National Refinery (NATR)3.1124.6314.63
Fauji Food (FAUJ) and Engro Power Qadirpur LTD (ENGP)3.54.3113.72
Fauji Food (FAUJ) and Bestway Cement (BEST)3.2941.3815.74
Fauji Food (FAUJ) and Dewan Cement LTD(DECE)3.836.5815.89
Fauji Food (FAUJ) and Ghani Automobile Industries LTD (GAIL)3.2121.2614.4
Fauji Food (FAUJ) and Ittehad Chemicals LTD (ITHD)10.96.2716.69
Fauji Food (FAUJ) and Ghandhara Industries LTD (GHAN)4.0632.2315.1
Fauji Food (FAUJ) and Power Cement LTD (POWE)3.9930.814.84
Fauji Food (FAUJ) and Pakistan Petroleum LTD (PPL)0.05661.4518.81
Fauji Food (FAUJ) and Lalpir Power LTD (LPLP)3.656.3618.76
Pak State Oil (PSO) and Maple Leaf Cement LTD (MPLF)0.0460.2984.91
Thata Cement (THAT) and Gharibwal Cement (GHAR)0.02101.3439.25
Pak Oil Fields (PKOL) and Ittehad Chemicals LTD (ITHD)3.741361.72474.89
Gharibwal Cement and Ghandhara Industries LTD(GHAN)0.1935.9421.6
Gharibwal Cement and Power Cement LTD (POWE)2.9934.9313.56
National Refinery (NATR)and Dewan Cement LTD(DECE)3.2272.2224.43
National Refinery (NATR) and Ittehad Chemicals LTD (ITHD)0.0542.9516.08
National Refinery (NATR) and Lalipir Power LTD (LPLP)9.379.48.3
Pioneer Cement (PION) and Lalipir Power LTD (LPLP)10.5214.547.7
Dewan Cement LTD (DECE) and Ittehad Chemicals LTD (ITHD)0.88152.6434.55
Dewan Cement LTD (DECE) and Power Cement LTD (POWE)013.7712.48
Ittehad Chemicals LTD (ITHD) and Ghandhara Industries (GHAN)0.0443.5416.8
Ittehad Chemicals LTD(ITHD) and Power Cement LTD (POWE)2.8239.4919.11
Ittehad Chemicals LTD (ITHD) and Pakistan Petroleum (PPL)0.02313.0895.34
Ittehad Chemicals LTD (ITHD) and Lalipir Power LTD (LPLP)0.0155.7318.22
Engro Polymer and Chemical (EPCL) and Lalipir Power (LPLP)2.2915.718.47
Table A2. 2017 rates of return at different λ.
Table A2. 2017 rates of return at different λ.
Pair Nameλ = 0.001λ = 0.01λ= 0.1λ= +∞
FAUJ and PSO0.0600.0590.0480.007
FAUJ and GHAR0.0610.0590.050.006
FAUJ and NATR0.0800.0750.0680.010
FAUJ and ENGP1.5221.5251.2940.358
FAUJ and BEST0.0010.0010.0000.010
FAUJ and DECE0.0550.0550.0430.004
FAUJ and GAIL0.1200.1250.1010.022
FAUJ and ITHD1.0460.9100.6300.075
FAUJ and GHAN0.0850.0780.0640.010
FAUJ and POWE0.0830.0820.0660.011
FAUJ and PPL0.0590.0600.0600.030
FAUJ and LPLP0.0510.0470.0410.006
PSO and MPLF0.0420.0370.0510.087
THAT and GHAR0.1320.120.1220.065
PKOL and ITHD0.2520.2460.2060.023
GHAR and GHAN0.0440.0450.0310.048
GHAR and POWE0.0410.0360.0310.003
NATR and DECE0.0290.0270.0231.650
NATR and ITHD0.2160.2180.2010.172
NATR and LPLP0.3270.3170.2140.028
PION and LPLP0.1860.180.1140.013
DECE and ITHD0.0410.040.0430.011
DECE and POWE0.0770.0860.0810.020
ITHD and GHAN0.2160.2340.2320.191
ITHD and POWE0.2200.2160.1910.060
ITHD and PPL0.0510.0440.0340.032
ITHD and LPLP0.0790.0950.0770.065
EPCL and LPLP0.0020.0060.2080.080
Table A3. 2018 Ornstein–Uhlenbeck process parameters.
Table A3. 2018 Ornstein–Uhlenbeck process parameters.
Pair Nameµασ
Nishat Chunnian Power LTD (NCPL) and Nishat Power LTD (NISH)0.06062.87019.110
Nishat Chunnian Power LTD and Lotte Chemicals Pak LTD14.34038.55013.150
Nishat Chunnian Power LTD and Dewan Cement LTD 0.04571.74024.950
Nishat Chunnian Power LTD and Byco Petroleum Pak LTD4.08036.46010.500
Nishat Power LTD and Dewan Cement LTD 0.02067.29053.350
Nishat Power LTD and Byco Petroleum Pak LTD38.40031.07021.260
Engro Power Generation QadirPur LTD (ENGP) and Thata Cement LTD 6.59069.44016.430
Engro Power Generation QadirPur LTD and Dewan Cement LTD 0.02060.27018.600
Attock Cement Pak LTD and Dewan Cement LTD 3.62045.50017.340
Honda Atlas Cars Pak LTD and Fauji Cement Company LTD 1.950827.500312.410
KOT Addu Power Company LTD and Bestway Cement LTD7.920100.47026.610
KOT Addu Power Company LTD and Dewan Cement LTD 11.98033.31017.050
KOT Addu Power Company LTD and Byco Petroleum Pak LTD6.85022.3507.080
Gharibwal Cement LTD and Dewan Cement LTD 0.04079.30031.870
Gharibwal Cement LTD and Fauji Cement Company LTD 0.01066.23024.540
Gharibwal Cement LTD and Byco Petroleum Pak LTD5.03026.2808.920
Gharibwal Cement LTD and Quice Food Industries LTD5.70016.5406.240
Ghandhara Nissan LTD (GHIN) and FAUJI Food LTD0.01060.72030.090
Ghandhara Nissan LTD and Byco Petroleum Pak LTD5.72016.8106.670
Pakistan State Oil Company LTD and Bestway Cement LTD0.02090.70050.780
Pakistan State Oil Company LTD and Dewan Cement LTD 2.95024.09014.430
Pakistan State Oil Company LTD and Byco Petroleum Pak LTD5.3709.2605.250
DYNEA Pak LTD and Dewan Cement LTD 14.92039.56053.730
Lotte Chemicals Pak LTD and Dewan Cement LTD 5.91021.39011.330
Lotte Chemicals Pak LTD and Byco Petroleum Pak LTD0.12032.49013.350
Pioneer Cement LTD and Dewan Cement LTD 0.13040.14019.140
Millat Tractors LTD and Byco Petroleum Pak LTD6.19029.7409.060
Dewan Cement LTD and Ghandhara Industries LTD6.36014.35017.310
Ghandhara Industries LTD and Byco Petroleum Pak LTD6.36019.6607.390
Table A4. 2018 rates of return at different λ.
Table A4. 2018 rates of return at different λ.
Pair Nameλ = 0.001λ = 0.01λ = 0.1λ = +∞
NCPL and NISH0.0580.0490.0620.028
NCPL and LOTTE0.1610.1530.0850.008
NCPL and DECE0.1280.1280.1250.097
NCPL and BYCO0.0140.0130.0100.006
NISH and DECE0.0900.0940.0800.065
NISH and BYCO0.2280.1930.0570.004
ENGP and THAT0.0550.0540.0400.004
ENGP and DECE0.0160.0070.0050.033
ATTOC and DECE0.0240.0200.0150.008
HONDA and FAUJ0.2730.2740.2440.051
KOT and BEST0.0770.0740.0520.005
KOT and DECE0.1770.1670.1020.009
KOT and BYCO0.0920.0870.0650.008
GHAR and DECE0.0500.0380.0640.006
GHAR and FAUJ0.0950.0550.0480.013
GHAR and BYCO0.0680.0650.0510.006
GHAR and QUICE0.1030.0980.0750.010
GHIN and FAUJ0.0100.1090.0100.036
GHIN and BYCO0.1110.1060.0790.011
PSO and BEST0.1770.1920.1750.103
PSO and DECE0.0720.0640.0570.003
PSO and BYCO0.1870.1770.1400.022
DYNEA and DECE0.4770.4460.2450.020
LOTTE and DECE0.3470.3410.2640.049
LOTTE and BYCO0.0840.0550.0590.027
PION and DECE0.1870.1950.1780.131
MILLAT and BYCO0.0780.0740.0550.007
DECE and GHAN0.4540.4380.3350.049
GHAN and BYCO0.1100.1050.0790.010
Table A5. 2019 Ornstein–Uhlenbeck process parameters.
Table A5. 2019 Ornstein–Uhlenbeck process parameters.
Pair Nameµασ
Pakistan Refinery LTD and Oil & Gas Development CO LTD0.02096.40042.740
Pakistan Refinery LTD and Ghani Automobile Industries LTD6.84041.61039.760
National Refinery LTD and Pakistan Oilfields LTD0.040670.990208.610
Nishat Chunnian Power LTD and Engro Polymer and Chemical LTD0.01091.05035.110
Nishat Chunnian Power LTD and Pioneer Cement LTD 0.78026.86011.540
Nishat Chunnian Power LTD and Maple Leaf Cement Factory 0.00494.76039.290
Attock Refinery LTD and Attock Petroleum LTD0.030644.640233.200
Dewan Farooque LTD and Descon Oxychem LTD0.00136.77021.570
Dewan Farooque LTD and Cherat Cement Company LTD0.040100.36061.410
Ittehad Chemicals LTD and Pak Suzuki Motors Company LTD0.11040.21019.010
Thata Cement LTD and Pakistan State Oil Company LTD1.85023.69010.380
Thata Cement LTD and Pakistan Oilfields LTD0.01042.82014.440
Thata Cement LTD and Ghani Automobile Industries LTD0.00624.4308.140
Descon Oxychem LTD and Pakistan Oilfields LTD0.010588.420191.100
Cherat Cement Company LTD and Hi-Tech Lubricants LTD0.00868.54029.140
Mari Petroleum Company LTD and Fauji Cement Company LTD 0.24029.10010.630
K Electric LTD and Fauji Cement Company LTD 1.32015.3105.080
Pakistan State Oil Company LTD and Pakistan Oilfields LTD0.009580.660192.900
Pakistan Oilfields LTD and Honda Atlas Cars Pak LTD4.310787.640261.200
Pakistan Oilfields LTD and Ghani Automobile Industries LTD0.070629.090165.800
Fauji Cement Company LTD and Ghani Automobile Industries LTD0.26028.41010.400
Pioneer Cement LTD and Al Shaheer Corporation LTD0.06029.87013.360
Maple Leaf Cement Factory and Al Shaheer Corporation LTD0.05029.55013.300
Table A6. 2019 rates of return at different λ.
Table A6. 2019 rates of return at different λ.
Pair Nameλ = 0.001λ = 0.01λ = 0.1λ = +∞
PAKR and OG0.0820.0870.0950.025
PAKR and GAIL0.3430.3330.2410.029
NATR and PKOIL0.0840.0770.0960.065
NCPL and ENGRO0.0940.0870.0910.041
NCPL and PION0.2070.2020.1990.115
NCPL and MPLF0.1310.1570.1350.089
ATTOCR and ATTOCP0.2110.1870.2020.027
DEWAN and DESCON0.1860.1920.1970.124
DEWAN and CHERAT0.2570.2320.2220.117
ITHD and PAK SUZUKI0.1470.1550.1350.097
THAT and PSO0.1310.1320.1210.039
THAT and PKOIL0.0240.0150.030.111
THAT and GAIL0.0370.0450.0410.071
DESCON and PKOIL0.0230.010.0160.064
CHERAT and HITECH0.0680.0310.0410.008
MARI and FAUJ0.0270.0290.0150.123
KELEC and FAUJ0.0090.0070.0070.009
PSO and PKOIL0.1030.0250.0370.103
PKOIL and HONDA0.0730.0720.0560.002
PKOIL and GAIL0.0860.0870.10.009
FAUJ and GAIL0.1940.1890.1930.147
PION and ALSHAHEER0.0340.0490.0380.089
MPLF and ALSHAHEER0.0420.0360.0350.104
Table A7. Returns based on buy and hold strategy.
Table A7. Returns based on buy and hold strategy.
201720182019
Company NamesReturnsCompany NamesReturnsCompany NamesReturns
Attock Cement−44.90Attock Cement Pak LTD −26.50Al Shaheer Corporation LTD−40.43
Attock Petroleum LTD−24.60Attock Petroleum LTD−1.74Attock Cement Pak LTD −9.49
Attock Refinery LTD−45.33BestWay Cement LTD−17.93Attock Petroleum LTD−16.85
Bestway cement−52.19Byco Petroleum Pak LTD−33.59Attock Refinery LTD−23.76
Cherat Cement Company LTD−40.97Cherat Cement Company LTD−35.48BestWay Cement LTD−3.36
Dera Ghazi khan Cement−39.93Dera Ghazi Khan Cement LTD −41.21Cherat Cement Company LTD−20.13
Descon Oxychem LTD−24.34Descon Oxychem LTD119.92Descon Oxychem LTD−21.96
Dewan Cement LTD−56.42Dewan Cement LTD −35.56Dewan Farooque LTD−56.18
DYNEA Pak LTD65.35DYNEA Pak LTD−12.50DYNEA Pak LTD20.03
Engro Polymer and Chemical 54.77Engro Polymer and Chemical LTD48.95Engro Polymer and Chemical LTD−14.18
Engro Power Qadirpur−5.91Engro Power Generation QadirPur LTD−15.31Engro Power Generation QadirPur LTD−11.56
Fauji Food LTD−47.45Fauji Cement Company LTD −16.35Fauji Cement Company LTD −27.47
Ghandhara Industries LTD−27.15FAUJI Food LTD83.63FAUJI Food LTD−54.14
Ghani Automobile Industries 7.79Ghadhara Nissan LTD−32.34Ghani Automobile Industries LTD−34.46
Gharibwal Cement−53.49Ghandhara Industries LTD0.33Gharibwal Cement LTD−14.02
Indus Motor Company LTD2.60Gharibwal Cement LTD−36.16Hi Tech Lubricants LTD−52.84
Ittehad Chemicals LTD−31.67Honda Atlas Cars Pak LTD−64.27Honda Atlas Cars Pak LTD19.05
Kohat cement−52.29Indus Motor Comapany LTD−29.46Indus Motor Company LTD−4.61
KOT ADDU Power−31.49Ittehad Chemicals LTD15.57Ittehad Chemicals LTD−16.52
Lalipir Power LTD−5.82Kohat Cement LTD −25.78K Electric LTD−27.48
Maple Leaf Cement Factory−52.16KOT Addu Power Company LTD−11.16Kohat Cement LTD −7.11
National Refinery−24.81Lalipur Power LTD−22.73KOT Addu Power Company LTD−36.57
Nishat Chunnian Power−43.19Lotte Chemicals Pak LTD129.48Lalipir Power LTD−9.66
Nishat Power LTD−45.95Maple Leaf Cement Factory −40.21Lotte Chemicals Pak LTD−20.80
Pak Oilfields12.81Mari Petroleum Company LTD−5.47Maple Leaf Cement Factory −35.88
Pak State Oil−20.88Millat Tractors LTD−28.84Mari Petroleum Company LTD13.55
Pakistan Petroleum LTD10.17Nishat Chunnian Power LTD −28.53Millat Tractors LTD−4.01
Pakistan Refinery LTD−9.83Nishat Power LTD−19.11National Refinery LTD−49.66
Pioneer Cement−55.61Oil & Gas Development CO LTD−21.11Nishat Chunnian Power LTD −19.02
Power Cement LTD−22.03Pakistan Petroleum LTD−16.89Nishat Power LTD3.42
Shell Pakistan LTD−41.53Pakistan State Oil Company LTD−8.56Oil & Gas Development CO LTD5.80
Sitara Peroxide LTD−55.80Pioneer Cement LTD −33.67Pak Suzuki Motors Company LTD27.62
Thata Cement LTD−44.89Quice Food Industries LTD−8.66Pakistan Oilfields LTD0.13
Thata Cement LTD −37.78Pakistan Petroleum LTD5.57
Pakistan Refinery LTD −9.83
Pakistan State Oil Company LTD−2.38
Pioneer Cement LTD −30.80
Quice Food Industries LTD−19.56
Sitara Peroxide LTD−29.36
Thata Cement LTD −17.75

References

  1. Ramos-Requena, J.P.; Trinidad-Segovia, J.E.; Sánchez-Granero, M.A. Introducing Hurst exponent in pair trading. Phys. A Stat. Mech. Its Appl. 2017, 488, 39–45. [Google Scholar] [CrossRef]
  2. Narayan, P.K.; Smyth, R. Mean reversion versus random walk in G7 stock prices evidence from multiple trend break unit root tests. J. Int. Financ. Mark. Inst. Money 2007, 17, 152–166. [Google Scholar] [CrossRef]
  3. Guerra Cavalcanti, R.S.; dos Santos, J.F.; dos Santos, R.R.; da Cunha, A.G.M. Composition of portfolios by pairs trading with volatility criteria in the Brazilian market. Rev. Contab. E Financ. 2021, 32, 273–284. [Google Scholar] [CrossRef]
  4. Keshavarz Haddad, G.; Talebi, H. The profitability of pair trading strategy in stock markets: Evidence from Toronto stock exchange. Int. J. Financ. Econ. 2023, 28, 193–207. [Google Scholar] [CrossRef]
  5. Do, B.; Faff, R. Are pairs trading profits robust to trading costs? J. Financ. Res. 2012, 35, 261–287. [Google Scholar] [CrossRef]
  6. Gatev, E.; Goetzmann, W.N.; Rouwenhorst, K.G. Pairs trading: Performance of a relative-value arbitrage rule. In Review of Financial Studies; 2006; Volume 19, Available online: https://academic.oup.com/rfs/article-abstract/19/3/797/1646694?redirectedFrom=fulltext (accessed on 13 February 2023).
  7. Habibi, S.; Pakizeh, K. Profitability of the Pair Trading Strategy across Different Asset Classes. Int. Res. J. Financ. Econ. 2017, 161, 1–17. [Google Scholar]
  8. Krauss, C. Statistical arbitrage pairs trading strategies: Review and outlook. J. Econ. Surv. 2017, 31, 513–545. [Google Scholar] [CrossRef]
  9. Vidyamurthy, G. Pairs Trading: Quantitative Methods and Analysis; John Wiley & Sons: Hoboken, NJ, USA, 2004; Volume 217. [Google Scholar]
  10. Blázquez, M.C.; Román, C.P. Pairs trading techniques: An empirical contrast. Eur. Res. Manag. Bus. Econ. 2018, 24, 160–167. [Google Scholar] [CrossRef]
  11. Yoshikawa, D. An entropic approach for pair trading. Entropy 2017, 19, 320. [Google Scholar] [CrossRef]
  12. Ekström, E.; Lindberg, C.; Tysk, J. Optimal Liquidation of a Pairs Trade. In Advanced Mathematical Methods for Finance; Springer: Berlin/Heidelberg, Germany, 2011. [Google Scholar] [CrossRef]
  13. Suzuki, K. Optimal switching strategy of a mean-reverting asset over multiple regimes. Automatica 2016, 67, 33–45. [Google Scholar] [CrossRef]
  14. Krätschmer, V.; Ladkau, M.; Laeven, R.J.A.; Schoenmakers, J.G.M.; Stadje, M. Optimal stopping under uncertainty in drift and jump intensity. Math. Oper. Res. 2018, 43, 1177–1209. [Google Scholar] [CrossRef]
  15. Tokat, E.; Hayrullahoğlu, A.C. Pairs trading: Is it applicable to exchange-traded funds? Borsa Istanb. Rev. 2022, 22, 743–751. [Google Scholar] [CrossRef]
  16. Bekiros, S.D. Timescale Analysis with an Entropy-Based Shift-Invariant Discrete Wavelet Transform. Comput. Econ. 2014, 44, 231–251. [Google Scholar] [CrossRef]
  17. Bowden, R.J. Directional entropy and tail uncertainty, with applications to financial hazard. Quant. Financ. 2011, 11, 437–446. [Google Scholar] [CrossRef]
  18. Yin, D. Investment Decision Based on Entropy Theory. Mod. Econ. 2019, 10, 1211. [Google Scholar] [CrossRef]
  19. Qazi, L.T.; Rahman, A.U.; Gul, S. Which pairs of stocks should we trade? Selection of pairs for statistical arbitrage and pairs trading in Karachi stock exchange. Pak. Dev. Rev. 2015, 54, 215–244. [Google Scholar] [CrossRef]
  20. Sohail, M.; Rehman, A.; Adil, I.; Rizwan, M.; Khan, S. Pair Trading Strategies Using Machine Learning: A Case of PSX Firms. Pak. Bus. Rev. 2020, 22, 340–351. [Google Scholar]
  21. Chutka, J.; Kramarova, K. Usage of P/E earning models as a tool for valuation of shares in condition of global market. SHS Web Conf. 2020, 74, 01007. [Google Scholar] [CrossRef]
  22. de Lima Amorim, D.P.; de Camargos, M.A. Mean reversion in a price-earnings ratio and under/overvaluation in the Brazilian stock market. Rev. Contab. E Financ. 2021, 32, 301–313. [Google Scholar] [CrossRef]
  23. Laurent, S.; Shi, S. Unit root test with high-frequency data. Econom. Theory 2022, 38, 113–171. [Google Scholar] [CrossRef]
  24. Bai, J.; Perron, P. Estimating and Testing Linear Models with Multiple Structural Changes. Econometrica 1998, 66, 47–78. [Google Scholar] [CrossRef]
  25. Shaukat, U.; Rehman, A.; ul Haq, A. Pairs Trading and Stock Returns: An Evidence from Pakistan Stock Exchange. City Univ. Res. J. 2021, 11. Available online: http://cusitjournals.com/index.php/CURJ (accessed on 13 February 2023).
  26. Ling, F.C.H.; Yat, D.N.C.; binti Muhamad, R. An empirical re-investigation on the “buy-and-hold strategy” in four Asian markets: A 20 years’ study. World Appl. Sci. J. 2014, 30, 226–237. [Google Scholar] [CrossRef]
  27. Lee, D.; Leung, T. On the efficacy of optimized exit rule for mean reversion trading. Int. J. Financ. Eng. 2020, 7, 2050024. [Google Scholar] [CrossRef]
Figure 1. Pair values, boundaries, and mean values for the pairs (2017). Note:λ1, λ2, λ3, & λ4 are the estimated paired stock values for the given confidence levels of the agent (see Table 2).
Figure 1. Pair values, boundaries, and mean values for the pairs (2017). Note:λ1, λ2, λ3, & λ4 are the estimated paired stock values for the given confidence levels of the agent (see Table 2).
Entropy 25 00494 g001
Figure 2. Pair values, boundaries, and mean values for the pairs (2018).
Figure 2. Pair values, boundaries, and mean values for the pairs (2018).
Entropy 25 00494 g002
Figure 3. Pair values, boundaries, and mean values for the pairs (2019).
Figure 3. Pair values, boundaries, and mean values for the pairs (2019).
Entropy 25 00494 g003
Table 1. Ornstein–Uhlenbeck Process parameter estimation.
Table 1. Ornstein–Uhlenbeck Process parameter estimation.
SrPair Nameµασ
2017
1Pak State Oil (PSO) and Maple Leaf Cement LTD (MPLF)0.0460.2984.91
2Thata Cement (THAT) and Gharibwal Cement (GHAR)0.02101.339.25
3Pak Oil Fields (PKOL) and Ittehad Chemicals LTD (ITHD)3.741361.7474.9
4Pioneer Cement (PION) and Lalipir Power LTD (LPLP)10.5214.547.70
5Engro Polymer and Chemical (EPCL) and Lalipir Power (LPLP)2.2915.718.47
2018
6Engro Power Generation Qadirpur LTD and Thata Cement LTD 6.5969.4416.43
7Gharibwal Cement LTD and Dewan Cement LTD 0.0479.331.87
8Pakistan State Oil Company LTD and Best Way Cement LTD0.0290.750.78
9Pakistan State Oil Company LTD and Byco Petroleum Pak LTD5.379.265.25
10Pioneer Cement LTD and Dewan Cement LTD 0.1340.1419.14
2019
11Nishat Chunnian Power LTD and Engro Polymer and Chemical LTD0.0191.0535.11
12Nishat Chunnian Power LTD and Maple Leaf Cement Factory 0.00494.7639.29
13Thata Cement LTD and Pakistan State Oil Company LTD1.8523.6910.38
14Thata Cement LTD and Pakistan Oilfields LTD0.0142.8214.44
15Pioneer Cement LTD and Al Shaheer Corporation LTD0.0629.8713.36
Table 2. Rate of returns for different values of λ.
Table 2. Rate of returns for different values of λ.
Pair Nameλ = 0.001λ = 0.01λ = 0.1 λ = +
2017
PSO and MPLF0.042 (62.8)0.037 (62.5)0.051 (63.4)0.087 (65.6)
THAT and GHAR0.132 (114.7)0.12 (113.5)0.122 (113.7)0.065 (108.0)
PKOL and ITHD0.252 (1704.5)0.246 (1697.3)0.206 (1642.5)0.023 (1393.5)
PION and LPLP0.186 (17.2)0.18 (17.2)0.114 (16.2)0.013 (14.7)
EPCL and LPLP0.002 (15.7)0.006 (15.8)0.208 (19.0)0.08 (17.0)
2018
ENGP and THAT0.055 (73.3)0.054 (73.2)0.04 (72.2)0.004 (70.0)
GHAR and DECE0.05 (83.3)0.038 (82.2)0.064 (84.5)0.006 (80.0)
PSO and BEST0.177 (106.8)0.192 (108.2)0.175 (106.6)0.103 (92.6)
PSO and BYCO0.187 (11.0)0.177 (11.0)0.14 (10.6)0.022 (9.5)
PION and DECE0.187 (47.6)0.195 (47.9)0.178 (47.3)0.131 (45.4)
2019
NCPL and ENGRO0.094 (99.6)0.087 (99.0)0.091 (99.3)0.041 (95.0)
NCPL and MPLF0.131 (107.2)0.157 (109.7)0.135 (107.5)0.089 (103.3)
THAT and PSO0.131 (26.8)0.132 (26.8)0.121 (26.6)0.039 (24.6)
THAT and PKOIL0.024 (43.9)0.015 (43.4)0.03 (44.1)0.111 (47.8)
PION and ALSHAHEER0.034 (30.9)0.049 (31.3)0.038 (31.0)0.089 (32.5)
Estimated stock pair values for the given confidence levels of the agent are in parentheses.
Table 3. Rate of returns from the buy and hold strategy.
Table 3. Rate of returns from the buy and hold strategy.
Returns with Trading Period
Company Name201720182019
Q1Q2Q3Q4Q1Q2Q3Q4Q1Q2Q3Q4
Pak State Oil−4.7−7.619.9−20.48.8−3.50.5−15.1−8.4−20.3−7.519.4
Thata Cement LTD11.7−10.5−32.7−14.113.7−15.7−14.3−24.4−8.7−24.1−24.256.1
Pioneer Cement LTD0.8−7.8−27.4−28.410.2−35.6−4.1−5.2−21.0−33.8−15.351.3
Nishat Chunnian Power−14.8−5.3−10.1−20.0−6.9−9.2−8.6−1.1−4.7−16.14.711.3
Gharibwal Cement LTD17.3−24.3−23.3−26.86.3−22.8−8.3−20.0−17.6−21.5−17.253.1
1-Year2-Year3-Year
2017201820192017–20182018–20192017–2019
Pak State Oil −20.9−8.6−2.4−27.0−6.5−25.4
Thata Cement LTD −44.9−37.8−17.8−66.390.3−71.6
Pioneer Cement LTD −55.6−33.7−30.8−70.4−51.9−78.5
Nishat Chunnian −43.2−28.5−19.0−58.3−42.1−66.2
Gharibwal Cement LTD −53.5−36.2−14.0−52.0−44.9−73.6
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Amer, L.; Islam, T.U. An Entropic Approach for Pair Trading in PSX. Entropy 2023, 25, 494. https://doi.org/10.3390/e25030494

AMA Style

Amer L, Islam TU. An Entropic Approach for Pair Trading in PSX. Entropy. 2023; 25(3):494. https://doi.org/10.3390/e25030494

Chicago/Turabian Style

Amer, Laiba, and Tanweer Ul Islam. 2023. "An Entropic Approach for Pair Trading in PSX" Entropy 25, no. 3: 494. https://doi.org/10.3390/e25030494

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop