Tabash, Mosab I.
[Author];
Navas, T. Muhammed
[Author];
Thayyib, P. V.
[Author];
Farhin, Shazia
[Author];
Khan, Athar Ali
[Author];
Hannoon, Azzam
[Author]
Modeling high-frequency financial data using R and Stan
Description:
In econometrics, Autoregressive Conditional Duration (ACD) models use high-frequency economic or financial duration data, which mostly exhibit irregular time intervals. The ACD model is widely used to examine the duration of transaction volume and duration of price variations in stock markets. In this work, our goal is to devise testing that will aid in the identification of the best potential duration model among a set of four models using Bayesian approach. We test three models that rely on conditional mean duration (Weibull ACD, Log Weibull ACD, Generalized Gamma ACD) and one conditional median duration model (Birnbaum-Saunders ACD), and are being compared each other. The study was done in Rstan, a programming language for statistical inference, and the simulation uses the Hamiltonian Monte Carlo (HMC) algorithm of Markov Chain Monte Carlo (MCMC) to sample from the posterior distribution. Our findings show that Log Weibull ACD (second-generation model) as best among the four models followed by Birnbaum-Saunders ACD (third-generation model). The result offers methodological implications for algorithmic trading (algo-trading), high-frequency trading and risk management.