MATHEMATICAL MODELLING OF SOCIO-ECONOMIC PROCESSES AND SYSTEMS
Classical Optimization methods for an Ornstein-Uhlenbeck process-based model in pair trading
- 1 Faculty of Computer Science and Engineering University of Ss. Cyril and Methodius Skopje, North Macedonia
Abstract
Mathematical Optimization or Mathematical Programming is a set of theoretical and applied methods originating from applied mathematics to computer science, used to find the optimal value, given some predefined criterion for optimality and based on some input parameters. More precisely, it concerns finding the input parameters of a function (called the objective function) which maximize/minimize its output. Mathematical Optimization is widely used for various quantitative or computational problems that arise everywhere in science and engineering, ranging from statistics and applied math to aerospace engineering and finance. In the following paper, we demonstrate the use of two classical optimization algorithms – Gradient Descent and Lagrangian Multipliers method – in model development in finance and trading. The specific stochastic process on which the trading model is based is called the Ornstein-Uhlenbeck (O-U) process and the point of the use of these two optimization approaches is
to find the parameters that minimize the log likelihood function of this process. This fits the O-U process to the historical data and in the context of finance and trading, maximizes our profits and helps us hedge against losses
Keywords
References
- Basheski, N., & Bakeva, V. (2024). Stochastic processes in finance and trading. In CIIT 2024: 21st International Conference on Informatics and Information Technologies. Faculty of Computer Science and Engineering, University of Ss. Cyril and Methodius. (in print)
- Beavis, B., & Dobbs, I. M. (1990). Static optimization: Optimization and stability theory for economic analysis. Cambridge University Press.
- Bertsekas, D. P. (1982). Constrained optimization and Lagrange multiplier methods. Academic Press.
- Boyd, S., & Vandenberghe, L. (2004). Convex optimization. Cambridge University Press.
- Pervushyna, V. (2023). Optimal stopping in pairs trading: Ornstein-Uhlenbeck model. Hudson & Thames.
- Leung, T., & Li, X. (2015). Optimal mean reversion trading: Mathematical analysis and practical applications. World Scientific Publishing Company.
- Cont, R. (2005). Volatility clustering in financial markets: Empirical facts and agent-based models. Springer.
- Mandelbrot, B., & Hudson, L. R. (2006). The (mis)behavior of markets: A fractal view of risk, ruin, and reward. Basic Books.
- QuantPy. (2022). Trading stock volatility with the Ornstein-Uhlenbeck process. GitHub. Retrieved from https://github.com/QuantPy/Trading-stock-volatility-with-Ornstein-Uhlenbeck
- Yahoo! Finance. (2024, January 12). Blackstone Mortgage Trust, Inc. (BXMT) stock historical prices & data. Retrieved from https://finance.yahoo.com/quote/BXMT/history?p=BXMT
- Yahoo! Finance. (2024, January 12). Apollo Commercial Real Estate Finance, Inc. (ARI) stock historical prices & data. Retrieved from https://finance.yahoo.com/quote/ARI/history?p=ARI
- Vasicek, O. (1977). An equilibrium characterization of the term structure. Journal of Financial Economics, 5(2), 177–188.
- Øksendal, B. (2014). Stochastic differential equations: An introduction with applications (6th ed.). Springer.
- Dobson, J. A., & Barnett, G. A. (2008). An introduction to generalized linear models (4th ed.). Chapman & Hall/CRC.
- Brus, D., & Alber, D. (2020). The Ornstein-Uhlenbeck process and its applications to pairs trading. KTH Royal Institute of Technology.
- Hendricks, H. J., Ongala, J., & Ntirampeba, D. (2021). Modification of the Ornstein-Uhlenbeck process to incorporate the influence of speculation on volatility in financial markets. Journal of Mathematics and Statistics. Retrieved from https://thescipub.com/abstract/jmssp.2022.1.10
- cantaro86. (2022). Financial-Models-Numerical-Methods Public. GitHub. Retrieved from https://github.com/cantaro86/Financial-Models-Numerical-Methods
- Kitchin, J. (2013, February 3). Using Lagrange multipliers in optimization. The Kitchin Research Group, Department of Chemical Engineering, Carnegie Mellon University. Retrieved from https://kitchingroup.cheme.cmu.edu/blog/2013/02/03/Using-Lagrange-multipliers-in-optimization/
- Brownlee, J. (2021, October 11). How to implement gradient descent optimization from scratch. MachineLearningMastery. com. Retrieved from https://machinelearningmastery.com/gradient-descent-optimization-from-scratch/
- Petricˇ, J., & Zlobec, S. (1983). Nelinearno programiranje. Nauccˇna knjiga.