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.
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
Shi Y (2022) Advances in big data analytics: theory, algorithm and practice. Springer, Singapore
Shi Y, Olson DL (2007) Introduction to business data mining. McGraw-Hill/Irwin, New York
Shi Y, Tian YJ, Kou G, Peng Y, Li JP (2011) Optimization based data mining: theory and applications. Springer, Berlin
Leuthold RM (1972) Random walk and price trends: the live cattle futures market. J Financ 27(4):879–889
Cooper JCB (1982) World stock markets: some random walk tests. Appl Econ 14(5):515–531
Sims CA (1988) Bayesian skepticism on unit root econometrics. J Econ Dyn Control 12(2–3):463–474
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
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
Aggarwal D (2019) Do bitcoins follow a random walk model? Res Econ 73(1):15–22
Dias R, Santos H (2020) Stock market efficiency in Africa: evidence from random walk hypothesis. LIMEN 2020, pp 25
Palamalai S, Kumar KK, Maity B (2021) Testing the random walk hypothesis for leading cryptocurrencies. Borsa Istanbul Rev 21(3):256–268
DeJong DN, Whiteman CH (1991) Reconsidering ‘trends and random walks in macroeconomic time series’. J Monet Econ 28(2):221–254
Schotman P, Dijk HKV (1991) A Bayesian analysis of the unit root in real exchange rates. J Econ 49(1–2):195–238
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
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)
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
Rumyantseva O, Sarantsev A, Strigul N (2020) Time series analysis of forest dynamics at the ecoregion level. Forecasting 2(3):20
Nelson CR, Plosser CR (1982) Trends and random walks in macroeconmic time series: some evidence and implications. J Monet Econ 10(2):139–162
Chib S, Greenberg E (1994) Bayes inference in regression models with ARMA(p, q) errors. J Econ 64(1):183–206
Chib S, Nardari F, Shephard N (2002) Markov chain Monte Carlo methods for stochastic volatility models. J Econ 108(2):281–316
Tripathi PK, Upadhyay SK (2019) Bayesian analysis of extended autoregressive model with stochastic volatility. Indian Soc Probab Stat 20(1):1–29
Weiss AA (1984) ARMA models with ARCH errors. J Time Ser Anal 5(2):129–143
Greenhouse JB, Kass RE, Tsay RS (1987) Fitting non-linear models with ARMA errors to biological rhythm data. Stat Med 6(2):167–183
Lei H, Xia Y, Qin X (2016) Estimation of semivarying coefficient time series models with ARMA errors. Ann Stat 44(4):1618–1660
Huber F, Krisztin T, Piribauer P (2017) Forecasting global equity indices using large Bayesian VARs. Bull Econ Res
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
Phillips PCB (1990) Time series regression with a unit root and infinite-variance errors. Economet Theor 6(1):44–62
Dick EJ (2004) Beyond ‘log-normal versus gamma’: discrimination among error distributions for generalized linear models. Fish Res 70(2):351–366
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
Petrella I, Monache DD (2016) Adaptive models and heavy tails
Chiu C-WJ, Mumtaz H, Pinter G (2017) Forecasting with var models: Fat tails and stochastic volatility. Int J Forecast 33(4):1124–1143
Monache DD, Polis AD, Petrella I (2021) Modeling and forecasting macroeconomic downside risk. Bank of Italy Temi di Discussione (Working Paper) No, 1324
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
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
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
Kleibergen FR, Hoek H (2000) Bayesian analysis of ARMA models. Tinbergen Institute Discussion Paper, (TI 2000-027/4), Amsterdam
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
Devroye L (1986) Non-uniform random variate generations. Springer, New York
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
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
Lopes HF (2013) Stochastic volatility models. http://hedibert.org/wp-content/uploads/2013/12/sv-models.pdf,
Kim S, Shephard N, Chib S (1998) Stochastic volatility: likelihood inference and comparison with ARCH models. Rev Econ Stud 65(3):361–393
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
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
Ayadi OF, Pyun CS (1994) An application of variance ratio test to the Korean securities market. J Bank Finance 18(4):643–658
Chen J-H (2008) Variance ratio tests of random walk hypothesis of the Euro exchange rate. Int Bus Econ Res J 7(12)
Saigal S, Mehrotra D (2012) Performance comparison of time series data using predictive data mining techniques. Adv Inf Min 4(1):57–66
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
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
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.
About this article
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
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s40745-023-00465-5