Skip to main content
Log in

A Bayes Analysis of Random Walk Model Under Different Error Assumptions

  • Published:
Annals of Data Science Aims and scope Submit manuscript

Abstract

In this paper, the Bayesian analyses for the random walk models have been performed under the assumptions of normal distribution, log-normal distribution and the stochastic volatility model, for the error component, one by one. For the various parameters, in each model, some suitable choices of informative and non-informative priors have been made and the posterior distributions are calculated. For the first two choices of error distribution, the posterior samples are easily obtained by using the gamma generating routine in R software. For a random walk model, having stochastic volatility error, the Gibbs sampling with intermediate independent Metropolis–Hastings steps is employed to obtain the desired posterior samples. The whole procedure is numerically illustrated through a real data set of crude oil prices from April 2014 to March 2022. The models are, then, compared on the basis of their accuracies in forecasting the true values. Among the other choices, the random walk model with stochastic volatile errors outperformed for the data in hand.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4

Similar content being viewed by others

Data Availability

The data that support the findings of this study are available from the website http://www.eia.gov/dnav/pet/pet_pri_spt_s1_d.htm.

Code Availability

The code used in this work can be made available upon reasonable request from the corresponding author.

References

  1. Shi Y (2022) Advances in big data analytics: theory, algorithm and practice. Springer, Singapore

    Book  Google Scholar 

  2. Shi Y, Olson DL (2007) Introduction to business data mining. McGraw-Hill/Irwin, New York

    Google Scholar 

  3. Shi Y, Tian YJ, Kou G, Peng Y, Li JP (2011) Optimization based data mining: theory and applications. Springer, Berlin

    Book  Google Scholar 

  4. Leuthold RM (1972) Random walk and price trends: the live cattle futures market. J Financ 27(4):879–889

    Article  Google Scholar 

  5. Cooper JCB (1982) World stock markets: some random walk tests. Appl Econ 14(5):515–531

    Article  Google Scholar 

  6. Sims CA (1988) Bayesian skepticism on unit root econometrics. J Econ Dyn Control 12(2–3):463–474

    Article  Google Scholar 

  7. Tyree EW, Long JA (1995) Forecasting currency exchange rates: neural networks and the random walk model. In: City university working paper, proceedings of the third international conference on artificial intelligence applications. Citeseer

  8. Busetti F, Harvey AC (2001) Testing for the presence of a random walk in series with structural breaks-(now published in ’journal of time series analysis’) vol 22 , pp 127

  9. Aggarwal D (2019) Do bitcoins follow a random walk model? Res Econ 73(1):15–22

    Article  Google Scholar 

  10. Dias R, Santos H (2020) Stock market efficiency in Africa: evidence from random walk hypothesis. LIMEN 2020, pp 25

  11. Palamalai S, Kumar KK, Maity B (2021) Testing the random walk hypothesis for leading cryptocurrencies. Borsa Istanbul Rev 21(3):256–268

    Article  Google Scholar 

  12. DeJong DN, Whiteman CH (1991) Reconsidering ‘trends and random walks in macroeconomic time series’. J Monet Econ 28(2):221–254

    Article  Google Scholar 

  13. Schotman P, Dijk HKV (1991) A Bayesian analysis of the unit root in real exchange rates. J Econ 49(1–2):195–238

    Article  Google Scholar 

  14. Fung ES, Lam K, Siu T-K, Wong W-K (2011) A pseudo-Bayesian model for stock returns in financial crises. J Risk Financ Manage 4(1):43–73

    Article  Google Scholar 

  15. Karandikar J, Traverso M, Abbas A, Schmitz T (2014) Bayesian inference for milling stability using a random walk approach. J Manufac Sci Eng 136(3)

  16. Guo X, McAleer M, Wong W-K, Zhu L (2017) A Bayesian approach to excess volatility, short-term underreaction and long-term overreaction during financial crises. North Am J Econ Finance 42:346–358

    Article  Google Scholar 

  17. Rumyantseva O, Sarantsev A, Strigul N (2020) Time series analysis of forest dynamics at the ecoregion level. Forecasting 2(3):20

    Article  Google Scholar 

  18. Nelson CR, Plosser CR (1982) Trends and random walks in macroeconmic time series: some evidence and implications. J Monet Econ 10(2):139–162

    Article  Google Scholar 

  19. Chib S, Greenberg E (1994) Bayes inference in regression models with ARMA(p, q) errors. J Econ 64(1):183–206

    Article  Google Scholar 

  20. Chib S, Nardari F, Shephard N (2002) Markov chain Monte Carlo methods for stochastic volatility models. J Econ 108(2):281–316

    Article  Google Scholar 

  21. Tripathi PK, Upadhyay SK (2019) Bayesian analysis of extended autoregressive model with stochastic volatility. Indian Soc Probab Stat 20(1):1–29

    Article  Google Scholar 

  22. Weiss AA (1984) ARMA models with ARCH errors. J Time Ser Anal 5(2):129–143

    Article  Google Scholar 

  23. Greenhouse JB, Kass RE, Tsay RS (1987) Fitting non-linear models with ARMA errors to biological rhythm data. Stat Med 6(2):167–183

    Article  Google Scholar 

  24. Lei H, Xia Y, Qin X (2016) Estimation of semivarying coefficient time series models with ARMA errors. Ann Stat 44(4):1618–1660

    Article  Google Scholar 

  25. Huber F, Krisztin T, Piribauer P (2017) Forecasting global equity indices using large Bayesian VARs. Bull Econ Res

  26. Tripathi PK, Agarwal M (2021) Bayesian prediction of monthly gold prices using an EARSV model and its competitive component models. Int J Math Stat 22(3):1–17

    Google Scholar 

  27. Phillips PCB (1990) Time series regression with a unit root and infinite-variance errors. Economet Theor 6(1):44–62

    Article  Google Scholar 

  28. Dick EJ (2004) Beyond ‘log-normal versus gamma’: discrimination among error distributions for generalized linear models. Fish Res 70(2):351–366

    Article  Google Scholar 

  29. Juárez MA, Steel MFJ (2010) Model-based clustering of non-Gaussian panel data based on skew-t distributions. J Bus Econ Stat 28(1):52–66

    Article  Google Scholar 

  30. Petrella I, Monache DD (2016) Adaptive models and heavy tails

  31. Chiu C-WJ, Mumtaz H, Pinter G (2017) Forecasting with var models: Fat tails and stochastic volatility. Int J Forecast 33(4):1124–1143

    Article  Google Scholar 

  32. Monache DD, Polis AD, Petrella I (2021) Modeling and forecasting macroeconomic downside risk. Bank of Italy Temi di Discussione (Working Paper) No, 1324

  33. Tripathi PK, Ranjan R, Pant R, Upadhyay SK (2017) An approximate Bayes analysis of ARMA model for Indian GDP growth rate data. J Stat Manag Syst 20(3):399–419

    Google Scholar 

  34. Tripathi PK, Sen R, Upadhyay SK (2021) A Bayes algorithm for model compatibility and comparison of ARMA(p, q) models. Stat Trans New Ser 22(2):95–123

    Google Scholar 

  35. Marriott J, Ravishanker N, Gelfand AE, Pai J (1996) Bayesian analysis of ARMA processes: complete sampling-based inference under exact likelihoods. In Bayesian analysis in statistics and econometrics: essays in honor of Arnold Zellner, pp 243–256

  36. Kleibergen FR, Hoek H (2000) Bayesian analysis of ARMA models. Tinbergen Institute Discussion Paper, (TI 2000-027/4), Amsterdam

  37. Agarwal M, Tripathi PK, Pareek S (2021) Forecasting infant mortality rate of India using ARIMA model: a comparison of Bayesian and classical approaches. Stat Appl 19(2):101–114

    Google Scholar 

  38. Devroye L (1986) Non-uniform random variate generations. Springer, New York

    Book  Google Scholar 

  39. Tripathi PK, Mishra RK, Upadhyay SK (2018) Bayes and classical prediction of total fertility rate of India using autoregressive integrated moving average model. J Stat Appl Proba 7(2):233–244

    Article  Google Scholar 

  40. Jacquier E, Polson NG, Rossi PE (2004) Bayesian analysis of stochastic volatility models with fat-tails and correlated errors. J Econ 122(1):185–212

    Article  Google Scholar 

  41. Lopes HF (2013) Stochastic volatility models. http://hedibert.org/wp-content/uploads/2013/12/sv-models.pdf,

  42. Kim S, Shephard N, Chib S (1998) Stochastic volatility: likelihood inference and comparison with ARCH models. Rev Econ Stud 65(3):361–393

    Article  Google Scholar 

  43. Smith AFM, Roberts GO (1993) Bayesian computation via the Gibbs sampler and related Markov chain Monte Carlo methods. J R Stat Soc Ser B (Methodological) 55(1):3–23

    Google Scholar 

  44. Lo AW, MacKinlay AC (1988) Stock market prices do not follow random walks: evidence from a simple specification test. Rev Financ Stud 1(1):41–66

    Article  Google Scholar 

  45. Ayadi OF, Pyun CS (1994) An application of variance ratio test to the Korean securities market. J Bank Finance 18(4):643–658

    Article  Google Scholar 

  46. Chen J-H (2008) Variance ratio tests of random walk hypothesis of the Euro exchange rate. Int Bus Econ Res J 7(12)

  47. Saigal S, Mehrotra D (2012) Performance comparison of time series data using predictive data mining techniques. Adv Inf Min 4(1):57–66

    Google Scholar 

Download references

Acknowledgements

The authors wish to express their thankfulness to the Editor-in-Chief and the anonymous reviewers for their valuable comments and suggestions that improved the earlier version of the manuscript.

Funding

No funding was received for conducting this study.

Author information

Authors and Affiliations

Authors

Contributions

The two authors have equally contributed to this study in each dimension of the paper. The idea and methodology were developed by the first author and is discussed simultaneously with the second/corresponding author. The second author has contributed in the data analysis, coding, and report writing which has been verified and revised by the Dr. Praveen Kumar Tripathi.

Corresponding author

Correspondence to Manika Agarwal.

Ethics declarations

Conflict of interest

The authors have no competing interests to declare that are relevant to the content of this article.

Ethical statement

The submitted manuscript is original and has not been published elsewhere in any form or language.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Tripathi, P.K., Agarwal, M. A Bayes Analysis of Random Walk Model Under Different Error Assumptions. Ann. Data. Sci. (2023). https://doi.org/10.1007/s40745-023-00465-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s40745-023-00465-5

Keywords

Navigation