Next Article in Journal
Multi-Class Cost-Constrained Random Coding for Correlated Sources over the Multiple-Access Channel
Next Article in Special Issue
A Network Approach to the Study of the Dynamics of Risk Spillover in China’s Bond Market
Previous Article in Journal
Computational Modeling of Boundary Layer Flashback in a Swirling Stratified Flame Using a LES-Based Non-Adiabatic Tabulated Chemistry Approach
Previous Article in Special Issue
Crowded Trades, Market Clustering, and Price Instability
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Entropy-Based Approach to Measurement of Stock Market Depth

by
Joanna Olbryś
* and
Krzysztof Ostrowski
Faculty of Computer Science, Bialystok University of Technology, 15-351 Bialystok, Poland
*
Author to whom correspondence should be addressed.
Submission received: 8 March 2021 / Revised: 15 April 2021 / Accepted: 1 May 2021 / Published: 3 May 2021
(This article belongs to the Special Issue Entropy-Based Applications in Economics, Finance, and Management)

Abstract

:
The aim of this study is to investigate market depth as a stock market liquidity dimension. A new methodology for market depth measurement exactly based on Shannon information entropy for high-frequency data is introduced and utilized. The proposed entropy-based market depth indicator is supported by an algorithm inferring the initiator of a trade. This new indicator seems to be a promising liquidity measure. Both market entropy and market liquidity can be directly measured by the new indicator. The findings of empirical experiments for real-data with a time stamp rounded to the nearest second from the Warsaw Stock Exchange (WSE) confirm that the new proxy enables us to effectively compare market depth and liquidity for different equities. Robustness tests and statistical analyses are conducted. Furthermore, an intra-day seasonality assessment is provided. Results indicate that the entropy-based approach can be considered as an auspicious market depth and liquidity proxy with an intuitive base for both theoretical and empirical analyses in financial markets.

1. Introduction

The original idea of entropy dates back to the fundamental Shannon’s theory of communication and information [1]. Entropy was defined by Shannon as a measure of information, choice and uncertainty. The concept of entropy originates from thermodynamics, but it has been utilized in many research fields to characterize the complexity of a system and to investigate the information content of a probability distribution. Entropy is a general measure, and therefore, many definitions and applications of entropy have been proposed in the literature. Since the aim of this paper is to introduce and utilize a new entropy-based estimator of stock market depth as one of stock market liquidity dimensions, the brief literature review focuses on selected entropy-based applications in economics, finance, and management. Theoretical, empirical, and experimental aspects of entropy utilization are highlighted.
Firstly, there are quite many entropy-based applications in portfolio selection, asset pricing, and risk management, including the entropy optimization approach. Zhou et al. [2] presents a comprehensive review of applications of entropy in finance. Both primary and recent studies are included. For instance, the pioneering work of Philippatos and Wilson [3] proposed the mean-entropy concept in the efficient portfolio selection problem. The main contribution of this primary research lies in the conclusions that mean-entropy portfolios are consistent with the Markowitz and Sharpe models.
In light of the recently growing literature on the entropy-based applications, the topic concerning portfolio selection is very popular. Among others, Usta and Kantar [4] present a multi-objective method based on a mean-variance-skewness-entropy portfolio selection model to generate a well-diversified portfolio. Zhang et al. [5] deal with a multi-period portfolio selection problem with fuzzy returns. In this paper, the diversification degree of a portfolio is measured by the originally presented possibilistic entropy. Huang [6] proposes two types of credibility-based fuzzy mean-entropy models for fuzzy portfolio selection, and entropy is used as the measure of risk. Yu et al. [7] evaluate the performance of the portfolio models that are used to rebalance with short selling, considering transaction costs, minimizing portfolio risk, and utilizing entropy in modeling asset allocation. Zhou et al. [8] systematically explore the properties of six kinds of entropy-based risk measures, and develop and compare several portfolio models based on different risk measures. Yang and Qiu [9] extend the classical decision model under risk to a more general case. They propose an expected utility-entropy measure of risk and a decision-making model based on expected utility and entropy. Pele et al. [10] investigate relationship between the information entropy of the distribution of intraday returns, and intraday and daily proxies of financial market risk. They use Value-at-Risk and Expected Shortfall as risk measures for the EUR/JPY exchange rate. Gradojevic and Caric [11] concentrate on quantifying the behavioral aspects of systematic risk by utilizing a novel entropy-based approach. Their empirical results confirm the predictive usefulness of new entropy setting in stock market risk management.
In the mathematical finance literature, there are several papers dealing with entropy as an optimization criterion, especially in the context of asset and option pricing. For example, Fritelli [12] investigates the properties of the minimal entropy martingale measure, and shows that the minimization of relative entropy is equivalent to the maximization of expected exponential utility of wealth. Stutzer [13] proposes relative entropy minimization approach to derivation of a generalized Black-Scholes option pricing model. In their theoretical research concerning risk management, Geman et al. [14] use entropy maximization approach to recognize the uncertainty of asset distribution. Xu et al. [15] propose a continuous maximum entropy method to analyze the robust optimal portfolio selection problem in the case of the market with transaction costs and dividends. Brody and Hughston [16] introduce a new term structure calibration methodology based on maximization of entropy, and present some new models of interest rate. Gulko [17,18] applies the Entropy Pricing Theory to introduce new formulas for pricing European stock and bond options.
Another broad research field is information and entropy econometrics that directly or indirectly builds on the foundations of information theory and the principle of maximum entropy. Among other topics, Golan and Perloff [19] deeply investigate the generalized maximum entropy estimation method. Ullah [20] provides the uses of entropy and divergence measures for evaluating econometric approximations and inference. Kitamura and Stutzer [21] develop the relationship between entropic and linear projections in asset pricing estimation based on stochastic discount factor models. Maasoumi and Racine [22] examine the predictability of stock market returns by employing a new metric entropy measure and compare their results with a number of traditional measures. Bera and Park [23] use maximum entropy portfolio selection method in the optimal portfolio diversification problem, and their approach can be viewed as a shrinkage estimation of portfolio weights.
According to the literature, several studies propose entropy-based methods to investigate groups of stock markets in the world, especially in the context of various common features, relationships and interdependences between them. For instance, Billio et al. [24] use different entropy measures and new early warning indicator for banking crises to analyze the time evolution of systematic risk in Europe. They focus on the euro zone and analyze a total of 437 European financial institutions. Zhao et al. [25] propose copula entropy models to measure dependence in stock markets. The Authors provide an algorithm for the copula entropy approach to obtain the numerical results, and they approve the validity of the proposed method. Zunino et al. [26] introduce two quantifiers for a stock market inefficiency: the number of forbidden patterns and the normalized permutation entropy. The Authors analyze equity indexes and returns for 32 different stock exchanges. They point out that their empirical findings suggest that the proposed physical tools are helpful to discriminate the stage of stock market development.
Another promising strand of the literature concerns network entropy since Mantegna [27] first represented the financial market as a network. Financial markets are complex systems and can be represented as complex networks. Network entropy can be treated is a measure of information contained in the system [28,29].
It is worth noting that quite extensive studies consider the concepts of mutual information and transfer entropy. These tools enable us to investigate the information flow between time series and are especially useful in economic and financial applications [30,31,32,33,34,35,36,37,38].
The literature contains several theoretical, empirical, and experimental studies concerning entropy-based applications in market microstructure research. For instance, Liu et al. [39] use entropy-based measures to identify various types of trading behaviors. Albeit, the papers regarding dimensions of market liquidity are relatively scarce. For instance, McCauley [40] points out that interest in thermodynamic analogies in economics and finance is older than the idea of von Neumann to look for market entropy in liquidity. McCauley assumes that the definition of an asset’s liquidity is analogous to this of stock market depth. However, he concludes that real financial markets cannot behave thermodynamically because they are unstable.
Order imbalance has a significant influence on stock illiquidity, considerably more important even than volume. In the recent paper, Lu et al. [41] proposed an indicator called polarity to investigate trading imbalance in Chinese stock market. This indicator is based on high-frequency transaction data. However, the definition of polarity is very similar to this of order ratio, which is well known and broadly used in the literature as an indicator of stock market depth and market illiquidity (see e.g., [42,43] and the references therein). Therefore, the aforementioned paper was our research inspiration and motivation for taking and exploring the subject of an entropy-based approach to measurement of stock market depth as one of market liquidity dimensions [44].
The aim of this study is to introduce a new entropy-based market depth proxy that is exactly based on the definition of Shannon information entropy [1]. Our proposition substantially differs from the entropy-based indicator of trading imbalance presented in [39] because we employ the Lee and Ready [45] algorithm inferring the initiator of a trade to distinguish between so-called buyer- and seller-initiated trades.
The value-added of this research derives both from the new methodology and novel empirical findings. There are some advantages of the proposed indicator. Firstly, it can be treated as a new measure of stock market liquidity. The values of the entropy-based market depth are decimal fractions that vary between zero and the exactly defined maximal value equal to one. Therefore, the entropy-based market depth values calculated for different equities can be effectively compared to each other.
Moreover, based on the Shannon entropy definition, the entropy-based market depth indicator can be used to summarize the information content of a probability distribution, and it can be treated as a measure of stock market efficiency according to the Efficient Market Hypothesis (EMH). High values of entropy are related to randomness in the evolution of stock prices [26]. Higher values of market entropy inform about higher market efficiency, and are coupled with higher values of stock liquidity. Therefore, both market entropy and market liquidity can be directly measured by the proposed new indicator.
Empirical experiments on financial markets depend on data availability. Therefore, the real-data experiments and statistical analyses are conducted for high-frequency data with a time stamp rounded to the nearest second from the Warsaw Stock Exchange (WSE). Stability and robustness tests are conducted. Moreover, an intra-day seasonality assessment is provided to recognize intra-day hourly patterns in new entropy-based market depth indicator. Results indicate that this indicator can be considered as an auspicious market depth measure with an intuitive base for both theoretical and empirical analyses in financial markets. The proposed entropy-based indictor can be successfully utilized using intra-day data from other stock markets in the world, and the results could be interesting for investors.
The remainder of the study is organized as follows: Section 2 specifies the methodological background of measurement of market depth in the context of the broad topic concerning dimensions of stock market liquidity. Section 3 contains real-data description and presents the findings of some empirical experiments, statistical analyses, and robustness tests for high-frequency data. In Section 4, we discuss and conclude the results and propose several directions for further research.

2. Methods

2.1. Depth as One of Stock Market Liquidity Dimensions

Generally speaking, stock market liquidity is not a one-dimensional variable. The literature concerning the dimensions of market liquidity has continued to grow since Kyle [44] first distinguished between three dimensions: depth, tightness, and resiliency. Depth can be defined as the ability to buy or sell a certain amount of an asset without influence on the quoted price. In other words, the depth of market captures the relation between order flow and price changes. When demand (buy) and supply (sell) sides are quantitatively the same, the quoted price will not change (there is no impulse to price changes). The definition of tightness states that this is the ability to buy and to sell an asset at about the same price at the same time. One of definitions of market resiliency specifies that this is the ability to buy or to sell a certain amount of an asset with little influence on the quoted price. Theoretical and empirical findings of research on liquidity dimensions in several stock markets in the world are reported in [46,47,48,49,50,51,52].
It is pertinent to notice that the studies that explore depth, tightness, and resiliency as dimensions of stock market liquidity on the WSE are rather scarce. For instance, order imbalance as a measure of market depth is assessed in the papers [42,43,53]. Market tightness as the cost of turning around a position over a short period of time on the WSE is investigated in the works [42,43]. Moreover, two new methods for measurement of intraday stock market resiliency based on the Discrete Fourier Transform and Short-Time Fourier Transform approaches are introduced and utilized for high-frequency data from the WSE in the recent papers [54,55].

2.2. Measuring Stock Market Depth

Related literature proposes various proxies of stock market depth, and a comprehensive review of them is presented e.g., in [42]. In general, the measures of order imbalance are the most frequently used.
To introduce a new entropy-based method, firstly we propose a supporting modified version of the Order Ratio (OR) indicator as a refined proxy of market depth which accurately captures market order imbalance. It is defined by the following Equation (1):
O R = | C T V b C T V s | C T V b + C T V s ,
where O R [ 0 ,   1 ] and the sums C T V b i = 1 m V b u y i , C T V s j = 1 k V s e l l j denote the cumulated trading volume related to transactions classified as buyer- or seller-initiated trades, respectively. The modification lies in the denominator n = 1 m + k V n = C T V b + C T V s which denotes the cumulated trading volume for all classified transactions within a particular period of time (in the frequently used version of the OR indicator, the denominator includes the cumulated trading volume for all transactions within an investigated period of time).
The OR indicator can be calculated within various time intervals, for example in 30-min, hourly or daily manner because the Formula (1) is the general one. The order ratio informs about imbalance in the market since it rises when the difference in the numerator rises, and therefore it measures illiquidity. High values of the order ratio indicate low market depth and low liquidity. Conversely, small values of this indicator denote high market depth and high liquidity. According to definition (1), the order ratio value is non-negative and it is equal to zero when cumulated trading volumes related to transactions classified as buyer- or seller-initiated trades are equal within a particular time interval. The order ratio value given by Equation (1) is not defined for the following two cases: (1) when all transactions within an analyzed time period are unclassified, and (2) an analyzed time period is a zero-volume period, which means the total lack of transactions. In such cases, the total trading volume in the denominator is equal to zero. The OR value is equal to one when all transactions within an analyzed time period are classified in the same manner (i.e., as only buyer- or only seller-initiated trades).
In the next step, the definitions of cumulated trading volumes related to transactions classified as buyer- or seller-initiated trades are used to define the probabilities and the entropy-based proxy of stock market depth. In light of the recently growing literature, entropy is a widely accepted measure of a generally understood diversity and disorder. In this context, an entropy-based indicator could represent the unevenness of buying and selling in trading decisions on a stock market [41]. Shannon [1] proves that quantities of the form H = K · i = 1 n p i · log ( p i ) , where K is a positive constant that amounts to a choice of a unit of measure, play a central role in information theory as measures of information, choice, and uncertainty. Exactly based on the definition of Shannon information entropy [1] (p. 394) we propose the following new Entropy-based Market Depth (EMD) indicator given by Equation (2):
E M D = 1 log ( 2 ) ( P b u y · log ( P b u y ) + P s e l l · log ( P s e l l ) ) ,
where:
P b u y = C T V b C T V b + C T V s [ 0 ,   1 ] ,
P s e l l = 1 P b u y = C T V s C T V b + C T V s [ 0 ,   1 ] .
According to the Shannon definition, the EMD indicator (2) measures the entropy in the case of two possibilities with probabilities defined by Equations (3) and (4). It is scaled to obtain the EMD values that belong to the [ 0 ; 1 ] interval (without the normalization, the maximal EMD value is equal to log ( 2 ) 0.301 , and it is obvious based on the properties of the Shannon information entropy [1], p. 394). According to Equation (2), the EMD value is non-negative, and it is defined as equal to zero in the following two cases:
(1)
If C T V b = 0 P b u y = 0 P s e l l = 1 log ( P s e l l ) = 0 E M D = 0 ;
(2)
If C T V s = 0 P s e l l = 0 P b u y = 1 log ( P b u y ) = 0 E M D = 0 .
The EMD value given by Equation (2) is not defined for the following two cases: (1) when all transactions within an analyzed time period are unclassified, and (2) an analyzed time period is a zero-volume period, which means the total lack of transactions. In such cases, the total trading volume in the denominator in Equations (3) and (4) is equal to zero. Appendix A contains further justification for the EMD indicator in the context of the Shannon information entropy definition.
To calculate both the OR (1) and EMD (2) indicators using intraday data it is essential to recognize the side initiating a transaction. Although the WSE is a pure order-driven market with an electronic order book, information of the order book database is not publicly available. Thus, the side initiating a trade cannot be directly identified from a raw data set. Therefore, the Lee and Ready (LR) [43] algorithm inferring the initiator of a trade is used to distinguish between so-called buyer- and seller-initiated trades. Although several trade-side classification rules have been proposed in the literature, Olbryś and Mursztyn [56] confirm that the LR algorithm performs better than other procedures on the Polish stock market. For details about the LR algorithm see Table A1, in Appendix B.
As the EMD is a new both market depth and market liquidity indicator which is indirectly connected (via the probabilities defined by Equations (3) and (4)) with the supporting modified version of the OR proxy, it would be useful and informative to compare the OR and EMD values. Table 1 presents simple illustrative examples of calculations of both indicators for four selected cases within the same time period. Example 1 shows that the minimal OR value equal to zero is coupled with the maximal EMD value equal to one. In general, as the EMD values are decimal fractions that belong to the [ 0 ; 1 ] interval, the EMD values calculated for different equities can be easily compared to each other. Furthermore, Examples 2–3 illustrate that increasing values of the OR are coupled with decreasing values of the EMD indicator, and vice versa. Example 4 shows that the maximal OR value equal to one is coupled with the minimal EMD value equal to zero. It means that, on an intuitive base, the maximal value of trading imbalance indicates the lack of liquidity.
Figure 1 depicts the relationship between OR and EMD indicators. To sum up, the examples presented in Table 1 and Figure 1 show that low Order Ratio values are accompanied by high values of the Entropy-based Market Depth indicator. Otherwise, high ORs are accompanied by low values of the EMD indicator. This evidence is consistent with overall relations between these two depth estimates.
Table 2 briefly summarizes basic relationships between the indicators (1) and (2), market depth, market liquidity, and market entropy. As one can observe, the OR proxy is only a measure of depth and illiquidity, while the EMD can be treated as a measure of market depth, market liquidity and market entropy, which is the advantage of this new indicator.

3. Empirical Experiments for High-Frequency Intraday Data

As empirical experiments on financial markets depend on data availability, this section is devoted to the comparative and comprehensive investigation of the OR and EMD indicators on the Polish stock market. It presents findings of several empirical experiments and statistical analyses for high-frequency data from the Warsaw Stock Exchange. The database is large. It contains 21,010,718 records in total (see Table 3). Therefore, all computations were performed using a customized program (language C++, system: Linux, processor 3.6 GHz, RAM 4 GB).

3.1. Real-Data Description

The sample contains high-frequency data for 20 WSE-listed companies with the largest market capitalization (MV) at the end of 2016. Tick-by-tick transaction data is not publicly available for the WSE. Thus, in this research transaction prices and volume records with a time stamp rounded to the nearest second, for each security over one unit of time are used. The data comes from the Bank for Environmental Protection (BOS) brokerage house (available at http://bossa.pl; accessed date 5 January 2017). All stocks included in the database have been incessantly listed on the WSE through the whole sample period. This study is the continuation and extension of the research on dimensions of market liquidity on the WSE presented in the papers [54,55], and therefore the database is the same.
The sample period ranges from 2 January 2005 to 30 December 2016 (3005 trading days). To verify the robustness of the empirical findings, the calculations are provided both for the whole sample and over three consecutive sub-samples of equal length (436 trading days) [54]:
(1)
The pre-crisis sub-period from 6 September 2005 to 31 May 2007 (S1);
(2)
The crisis sub-period on the WSE from 1 June 2007 to 27 February 2009 (S2);
(3)
The post-crisis sub-period from 2 March 2009 to 19 November 2010 (S3).
The crisis sub-period on the WSE connected to the 2007–2009 Global Financial Crisis (GFC) period was formally defined based on the paper [57], in which the statistical method for the quantitative identification of market states is used.

3.2. Estimation Results of the Order Ratio and Entropy-Based Market Depth

This subsection includes brief information on the group of 20 WSE-traded companies that are analyzed in this research (Table 3). The companies are labeled by ticker symbols and presented in decreasing order of the market value (MV) at the end of 2016. Table 3 reports the numbers of records in the database for each stock and the averaged daily values of the OR and EMD indicators. Standard deviations are given in parentheses. The evidence is that for the most liquid equities with the largest numbers of records in the database (namely PKN, PKO, PEO, KGH, OPL) the averaged daily values of the OR and EMD indicators and standard deviations of these values are stable in time. The findings confirm high market depth and high liquidity of these stocks as the averaged EMD proxy is approximately equal to one and accompanied by very low standard deviations. What is important, the experimental results reported in Table 3 show that the precise ranges of OR [0.17; 0.68] and EMD [0.47; 0.98] are equally broad (0.51 for OR and 0.51 for EMD).
Table 4 reports Pearson correlation coefficients calculated for series of daily market depth estimators given by Equations (1) and (2), for each asset separately. This table presents the results for the whole sample (WS) and three sub-samples S1, S2, S3. All correlations are significantly negative and their absolute values are very high. This evidence confirms that the information content of both market depth proxies is the same, while the main advantage of the EMD indicator is that it measures liquidity (not illiquidity, like the OR estimate). This evidence is consistent with the relationship presented in Figure 1.

3.3. Robustness Tests of Entropy-Based Market Depth

Various robustness analyses are standard procedures for testing stability of stock market characteristics, especially in the context of crises periods, e.g., [24,41,54,55]. The existing studies indicate that the empirical results could be diverse and economic interpretations are needed in such cases. The Entropy-based Market Depth (EMD) indicator (2) is proposed as a new estimator of a stock market depth and market liquidity. Therefore, the stability of estimation results by time periods could be assessed. To address this issue, the robustness tests over the whole sample period and three sub-periods are provided. The goal is to investigate whether the mean results of stock depth and liquidity approximated by EMD within the analyzed periods (reported in Table 3) significantly differ between each other. The following two-tailed hypothesis is tested:
H 0 : μ 1 = μ 2 H 1 : μ 1 μ 2 ,
where μ 1 , μ 2 are the expected values of depth for each equity within the compared periods, and the null hypothesis assumes that two expected values are equal.
To verify the hypotheses, the Z-statistic for independent large sample means is used:
Z = x 1 ¯ x 2 ¯ s 1 2 n 1 + s 2 2 n 2 ,
where x 1 ¯ ,   x 2 ¯ are sample means, s 1 2 , s 2 2 are sample variances, and n 1 , n 2 denote a sample size, respectively. The numbers n 1 , n 2 of trading days for each stock within each period are reported in Table A2, Appendix C. The average daily values of the EMD and standard deviations of these values are documented in Table 3. To address the multiple testing problem, the Bonferroni correction is used, and therefore the significance level is equal to α ¯ = 0.0025 . The critical value of Z-statistic (6) at 0,25% significance level is equal to 3.03 for each test (we thank an anonymous referee for this suggestion).
Six pairs of periods are investigated, i.e., WS/S1, WS/S2, WS/S3, S2/S1, S2/S3, and S1/S3. Summarized findings for the whole group of companies are presented in Table 5 and they require some comments and economic interpretations. The hypothesis H 0 indicates that the average EMD values are stable in time within compared periods. One can observe that for the companies PKN, OPL, ZWC, CAR, STP there are no reason to reject H 0 for all six cases, for the KGH—for five cases, and for KTY—for four cases. However, for the remaining equities the results are more diverse. After deep investigation of the obtained results we can assert that there are three main reasons of this phenomenon.
Firstly, although Table 3 documents that for the most liquid equities the averaged daily values of the EMD indicator are high and approximately the same, the values of standard deviation and the significantly diverse number of trading days within the analyzed periods (reported in Table A2, Appendix C) leads to rejection of the null hypothesis (5) for some isolated cases (for instance, for PKO and PEO).
Moreover, the results depend on the pair of the sub-periods. It is important to remind that the pre-crisis (S1), crisis (S2), and post-crisis (S3) periods on the WSE are investigated, and the crisis sub-period on the WSE is connected to the 2007–2009 Global Financial Crisis (GFC). Therefore, the findings inform whether the mean results of market depth and liquidity during the GFC period on the WSE significantly differ compared to the other periods. One can observe that in the case of the pairs: S2/S1 (crisis/pre-crisis), and S2/S3 (crisis/post-crisis), the hypothesis H 0 is outweighed by the hypothesis H 1 in 9 out of 20 and 5 out of 20 cases, respectively. Moreover, for the pair WS/S2 (whole sample/crisis) the number of H 1 is equal to 10. Therefore, we can conclude that the visible influence of the GFC on market depth and liquidity was present for the following equities, including five banks: BZW, ING, MBK, LPP, BHW, MIL, SNS, BDX, GTC, ORB, ECH. In general, market depth and liquidity significantly differed during the crisis sub-period on the WSE for several analyzed companies, but not for all of them. The EMD values for the most liquid companies were much more stable. This evidence is consistent with the studies that have utilized other liquidity proxies to assess stock market liquidity dimensions on the WSE during the GFC (e.g., [42,43]).
Furthermore, the whole sample period (WS) is long (12 years), and it includes the years of substantial changes in market liquidity. The WSE was a medium-size emerging stock market during this period. Especially, the level of liquidity within the pre-crisis period (S1) was lower compared to other periods for several companies, e.g., ING, MBK, LPP, BDX, ECH (see Table 3), while the level of liquidity during the post-crisis period (S3) was higher for many stocks. As a consequence, the hypothesis H 0 is outweighed by the hypothesis H 1 in 11 out of 20 (for the pair WS/S1) and 13 out of 20 cases (for the pair S1/S3). The total number of H 1 is equal to 57 out of 120. In conclusion, the results reported in Table 5 are not homogenous but they can be explained based on the WSE liquidity behavior within the whole sample period and remaining sub-periods.

3.4. Intra-Day Seasonality in Entropy-Based Market Depth

The aim of this subsection is to assess intra-day seasonality and recognize intra-day hourly patterns in the EMD indicator of market depth. According to the literature, there are some possible shapes of intra-day patterns in various stock market characteristics such as volumes, depths, spreads, returns, transaction costs, order flows, market resiliency, etc. (see e.g., [55,58,59,60,61,62,63,64,65,66,67,68] and the references therein). Goodhart and O’Hara [58] emphasize that a fundamental property of high-frequency data is that observations can occur at varying time intervals. Therefore, trades are not equally spaced over the day, which may result in intra-day ‘seasonal’ patterns in stock market activity. Empirical investigation and visualization of these patterns may be a useful tool for decision-making process and can help an investor to state how particular characteristics vary over a session. Some shapes of intra-day patterns in stock market are possible but it is not surprising that perfectly shaped visual patterns rarely appear. There are several attributes that help to differentiate the most important shapes such as: M-similar, U-similar, W-similar, inverted-U, J-similar, and inverted-J patterns [55].
To explore intra-day patterns in the EMD indicator, the average hourly values of this indicator are calculated for each equity within the whole sample period (WS) and three sub-periods (S1, S2, S3). The WSE is an order-driven market with an electronic order book. Therefore, liquidity is provided only by limit orders submitted by investors and there are no market makers who support liquidity. Table 6 presents short market trading schedule on the WSE and the notation concerning the trading hours (H1H8).
Figure 2 illustrates hourly patterns in the EMD values within the whole sample period. The EMD intra-day behavior during remaining periods is presented in Figure A2, Figure A3 and Figure A4, Appendix D. Table 7 reports summarized findings of hourly patterns in the EMD indicator for the whole group of 20 WSE–listed equities investigated in this research. The trading hours H1H8 based on Table 6.
It is important to notice that the results are homogenous. Except for isolated cases (e.g., LPP, ZWC), the M-similar and U-similar (with a decrease during the last hour H8) patterns dominate for the vast majority of stocks.
The M-shaped pattern depicts lower EMD values during the beginning and the ending of a session with the highest values slightly after the beginning and before the end. It is also marked by distinctively low value in the middle of a session.
The U-shaped pattern means that the value of the EMD decreases after the first hour. It then stays more or less constant, and increases during the last hour. In this context, the evidence concerning the U-similar pattern with a visible increase within the hour H7 and a pronounced decrease during the last hour H8 requires some explanations. It seems that this pattern is common for the most equities on the WSE. After deep investigation of the obtained empirical findings we can assert that the main reason of this phenomenon lies in the trade side classification results. Based on the Lee-Ready procedure presented in Appendix B (Table A1), two possible cases dominate within the last hour H8 on the WSE:
(1)
The transactions are classified in the same manner (i.e., as only buyer- or only seller-initiated trades), which leads to EMD = 0 based on definition (2), and consequently decreases the average hourly value of the EMD. It’s common especially for less liquid companies with a small number of transactions in H8,
(2)
The transactions classified as buyer- or seller-initiated trades dominate, which leads to small EMD values approx equal to 0 (see Table 1), and as a consequence decreases the average hourly value of the EMD.
Based on the summarized findings presented in Table 7 one can observe that, in general, the M-similar pattern dominates within the sub-periods S1 (pre-crisis) and S2 (crisis), while the U-similar pattern appears for vast majority of equities during the whole sample period and the sub-period S3 (post-crisis). In our opinion, the main reason of this phenomenon can be a higher level of market liquidity on the WSE after the GFC period.
It is worthwhile to emphasize that our results concerning intra-day behavior of the EMD indictor as a measure of liquidity are consistent with the literature. For instance, Jain and Joh [60] study joint characteristics of hourly common stock trading volume and returns and they find the U-shaped pattern in volume over the trading day on the New York Stock Exchange (NYSE). They emphasize that average volume as a liquidity proxy reveals significant hour of the day effect. McInish and Wood [62] show that number of shares traded as a liquidity estimate has a U-shaped intra-day pattern for all stocks listed on the Toronto Stock Exchange. Vo [64] also assess the intra-day behavior of market activity on the Canadian stock exchange in Toronto. The results confirm that spread follows U-shaped pattern, while volume is low at the open, stable during the day, and increases at the close. Ahn and Cheung [67] investigate the Stock Exchange of Hong Kong which is a pure electronic order-driven market without market makers.
The authors find the U-shaped patterns in spread and trading volume. As for the Polish stock market, Olbryś and Oleszczak [68] conduct empirical experiments for real-data from the WSE and they document that intra-day trading volume reveals U-similar or M-similar hourly patterns in the case of all investigated equities and for all analyzed periods.

4. Discussion and Conclusions

Concept of market depth focuses on the volume which can be observed at the current price level [49]. From investors’ and stock market analysts’ point o view, market depth is crucial because it can be treated as quantity dimension of market liquidity [51]. Harris [69] points out that the topic concerning dimensions of liquidity is especially interesting for practitioners as they often think about liquidity quite intuitively. Thinking about liquidity, investors usually think about trading quickly, trading large size, or trading at low costs.
According to the literature related to the microstructure of markets, several proxies of market depth are proposed: (1) depth as a number of units offered at the ask price plus a number of units at the bid price (e.g., [46,51,52]), (2) dollar depth calculated in currency terms (e.g., [70]), (3) an average depth of the ask and the bid (e.g., [71]), (4) an average dollar depth measured in currency terms (e.g., [71]), (5) various versions of order ratio as a proxy of realized market depth (e.g., [43,49,51,52,53]). The vast majority of these depth proxies require information about ask and bid prices.
However, although the WSE is a pure order-driven market with an electronic order book, information about ask and bid prices is not publicly available. Therefore, the side initiating a transaction cannot be directly identified from a data set. This problem concerns many emerging markets in the world, and a procedure inferring the initiator of a trade is needed in such cases.
Taking the above into consideration, this research contributes to the existing literature regarding dimensions of market liquidity by introducing and utilizing a new methodology for estimation of market depth and liquidity with the EMD indicator based on the Shannon entropy and supported by an algorithm inferring the initiator of a trade. The advantage of the EMD is that it measures liquidity, and the min and max values are in accordance with an investor’s intuition, i.e., EMD = 0 in the case of total illiquidity and EMD = 1 in the case of total liquidity. Hence, depth and liquidity calculated using the EMD for different stocks can be easily interpret and compared to each other. Moreover, the EMD can be treated as a measure of both market liquidity and market entropy. This is the advantage of this new indicator because higher values of entropy inform about higher market efficiency (in the sense of the EMH), and are coupled with higher values of stock liquidity.
Furthermore, intra-day behavior of the EMD indicator has been assessed and empirical findings concerning intra-day seasonal patterns in the EMD are homogenous and consistent with the existing studies on other liquidity proxies.
It is well documented in the literature that market depth varies with spread, volume, transactions, and volatility (see e.g., [49,51,70]). Therefore, one possible direction for future study could be an extensive econometric analysis of relationships between various stock market characteristics using the new EMD indicator as market depth proxy. Subject to data availability provision, the proposed entropy-based indictor could be utilized using high-frequency data from other stock markets in the world, and the results might be interesting for practitioners.
Another promising direction for further research might be to perform a theoretical analysis of the new entropy-based indictor from the perspective of the properties of extropy [72]. As the entropy and the extropy of a binary distribution are identical, the EMD indicator can be regarded also as an extropy measure (we would like to thank an anonymous referee for this valuable suggestion.).

Author Contributions

Conceptualization, J.O.; methodology, J.O.; software, K.O.; validation, J.O.; formal analysis, J.O. and K.O.; investigation, J.O. and K.O.; resources, J.O. and K.O.; data curation, J.O. and K.O.; writing—original draft preparation, J.O.; writing—review and editing, J.O.; visualization, K.O. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported by the grant WZ/WI/1/2019 from Bialystok University of Technology and founded by the Ministry of Education and Science.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available at http://bossa.pl since 4 January 2021.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Entropy is a measure that is used to summarize the information content of a probability distribution. Specifically, the Shannon information entropy quantifies the expected value of information contained in a discrete distribution [10]. The entropy in the case of two possibilities with probabilities p and 1 p can be represented as a function of p [1] (p. 394). Given the probabilities defined by Equations (3) and (4), we can set P b u y = p and P s e l l = 1 p , and then the EMD indicator (2) can be directly written as the function of probability p = P b u y :
E M D = 1 log ( 2 ) ( P b u y · log ( P b u y ) + P s e l l · log ( P s e l l ) )         = 1 log ( 2 ) ( p log ( p ) + ( 1 p ) log ( 1 p ) ) = f ( p )
By analogy with the Shannon entropy, the f ( p ) function (A1) has several important properties which substantiate it as a reasonable measure of choice or information, and all of them are documented in [1]. In this paper, we focus on some basic properties, especially in the context of a binary distribution, and most of them are analyzed in Section 2.2. However, it is crucial to add that the f ( p ) function (A1) is non-negative, continuous and differentiable at each point in its domain. For instance, these properties allow us to assess the sensitivity of the EMD to changes in probability p as the argument of function f ( p ) . The results could be interesting for practitioners as, from an investor’s point of view, it is important to know how do changes in probability p = P b u y (connected with cumulated trading volume) affect the EMD value (it could be a possible direction for further investigation).
Figure A1 illustrates the plot of the EMD as the function of probability p = P b u y . It is important to notice that the EMD plot is identical with the plot of entropy presented in the Shannon’s seminal paper [1] (p. 394), and it confirms that the EMD measures both market liquidity and market entropy.
Figure A1. The Entropy-based Market Depth (EMD) as the function of probability p = P b u y .
Figure A1. The Entropy-based Market Depth (EMD) as the function of probability p = P b u y .
Entropy 23 00568 g0a1

Appendix B

Table A1 presents the Lee and Ready [45] algorithm inferring the initiator of a trade. The midpoint price P t m i d at time t is calculated as the arithmetic mean of the low price P t L and the high price P t H at time t, i.e., P t m i d = P t L + P t H 2 . The transaction price P t at time t is approximated by the closing price. The opening trade is treated as being unclassified according to the LR procedure.
Table A1. The Lee-Ready algorithm inferring the initiator of a trade.
Table A1. The Lee-Ready algorithm inferring the initiator of a trade.
Conditions
Stage I
P t > P t m i d Trade is classified as buyer-initiated
P t < P t m i d Trade is classified as seller-initiated
P t = P t m i d Then:
Stage II
P t m i d > P t 1 Trade is classified as buyer-initiated
P t m i d < P t 1 Trade is classified as seller-initiated
P t m i d = P t 1 The decision is taken using the sign of the last non-zero price change P t k .
P t > P t k Trade is classified as buyer-initiated
P t < P t k Trade is classified as seller-initiated
Source: [56] (p. 6).

Appendix C

Table A2 reports the number of trading days for each company and investigated period excluding the days when all of the transactions within a day are unclassified based on the Lee and Ready [45] algorithm inferring the initiator of a trade. These numbers are necessary to test the hypothesis (5) as the OR and EMD indicators are not defined when: (1) all transactions within an analyzed time period are unclassified, and (2) an analyzed time period is a zero-volume period, which means the total lack of transactions. Additionally, one can observe that for the most liquid companies (namely PKN, PKO, PEO, ING, KGH, MBK, BHW, OPL, MIL, SNS, GTC) the numbers of days reported in Table A2 are equal (or almost equal) to the particular sample size, respectively.
Table A2. The number of trading days excluding the days when: (1) all of the transactions within a day are unclassified, and (2) total daily trading volume is equal to zero.
Table A2. The number of trading days excluding the days when: (1) all of the transactions within a day are unclassified, and (2) total daily trading volume is equal to zero.
PKNPKOPEOBZWINGKGHMBKLPPBHWOPL
WS3005300430052979300430053005293130043005
S1436436436436436436436411436436
S2436436436436436436436430436436
S3436436436436436436436424436436
MILSNSBDXZWCCARGTCKTYORBSTPECH
WS3005300529832433286730032977296228842967
S1436436432354400436435436416426
S2436436435385433436436436432436
S3436436435392427436434434435436
Notes: Notation as in Table 3. The sample size: WS (3005 trading days); S1, S2, S3 (436 trading days).

Appendix D

Figure A2, Figure A3 and Figure A4 illustrate intra-day seasonality results within three sub-periods S1, S2, S3 for the whole group of 20 WSE–listed companies investigated in this study. Notation as in Table 3. Information about trading hours H1H8 based on Table 6.
Figure A2. Intra-day hourly patterns of the EMD indicator within the pre-crisis period (S1) for the whole group of 20 WSE–listed stocks. Notation as in Table 3 and Table 6.
Figure A2. Intra-day hourly patterns of the EMD indicator within the pre-crisis period (S1) for the whole group of 20 WSE–listed stocks. Notation as in Table 3 and Table 6.
Entropy 23 00568 g0a2
Figure A3. Intra-day hourly patterns of the EMD indicator within the crisis period (S2) for the whole group of 20 WSE–listed stocks. Notation as in Table 3 and Table 6.
Figure A3. Intra-day hourly patterns of the EMD indicator within the crisis period (S2) for the whole group of 20 WSE–listed stocks. Notation as in Table 3 and Table 6.
Entropy 23 00568 g0a3aEntropy 23 00568 g0a3b
Figure A4. Intra-day hourly patterns of the EMD indicator within the post-crisis period (S3) for the whole group of 20 WSE–listed stocks. Notation as in Table 3 and Table 6.
Figure A4. Intra-day hourly patterns of the EMD indicator within the post-crisis period (S3) for the whole group of 20 WSE–listed stocks. Notation as in Table 3 and Table 6.
Entropy 23 00568 g0a4aEntropy 23 00568 g0a4b

References

  1. Shannon, C.E. A mathematical theory of communication. Bell Syst. Technol. J. 1948, 27, 379–423. [Google Scholar] [CrossRef] [Green Version]
  2. Zhou, R.; Cai, R.; Tong, G. Applications of entropy in finance: A review. Entropy 2013, 15, 4909–4931. [Google Scholar] [CrossRef]
  3. Philippatos, G.C.; Wilson, C.J. Entropy, market risk, and the selection of efficient portfolios. App. Econ. 1972, 4, 209–220. [Google Scholar] [CrossRef]
  4. Usta, I.; Kantar, Y.M. Mean-variance-skewness-entropy measures: A multi-objective approach for portfolio selection. Entropy 2011, 13, 117–133. [Google Scholar] [CrossRef]
  5. Zhang, W.-G.; Liu, Y.-J.; Xu, W.-J. A possibilistic mean-semivariance-entropy model for multi-period portfolio selection with transaction costs. Eur. J. Oper. Res. 2012, 222, 341–349. [Google Scholar] [CrossRef]
  6. Huang, X. Mean-entropy models for fuzzy portfolio selection. IEEE Trans. Fuzzy Syst. 2008, 16, 1096–1101. [Google Scholar] [CrossRef]
  7. Yu, J.-R.; Lee, W.-Y.; Chiou, W.-J.P. Diversified portfolios with different entropy measures. App. Math. Comp. 2014, 241, 47–63. [Google Scholar] [CrossRef]
  8. Zhou, R.; Liu, X.; Yu, M.; Huang, K. Properties of risk measures of generalized entropy in portfolio selection. Entropy 2017, 19, 657. [Google Scholar] [CrossRef] [Green Version]
  9. Yang, J.; Qiu, W. A measure of risk and decision-making model based on expected utility and entropy. Eur. J. Oper. Res. 2005, 164, 792–799. [Google Scholar] [CrossRef]
  10. Pele, D.T.; Lazar, E.; Dufour, A. Information entropy and measures of market risk. Entropy 2017, 19, 226. [Google Scholar] [CrossRef] [Green Version]
  11. Gradojevic, N.; Caric, M. Predicting systematic risk with entropic indicators. J. Forecast. 2017, 36, 16–25. [Google Scholar] [CrossRef] [Green Version]
  12. Fritelli, M. The minimal entropy martingale measure and the valuation problem in incomplete markets. Math. Financ. 2000, 10, 39–52. [Google Scholar] [CrossRef]
  13. Stutzer, M. Simple entropic derivation of a generalized Black-Scholes option pricing model. Entropy 2000, 2, 70. [Google Scholar] [CrossRef] [Green Version]
  14. Geman, D.; Geman, H.; Taleb, N.N. Tail risk constraints and maximum entropy. Entropy 2015, 17, 3724–3737. [Google Scholar] [CrossRef] [Green Version]
  15. Xu, Y.; Wu, Z.; Jiang, L.; Song, X. A maximum entropy method for a robust portfolio problem. Entropy 2014, 16, 3401–3415. [Google Scholar] [CrossRef] [Green Version]
  16. Brody, D.C.; Hughston, L.P. Entropy and information in the interest rate term structure. Quant. Financ. 2002, 2, 70–80. [Google Scholar] [CrossRef]
  17. Gulko, L. The entropy theory of stock option pricing. Int. J. Theor. App. Financ. 1999, 2, 331–355. [Google Scholar] [CrossRef]
  18. Gulko, L. The entropy theory of bond option pricing. Int. J. Theor. App. Financ. 2002, 5, 355–383. [Google Scholar] [CrossRef]
  19. Golan, A.; Perloff, J.M. Comparison of maximum entropy and higher-order entropy estimators. J. Econ. 2002, 107, 195–211. [Google Scholar] [CrossRef] [Green Version]
  20. Ullah, A. Uses of entropy and divergence measures for evaluating econometric approximations and inference. J. Econ. 2002, 107, 313–326. [Google Scholar] [CrossRef]
  21. Kitamura, Y.; Stutzer, M. Connections between entropic and linear projections in asset pricing estimation. J. Econ. 2002, 107, 159–174. [Google Scholar] [CrossRef]
  22. Maasoumi, E.; Racine, J. Entropy and predictability of stock market returns. J. Econ. 2002, 107, 291–312. [Google Scholar] [CrossRef]
  23. Bera, A.K.; Park, S.Y. Optimal portfolio diversification using the maximum entropy principle. Econ. Rev. 2008, 27, 484–512. [Google Scholar] [CrossRef]
  24. Billio, M.; Casarin, R.; Costola, M.; Pasqualini, A. An entropy-based early warning indicator for systematic risk. J. Int. Financ. Mark. Inst. Money 2016, 45, 42–59. [Google Scholar] [CrossRef] [Green Version]
  25. Zhao, N.; Lin, W.T. A copula entropy approach to correlation measurement at the country level. Appl. Math. Comput. 2011, 218, 628–642. [Google Scholar] [CrossRef]
  26. Zunino, L.; Zanin, M.; Tabak, B.M.; Pérez, D.G.; Rosso, O.A. Forbidden patterns, permutation entropy and stock market inefficiency. Phys. A Stat. Mech. Its Appl. 2009, 385, 2854–2864. [Google Scholar] [CrossRef]
  27. Mantegna, R.N. Hierarchical structure in financial markets. Eur. Phys. J. B 1999, 11, 193–197. [Google Scholar] [CrossRef] [Green Version]
  28. Li, S.; He, J.; Song, K. Network entropies of the Chinese financial market. Entropy 2016, 18, 331. [Google Scholar] [CrossRef] [Green Version]
  29. Lv, Q.; Han, L.; Wan, Y.; Yin, L. Stock net entropy: Evidence from the Chinese growth enterprise market. Entropy 2018, 20, 805. [Google Scholar] [CrossRef] [Green Version]
  30. Schreiber, T. Measuring information transfer. Phys. Rev. Lett. 2000, 85, 461–464. [Google Scholar] [CrossRef] [Green Version]
  31. Hlaváčková-Schindler, K.; Paluš, M.; Vejmelka, M.; Bhattacharya, J. Causality detection based on information-theoretic approaches in time series analysis. Phys. Rep. 2007, 441, 1–46. [Google Scholar] [CrossRef]
  32. Będowska-Sójka, B.; Kliber, A. Information content of liquidity and volatility measures. Phys. A Stat. Mech. Its Appl. 2021, 563, 125436. [Google Scholar] [CrossRef]
  33. Jizba, P.; Kleinert, H.; Shefaat, M. Rényi’s information transfer between financial time series. Phys. A Stat. Mech. Its Appl. 2012, 391, 2971–2989. [Google Scholar] [CrossRef] [Green Version]
  34. Syczewska, E.M.; Struzik, Z.R. Granger causality and transfer entropy for financial returns. Acta Phys. Pol. A 2015, 127, A-129. [Google Scholar] [CrossRef]
  35. He, J.; Shang, P. Comparison of transfer entropy methods for financial time series. Phys. A Stat. Mech. Its Appl. 2017, 482, 772–785. [Google Scholar] [CrossRef]
  36. Bossomaier, T.; Barnett, L.; Harre, M. Information and phase transitions in socio-economic systems. Complex Adapt. Syst. Model. 2013, 1. [Google Scholar] [CrossRef] [Green Version]
  37. Hmamouche, Y. NlinTS: An R package for causality detection in time series. R J. 2020, 12, 21–31. [Google Scholar] [CrossRef]
  38. Allen, D.E.; McAleer, M.; Singh, A.K. An entropy-based analysis of the relationship between the DOW JONES index and the TRNA sentiment series. App. Econ. 2017, 49, 677–692. [Google Scholar] [CrossRef] [Green Version]
  39. Liu, A.; Chen, J.; Yang, S.Y.; Hawkes, A.G. The flow of information in trading: An entropy approach to market regimes. Entropy 2020, 22, 1064. [Google Scholar] [CrossRef] [PubMed]
  40. McCauley, J.L. Thermodynamic analogies in economics and finance: Instability of markets. Phys. A Stat. Mech. Its Appl. 2003, 329, 199–212. [Google Scholar] [CrossRef] [Green Version]
  41. Lu, S.; Zhao, J.; Wang, H. Trading imbalance in Chinese stock market—A high-frequency view. Entropy 2020, 22, 897. [Google Scholar] [CrossRef] [PubMed]
  42. Olbrys, J.; Mursztyn, M. Depth, tightness, and resiliency as market liquidity dimensions: Evidence from the Polish stock market. Int. J. Comp. Econ. Econ. 2019, 9, 308–326. [Google Scholar] [CrossRef]
  43. Olbrys, J.; Mursztyn, M. Dimensions of Market. In Advances in Applied Economic Research; Tsounis, N., Vlachvei, A., Eds.; Springer: Cham, Switzerland, 2017; pp. 151–166. [Google Scholar] [CrossRef]
  44. Kyle, A.S. Continuous auctions and insider trading. Econometrica 1985, 53, 1315–1336. [Google Scholar] [CrossRef] [Green Version]
  45. Lee, C.M.C.; Ready, M.J. Inferring trade direction from intraday data. J. Financ. 1991, 46, 733–746. [Google Scholar] [CrossRef]
  46. Ahn, H.-J.; Bae, K.-H.; Chan, K. Limit orders, depth, and volatility: Evidence from the Stock Exchange of Hong Kong. J. Financ. 2001, 56, 767–787. [Google Scholar] [CrossRef]
  47. Chan, K.; Fong, W.-M. Trade size, order imbalance, and the volatility-volume relation. J. Financ. Econ. 2000, 57, 247–273. [Google Scholar] [CrossRef]
  48. Chordia, T.; Roll, R.; Subrahmanyam, A. Order imbalance, liquidity, and market returns. J. Financ. Econ. 2002, 65, 111–130. [Google Scholar] [CrossRef] [Green Version]
  49. Engle, R.; Lange, J. Predicting VNET: A model of the dynamics of market depth. J. Financ. Mark. 2001, 4, 113–142. [Google Scholar] [CrossRef]
  50. Hmaied, D.M.; Grar, A.; Sioud, O.B. Dynamics of market liquidity of Tunisian stocks: An analysis of market resiliency. Electron. Mark. 2006, 16, 140–153. [Google Scholar] [CrossRef]
  51. Lee, C.M.C.; Mucklow, B.; Ready, M.J. Spreads, depths, and the impact of earnings information: An intraday analysis. Rev. Financ. Stud. 1993, 6, 345–374. [Google Scholar] [CrossRef]
  52. Ranaldo, A. Intraday market liquidity on the Swiss Stock Exchange. Swiss Soc. Financ. Mark. Res. 2001, 15, 309–327. [Google Scholar] [CrossRef]
  53. Nowak, S. Order imbalance indicators in asset pricing: Evidence from the Warsaw Stock Exchange. In Contemporary Trends and Challenges in Finance; Jajuga, K., Orlowski, L., Staehr, K., Eds.; Springer: Cham, Switzerland, 2017; pp. 91–102. [Google Scholar] [CrossRef]
  54. Olbrys, J.; Mursztyn, M. Measuring stock market resiliency with Discrete Fourier Transform for high frequency data. Phys. A Stat. Mech. Its Appl. 2019, 513, 248–256. [Google Scholar] [CrossRef]
  55. Olbrys, J.; Mursztyn, M. Estimation of intraday stock market resiliency: Short-Time Fourier Transform approach. Phys. A Stat. Mech. Its Appl. 2019, 535, 122413. [Google Scholar] [CrossRef]
  56. Olbryś, J.; Mursztyn, M. Evaluating trade side classification algorithms using intraday data from the Warsaw Stock Exchange. Arch. Data Sci. A 2018, 4, 1–19. [Google Scholar] [CrossRef]
  57. Olbrys, J.; Majewska. E. Crisis periods and contagion effects in the CEE stock markets: The influence of the 2007 U.S. subprime crisis. Int. J. Comput. Econ. Econ. 2016, 6, 124–137. [Google Scholar] [CrossRef]
  58. Goodhart, C.A.E.; O’Hara, M. High frequency data in financial markets: Issues and applications. J. Emp. Financ. 1997, 4, 73–114. [Google Scholar] [CrossRef]
  59. Wood, R.; McInish, T.H.; Ord, J.K. An investigation of transactions data for NYSE stocks. J. Financ. 1985, 40, 723–739. [Google Scholar] [CrossRef]
  60. Jain, C.; Joh, G.-H. The dependence between hourly prices and trading volume. J. Financ. Quant. Anal. 1988, 23, 269–283. [Google Scholar] [CrossRef]
  61. Admati, A.R.; Pfleiderer, P. A theory of intraday patterns: Volume and price variability. Rev. Financ. Stud. 1988, 1, 3–40. [Google Scholar] [CrossRef]
  62. McInish, T.H.; Wood, R.A. An analysis of transactions data for Toronto Stock Exchange: Return patterns and end-of-the-day effect. J. Bank. Financ. 1990, 14, 441–458. [Google Scholar] [CrossRef]
  63. McInish, T.H.; Wood, R.A. Hourly returns, volume, trade size, and number of trades. J. Financ. Res. 1991, 14, 303–315. [Google Scholar] [CrossRef]
  64. Vo, M.T. Limit orders and the intraday behavior of market liquidity: Evidence from the Toronto stock exchange. Glob. Financ. J. 2007, 17, 379–396. [Google Scholar] [CrossRef] [Green Version]
  65. Hamao, Y.; Hasbrouck, J. Securities trading in the absence of dealers: Trades, and quotes on the Tokyo Stock Exchange. Rev. Financ. Stud. 1995, 8, 849–878. [Google Scholar] [CrossRef] [Green Version]
  66. Cai, C.X.; Hudson, R.; Keasey, K. Intra day bid-ask spreads, trading volume and volatility: Recent empirical evidence from the London Stock Exchange. J. Bus. Financ. Acc. 2004, 31, 647–676. [Google Scholar] [CrossRef]
  67. Ahn, H.-J.; Cheung, Y.-L. The intraday patterns of the spread and depth in a market without market makers: The Stock Exchange of Hong Kong. Pac. Basin Financ. J. 1999, 7, 539–556. [Google Scholar] [CrossRef]
  68. Olbryś, J.; Oleszczak, A. Intraday Patterns in Trading Volume. Evidence from High Frequency Data on the Polish Stock Market. In Computer Information Systems and Industrial Management. CISIM 2020. LNCS, Saeed, K., Dvorsky, J., Eds.; Springer: Cham, Switzerland, 2020; Volume 12133, pp. 390–401. [Google Scholar] [CrossRef]
  69. Harris, L. Trading and Exchange Market: Microstructure for Practitioners; Oxford University Press: New York, NY, USA, 2003. [Google Scholar]
  70. Huberman, G.; Halka, D. Systematic liquidity. J. Financ. Res. 2001, 24, 161–178. [Google Scholar] [CrossRef]
  71. Chordia, T.; Roll, R.; Subrahmanyam, A. Market liquidity and trading activity. J. Financ. 2001, 56, 501–530. [Google Scholar] [CrossRef]
  72. Lad, F.; Sanfillippo, G.; Agrò, G. Extropy: Complementary dual of entropy. Stat. Sci. 2015, 30, 40–58. [Google Scholar] [CrossRef]
Figure 1. The relationship between the Entropy-based Market Depth (EMD) and Order Ratio (OR) indicators.
Figure 1. The relationship between the Entropy-based Market Depth (EMD) and Order Ratio (OR) indicators.
Entropy 23 00568 g001
Figure 2. Intra-day hourly patterns of the EMD indicator within the whole sample period (WS) January 2005–December 2016 for the group of 20 WSE–listed equities. Notation as in Table 3 and Table 6.
Figure 2. Intra-day hourly patterns of the EMD indicator within the whole sample period (WS) January 2005–December 2016 for the group of 20 WSE–listed equities. Notation as in Table 3 and Table 6.
Entropy 23 00568 g002
Table 1. Simple illustrative examples of the OR and EMD values for four selected cases and the same time period.
Table 1. Simple illustrative examples of the OR and EMD values for four selected cases and the same time period.
PossibilitiesProbabilitiesOR IndicatorEMD Indicator
Example 1—min OR and max EMD
C T V b + C T V s = 1000 P b u y = 500 1000 = 0.5 O R = | 500 500 | 1000 = 0 E M D = 1 log ( 2 ) ( 2 · 0.5 · log ( 0.5 ) ) = 1
C T V b = 500 P s e l l = 500 1000 = 0.5
C T V s = 500
Example 2
C T V b + C T V s = 1000 P b u y = 600 1000 = 0.6 O R = | 600 400 | 1000 = 0.2 E M D = 1 log ( 2 ) ( 0.6 · log ( 0.6 ) + 0.4 · log ( 0.4 ) ) 0.971
C T V b = 600 P s e l l = 400 1000 = 0.4
C T V s = 400
Example 3
C T V b + C T V s = 1000 P b u y = 900 1000 = 0.9 O R = | 900 100 | 1000 = 0.8 E M D = 1 log ( 2 ) ( 0.9 · log ( 0.9 ) + 0.1 · log ( 0.1 ) ) 0.469
C T V b = 900 P s e l l = 100 1000 = 0.1
C T V s = 100
Example 4—max OR and min EMD
C T V b + C T V s = 1000 P b u y = 1000 1000 = 1 O R = | 1000 0 | 1000 = 1 E M D = 1 log ( 2 ) ( 1 · log 1 + 0 ) = 0
C T V b = 1000 P s e l l = 0 1000 = 0
C T V s = 0
Table 2. Overall relationships between two market depth indicators, market depth, market liquidity, and market entropy.
Table 2. Overall relationships between two market depth indicators, market depth, market liquidity, and market entropy.
IndicatorMarket DepthMarket LiquidityMarket Entropy
High order ratio (OR)Low market depthLow liquidity
Low order ratio (OR)High market depthHigh liquidity
High Entropy-based Market Depth (EMD)High market depthHigh liquidityHigh entropy
Low Entropy-based Market Depth (EMD)Low market depthLow liquidityLow entropy
Table 3. The averaged daily values of the Order Ratio (OR) and Entropy-based Market Depth (EMD) indicators within the whole sample period and three sub–periods for the group of 20 WSE–listed companies.
Table 3. The averaged daily values of the Order Ratio (OR) and Entropy-based Market Depth (EMD) indicators within the whole sample period and three sub–periods for the group of 20 WSE–listed companies.
CompanyMV PLN mNo. of Records in the DatabaseOR indicatorEMD Indicator
WSS1S2S3WSS1S2S3
1PKN36483.5827392430.19
(0.13)
0.19
(0.13)
0.20
(0.14)
0.21
(0.13)
0.96
(0.05)
0.96
(0.05)
0.96
(0.05)
0.96
(0.05)
2PKO35175.0037252990.19
(0.14)
0.24
(0.16)
0.21
(0.14)
0.20
(0.14)
0.96
(0.06)
0.94
(0.08)
0.95
(0.06)
0.96
(0.06)
3PEO33018.7322107640.21
(0.16)
0.25
(0.19)
0.21
(0.15)
0.21
(0.15)
0.95
(0.08)
0.93
(0.11)
0.95
(0.06)
0.95
(0.06)
4BZW31358.119968520.32
(0.25)
0.32
(0.23)
0.25
(0.18)
0.27
(0.19)
0.86
(0.21)
0.88
(0.17)
0.93
(0.10)
0.92
(0.10)
5ING20998.141910910.48
(0.30)
0.60
(0.31)
0.55
(0.30)
0.44
(0.27)
0.73
(0.28)
0.60
(0.33)
0.67
(0.30)
0.78
(0.24)
6KGH18496.0045828160.17
(0.13)
0.17
(0.12)
0.19
(0.14)
0.19
(0.13)
0.98
(0.05)
0.97
(0.05)
0.96
(0.05)
0.96
(0.05)
7MBK14174.129309820.29
(0.21)
0.40
(0.27)
0.28
(0.21)
0.25
(0.17)
0.90
(0.14)
0.81
(0.22)
0.90
(0.13)
0.93
(0.08)
8LPP10412.232754520.50
(0.33)
0.68
(0.32)
0.56
(0.31)
0.62
(0.33)
0.68
(0.35)
0.47
(0.38)
0.64
(0.33)
0.56
(0.36)
9BHW9981.094984270.38
(0.27)
0.49
(0.30)
0.48
(0.29)
0.50
(0.29)
0.83
(0.23)
0.72
(0.29)
0.74
(0.27)
0.72
(0.27)
10OPL7231.0920559140.22
(0.16)
0.20
(0.15)
0.20
(0.15)
0.22
(0.17)
0.95
(0.08)
0.95
(0.07)
0.95
(0.06)
0.94
(0.08)
11MIL6296.085475390.34
(0.24)
0.40
(0.27)
0.39
(0.26)
0.30
(0.21)
0.86
(0.18)
0.81
(0.22)
0.82
(0.20)
0.90
(0.13)
12SNS6034.026784810.32
(0.23)
0.43
(0.25)
0.39
(0.26)
0.36
(0.24)
0.88
(0.17)
0.80
(0.21)
0.82
(0.21)
0.85
(0.18)
13BDX5053.682085740.45
(0.29)
0.58
(0.31)
0.52
(0.31)
0.46
(0.28)
0.76
(0.28)
0.62
(0.33)
0.69
(0.31)
0.76
(0.25)
14ZWC4550.20221810.65
(0.34)
0.67
(0.33)
0.63
(0.34)
0.62
(0.33)
0.50
(0.40)
0.48
(0.40)
0.53
(0.39)
0.55
(0.39)
15CAR3932.36664320.60
(0.32)
0.62
(0.32)
0.57
(0.32)
0.59
(0.32)
0.59
(0.35)
0.56
(0.37)
0.63
(0.33)
0.60
(0.34)
16GTC3773.787870200.32
(0.25)
0.35
(0.28)
0.25
(0.17)
0.26
(0.19)
0.86
(0.20)
0.84
(0.24)
0.93
(0.08)
0.92
(0.10)
17KTY3668.031551100.49
(0.30)
0.45
(0.28)
0.53
(0.30)
0.52
(0.31)
0.73
(0.29)
0.76
(0.26)
0.69
(0.29)
0.69
(0.30)
18ORB3363.621018500.55
(0.31)
0.47
(0.29)
0.52
(0.29)
0.57
(0.31)
0.65
(0.33)
0.75
(0.27)
0.70
(0.28)
0.64
(0.32)
19STP2929.64742270.54
(0.32)
0.50
(0.31)
0.52
(0.32)
0.50
(0.31)
0.66
(0.34)
0.70
(0.31)
0.68
(0.32)
0.70
(0.32)
20ECH2104.991624640.48
(0.31)
0.54
(0.32)
0.40
(0.27)
0.45
(0.28)
0.72
(0.30)
0.65
(0.33)
0.81
(0.22)
0.77
(0.25)
Total259034.5021010718-
Notes: The 20 WSE–listed companies are labeled by ticker symbols and reported in decreasing order of the market value (MV) at the end of 2016. WS—the whole sample period 2 January 2005–30 December 2016; S1–the pre-crisis sub-period 6 September 2005–31 May 2007; S2—the crisis sub-period on the WSE 1 June 2007–27 February 2009; S3—the post-crisis sub-period 2 March 2009–19 November 2010. Standard deviations are given in parentheses.
Table 4. Pearson correlation coefficients between daily market depth values calculated using the alternative indicators (1) and (2).
Table 4. Pearson correlation coefficients between daily market depth values calculated using the alternative indicators (1) and (2).
PKNPKOPEOBZWINGKGHMBKLPPBHWOPL
WS−0.927−0.920−0.922−0.923−0.946−0.913−0.922−0.950−0.938−0.929
S1−0.928−0.936−0.929−0.934−0.956−0.912−0.940−0.955−0.950−0.918
S2−0.934−0.941−0.944−0.922−0.948−0.945−0.925−0.949−0.945−0.925
S3−0.947−0.931−0.942−0.943−0.946−0.944−0.945−0.953−0.948−0.929
MILSNSBDXZWCCARGTCKTYORBSTPECH
WS−0.935−0.929−0.940−0.953−0.950−0.928−0.944−0.948−0.946−0.944
S1−0.946−0.944−0.949−0.956−0.952−0.937−0.939−0.955−0.943−0.949
S2−0.941−0.941−0.948−0.952−0.947−0.944−0.950−0.946−0.947−0.940
S3−0.938−0.931−0.945−0.948−0.952−0.937−0.950−0.949−0.946−0.948
Notes: Notation as in Table 3.
Table 5. Summarized results of the significance test for the difference between two means of daily Entropy-based Market Depth (EMD) values for the group of 20 WSE–listed equities.
Table 5. Summarized results of the significance test for the difference between two means of daily Entropy-based Market Depth (EMD) values for the group of 20 WSE–listed equities.
PKNPKOPEOBZWINGKGHMBKLPPBHWOPLNo. of H 0
WS/S1 H 0 H 1 H 1 H 0 H 1 H 0 H 1 H 1 H 1 H 0 4
WS/S2 H 0 H 0 H 0 H 1 H 1 H 1 H 0 H 0 H 1 H 0 6
WS/S3 H 0 H 0 H 0 H 1 H 1 H 0 H 1 H 1 H 1 H 0 5
S2/S1 H 0 H 1 H 1 H 1 H 1 H 0 H 1 H 1 H 0 H 0 4
S2/S3 H 0 H 0 H 0 H 0 H 1 H 0 H 1 H 1 H 0 H 0 7
S1/S3 H 0 H 1 H 1 H 1 H 1 H 0 H 1 H 1 H 0 H 0 4
No. of H 0 633205113630
MILSNSBDXZWCCARGTCKTYORBSTPECHNo. of H 0
WS/S1 H 1 H 1 H 1 H 0 H 0 H 0 H 0 H 1 H 0 H 1 5
WS/S2 H 1 H 1 H 1 H 0 H 0 H 1 H 0 H 1 H 0 H 1 4
WS/S3 H 1 H 0 H 0 H 0 H 0 H 1 H 0 H 0 H 0 H 1 7
S2/S1 H 0 H 0 H 0 H 0 H 0 H 1 H 1 H 0 H 0 H 1 7
S2/S3 H 1 H 0 H 1 H 0 H 0 H 0 H 0 H 0 H 0 H 0 8
S1/S3 H 1 H 1 H 1 H 0 H 0 H 1 H 1 H 1 H 0 H 1 3
No. of H 0 132662436134
Notes: Notation as in Table 3. The critical value of Z-statistic at 0.25% significance level is equal to 3.03 for each test.
Table 6. Market trading schedule on the WSE equities–continuous trading system.
Table 6. Market trading schedule on the WSE equities–continuous trading system.
Market PhaseTimeHours
Opening call8:30 am–9:00 am
Opening auction9:00 am
Continuous trading
Closing call
9:00 am–4:50 pm
4:50 pm–5:00 pm
H1: 9:00 am–10:00 am
H2: 10:00 am–11:00 am
H3: 11:00 am–12:00 am
H4: 12:00 am–1:00 pm
H5: 1:00 pm–2:00 pm
H6: 2:00 pm–3:00 pm
H7: 3:00 pm–4:00 pm
H8: 4:00 pm–5:00 pm
Closing auction5:00 pm
Trading at last5:00 pm–5:05 pm
Source: The WSE website (https://gpw.pl/session-details; accessed date 15 February 2021).
Table 7. Summarized findings of hourly patterns in the EMD indicator for the group of 20 WSE–listed equities.
Table 7. Summarized findings of hourly patterns in the EMD indicator for the group of 20 WSE–listed equities.
PKNPKOPEOBZWINGKGHMBKLPPBHWOPL
WSU-similarU-similarU-similarU-similarU-similarU-similarU-similarU-similarU-similarU-similar
S1M-similarM-similarM-similarM-similarM-similarM-similarM-similarM-similarM-similarM-similar
S2M-similarM-similarM-similarM-similarM-similarM-similarM-similarOtherOtherM-similar
S3U-similarU-similarU-similarU-similarU-similarU-similarU-similarOtherU-similarU-similar
MILSNSBDXZWCCARGTCKTYORBSTPECH
WSU-similarU-similarU-similarOtherU-similarU-similarM-similarM-similarU-similarU-similar
S1M-similarM-similarOtherOtherOtherU-similarM-similarM-similarOtherM-similar
S2M-similarM-similarM-similarM-similarU-similarU-similarM-similarM-similarM-similarM-similar
S3U-similarU-similarU-similarOtherU-similarU-similarOtherU-similarU-similarU-similar
Notes: Notation as in Table 3. Based on Figure 2 and Figure A2, Figure A3 and Figure A4 (Appendix D).
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Olbryś, J.; Ostrowski, K. An Entropy-Based Approach to Measurement of Stock Market Depth. Entropy 2021, 23, 568. https://0-doi-org.brum.beds.ac.uk/10.3390/e23050568

AMA Style

Olbryś J, Ostrowski K. An Entropy-Based Approach to Measurement of Stock Market Depth. Entropy. 2021; 23(5):568. https://0-doi-org.brum.beds.ac.uk/10.3390/e23050568

Chicago/Turabian Style

Olbryś, Joanna, and Krzysztof Ostrowski. 2021. "An Entropy-Based Approach to Measurement of Stock Market Depth" Entropy 23, no. 5: 568. https://0-doi-org.brum.beds.ac.uk/10.3390/e23050568

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