Back to search

University of Toronto

Machine Learning in Algorithmic Trading leading to Reinforced Deep Kalman Filters

Abstract

dc:description.abstract

In this thesis, we develop machine learning frameworks that are suitable for algorithmic trading, where environments are volatile, heteroscedastic, and driven by latent factors. The thesis contains two main parts increasing in the complexity of the frameworks we develop. In the first part, we model the dynamics of ask-bid prices using and Hidden Markov Models (HMM) and compare its performance against First Order Markov Models (MM). A supervised learning method is developed for making binary (buy or sell) market order predictions using Restricted Boltzmann Machines (RBMs). The RBMs are adapted to Gaussian-Bernoulli (GB-RBM), and later to discriminative GB-RBMs (DGB-RBM). The algorithm's performance is compared to predictions made using the industry standard of naive bid-ask depth imbalances. We demonstrate that the DGB-RBM outperforms the industry standard by up to 18% increment in the area under the receiver operating characteristic curve (AUC). In the second part, we use traditional reinforcement learning (RL) algorithms to solve an optimal execution problem – where an agent seeks to optimally sell stocks to simultaneously mitigate the risk of price movements and price impact in a stochastic environment. We develop optimal policies using variants of Q-Learning, DynaQ-ARIMA and DynaQ-LSTM algorithms, which are used as benchmarks. The analysis shows that idiosyncrasies of the optimal execution problem require delicate treatment of data inefficiency and model bias issues, which we address next. We propose a model-based RL approach, coined Reinforced Deep Kalman Filter (RDKF), designed to integrate desirable properties of a reinforcement learning algorithm acting as an automatic trading system. The network architecture allows for the possibility that market dynamics are partially visible and are modified by the agent's actions. The RDKF filters incomplete and noisy data to create better-behaved input data for RL planning. The policy search optimisation also properly accounts for state uncertainty. We perform ablation studies to understand the contributions of individual components of the RDKF. The experiments show that the RDKF is data-efficient and provides financial gains compared to the benchmarks in the optimal execution problem using real data sets from the limit order book of Facebook, Intel, Vodafone and Microsoft.

Degree

thesis:*
Department dc:contributor.department
Statistics
Year dc:date.issued
2020

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ferreira, Tadeu Augusto
Advisor dc:contributor.advisor
  • Jaimungal, Sebastian

Subjects

dc:subject × 6

Rights

dc:rights
Statement dc:rights
  • Attribution-NonCommercial-NoDerivatives 4.0 International

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1807/103243

Chain of custody

source
Harvested from
University of Toronto
Base URL
utoronto.scholaris.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Ferreira, Tadeu Augusto. Machine Learning in Algorithmic Trading leading to Reinforced Deep Kalman Filters. 2020. https://hdl.handle.net/1807/103243