Submitted:
28 June 2025
Posted:
30 June 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Traditional Autoregressive Moving Average (ARMA) Model
2.1. Model Components and Formulation
- Autoregressive (AR) Component of order p: Denoted as AR(p), this part suggests that the current value of the time series, , depends linearly on its p previous values and a stochastic error term. The AR(p) process is mathematically expressed as:where c is a constant, are the autoregressive coefficients, and is a white noise error term.
- Moving Average (MA) Component of order q: Denoted as MA(q), this part postulates that the current value depends linearly on the current and q past white noise error terms. The MA(q) process is given by:where is the mean of the series, and are the moving average coefficients.
2.2. Key Assumptions and Estimation
2.3. Strengths and Limitations
- Interpretability: Its parameters have clear statistical interpretations related to past values and errors.
- Simplicity: Relative to more complex non-linear or deep learning models, ARMA models are conceptually straightforward and computationally efficient for stationary data.
- Established Theory: A vast body of statistical theory supports its properties, estimation, and inference.
- Stationarity Requirement: The most critical limitation is its strict assumption of stationarity. Financial markets are inherently non-stationary, characterized by evolving trends, changing volatilities (heteroscedasticity), and structural breaks.[5] Applying a static ARMA model to such data without proper differencing (leading to ARIMA) or handling of volatility can yield unreliable forecasts and standard errors.
- Fixed Parameters: The parameters of a traditional ARMA model are estimated once over a historical period and then held constant for future predictions. This static nature prevents the model from adapting to new information or changes in the underlying data generation process, which are common in dynamic environments like stock markets.
- Inability to Capture Volatility Clustering: ARMA models assume constant variance of the error terms. They cannot directly model phenomena like volatility clustering, where periods of high volatility are followed by periods of high volatility, and vice versa—a characteristic feature of financial data. This often necessitates the use of GARCH-type models for modeling volatility.
- Sensitivity to Outliers and Structural Breaks: Fixed-parameter models are highly susceptible to sudden shifts or extreme values (outliers), which can distort parameter estimates and lead to poor out-of-sample performance.
3. Proposed Method: The Adaptive ARMA Model
3.1. Adaptive ARMA(1,1) Formulation
3.2. Adaptive Parameter Estimation
- 1.
- Initialization: Before forecasting the test data, the model parameters and are initialized. In our implementation, they are set to an initial value of 0.5. The last observed value from the training data, , serves as the initial for the first prediction on the test set. The initial error term is set to 0.
- 2.
- Prediction: For each new actual value in the test set, a prediction is made using the currently adapted parameters:
- 3.
- Error Calculation: The prediction error is then computed as the difference between the actual observed value and the predicted value:
- 4.
-
Parameter Update: The parameters and are updated using a learning rate (denoted as `lr` in the code) to minimize the squared error. The update rules are:This gradient-descent like update ensures that the parameters are adjusted in the direction that reduces future prediction errors.
- 5.
- State Update: For the next iteration, the current actual value becomes the new , and the current error becomes the new .
3.3. Advantages of the Adaptive Approach
- Handle Non-Stationarity: By continuously updating parameters, it implicitly accounts for changes in mean, variance, and autocorrelation structure that are common in financial time series.
- Respond to Regime Shifts: It can more effectively capture sudden changes in market behavior or trends, which are crucial for accurate forecasting in volatile environments.
- Improve Real-time Performance: The iterative, online learning approach makes it suitable for real-time forecasting applications where new data becomes available sequentially.
4. Results and Observations
4.1. Performance Metrics
4.2. Backtesting Results
4.2.1. Tesla (TSLA) Stock Price Prediction

4.2.2. Google (GOOGL) Stock Price Prediction

4.3. Observations
4.4. Comparison with ARIMA Model


5. Conclusions
6. Datasets Used For this Research
References
- George E. P. Box, Gwilym M. Jenkins, Gregory C. Reinsel, and Greta M. Ljung. Time Series Analysis: Forecasting and Control. John Wiley & Sons, 1994.
- Bernard Widrow and Marcian E. Hoff. Adaptive switching circuits. In 1960 WESCON Convention Record, volume 4, pages 96–104, 1960.
- Ruey S. Tsay. Analysis of Financial Time Series. John Wiley & Sons, 2005.
- Simon Haykin. Adaptive Filter Theory. Prentice Hall, 4th edition, 2002.
- Eugene F. Fama. Efficient Capital Markets: A Review of Theory and Empirical Work. The Journal of Finance, 25(2):383–417, 1970.
- Skipper Seabold and Josef Perktold. statsmodels: Econometric and Statistical Modeling with Python. https://www.statsmodels.org/, 2010. Accessed: June 28, 2025.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).