IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2101.02736.html
   My bibliography  Save this paper

Improved ACD-based financial trade durations prediction leveraging LSTM networks and Attention Mechanism

Author

Listed:
  • Yong Shi
  • Wei Dai
  • Wen Long
  • Bo Li

Abstract

The liquidity risk factor of security market plays an important role in the formulation of trading strategies. A more liquid stock market means that the securities can be bought or sold more easily. As a sound indicator of market liquidity, the transaction duration is the focus of this study. We concentrate on estimating the probability density function p({\Delta}t_(i+1) |G_i) where {\Delta}t_(i+1) represents the duration of the (i+1)-th transaction, G_i represents the historical information at the time when the (i+1)-th transaction occurs. In this paper, we propose a new ultra-high-frequency (UHF) duration modelling framework by utilizing long short-term memory (LSTM) networks to extend the conditional mean equation of classic autoregressive conditional duration (ACD) model while retaining the probabilistic inference ability. And then the attention mechanism is leveraged to unveil the internal mechanism of the constructed model. In order to minimize the impact of manual parameter tuning, we adopt fixed hyperparameters during the training process. The experiments applied to a large-scale dataset prove the superiority of the proposed hybrid models. In the input sequence, the temporal positions which are more important for predicting the next duration can be efficiently highlighted via the added attention mechanism layer.

Suggested Citation

  • Yong Shi & Wei Dai & Wen Long & Bo Li, 2021. "Improved ACD-based financial trade durations prediction leveraging LSTM networks and Attention Mechanism," Papers 2101.02736, arXiv.org.
  • Handle: RePEc:arx:papers:2101.02736
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2101.02736
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Rui Luo & Weinan Zhang & Xiaojun Xu & Jun Wang, 2017. "A Neural Stochastic Volatility Model," Papers 1712.00504, arXiv.org, revised Dec 2018.
    2. Luc Bauwens & Pierre Giot, 2003. "Asymmetric ACD models: Introducing price information in ACD models," Empirical Economics, Springer, vol. 28(4), pages 709-731, November.
    3. Robert F. Engle & Jeffrey R. Russell, 1998. "Autoregressive Conditional Duration: A New Model for Irregularly Spaced Transaction Data," Econometrica, Econometric Society, vol. 66(5), pages 1127-1162, September.
    4. Donaldson, R. Glen & Kamstra, Mark, 1997. "An artificial neural network-GARCH model for international stock return volatility," Journal of Empirical Finance, Elsevier, vol. 4(1), pages 17-46, January.
    5. R. P. Yatigammana & J. S. K. Chan & R. H. Gerlach, 2019. "Forecasting trade durations via ACD models with mixture distributions," Quantitative Finance, Taylor & Francis Journals, vol. 19(12), pages 2051-2067, December.
    6. Wei, Yu & Wang, Yudong & Huang, Dengshi, 2010. "Forecasting crude oil market volatility: Further evidence using GARCH-class models," Energy Economics, Elsevier, vol. 32(6), pages 1477-1484, November.
    7. De Luca, Giovanni & Zuccolotto, Paola, 2006. "Regime-switching Pareto distributions for ACD models," Computational Statistics & Data Analysis, Elsevier, vol. 51(4), pages 2179-2191, December.
    8. Mohammadi, Hassan & Su, Lixian, 2010. "International evidence on crude oil price dynamics: Applications of ARIMA-GARCH models," Energy Economics, Elsevier, vol. 32(5), pages 1001-1008, September.
    9. Zhang, Michael Yuanjie & Russell, Jeffrey R. & Tsay, Ruey S., 2001. "A nonlinear autoregressive conditional duration model with applications to financial transaction data," Journal of Econometrics, Elsevier, vol. 104(1), pages 179-207, August.
    10. Luc Bauwens & Pierre Giot, 2000. "The Logarithmic ACD Model: An Application to the Bid-Ask Quote Process of Three NYSE Stocks," Annals of Economics and Statistics, GENES, issue 60, pages 117-149.
    11. Meitz, Mika & Terasvirta, Timo, 2006. "Evaluating Models of Autoregressive Conditional Duration," Journal of Business & Economic Statistics, American Statistical Association, vol. 24, pages 104-124, January.
    12. Robert F. Engle, 2000. "The Econometrics of Ultra-High Frequency Data," Econometrica, Econometric Society, vol. 68(1), pages 1-22, January.
    13. Chou, Ray Yeutien, 2005. "Forecasting Financial Volatilities with Extreme Values: The Conditional Autoregressive Range (CARR) Model," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 37(3), pages 561-582, June.
    14. repec:adr:anecst:y:2000:i:60:p:05 is not listed on IDEAS
    15. De Luca Giovanni & Gallo Giampiero M., 2004. "Mixture Processes for Financial Intradaily Durations," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 8(2), pages 1-20, May.
    16. Fischer, Thomas & Krauss, Christopher, 2018. "Deep learning with long short-term memory networks for financial market predictions," European Journal of Operational Research, Elsevier, vol. 270(2), pages 654-669.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jin Li, 2023. "Analysis of Evolving Hazard Overflows and Construction of an Alert System in the Chinese Finance Industry Using Statistical Learning Methods," Mathematics, MDPI, vol. 11(15), pages 1-26, July.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yiing Fei Tan & Kok Haur Ng & You Beng Koh & Shelton Peiris, 2022. "Modelling Trade Durations Using Dynamic Logarithmic Component ACD Model with Extended Generalised Inverse Gaussian Distribution," Mathematics, MDPI, vol. 10(10), pages 1-20, May.
    2. Bhatti, Chad R., 2010. "The Birnbaum–Saunders autoregressive conditional duration model," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 80(10), pages 2062-2078.
    3. Maria Pacurar, 2008. "Autoregressive Conditional Duration Models In Finance: A Survey Of The Theoretical And Empirical Literature," Journal of Economic Surveys, Wiley Blackwell, vol. 22(4), pages 711-751, September.
    4. Nikolaus Hautsch & Peter Malec & Melanie Schienle, 2014. "Capturing the Zero: A New Class of Zero-Augmented Distributions and Multiplicative Error Processes," Journal of Financial Econometrics, Oxford University Press, vol. 12(1), pages 89-121.
    5. Li, Zhicheng & Chen, Xinyun & Xing, Haipeng, 2023. "A multifactor regime-switching model for inter-trade durations in the high-frequency limit order market," Economic Modelling, Elsevier, vol. 118(C).
    6. Roman Huptas, 2016. "The UHF-GARCH-Type Model in the Analysis of Intraday Volatility and Price Durations – the Bayesian Approach," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 8(1), pages 1-20, March.
    7. Luc, BAUWENS & Nikolaus, HAUTSCH, 2006. "Modelling Financial High Frequency Data Using Point Processes," Discussion Papers (ECON - Département des Sciences Economiques) 2006039, Université catholique de Louvain, Département des Sciences Economiques.
    8. Roman Huptas, 2019. "Point forecasting of intraday volume using Bayesian autoregressive conditional volume models," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 38(4), pages 293-310, July.
    9. Roman Huptas, 2014. "Bayesian Estimation and Prediction for ACD Models in the Analysis of Trade Durations from the Polish Stock Market," Central European Journal of Economic Modelling and Econometrics, Central European Journal of Economic Modelling and Econometrics, vol. 6(4), pages 237-273, December.
    10. Nowak, Sylwia & Anderson, Heather M., 2014. "How does public information affect the frequency of trading in airline stocks?," Journal of Banking & Finance, Elsevier, vol. 44(C), pages 26-38.
    11. Saulo, Helton & Balakrishnan, Narayanaswamy & Vila, Roberto, 2023. "On a quantile autoregressive conditional duration model," Mathematics and Computers in Simulation (MATCOM), Elsevier, vol. 203(C), pages 425-448.
    12. Gurgul Henryk & Machno Artur, 2017. "Trade Pattern on Warsaw Stock Exchange and Prediction of Number of Trades," Statistics in Transition New Series, Polish Statistical Association, vol. 18(1), pages 91-114, March.
    13. repec:wyi:journl:002120 is not listed on IDEAS
    14. Xiufeng Yan, 2021. "Autoregressive conditional duration modelling of high frequency data," Papers 2111.02300, arXiv.org.
    15. Lee, Sangyeol & Oh, Haejune, 2015. "Entropy test and residual empirical process for autoregressive conditional duration models," Computational Statistics & Data Analysis, Elsevier, vol. 86(C), pages 1-12.
    16. Anatolyev, Stanislav, 2009. "Dynamic modeling under linear-exponential loss," Economic Modelling, Elsevier, vol. 26(1), pages 82-89, January.
    17. Danúbia R. Cunha & Roberto Vila & Helton Saulo & Rodrigo N. Fernandez, 2020. "A General Family of Autoregressive Conditional Duration Models Applied to High-Frequency Financial Data," JRFM, MDPI, vol. 13(3), pages 1-20, March.
    18. Manganelli, Simone, 2005. "Duration, volume and volatility impact of trades," Journal of Financial Markets, Elsevier, vol. 8(4), pages 377-399, November.
    19. Henryk Gurgul & Robert Syrek & Christoph Mitterer, 2016. "Price duration versus trading volume in high-frequency data for selected DAX companies," Managerial Economics, AGH University of Science and Technology, Faculty of Management, vol. 17(2), pages 241-260.
    20. Perera, Indeewara & Koul, Hira L., 2017. "Fitting a two phase threshold multiplicative error model," Journal of Econometrics, Elsevier, vol. 197(2), pages 348-367.
    21. Stanislav Anatolyev & Dmitry Shakin, 2006. "Trade intensity in the Russian stock market:dynamics, distribution and determinants," Working Papers w0070, Center for Economic and Financial Research (CEFIR).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2101.02736. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.