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

Variance of entropy for testing time-varying regimes with an application to meme stocks

Author

Listed:
  • Andrey Shternshis
  • Piero Mazzarisi

Abstract

Shannon entropy is the most common metric to measure the degree of randomness of time series in many fields, ranging from physics and finance to medicine and biology. Real-world systems may be in general non stationary, with an entropy value that is not constant in time. The goal of this paper is to propose a hypothesis testing procedure to test the null hypothesis of constant Shannon entropy for time series, against the alternative of a significant variation of the entropy between two subsequent periods. To this end, we find an unbiased approximation of the variance of the Shannon entropy's estimator, up to the order O(n^(-4)) with n the sample size. In order to characterize the variance of the estimator, we first obtain the explicit formulas of the central moments for both the binomial and the multinomial distributions, which describe the distribution of the Shannon entropy. Second, we find the optimal length of the rolling window used for estimating the time-varying Shannon entropy by optimizing a novel self-consistent criterion based on the counting of significant variations of entropy within a time window. We corroborate our findings by using the novel methodology to test for time-varying regimes of entropy for stock price dynamics, in particular considering the case of meme stocks in 2020 and 2021. We empirically show the existence of periods of market inefficiency for meme stocks. In particular, sharp increases of prices and trading volumes correspond to statistically significant drops of Shannon entropy.

Suggested Citation

  • Andrey Shternshis & Piero Mazzarisi, 2022. "Variance of entropy for testing time-varying regimes with an application to meme stocks," Papers 2211.05415, arXiv.org, revised Jun 2023.
  • Handle: RePEc:arx:papers:2211.05415
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Risso, Wiston Adrián, 2008. "The informational efficiency and the financial crashes," Research in International Business and Finance, Elsevier, vol. 22(3), pages 396-408, September.
    2. Wood, Robert A & McInish, Thomas H & Ord, J Keith, 1985. "An Investigation of Transactions Data for NYSE Stocks," Journal of Finance, American Finance Association, vol. 40(3), pages 723-739, July.
    3. Farooq Malik & Bradley Ewing & James Payne, 2005. "Measuring volatility persistence in the presence of sudden changes in the variance of Canadian stock returns," Canadian Journal of Economics, Canadian Economics Association, vol. 38(3), pages 1037-1056, August.
    4. Susmel, Raul, 2000. "Switching Volatility in Private International Equity Markets," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 5(4), pages 265-283, October.
    5. Lucio Maria Calcagnile & Fulvio Corsi & Stefano Marmi, 2020. "Entropy and Efficiency of the ETF Market," Computational Economics, Springer;Society for Computational Economics, vol. 55(1), pages 143-184, January.
    6. Lobo, Bento J. & Tufte, David, 1998. "Exchange Rate Volatility: Does Politics Matter?," Journal of Macroeconomics, Elsevier, vol. 20(2), pages 351-365, April.
    7. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    8. Andrey Shternshis & Piero Mazzarisi & Stefano Marmi, 2022. "Efficiency of the Moscow Stock Exchange before 2022," Papers 2207.10476, arXiv.org, revised Jul 2022.
    9. 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.
    10. Alvarez-Ramirez, Jose & Rodriguez, Eduardo, 2021. "A singular value decomposition entropy approach for testing stock market efficiency," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 583(C).
    11. Giglio, Ricardo & Matsushita, Raul & Figueiredo, Annibal & Gleria, Iram & Da Silva, Sergio, 2008. "Algorithmic complexity theory and the relative efficiency of financial markets - Updated," MPRA Paper 11150, University Library of Munich, Germany.
    12. Mathai, A. M., 1993. "On Noncentral Generalized Laplacianness of Quadratic Forms in Normal Variables," Journal of Multivariate Analysis, Elsevier, vol. 45(2), pages 239-246, May.
    13. Giglio, Ricardo & Matsushita, Raul & Figueiredo, Annibal & Gleria, Iram & Da Silva, Sergio, 2008. "Algorithmic complexity theory and the relative efficiency of financial markets," MPRA Paper 8704, University Library of Munich, Germany.
    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. Andrey Shternshis & Piero Mazzarisi, 2024. "Variance of entropy for testing time-varying regimes with an application to meme stocks," Decisions in Economics and Finance, Springer;Associazione per la Matematica, vol. 47(1), pages 215-258, June.
    2. 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).
    3. Zunino, Luciano & Zanin, Massimiliano & Tabak, Benjamin M. & Pérez, Darío G. & Rosso, Osvaldo A., 2010. "Complexity-entropy causality plane: A useful approach to quantify the stock market inefficiency," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 389(9), pages 1891-1901.
    4. Brouty, Xavier & Garcin, Matthieu, 2024. "Fractal properties, information theory, and market efficiency," Chaos, Solitons & Fractals, Elsevier, vol. 180(C).
    5. Andrey Shternshis & Piero Mazzarisi & Stefano Marmi, 2022. "Efficiency of the Moscow Stock Exchange before 2022," Papers 2207.10476, arXiv.org, revised Jul 2022.
    6. 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.
    7. Fang Wang & Marko Gacesa, 2024. "Semi-strong Efficient Market of Bitcoin and Twitter: an Analysis of Semantic Vector Spaces of Extracted Keywords and Light Gradient Boosting Machine Models," Papers 2409.15988, arXiv.org.
    8. Ashok Chanabasangouda Patil & Shailesh Rastogi, 2019. "Time-Varying Price–Volume Relationship and Adaptive Market Efficiency: A Survey of the Empirical Literature," JRFM, MDPI, vol. 12(2), pages 1-18, June.
    9. Li, Yiying & Ren, Xiaohang & Taghizadeh-Hesary, Farhad, 2023. "Vulnerability of sustainable markets to fossil energy shocks," Resources Policy, Elsevier, vol. 85(PB).
    10. Alvarez-Ramirez, J. & Rodriguez, E. & Espinosa-Paredes, G., 2012. "A partisan effect in the efficiency of the US stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 391(20), pages 4923-4932.
    11. Zunino, Luciano & Bariviera, Aurelio F. & Guercio, M. Belén & Martinez, Lisana B. & Rosso, Osvaldo A., 2016. "Monitoring the informational efficiency of European corporate bond markets with dynamical permutation min-entropy," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 456(C), pages 1-9.
    12. Wang, Fang & Gacesa, Marko, 2023. "Semi-strong efficient market of Bitcoin and Twitter: An analysis of semantic vector spaces of extracted keywords and light gradient boosting machine models," International Review of Financial Analysis, Elsevier, vol. 88(C).
    13. Andrey Shternshis & Stefano Marmi, 2023. "Price predictability at ultra-high frequency: Entropy-based randomness test," Papers 2312.16637, arXiv.org, revised May 2024.
    14. Detlef Seese & Christof Weinhardt & Frank Schlottmann (ed.), 2008. "Handbook on Information Technology in Finance," International Handbooks on Information Systems, Springer, number 978-3-540-49487-4, November.
    15. Ortiz-Cruz, Alejandro & Rodriguez, Eduardo & Ibarra-Valdez, Carlos & Alvarez-Ramirez, Jose, 2012. "Efficiency of crude oil markets: Evidences from informational entropy analysis," Energy Policy, Elsevier, vol. 41(C), pages 365-373.
    16. John R. Freeman & Jude C. Hays & Helmut Stix, 1999. "Democracy and Markets: The Case of Exchange Rates," Working Papers 39, Oesterreichische Nationalbank (Austrian Central Bank).
    17. 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).
    18. 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.
    19. 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.
    20. Semei Coronado-Ram'irez & Pedro Celso-Arellano & Omar Rojas, 2014. "Adaptive Market Efficiency of Agricultural Commodity Futures Contracts," Papers 1412.8017, arXiv.org, revised Mar 2015.

    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:2211.05415. 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.