Next Article in Journal
Transport Equation for Small Systems and Nonadditive Entropy
Next Article in Special Issue
Predicting Time SeriesUsing an Automatic New Algorithm of the Kalman Filter
Previous Article in Journal
On the Probability of Finding Extremes in a Random Set
Previous Article in Special Issue
Metamorphoses of Earnings in the Transport Sector of the V4 Region
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modelling Trade Durations Using Dynamic Logarithmic Component ACD Model with Extended Generalised Inverse Gaussian Distribution

1
Institute of Mathematical Sciences, Faculty of Science, Universiti Malaya, Kuala Lumpur 50603, Malaysia
2
School of Mathematics and Statistics, Faculty of Science, The University of Sydney, Sydney, NSW 2006, Australia
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(10), 1621; https://doi.org/10.3390/math10101621
Submission received: 18 March 2022 / Revised: 28 April 2022 / Accepted: 2 May 2022 / Published: 10 May 2022
(This article belongs to the Special Issue Time Series Analysis and Econometrics with Applications)

Abstract

:
This paper proposes a logarithmic version of the two-component ACD (LogCACD) model with no restrictions on the sign of the model parameters while allowing the expected durations to be decomposed into the long- and short-run components to capture the dynamics of these durations. The extended generalised inverse Gaussian (EGIG) distribution is used for the error distribution as its hazard function consists of a roller-coaster shape for certain parameters’ values. An empirical application from the trade durations of International Business Machines stock index has been carried out to investigate this proposed model. Extensive comparisons are carried out to evaluate the modelling and forecasting performances of the proposed model with several benchmark models and different specifications of error distributions. The result reveals that the LogCACDEGIG(1,1) model gives the best in-sample fit based on the Akaike information criterion and other criteria. Furthermore, the estimated parameters obtained through the maximum likelihood estimation confirm the existence of the roller-coaster-shaped hazard function. The examination of LogCACDEGIG(1,1) model also provides the best out-of-sample forecasts evaluated based on the mean square forecast error using the Hansen’s model confidence set. Lastly, different levels of time-at-risk forecasts are provided and tested with Kupiec likelihood ratio test.

1. Introduction

In finance, duration is defined as the time interval between two consecutive events. For example, duration data that have been studied by researchers are trade, quote, price, transaction, and volume. As discussed by [1], financial durations played an important role in understanding and processing of private and public information in a financial market. With the advancement of technology, high frequency financial duration data can be recorded and are collected in irregular time intervals. In general, they show a strong autocorrelation which can be used to study the intraday market behaviours and dynamic of trades.
The duration models originated from the family of autoregressive conditional duration (ACD) model introduced by [2] and treated the transaction arrival time as a random variable in the dependent point process where its conditional intensity depends on the past duration. In the early stage, ACD models have been expressed in a linear model specification consisting of non-negative model parameters and non-negative error distributions such as the exponential (Exp) and Weibull (Wei) distributions [2] and the generalised gamma (GG) distribution [3]. The limitation of these models is whenever some other variables having negative coefficients are assigned to the linear autoregressive equation, the durations might become negative. Meanwhile, it is quite frequent that these ACD models will impose an exponential decay pattern on the autocorrelation function and, in general, will not account for the long-range dependence in durations. Therefore, the logarithmic ACD (LogACD) model of [4] was introduced with no restrictions on the sign of the parameters to guarantee the positiveness of the process and the fractionally integrated ACD (FIACD) model of [5] was introduced to capture the long-range dependence in durations, which is shown to be more flexible than the linear ACD model. Recently, several nonlinear ACD models have been developed to better delineate the trade duration process, see for example the threshold ACD model [6], the asymmetric ACD and asymmetric LogACD models [7], and the augmented ACD model [8]. An informative review on the various ACD models with its applications can be obtained in [9,10,11].
It being the case that most of the ACD models belong to the family of one-component models, [12] introduced the two-component ACD (CACD) model to fit the International Business Machines (IBM) trade durations to measure the impact of durations on the price volatility. The main feature of this duration model is that it consists of a long-run (trend) component and a short-run (transitory) component, and the sum of these two components establishes a long-range dependence in the duration process, which helps in capturing the complexity of duration dynamics in contrast to the one-component ACD models. To this end, [13] developed an alternative way of capturing long-range dependence in the trade duration series by extending the component multiplicative error model. However, little is known about the extension of the CACD model with no restrictions on the sign of the parameters, and hence we are keen to answer the research question of whether the extended CACD model with no sign restrictions will provide a better fit to the data as compared to the one-component models as well as the CACD model.
The choice of error distributions plays an important role in ACD modelling. [2] introduced the basic ACD model by considering the Exp and Wei as the error distributions. The Exp distribution with a constant hazard function and the Wei distribution with monotonically increasing or decreasing hazard function, however, are too restrictive, and thus, various error distributions have been considered to provide greater flexibility to the constructed models. Some examples include the GG distribution [3], the Burr type XII (Burr) distribution [14], the generalised F distribution [15], the Pareto distribution [16], the Lognormal distribution [17], the extended Weibull distribution [18], the Fréchet distribution [19], the generalised beta of type 2 (GB2) distribution [20] and the mixture of GB2 distribution [21]. Comparison of the ACD modelling performance using various distributions was addressed by [22,23,24], providing distributions either monotonically increasing, decreasing or non-monotonic shapes such as bathtub or upside-down-bathtub shape of the hazard function constituting of, at most, a single turning point. To the best of our knowledge, there has thus far been relatively little research into this area where most of the ACD models with error distributions have only a single turning point hazard function. In this aspect, we are interested to study this to see if the hazard function of the error distribution consisting of more than one turning point with a roller-coaster shape would help to increase the flexibility of the model.
The liquidity risk such as the minimal time without any trade occurring is valuable for market makers and traders and is analogous to the value-at-risk introduced in volatility literature. Time-at-risk (TaR) is defined as the extreme risk of time between two consecutive transactions at a certain risk level. [25] showed that the TaR can be calculated from the product of the conditional expectation of durations and the inverse of the cumulative distribution associated with the error term. In the meantime, [21] used the basic ACD models with mixed distribution to compute the TaR and conditional TaR (CTaR) forecasts of trade durations, and the TaR performance was then evaluated using violation rate and quantile loss function. The performances of TaR and CTaR were further tested by employing some other common backtests as illustrated by [26,27] to confirm the accuracy of their forecasts.
The contribution of this paper is threefold. Firstly, we propose the logarithmic CACD (LogCACD) model, which allows for no restrictions on the sign of the parameters while the conditional expectation of durations is decomposed into the long- and short-run components. As the error distribution is a crucial factor in constructing a model, our second aim is to model the duration data using the LogCACD model with flexible extended generalised inverse Gaussian (EGIG) distribution having the roller-coaster-shaped hazard function. The effects of model specification and error distribution on the performances of various ACD models are then examined by comparing the in-sample model fits and out-of-sample forecasts. Subsequently, the in-sample model fitting performance is evaluated using several criteria and loss functions while the out-of-sample forecasts are tested using the model confidence set (MCS) procedure of [28] to acquire a superior set of models (SSM). Lastly, the empirical study of IBM trade durations is investigated with the detailed illustration of the model fitting and forecasts of TaR under various risk levels. It follows that the SSM are computed and the accuracy of the TaR forecasts is tested by the Kupiec likelihood ratio (KLR) test [26].
The remainder of this paper is organised as follows. Section 2 reviews several existing ACD models including the CACD model and the motivation of the LogCACD model, while Section 3 introduces the EGIG distribution and other error distributions adopted for these duration models. Section 4 describes the empirical data used in the preliminary analysis, and Section 5 reports the model fitting and forecasting results as well as the forecast of TaR. Finally, Section 6 concludes the paper.

2. The General Class of ACD Models

Let x i be the i -th duration between two consecutive transactions occurring at random times t i and t i 1 such that
x i = t i t i 1 ,             i = 1 , 2 , , N ,
and a sequence of diurnally adjusted durations, x i is calculated by
x i = x i Φ ( t i ) ,
where Φ ( t i ) is the deterministic function used to remove the diurnal effect of x i (see [29]).

2.1. Basic ACD and CACD Models

Let ψ i be the conditional expectation of x i which is defined as
ψ i = E ( x i | x i 1 , x i 2 , , x 1 ) = E ( x i | F i 1 ) ,
where F i 1 = { x i 1 , x i 2 , , x 1 } is the information set available up to t i 1 . Then, the diurnally adjusted duration x i at time t i can be modelled as
x i = ψ i ε i ,
where ε i is a sequence of independent and identically distributed non-negative random variables with a known probability density function (pdf) f ( · ) such that E ( ε i ) = 1 and ε i is independent of F i 1 .
(a)
Basic ACD model
The basic ACD (𝒫,𝒬) model specification of orders 𝒫 and Q is given by
ψ i = ϑ + j = 1 𝒫 α j x i j + k = 1 𝒬 β k ψ i k
where the parameters ϑ > 0 , α j 0 and β k 0 are restricted to be non-negative to ensure the positivity of ψ i . The unconditional expectation of x i can be calculated from
μ = E ( x i ) = ϑ 1 j = 1 𝒫 α j k = 1 𝒫 β k
if j = 1 𝒫 α j + k = 1 𝒫 β k < 1
(b)
CACD model
Using the Equations (3) and (4), a dynamic structure of ψ i under the basic ACD(1,1) model can be written as
ψ i = μ ( 1 α 1 β 1 ) + α 1 x i 1 + β 1 ψ i 1      = μ + α 1 ( x i 1 μ ) + β 1 ( ψ i 1 μ ) ,
where   μ is the constant trend of ψ i and ( x i 1 μ ) is the shock of duration.
For a more general specification, the constant trend μ can be modelled in a dynamic structure (denoted as ψ i , 1 ), which will be allowed to evolve slowly in an autoregressive manner. More specifically, the dynamic trend of the conditional expectation of x i , ψ i , 1 can be defined as
ψ i , 1 = ω μ + ρ μ ψ i 1 , 1 + α μ ( x i 1 ψ i 1 ) ,
which is called the long-run component. On the other hand, a short-run component, ψ i , 2 , is defined as the difference between ψ i and the long-run component, ψ i , 1 . To be more specific, the short-run component, ψ i , 2 , is
ψ i , 2 = ψ i ψ i , 1 = α 1 ( x i 1 ψ i 1 , 1 ) + β 1 ( ψ i 1 ψ i 1 , 1 ) .
Hence, the CACD(1,1) model specification can be written as
ψ i = ψ i , 1 + ψ i , 2 ,
ψ i , 1 = ω μ + ρ μ ψ i 1 , 1 + α μ ( x i 1 ψ i 1 ) ,
and
ψ i , 2 = ( α 1 + β 1 ) ψ i 1 , 2 + α 1 ( x i 1 ψ i 1 ) .
Note that the duration innovation ( x i 1 ψ i 1 ) will drive both the long- and short-run components at the rate of α μ and α 1 , respectively. The long- and short-run components have the respective unconditional mean of E ( ψ i , 1 ) = ω μ / ( 1 ρ μ ) and E ( ψ i , 2 ) = 0 which leads to the long-run component converging into a constant level at ω μ / ( 1 ρ μ ) and the short-run component mean-reverting to zero at a geometric rate of ( α 1 + β 1 ) when 0 < ( α 1 + β 1 ) < 1 . If 0 < ( α 1 + β 1 ) < ρ μ < 1 , then the long-run component has much slower mean-reverting rate or more persistent than the short-run component. For CACD(1,1) model, the following non-negativity constraints are needed to ensure the positivity of the conditional expectation of durations:
ω μ > 0 ,     ρ μ > 0 ,   α μ > 0 ,   α 1 > 0 ,     β 1 > 0   and   0 < α μ < α 1 ,
which are compatible with the stationarity conditions of ( α 1 + β 1 ) < 1 and ρ μ < 1 . Principally, the CACD model resembles the component generalised autoregressive conditional heteroskedasticity (CGARCH) model, hence the constraints’ development of the CACD(1,1) model is in analogous to the CGARCH(1,1) model and the details of the illustrations can be found in the appendix of [30].
Essentially, the conditional expectation of diurnally adjusted duration for the CACD(1,1) model in Equation (8) can be written as the basic ACD(2,2) model as follows:
ψ i = ( 1 α 1 β 1 ) ω μ + ( α μ + α 1 ) x i 1 + [ α μ ( α 1 + β 1 ) α 1 ρ μ ] x i 2 + ( ρ μ + β 1 α μ ) ψ i 1 + [ α μ ( α 1 + β 1 ) β 1 ρ μ ] ψ i 2 .
The above can be reduced to the basic ACD(1,1) model by setting α 1 = β 1 = 0 and ρ μ = α μ + β μ . This indicates that the CACD(1,1) model encompasses higher order of the basic ACD model as discussed by [12].

2.2. LogACD and LogCACD Models

To ensure the positiveness of the conditional expectation of durations with no restrictions on the sign of the parameters of the ACD model specification, [4] defined ψ i as the logarithmic of the conditional expectation of x i , so that:
ψ i = ln [ E ( x i | x i 1 , x i 2 , , x 1 ) ] = ln [ E ( x i | F i 1 ) ] .
Consequently, the diurnally adjusted duration, x i , can be modelled as
x i = e ψ i ε i .
(a)
LogACD model
The LogACD(𝒫,𝒬) model specification of orders 𝒫 and 𝒬 is given by
ψ i = ϑ + j = 1 𝒫 α j l n ( x i j ) + k = 1 𝒬 β k ψ i k
where α j and β k  are parameters without positivity constraints. For the process to be weakly stationary, the constraint | j = 1 𝒫 α j + k = 1 𝒫 β k | < 1 is required.
(b)
LogCACD(1,1) model
Motivated by the flexibility of CACD(1,1) model specification and imposing no restrictions on the sign of the parameters of LogACD model, we propose the logarithmic version of the CACD(1,1) called LogCACD(1,1) model, which shares the similar structure with the CACD(1,1) model defined as
ψ i = ψ i , 1 + ψ i , 2 ,
ψ i , 1 = ω μ + ρ μ ψ i 1 , 1 + α μ [ ln ( x i 1 ) ψ i 1 ] ,
and
ψ i , 2 = ( α 1 + β 1 ) ψ i 1 , 2 + α 1 [ ln ( x i 1 ) ψ i 1 ] ,
where ψ i , 1 and ψ i , 2 are, respectively, the long- and short-run components. With no restrictions on the sign of the parameters, LogCACD model requires fewer restrictions on the model parameters as compared with CACD model. To avoid interchangeable between the two components, we impose the restriction | α 1 + β 1 | < | ρ μ | < 1 , which is also the stationarity condition of ln ( x i ) .
Analogous to the CACD(1,1) model, the logarithmic of the conditional expectation of diurnally adjusted duration for LogCACD(1,1) model in Equation (11) can be rewritten as the LogACD(2,2) stated as
ψ i = ( 1 α 1 β 1 ) ω μ + ( α μ + α 1 ) ln ( x i 1 ) + [ α μ ( α 1 + β 1 ) α 1 ρ μ ] ln ( x i 2 ) + ( ρ μ + β 1 α μ ) ψ i 1 + [ α μ ( α 1 + β 1 ) β 1 ρ μ ] ψ i 2 .
It can be reduced to the LogACD(1,1) model by assigning α 1 = β 1 = 0 and ρ μ = α μ + β μ .

3. Error Distributions for ACD Models and Estimation

To improve the flexibility of hazard function in ACD models, we use the EGIG distribution proposed by [31], which contains more than one turning point in the hazard function. Further details of the EGIG distribution, its statistical properties, inferences and applications are available in [32,33,34]. To facilitate the comparison, several error distributions such as Wei, GG, Burr and GB2 are also considered.
Let y i be a EGIG distributed random variable, such that y i ~ EGIG ( λ , δ , v , w ) . The pdf, cumulative density function (cdf) and hazard function of y i , are, respectively, given by
f ( y i ) = δ y i λ 1 2 v λ / δ   K λ / δ ( w ) exp [ w 2 ( v 1 y i δ + v y i δ ) ] , y i > 0 ,
F ( y i ) = γ ( λ δ   ,       w y i δ 2 v ,       w 2 4 ) 2 1 λ / δ   ( w λ / δ )   K λ / δ ( w ) ,
and
h ( y i ) = δ y i λ 1 v   λ / δ [ 2 K λ / δ ( w ) 2 λ / δ   w λ / δ   γ ( λ δ   ,       w y i δ 2 v ,       w 2 4 ) ] exp [ w 2 ( v 1 y i δ + v y i δ ) ] ,
where   λ , δ > 0 , w > 0 , v > 0 , K λ / δ ( w ) is the modified Bessel function of the third kind with index λ δ and γ ( λ δ ,   w y i δ 2 v ,   w 2 4 ) is the generalised incomplete gamma function, which can be defined as the power series expansion in its general form of exp ( c t 1 ) given by
γ ( η , z , c ) = 0 z t η 1 exp ( t c t 1 ) d t = k = 0 ( c ) k k ! γ ( η k , z ) ,
with γ ( η k , z ) = 0 z t η k 1 exp ( t ) d t is the ordinary incomplete gamma function.
Let ε i be a standardised EGIG distributed random variable such that
E ( ε i ) = v 1 / δ K ( λ + 1 ) / δ ( w ) K λ / δ ( w ) = 1 .
Then, the scale parameter v can be reparametrised as
v = [ K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) ] δ .
By substituting the v into Equations (12)–(14), the corresponding pdf, cdf and hazard function of ε i ~ EGIG ( λ , δ , [ K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) ] δ , w )   are expressed as
f ( ε i ) = δ ε i λ 1 [ K ( λ + 1 ) / δ ( w ) ] λ 2 [ K λ / δ ( w ) ] λ + 1 exp { w 2 [ ( ε i   K ( λ + 1 ) / δ ( w ) K λ / δ ( w ) ) δ + ( ε i   K ( λ + 1 ) / δ ( w ) K λ / δ ( w ) ) δ ] } ,
F ( ε i ) = γ ( λ δ   ,       w   2 [ ε i   K ( λ + 1 ) / δ ( w ) K λ / δ ( w ) ] δ ,     w 2 4 ) 2 1 λ / δ   w λ / δ   K λ / δ ( w ) ,
and
h ( ε i ) = δ ε i λ 1 ( K ( λ + 1 ) / δ ( w ) ) λ exp { w 2 [ ( ε i   K ( λ + 1 ) / δ   ( w ) K λ / δ ( w ) ) δ + ( ε i   K ( λ + 1 ) / δ ( w ) K λ / δ ( w ) ) δ ] } ( K λ / δ ( w ) ) λ [ 2 K λ / δ ( w ) 2 λ / δ   w λ / δ   γ ( λ δ ,       w   2 [ ε i   K ( λ + 1 ) / δ ( w ) K λ / δ ( w ) ] δ ,     w 2 4 ) ] .
The hazard functions of the standardised EGIG distribution will allow for various shapes such as monotonically increasing (I), monotonically decreasing (D), upside-down bathtub (UB) and upside-down bathtub then bathtub (UBB). Different shapes of the standardised EGIG hazard function can be acquired and subjected to the constraint, Δ , that is
Δ = { 1 ,     i f     ( λ     1 ) 2 < δ 2 ( δ 2 1 ) w 2       0 ,     i f     ( λ     1 ) 2 = δ 2 ( δ 2 1 ) w 2       1 ,     i f     ( λ     1 ) 2 > δ 2 ( δ 2 1 ) w 2 ,
and other constraints on the distribution parameters as presented in Table 1 (see [33] for further details). Figure 1 shows the plots for hazard shapes using different sets of parameters with (a) monotonically increasing (I), (b) monotonically decreasing (D), (c) upside-down bathtub (UB) and (d) upside-down bathtub then bathtub (UBB) which consists of more than one turning point.
For illustration purposes, other standardised error distributions were also considered in ACD models, with their respective pdfs and standardisation constraints reflected in Table 2. Henceforth, the ACD model with any distribution D will be notated as ACDD.
From Equation (2), the conditional pdf of x i for the ACDEGIG(1,1) and CACDEGIG(1,1) models can be written as
f ( x i | F i 1 ) = δ x i λ 1 [ K ( λ + 1 ) / δ ( w ) ] λ 2 ψ i λ   [ K λ / δ ( w ) ] λ + 1 exp { w 2 [ ( x i   K ( λ + 1 ) / δ ( w ) ψ i   K λ / δ ( w ) ) δ + ( x i   K ( λ + 1 ) / δ ( w ) ψ i   K λ / δ ( w ) ) δ ] } ,
i.e., x i | F i 1 ~ EGIG ( λ , δ , [ ψ i   K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) ] δ , w ) .
The corresponding conditional log-likelihood (LL) function is given by
LL = i = 2 N ln [ f ( x i | F i 1 ) ] = i = 2 N { ln ( δ ) + ( λ 1 ) ln ( x i ) + λ ln [ K ( λ + 1 ) / δ ( w ) ] ln ( 2 ) λ ln ( ψ i ) ( λ + 1 ) ln [ K λ / δ ( w ) ] w 2 [ ( x i   K ( λ + 1 ) / δ ( w ) ψ i   K λ / δ ( w ) ) δ + ( x i   K ( λ + 1 ) / δ ( w ) ψ i   K λ / δ ( w ) ) δ ] } .
However, since the initial ψ 1 is unknown, we set ψ 1 = x ¯ , where x ¯ is the sample mean of x i .
From Equation (9), the conditional pdf of x i for the LogACDEGIG(1,1) and LogCACDEGIG(1,1) models can be written as
f ( x i | F i 1 ) = δ x i λ 1 [ K ( λ + 1 ) / δ ( w ) ] λ 2 e λ ψ i   [ K λ / δ ( w ) ] λ + 1 exp { w 2 [ ( x i K ( λ + 1 ) / δ ( w ) e ψ i   K λ / δ ( w ) ) δ + ( x i K ( λ + 1 ) / δ ( w ) e ψ i   K λ / δ ( w ) ) δ ] } ,
i.e., x i | F i 1 ~ EGIG ( λ , δ , [ e ψ i   K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) ] δ , w ) .
The corresponding conditional LL function is given by
LL = i = 2 N ln [ f ( x i | F i 1 ) ] = i = 2 N { ln ( δ ) + ( λ 1 ) ln ( x i ) + λ ln [ K ( λ + 1 ) / δ ( w ) ] ln ( 2 ) λ ψ i ( λ + 1 ) ln [ K λ / δ ( w ) ] w 2 [ ( x i K ( λ + 1 ) / δ ( w ) e ψ i   K λ / δ ( w ) ) δ + ( x i K ( λ + 1 ) / δ ( w ) e ψ i   K λ / δ ( w ) ) δ ] } ,
with that ψ 1 = ln ( x ¯ ) .
For the estimation parts, the maximum likelihood estimates are obtained by maximising the LL functions given by Equations (19) and (21) using the R functions such as gosolnp and optim, where the gosolnp is to find some suitable initial values of the parameters and the optim is utilised in optimisation process. The standard errors of the estimates can then be acquired via the R function such as numericHessian.

4. Data Description

The intra-daily trading times and prices from 3–16 December 2019 in the IBM stock listed on the New York Stock Exchange (NYSE) were retrieved from the Bloomberg Terminal. By removing the data recorded outside the regular operating hours of NYSE, a total of 125,658 transactions were collected from 9:30:00 a.m. to 4:00:00 p.m. and these transactions were treated consecutively from day to day for the calculation of the duration between two consecutive transactions. After filtering out the zero-valued durations and the durations between two consecutive days, a series of 46,288 transactions is obtained. For the given series, we define an event as the IBM stock price changes being greater than or equal to $0.02, which is a similar procedure to that demonstrated by [35]. To be more concrete, we first calculated the duration of each event that occurred and removed the durations between two consecutive days to obtain a series of 7208 durations. The first N = 6633 durations from 3–13 December 2019 were then used for in-sample model fitting, and the one-step-ahead rolling-window technique was used to forecast the out-of-sample duration for h = 575 durations on the next trading day of 16 December 2019.
The time series plot of the duration series for the period 3–13 December 2019 is depicted in Figure 2. The graph clearly illustrates that the durations consist of a diurnal pattern, with high trading activities (short duration) at the start and end of each trading day, and low trading activities (long duration) in the middle parts. By employing the approach that uses the deterministic function (see [29], pp. 253–254) to remove the diurnal effect and obtain the diurnally adjusted duration series by dividing the duration with the fitted deterministic function (see Equation (1)). Figure 3 shows the diurnally adjusted duration series; the summary statistics of the series are reported in Table 3. The data shows that the durations have an average of 2.1294, with 50% of the diurnally adjusted durations above 1.1201. The skewness of 3.5687 and kurtosis of 20.4377 indicates that the data is positively skewed and has a leptokurtic distribution. Both Ljung-Box (LB) test statistics Q ( 10 ) and Q ( 20 ) at lags 10 and 20, respectively, are significant at 1% significance level, implying a strong autocorrelation in the series.

5. Results and Discussions

5.1. In-Sample Model Fit

The diurnally adjusted durations series using the variations of basic ACD(1,1) models were first modelled as demonstrated by ACDWei(1,1), ACDGG(1,1), ACDBurr(1,1), ACDGB2(1,1) and ACDEGIG(1,1). The results are presented in columns 2 to 6 in Table 4. Among those basic ACD(1,1) models, the ACDEGIG(1,1) model is chosen as the best-fitted model with the largest LL of −10895.97, and the smallest Akaike information criterion (AIC) and Bayesian information criteria (BIC) of 21803.94 and 21844.74, respectively. We further examine the estimated parameters of the models, we observe that (i) the ACDWei(1,1) model with a ^ < 1 indicates a monotonically decreasing (D) hazard function, (ii) the ACDGG(1,1) model with ( a ^ p ^   1 ) > 0 and a ^ < 1 has a upside-down-bathtub (UB) hazard function, (iii) the ACDBurr(1,1) model with a ^ > 1 and ( a ^ p ^   1 ) > 0   gives a UB hazard function, and (iv) the ACDGB2(1,1) model with ( a ^ p ^   1 ) > 0 , a ^ < 1 and p ^ < 2 a ^ ( a ^ + 1 ) ( a ^ 1 ) q ^ ( a ^ + 1 ) implies a UB hazard function. However, the ACDEGIG(1,1) model with λ ^ < 1 , δ ^ > 1 , w ^ > 0 and ( λ ^     1 ) 2 > δ ^ 2 ( δ ^ 2 1 ) w ^ 2 indicates that the hazard function has more than one turning point with upside-down bathtub then bathtub (UBB) shape. In addition, the estimates of α ^ 1 + β ^ 1 = 0.9643 from the ACDEGIG(1,1) model possesses the greatest distance from one as compared to other basic ACD(1,1) models, which indicates the EGIG distribution indeed helps to capture the persistency of duration. The LB test statistics of the standardised residuals for all basic ACD(1,1) models are not significant at lags 10 and 20 at 5% significance level. Meanwhile, the autocorrelation function (ACF) plots of these models are presented in Figure 4a–e, which confirm that the standardised residuals of the fitted models have no (weak) serial correlations.
Subsequently, the modelling performance of the ACD model with linear mean specification, ACDEGIG(1,1) and the ACD models with nonlinear mean specifications, LogACDEGIG(1,1) and CACDEGIG(1,1) models (refer to columns 7 and 8 in Table 4) were compared. It can be noted that the nonlinear models tend to produce a better model fit than the linear model, in which case the LogACDEGIG(1,1) model gives the smallest AIC and BIC. However, the LB test statistics of the standardised residuals for the LogACDEGIG(1,1) model are significant at lags 10 and 20 at 1% significance level which indicate that the series is highly autocorrelated. The corresponding ACF plot is illustrated in Figure 4f. This result is in line with the finding of [4] that the LogACD model is unable to capture the long memory effect of IBM trade duration series.
Lastly, in overall comparison among all the models, the LogCACDEGIG(1,1) model offers the best fit with the largest LL and smallest AIC and BIC as highlighted in boldface in Table 4. Figure 5 demonstrates the fitted duration series of the LogCACDEGIG(1,1) model superimposed on the observed series while Figure 6 plots the fitted e ψ ^ i , e ψ ^ i , 1 and e ψ ^ i , 2 series of the LogCACDEGIG(1,1) model. It is worth noting that the estimated model parameters also satisfy the UBB constraints, which confirm the presence of the UBB-shaped hazard function. Moreover, ρ ^ μ and α ^ 1 + β ^ 1 of the model suggests that the decay rates of the short-run component and long-run component are well-separated, with the short-run component having a faster mean-reverting rate than the long-run component. To put it simply, the long-run component is more persistent than the short-run component with 0 < ( α ^ 1 + β ^ 1 ) < ρ ^ μ < 1 . With α ^ 1 > α ^ μ , the model establishes a greater immediate impact on the short-run component than on the long-run component. To ease depiction, Figure 4g,h display the ACF plots of standardised residuals for the CACDEGIG(1,1) and LogCACDEGIG(1,1) models, respectively, with the LB tests at lags 10 and 20 showing they are not significant at 5% significance level. This implies that the component LogCACDEGIG(1,1) model has managed to remove the autocorrelation in the IBM trade duration series as compared to the LogACDEGIG(1,1) model.

5.2. Out-of-Sample Forecasts

Essentially, the ability to generate accurate forecasts of trade durations is of utmost importance in practice. Thus, we implement the one-step ahead rolling window technique to forecast h = 575 points on 16 December 2019. To remove the diurnal effect, for each window, we fit the duration series to a deterministic function and calculate the diurnally adjusted durations series using Equation (1). The resulting adjusted series was then fitted with the ACD models to obtain the one-step ahead forecast while the one-step ahead “observed” adjusted duration was acquired by dividing the observed duration with the fitted deterministic function.
For assessing the forecasting ability among competing duration models, the forecast errors were computed based on several loss functions. Table 5 reports the results of mean square forecast error (MSFE) and quasi-likelihood (QLIKE) for eight ACD models. On the basis of MSFE, the LogCACDEGIG(1,1) model appears to be the best forecasting model among those considered models. However, the CACDEGIG(1,1) model is the most favourable by means of QLIKE estimate and the LogCACDEGIG(1,1) model is still the second best.
Meanwhile, the MCS procedure was employed to test the equal predictive ability among all the models at a certain fixed confidence level, and the SSM was then generated. The MCS procedure was implemented via the R function of MCSprocedure() and evaluated using 5000 bootstrap replications tested at a 95% confidence level (see [36]). The rank and p-values of the MCS procedure using the loss functions, MSFE and QLIKE, are listed in Table 6 and Table 7. Results in Table 6 reveal that all ACD models with EGIG distribution are not eliminated during the process, implying that the EGIG distribution is capable of describing the shape and the dynamics of the IBM trade durations. Among these models, nonlinear ACD models are ranked first through third with the LogCACDEGIG(1,1) model having the highest rank. On the other hand, none of the models are eliminated through the MCS procedure using QLIKE loss function (see Table 7). The CACDEGIG(1,1) and LogCACDEGIG(1,1) models are ranked first and second, respectively, in SSM. Hence, we are of the view that the two-component ACD models seem to have a better predicting power than the one-component ACD models.

5.3. TaR Forecasts

As for the risk analysis part, the one-step ahead forecast of TaR is used to evaluate the liquidity risk of trade duration. The 100 ( 1 u ) % upper limit i-th TaR forecast of the ACDEGIG(1,1) and CACDEGIG(1,1) models is given by
TaR i , 1 u = ψ i ( 2 z w ) 1 / δ K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) ,   i = N + 1 , N + 2 ,   , N + h ,
where u is the upper risk level, while the 100 ( 1 u ) % upper limit i-th TaR forecast for the LogACDEGIG(1,1) and LogCACDEGIG(1,1) models is given by
TaR i , 1 u = e ψ i ( 2 z w ) 1 / δ K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) ,   i = N + 1 , N + 2 ,   , N + h ,
where the z in both Equations (22) and (23) are the solution of
0 z t λ / δ 1 exp ( t w 2 4 t 1 ) d t = 2 ( 1 u ) ( w 2 ) λ / δ K λ / δ ( w ) .
The derivations of TaR i , 1 u indicated by Equations (22) and (23) are shown in the Appendix A. Table 8 provides the 100 ( 1 u ) % upper limit TaR forecasts for various basic ACD(1,1) models under different distributions.
In order to assess the quality of TaR forecasts, the model should always be backtested with appropriate statistical tools. Amongst these, the violation rate (VR) for the upper quantile is computed as
ν u = n u h = 1 h i = N + 1 N + h I ( x i > TaR i , 1 u ) ,
where n u is an estimate of the number of TaR violations at the upper risk level u and I ( · ) represents an indicator function. The ratio of VR, RVR u = ν u u , indicates an agreement between ν u and u in which the ratio equals one implies a complete agreement. Table 9 reports the ν u and RVR u of TaR forecasts for upper risk levels of 0.025, 0.05 and 0.10. It should be noted that all the estimated ν u values are in line with their respective risk levels of the models, particularly the TaR values based on the LogCACDEGIG(1,1) model. These values have the closest ν u values to its target risk levels as well as the RVR u values having the smallest deviation from the value of one for risk levels of 0.05 and 0.10, indicating a close agreement between observed durations and TaR forecasts.
Apart from these measures, the KLR test was also carried out to evaluate the accuracy of the estimated TaR. Let the number of TaR violations n u follow a binomial distribution with h trials and success probability u . [26] proposed a likelihood ratio (LR) test statistic as
LR = 2 ln [ u n u ( 1     u ) h n u ] + 2 ln [ ( n u / h ) n u ( 1   ( n u / h ) ) h n u ]   ~   χ 1 2 ,
where χ 1 2 denotes a chi-squared distribution with one degree of freedom under the null hypothesis that TaR model is correctly specified. The p-values of the KLR test are reported in Table 9 and the findings show insufficient evidence to reject the null hypothesis for the upper risk levels 0.025 and 0.05 for all ACD models at 10% significance level. However, only the TaR forecasts based on the CACDEGIG(1,1) and LogCACDEGIG(1,1) at upper risk level 0.10 are not rejected at 5% significance level, implying that these two models provide more precise TaR forecasts. For the sake of illustration, Figure 7 plots the TaR upper limits at 90%, 95% and 97.5% using the LogCACDEGIG(1,1) model together with its observed durations and it can be observed that the TaR forecasts at various levels are quite capable of capturing the trend of the observed durations well.

6. Conclusions

Generally, this paper proposes a novel model called the LogCACD model with no restrictions on the sign of parameters while allowing the expected durations to be decomposed into the long- and short-run components in duration modelling. The aggregation of long- and short-run components leads to a slowly decaying autocorrelation that closely resembles the one observed on trade duration data. We first analysed the goodness of fit of the proposed LogCACD model with three different linear and nonlinear benchmark models, namely ACD, LogACD and CACD for capturing the dynamics of trade durations in terms of their in-sample model-fit and out-of-sample forecast performances. It was then followed by the investigation of the effect of different distribution assumptions for these models, in which a flexible EGIG error distribution with a roller-coaster shaped hazard function was adopted and compared the performance with the Wei, GG, Burr and GB2 error distributions. Finally, for risk measure analysis, the TaR forecasts were computed and evaluated using various performance measures and backtests.
Meanwhile, an empirical application based on IBM trade durations with the preliminary comparison of the in-sample model fit was carried out using the basic linear ACD models under different error distributions. The findings reveal that the ACDEGIG offers the best model fit and all the estimated parameters fulfil the constraints of the UBB-shaped hazard function (see Table 1) highlighting the practical advantage of the EGIG distribution as a potential error distribution for ACD modelling. In addition, the linear and nonlinear ACD models were contrasted with the EGIG distribution, and the result appears to warrant the conclusion that the LogCACDEGIG model tends to outperform the other models, which indicates that the choices of mean specifications and error distributions turn out to be the important factors for improving modelling performance of trade duration.
To further examine the applications of nonlinear mean specifications and EGIG distribution for enhancing the duration forecasts, the forecasting performance of these models was evaluated via loss functions, namely MSFE and QLIKE and tested using the MCS test. The LogCACDEGIG model seems to provide the smallest and the second smallest ranks based on MSFE and QLIKE, respectively, and the MCS test procedure also confirms the predictive ability of LogCACDEGIG model in producing precise forecasts. Concurrently, the computed TaR forecasts of these models were evaluated to assess the forecast accuracy and the results appear to show that the TaR forecasts based on LogCACDEGIG model at all risk levels are reasonably reflected in terms of the ratio of violation rates. The KLR test is also in line with the accuracy of the TaR forecasts.
As a summary, it is worth noting that the LogCACD model with nonlinear mean specification and a flexible EGIG distribution tends to improve the trade durations forecasting performance under study. For illustration purposes, assuming that there are only two types of traders in the market constituted by the uninformed and informed traders. Our proposed component model could be used to explain the trade behaviour of these traders. Both the long- and short-run components represent the uninformed and informed trader’s trade duration, respectively. The long-run component exhibits highly persistent behaviour, which supports the hypothesis that the uninformed trader acquires the delay trading information from the informed trader. This result is in line with the finding of [37], that uninformed trade responds more to past uninformed trade than it does to past informed trade. Despite the encouraging results of this study, the change of durations might also be affected by other market events such as price and volume. Hence, in future works, it would be interesting to extend our model by incorporating other exogenous variables such as transaction volume, trading intensity and spread associated with trade duration to improve the predictive ability. Moreover, it would be meaningful to consider the application of EGIG distribution in stochastic conditional duration models which can account for the structural change exhibited by the durations.

Author Contributions

Conceptualization, K.H.N., Y.B.K., S.P. and Y.F.T.; methodology, K.H.N., Y.B.K., S.P. and Y.F.T.; software, Y.F.T.; validation, K.H.N. and Y.B.K.; formal analysis, K.H.N., Y.B.K. and Y.F.T.; data curation, Y.F.T.; writing—original draft preparation, Y.F.T.; writing—review and editing, K.H.N., Y.B.K., S.P. and Y.F.T.; funding acquisition, Y.B.K. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Ministry of Higher Education (MOHE), Malaysia under the Fundamental Research Grant Scheme (FRGS) with reference code: FRGS/1/2021/STG06/UM/02/4 (project no.: FP042-2021).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The intra-daily trading times and prices from 3–16 December 2019 in the IBM stock listed on the New York Stock Exchange (NYSE) were retrieved from the Bloomberg Terminal.

Acknowledgments

The authors would like to thank the editors and anonymous reviewers for their valuable and constructive comments to improve the quality of the paper.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

The conditional cdf of x i for the ACDEGIG(1,1) and CACDEGIG(1,1) models is given by
F ( x i | F i 1 ) = γ ( λ δ   ,       w 2 [ x i   K ( λ + 1 ) / δ ( w ) ψ i K λ / δ ( w ) ] δ ,   w 2 4 ) 2 1 λ / δ   ( w λ / δ )   K λ / δ ( w )     ,
i.e., x i | F i 1 ~ EGIG ( λ , δ , [ ψ i   K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) ] δ , w ) . The 100 ( 1 u ) % upper limit i-th TaR forecast, TaR i , 1 u , can be calculated by equating the conditional cdf of x i with 1 u , that is
γ ( λ δ   ,       w 2 [ TaR i , 1 u   K ( λ + 1 ) / δ ( w ) ψ i K λ / δ ( w ) ] δ ,   w 2 4 ) 2 1 λ / δ   ( w λ / δ )   K λ / δ ( w )   = 1 u .
To solve Equation (A1), let
z =   w 2 [ TaR i , 1 u   K ( λ + 1 ) / δ ( w ) ψ i K λ / δ ( w ) ] δ .
Then, we have
γ ( λ δ ,   z ,   w 2 4 ) = 2 ( 1     u ) ( w 2 ) λ / δ K λ / δ ( w ) ,
where z is the solution of
0 z t λ / δ 1 exp ( t w 2 4 t 1 ) d t = 2 ( 1     u ) ( w 2 ) λ / δ K λ / δ ( w ) .
From Equation (A2), we obtain
TaR i , 1 u = ψ i ( 2 z w ) 1 / δ K λ / δ ( w ) K ( λ + 1 ) / δ ( w ) .
Similar derivation can be applied to the LogACDEGIG(1,1) and LogCACDEGIG(1,1) models by replacing ψ i with e ψ i .

References

  1. Easley, D.; Kiefer, N.M.; O’hara, M.; Paperman, J.B. Liquidity, information, and infrequently traded stocks. J. Financ. 1996, 51, 1405–1436. [Google Scholar] [CrossRef]
  2. Engle, R.F.; Russell, J.R. Autoregressive conditional duration: A new model for irregularly spaced transaction data. Econometrica 1998, 66, 1127–1162. [Google Scholar] [CrossRef]
  3. Lunde, A. A Generalized Gamma Autoregressive Conditional Duration Model; Working Paper; Department of Economics, Politics and Public Administration, Aalborg University: Copenhagen, Denmark, 1999. [Google Scholar]
  4. Bauwens, L.; Giot, P. The logarithmic ACD model: An application to the bid-ask quote process of three NYSE stocks. Ann. D’Economie Stat. 2000, 60, 117–149. [Google Scholar] [CrossRef]
  5. Jasiak, J. Persistence in Intertrade Durations. 1999. Available online: https://ssrn.com/abstract=162008 (accessed on 8 November 2021).
  6. Zhang, M.Y.; Russell, J.R.; Tsay, R.S. A nonlinear autoregressive conditional duration model with applications to financial transaction data. J. Econom. 2001, 104, 179–207. [Google Scholar] [CrossRef]
  7. Bauwens, L.; Giot, P. Asymmetric ACD models: Introducing price information in ACD models. Empir. Econ. 2003, 28, 709–731. [Google Scholar] [CrossRef]
  8. Fernandes, M.; Grammig, J. A family of autoregressive conditional duration models. J. Econom. 2006, 130, 1–23. [Google Scholar] [CrossRef] [Green Version]
  9. Pacurar, M. Autoregressive conditional duration models in finance. A survey of the theoretical and empirical literature. J. Econ. Surv. 2008, 22, 711–751. [Google Scholar] [CrossRef]
  10. Hautsch, N. Econometrics of Financial High-Frequency Data, 1st ed.; Springer: New York, NY, USA, 2012. [Google Scholar]
  11. Bhogal, S.K.; Variyam, R.T. Conditional duration models for high-frequency data: A review on recent developments. J. Econ. Surv. 2019, 33, 252–273. [Google Scholar] [CrossRef] [Green Version]
  12. Engle, R.F. The econometrics of ultra-high-frequency data. Econometrica 2000, 68, 1–22. [Google Scholar] [CrossRef] [Green Version]
  13. Huang, Z.; Han, A.; Wang, S. Component ACD model and its application in studying the price-related feedback effect in investor trading behaviors in Chinese stock market. J. Syst. Sci. Complex. 2018, 31, 677–695. [Google Scholar] [CrossRef]
  14. Grammig, J.; Maurer, K.O. Non-monotonic hazard functions and the autoregressive conditional duration model. Econom. J. 2000, 3, 16–38. [Google Scholar] [CrossRef]
  15. Hautsch, N. Assessing the risk of liquidity suppliers on the basis of excess demand intensities. J. Financ. Econom. 2003, 1, 189–215. [Google Scholar] [CrossRef]
  16. De Luca, G.; Zuccolotto, P. Regime-switching Pareto distributions for ACD models. Comput. Stat. Data Anal. 2006, 51, 2179–2191. [Google Scholar] [CrossRef]
  17. Xu, Y. The Lognormal Autoregressive Conditional Duration (LNACD) Model and a Comparison with an Alternative ACD Models. 2013. Available online: https://ssrn.com/abstract=2382159 (accessed on 7 October 2021).
  18. Yatigammana, R.P.; Choy, S.T.B.; Chan, J.S.K. Autoregressive conditional duration model with an extended Weibull error distribution. In Causal Inference in Econometrics; Springer: Berlin/Heidelberg, Germany, 2016; pp. 83–107. [Google Scholar]
  19. Zheng, Y.; Li, Y.; Li, G. On Fréchet autoregressive conditional duration models. J. Stat. Plan. Inference 2016, 175, 51–66. [Google Scholar] [CrossRef] [Green Version]
  20. Bień-Barkowska, K. Extension and verification of the asymmetric autoregressive conditional duration models. Int. J. Comput. Math. 2017, 94, 2223–2238. [Google Scholar] [CrossRef]
  21. Yatigammana, R.P.; Chan, J.S.K.; Gerlach, R.H. Forecasting trade durations via ACD models with mixture distributions. Quant. Financ. 2019, 19, 2051–2067. [Google Scholar] [CrossRef]
  22. Allen, D.; Chan, F.; McAleer, M.; Peiris, S. Finite sample properties of the QMLE for the Log-ACD model: Application to Australian stocks. J. Econom. 2008, 147, 163–185. [Google Scholar] [CrossRef] [Green Version]
  23. Bień-Barkowska, K. Distribution choice for the asymmetric ACD models. Dyn. Econom. Models 2011, 11, 55–72. [Google Scholar] [CrossRef] [Green Version]
  24. Ng, K.H.; Shelton, P. Modelling high frequency transaction data in financial economics: A comparative study based on simulations. Econ. Comput. Econ. Cybern. Stud. Res. 2013, 47, 189–201. [Google Scholar]
  25. Ghysels, E.; Gouriéroux, C.; Jasiak, J. Stochastic volatility duration models. J. Econom. 2004, 119, 413–433. [Google Scholar] [CrossRef]
  26. Kupiec, P.H. Techniques for verifying the accuracy of risk measurement models. J. Deriv. 1995, 3, 73–84. [Google Scholar] [CrossRef]
  27. Christoffersen, P.F. Evaluating interval forecasts. Int. Econ. Rev. 1998, 39, 841–862. [Google Scholar] [CrossRef]
  28. Hansen, P.R.; Lunde, A.; Nason, J.M. The model confidence set. Econometrica 2011, 79, 453–497. [Google Scholar] [CrossRef] [Green Version]
  29. Tsay, R.S. Analysis of Financial Time Series, 3rd ed.; John Wiley & Sons: Hoboken, NJ, USA, 2010. [Google Scholar]
  30. Engle, R.F.; Lee, G.G.J. A long-run and short-run component model of stock return volatility. In Cointegration, Causality and Forecasting: A Festschrift in Honor of Clive W. J. Granger; Engle, R.F., White, H., Eds.; Oxford University Press: Oxford, UK, 1999; pp. 475–497. [Google Scholar]
  31. Silva, R.S.; Lopes, H.F.; Migon, H.S. The extended generalized inverse Gaussian distribution for log-linear and stochastic volatility models. Braz. J. Probab. Stat. 2006, 20, 67–91. [Google Scholar]
  32. Shakil, M.; Kibria, B.M.G.; Singh, J.N. A new family of distributions based on the generalized Pearson differential equation with some applications. Austrian J. Stat. 2010, 39, 259–278. [Google Scholar] [CrossRef]
  33. Gupta, R.C.; Viles, W. Roller-coaster failure rates and mean residual life functions with application to the extended generalized inverse Gaussian model. Probab. Eng. Inf. Sci. 2011, 25, 103–118. [Google Scholar] [CrossRef]
  34. Gupta, R.C.; Viles, W. Statistical inference for the extended generalized inverse Gaussian model. J. Stat. Comput. Simul. 2012, 82, 1855–1872. [Google Scholar] [CrossRef]
  35. Cheung, L. High Frequency Data: Modeling Durations via the ACD and Log ACD Models. Honours Scholar Theses, University of Connecticut, Storrs, CT, USA, 2014; p. 394. [Google Scholar]
  36. Bernardi, M.; Catania, L. The model confidence set package for R. Int. J. Comput. Econ. Econom. 2018, 8, 144–158. [Google Scholar] [CrossRef]
  37. Easley, D.; Engle, R.F.; O’Hara, M.; Wu, L. Time-varying arrival rates of informed and uninformed trades. J. Financ. Econom. 2008, 6, 171–207. [Google Scholar]
Figure 1. Hazard functions of the standardised EGIG distribution with different sets of distribution parameters.
Figure 1. Hazard functions of the standardised EGIG distribution with different sets of distribution parameters.
Mathematics 10 01621 g001aMathematics 10 01621 g001b
Figure 2. Time series plot of the durations after demarcated IBM stock price change greater or equal to $0.02.
Figure 2. Time series plot of the durations after demarcated IBM stock price change greater or equal to $0.02.
Mathematics 10 01621 g002
Figure 3. Time series plot of the diurnally adjusted durations from 3–13 December 2019.
Figure 3. Time series plot of the diurnally adjusted durations from 3–13 December 2019.
Mathematics 10 01621 g003
Figure 4. ACF plots for the standardised residuals of the fitted models.
Figure 4. ACF plots for the standardised residuals of the fitted models.
Mathematics 10 01621 g004
Figure 5. Observed and fitted series using LogCACDEGIG(1,1) model from 3–13 December 2019.
Figure 5. Observed and fitted series using LogCACDEGIG(1,1) model from 3–13 December 2019.
Mathematics 10 01621 g005
Figure 6. Fitted e ψ ^ i , e ψ ^ i , 1 and e ψ ^ i , 2 series using LogCACDEGIG(1,1) model from 3–13 December 2019.
Figure 6. Fitted e ψ ^ i , e ψ ^ i , 1 and e ψ ^ i , 2 series using LogCACDEGIG(1,1) model from 3–13 December 2019.
Mathematics 10 01621 g006
Figure 7. Observed values and TaR forecasts for different upper levels of 90%, 95% and 97.5% using the LogCACDEGIG(1,1) model.
Figure 7. Observed values and TaR forecasts for different upper levels of 90%, 95% and 97.5% using the LogCACDEGIG(1,1) model.
Mathematics 10 01621 g007
Table 1. Shapes of hazard function for the standardised EGIG distribution.
Table 1. Shapes of hazard function for the standardised EGIG distribution.
Shape Δ Other Constraints
I–1
0 λ = 1 δ > 1
1 λ < 1 δ > 1
1 λ > 1 δ > 1
D0 λ = 1 0 < δ < 1
UB1 λ < 1 0 < δ < 1
1 λ > 1 0 < δ < 1
1 λ = 1
UBB1 λ < 1 δ > 1
Table 2. Error distributions for ACD models.
Table 2. Error distributions for ACD models.
Distribution   pdf ,   f ( ε i ) MeanStandardisation Constraint
Wei ( a ,   b ) f ( ε i ) = a b a ε i a 1 exp [ ( ε i b ) a ] E ( ε i ) = b Γ ( 1 + 1 / a ) b = 1 Γ ( 1 + 1 / a )
GG ( a ,   b ,   p ) f ( ε i ) = a b a p   Γ ( p ) ε i a p 1 exp [ ( ε i b ) a ] E ( ε i ) = b Γ ( p + 1 / a ) Γ ( p ) b = Γ ( p ) Γ ( p + 1 / a )
Burr ( a ,   q ,   b ) f ( ε i ) = a q b a   ( 1 + b a ε i a ) 1 + q ε i a 1 E ( ε i ) = q b B ( 1 + 1 / a ,   q 1 / a ) b = 1 q   B ( 1 + 1 / a ,   q 1 / a )
GB 2 ( a ,   b ,   p ,   q ) f ( ε i ) = a b a p   B ( p , q ) [ 1 + ( ε i b ) a ] p + q ε i a p 1 E ( ε i ) = b B ( p + 1 / a , q 1 / a ) B ( p , q ) b = B ( p , q ) B ( p + 1 / a , q 1 / a )
Remark: B ( · ,   · ) denotes the beta function and Γ ( · ) denotes the gamma function.
Table 3. Summary statistics of the diurnal adjusted durations from 3–13 December 2019.
Table 3. Summary statistics of the diurnal adjusted durations from 3–13 December 2019.
MeanMedianVarianceSkewnessKurtosisMinMax Q   ( 10 ) Q   ( 20 )
2.12941.12018.51313.568720.43770.036135.54591018.452 *1591.317 *
* Significance at 1% level.
Table 4. Parameter estimates, standard errors (in italic), LL, AIC, BIC, Qr(10) and Qr(20) for in-sample estimation of various fitted ACD models.
Table 4. Parameter estimates, standard errors (in italic), LL, AIC, BIC, Qr(10) and Qr(20) for in-sample estimation of various fitted ACD models.
ParameterModel
ACDWei(1,1)ACDGG(1,1)ACDBurr(1,1)ACDGB2(1,1)ACDEGIG(1,1)LogACDEGIG(1,1)CACDEGIG(1,1)LogCACDEGIG(1,1)
ϑ 0.0487 ***0.0772 ***0.0651 ***0.0772 ***0.0746 ***0.0618 ***--
0.00890.01330.01160.01330.01230.0069--
α 1 0.0805 ***0.1010 ***0.0969 ***0.1012 ***0.0791 ***0.0597 ***0.0723 ***0.0710 ***
0.00710.00940.00890.00940.00770.00550.00830.0074
β 1 0.8968 ***0.8652 ***0.8749 ***0.8652 ***0.8852 ***0.9104 ***0.8738 ***0.8750 ***
0.00950.01270.01170.01270.01150.00970.01470.0136
ω μ ------0.0058 ***0.0053 ***
------0.00130.0003
ρ μ ------0.9972 ***0.9998 ***
------0.00070.0004
α μ ------0.0076 *0.0072 ***
------0.00380.0023
a 0.8839 ***0.3801 ***1.0157 ***0.3979 ***----
0.00830.03080.01810.0323----
p -4.6389 ***-4.3432 ***----
-0.7062-0.6507----
q --4.1292 ***200.0000 **----
--0.0181143.4178----
λ ----0.4040 ***0.3633 ***0.4007 ***0.3592 ***
----0.03030.03050.02970.0270
δ ----1.0604 ***1.0399 ***1.0833 ***1.0849 ***
----0.05440.05440.05520.0446
w ----0.2328 ***0.2595 ***0.2169 ***0.2230 ***
----0.03950.04410.03720.0309
LL−11,083.35−10,973.99−11,037.85−10,975.21−10,895.97−10,890.23−10,889.74−10,878.35
AIC22,174.7121,957.9722,085.7021,962.4321,803.9421,792.4521,795.4921,772.69
BIC22,201.9121,991.9722,119.7022,003.2321,844.7421,833.2521,849.8921,827.09
Qr(10)12.140016.6061 *16.1375 *16.6614 *11.534949.5479 ***12.238318.2597 *
Qr(20)19.120723.602123.054023.656819.000567.7134 ***20.535927.2273
Note: Qr(m) is the LB test statistic at lag m of the standardised residuals. *** Significance at 1% level; ** Significance at 5% level; * Significance at 10% level.
Table 5. Comparison of forecast errors using MSFE and QLIKE.
Table 5. Comparison of forecast errors using MSFE and QLIKE.
ModelMSFEQLIKE
ACDWei(1,1)10.81310.7378
ACDGG(1,1)10.86630.7375
ACDBurr(1,1)10.86010.7377
ACDGB2(1,1)10.86740.7375
ACDEGIG(1,1)10.78800.7366
LogACDEGIG(1,1)10.78420.7408
CACDEGIG(1,1)10.75830.7324
LogCACDEGIG(1,1)10.75220.7330
Note: MSFE = 1 h i = N + 1 N + h ( x i x ^ i ) 2 and QLIKE = 1 h i = N + 1 N + h [ x i x ^ i ln ( x i x ^ i ) 1 ] .
Table 6. Comparison of forecasting performance based on MCS procedure with MSFE as loss function.
Table 6. Comparison of forecasting performance based on MCS procedure with MSFE as loss function.
ModelRankp-value
LogCACDEGIG(1,1)11.0000
CACDEGIG(1,1)21.0000
LogACDEGIG(1,1)30.8916
ACDEGIG(1,1)40.2906
ACDWei(1,1)50.1236
Models eliminated: ACDGG(1,1), ACDBurr(1,1) and ACDGB2(1,1).
Table 7. Comparison of forecasting performance based on MCS procedure with QLIKE as loss function.
Table 7. Comparison of forecasting performance based on MCS procedure with QLIKE as loss function.
ModelRankp-value
CACDEGIG(1,1)11.0000
LogCACDEGIG(1,1)21.0000
ACDWei(1,1)30.6244
ACDGB2(1,1)40.5318
ACDBurr(1,1)50.5304
ACDGG(1,1)60.5258
ACDEGIG(1,1)70.5248
LogACDEGIG(1,1)80.4742
Models eliminated: None.
Table 8. TaR i , 1 u for basic ACD(1,1) model under different distributions.
Table 8. TaR i , 1 u for basic ACD(1,1) model under different distributions.
Model T a R i , 1 u
ACDWei(1,1) ψ i Γ ( 1 + 1 / a ) [ ln ( u ) ] 1 a
ACDGG(1,1) ψ i Γ ( p ) Γ ( p + 1 / a ) z 1 a ,
where z is the solution of 0 z t p 1 exp ( t ) d t = ( 1 u ) Γ ( p )
ACDBurr(1,1) ψ i q   B ( 1 + 1 / a ,   q 1 / a )   [ u 1 q 1 ] 1 a
ACDGB2(1,1) ψ i B ( p , q ) B ( p + 1 / a , q 1 / a ) [ z 1 z ] 1 a ,
where z is the solution of 0 z t p 1 ( 1 t ) q 1 d t = ( 1 u ) B ( p , q )
Table 9. Risk performance measures for one-step-ahead TaR forecasts and the p-values of KLR test at upper risk levels 0.025, 0.05 and 0.10 using various ACD models.
Table 9. Risk performance measures for one-step-ahead TaR forecasts and the p-values of KLR test at upper risk levels 0.025, 0.05 and 0.10 using various ACD models.
Model u
0.0250.050.10
ν u R V R u p-value of KLR Test ν u R V R u p-value of KLR Test ν u R V R u p-value of KLR Test
ACDWei(1,1)0.03131.25220.35120.06261.25220.18120.13571.35650.0066 ***
ACDGG(1,1)0.02260.90430.70900.05741.14780.42640.13221.32170.0138 **
ACDBurr(1,1)0.02430.97390.91990.06261.25220.18120.14261.42610.0013 ***
ACDGB2(1,1)0.02260.90430.70900.05741.14780.42640.13221.32170.0138 **
ACDEGIG(1,1)0.02611.04350.86830.05741.14780.42640.12701.26960.0378 **
LogACDEGIG(1,1)0.03301.32170.23870.06091.21740.24680.13041.30430.0195 **
CACDEGIG(1,1)0.02611.04350.86830.05911.18260.32830.12521.25220.0515 *
LogCACDEGIG(1,1)0.02781.11300.66980.05571.11300.54100.12521.25220.0515 *
*** Significance at 1% level; ** Significance at 5% level; * Significance at 10% level.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Tan, Y.F.; Ng, K.H.; Koh, Y.B.; Peiris, S. Modelling Trade Durations Using Dynamic Logarithmic Component ACD Model with Extended Generalised Inverse Gaussian Distribution. Mathematics 2022, 10, 1621. https://doi.org/10.3390/math10101621

AMA Style

Tan YF, Ng KH, Koh YB, Peiris S. Modelling Trade Durations Using Dynamic Logarithmic Component ACD Model with Extended Generalised Inverse Gaussian Distribution. Mathematics. 2022; 10(10):1621. https://doi.org/10.3390/math10101621

Chicago/Turabian Style

Tan, Yiing Fei, Kok Haur Ng, You Beng Koh, and Shelton Peiris. 2022. "Modelling Trade Durations Using Dynamic Logarithmic Component ACD Model with Extended Generalised Inverse Gaussian Distribution" Mathematics 10, no. 10: 1621. https://doi.org/10.3390/math10101621

APA Style

Tan, Y. F., Ng, K. H., Koh, Y. B., & Peiris, S. (2022). Modelling Trade Durations Using Dynamic Logarithmic Component ACD Model with Extended Generalised Inverse Gaussian Distribution. Mathematics, 10(10), 1621. https://doi.org/10.3390/math10101621

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