Kalman Filtering for Stocks Price Prediction and Control
- 1 Department of Applied Mathematics and Computing, American International University, Kuwait
- 2 Department of Mathematics and Computer Science, University of Bamenda, Bamenda, Cameroon
Abstract
Stocks price analysis has been a critical area of research as the stock market is a very fluctuating market. Stocks price is affected by demand and supply dynamics making it difficult to forecast the price of a stock at a particular instant. The entire idea of predicting stocks price is to gain significant profits but predicting how the stock market will perform is a difficult task to carry out. In an attempt to do this, we construct a dynamical system for the stock’s price and simulate it using the Kalman filter. The dynamic tracking features of the filter here enable us to track the price of the Boeing stock. The stock price variation appears to be a maneuvering system from which we derive the state space model. Further, the robustness of the model is investigated by examining observability and controllability in the state space and proving that the system can be stabilized through state feedback. Finally, the forecasting result of 252 stock closing prices from January 01, 2021, to January 01, 2022, is provided by Kalman predictor and Python simulation. The evaluation of the prediction is done using absolute and relative error which gives relatively small values and thus makes the filter accurate for prediction.
DOI: https://doi.org/10.3844/jcssp.2023.739.748
Copyright: © 2023 Jimbo Henri Claver, Mbiazi Dave and Shu Felix Che. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
- 1,990 Views
- 2,264 Downloads
- 0 Citations
Download
Keywords
- Stocks Price
- Maneuvering System
- State Space Model
- Controllability
- Observability
- Stability
- Kalman Filter
- Predictor
- Python Simulation
- Absolute and Relative Error