IDEAS home Printed from https://ideas.repec.org/p/arx/papers/1803.06653.html
   My bibliography  Save this paper

Modeling stock markets through the reconstruction of market processes

Author

Listed:
  • Jo~ao Pedro Rodrigues do Carmo

Abstract

There are two possible ways of interpreting the seemingly stochastic nature of financial markets: the Efficient Market Hypothesis (EMH) and a set of stylized facts that drive the behavior of the markets. We show evidence for some of the stylized facts such as memory-like phenomena in price volatility in the short term, a power-law behavior and non-linear dependencies on the returns. Given this, we construct a model of the market using Markov chains. Then, we develop an algorithm that can be generalized for any N-symbol alphabet and K-length Markov chain. Using this tool, we are able to show that it's, at least, always better than a completely random model such as a Random Walk. The code is written in MATLAB and maintained in GitHub.

Suggested Citation

  • Jo~ao Pedro Rodrigues do Carmo, 2018. "Modeling stock markets through the reconstruction of market processes," Papers 1803.06653, arXiv.org.
  • Handle: RePEc:arx:papers:1803.06653
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/1803.06653
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Alex Edmans & Diego García & Øyvind Norli, 2007. "Sports Sentiment and Stock Returns," Journal of Finance, American Finance Association, vol. 62(4), pages 1967-1998, August.
    2. Guglielmo D'Amico & Filippo Petroni, 2012. "Weighted-indexed semi-Markov models for modeling financial returns," Papers 1205.2551, arXiv.org, revised Jun 2012.
    3. Bulla, Jan & Bulla, Ingo, 2006. "Stylized facts of financial time series and hidden semi-Markov models," Computational Statistics & Data Analysis, Elsevier, vol. 51(4), pages 2192-2209, December.
    4. Xi, Xiaojing & Mamon, Rogemar, 2011. "Parameter estimation of an asset price model driven by a weak hidden Markov chain," Economic Modelling, Elsevier, vol. 28(1-2), pages 36-46, January.
    5. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    6. Bulla, Jan, 2006. "Application of Hidden Markov Models and Hidden Semi-Markov Models to Financial Time Series," MPRA Paper 7675, University Library of Munich, Germany.
    7. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    8. Xi, Xiaojing & Mamon, Rogemar, 2011. "Parameter estimation of an asset price model driven by a weak hidden Markov chain," Economic Modelling, Elsevier, vol. 28(1), pages 36-46.
    9. Johnson, Neil F. & Jefferies, Paul & Hui, Pak Ming, 2003. "Financial Market Complexity," OUP Catalogue, Oxford University Press, number 9780198526650.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Laurie Davies & Walter Kraemer, 2016. "Stylized Facts and Simulating Long Range Financial Data," CESifo Working Paper Series 5796, CESifo.
    2. Guglielmo D'Amico & Filippo Petroni, 2020. "A micro-to-macro approach to returns, volumes and waiting times," Papers 2007.06262, arXiv.org.
    3. Jianrong Wei & Jiping Huang, 2012. "An Exotic Long-Term Pattern in Stock Price Dynamics," PLOS ONE, Public Library of Science, vol. 7(12), pages 1-5, December.
    4. Haas, Markus, 2009. "Persistence in volatility, conditional kurtosis, and the Taylor property in absolute value GARCH processes," Statistics & Probability Letters, Elsevier, vol. 79(15), pages 1674-1683, August.
    5. Westerhoff, Frank H., 2004. "Greed, fear and stock market dynamics," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 343(C), pages 635-642.
    6. Kei Katahira & Yu Chen & Gaku Hashimoto & Hiroshi Okuda, 2019. "Development of an agent-based speculation game for higher reproducibility of financial stylized facts," Papers 1902.02040, arXiv.org.
    7. Matthew Oldham, 2019. "Understanding How Short-Termism and a Dynamic Investor Network Affects Investor Returns: An Agent-Based Perspective," Complexity, Hindawi, vol. 2019, pages 1-21, July.
    8. Liu, Zhenya & Wang, Shixuan, 2017. "Decoding Chinese stock market returns: Three-state hidden semi-Markov model," Pacific-Basin Finance Journal, Elsevier, vol. 44(C), pages 127-149.
    9. Fa-Bin Shi & Xiao-Qian Sun & Jin-Hua Gao & Li Xu & Hua-Wei Shen & Xue-Qi Cheng, 2019. "Anomaly detection in Bitcoin market via price return analysis," PLOS ONE, Public Library of Science, vol. 14(6), pages 1-11, June.
    10. Shternshis, Andrey & Mazzarisi, Piero & Marmi, Stefano, 2022. "Measuring market efficiency: The Shannon entropy of high-frequency financial time series," Chaos, Solitons & Fractals, Elsevier, vol. 162(C).
    11. Katahira, Kei & Chen, Yu & Hashimoto, Gaku & Okuda, Hiroshi, 2019. "Development of an agent-based speculation game for higher reproducibility of financial stylized facts," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 524(C), pages 503-518.
    12. Guglielmo D’Amico & Ada Lika & Filippo Petroni, 2019. "Change point dynamics for financial data: an indexed Markov chain approach," Annals of Finance, Springer, vol. 15(2), pages 247-266, June.
    13. Milan Kumar Das & Anindya Goswami, 2019. "Testing of binary regime switching models using squeeze duration analysis," International Journal of Financial Engineering (IJFE), World Scientific Publishing Co. Pte. Ltd., vol. 6(01), pages 1-20, March.
    14. Muchnik, Lev & Bunde, Armin & Havlin, Shlomo, 2009. "Long term memory in extreme returns of financial time series," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 388(19), pages 4145-4150.
    15. Bariviera, Aurelio F. & Font-Ferrer, Alejandro & Sorrosal-Forradellas, M. Teresa & Rosso, Osvaldo A., 2019. "An information theory perspective on the informational efficiency of gold price," The North American Journal of Economics and Finance, Elsevier, vol. 50(C).
    16. Klein, A. & Urbig, D. & Kirn, S., 2008. "Who Drives the Market? Estimating a Heterogeneous Agent-based Financial Market Model Using a Neural Network Approach," MPRA Paper 14433, University Library of Munich, Germany.
    17. Wang, Shixuan & Gupta, Rangan & Zhang, Yue-Jun, 2021. "Bear, Bull, Sidewalk, and Crash: The Evolution of the US Stock Market Using Over a Century of Daily Data," Finance Research Letters, Elsevier, vol. 43(C).
    18. V. Alfi & L. Pietronero & A. Zaccaria, 2008. "Minimal Agent Based Model For The Origin And Self-Organization Of Stylized Facts In Financial Markets," Papers 0807.1888, arXiv.org.
    19. Gao, Huan & Mamon, Rogemar & Liu, Xiaoming & Tenyakov, Anton, 2015. "Mortality modelling with regime-switching for the valuation of a guaranteed annuity option," Insurance: Mathematics and Economics, Elsevier, vol. 63(C), pages 108-120.
    20. David Vidal-Tomás & Simone Alfarano, 2020. "An agent-based early warning indicator for financial market instability," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 15(1), pages 49-87, January.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:1803.06653. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.