IDEAS home Printed from https://ideas.repec.org/a/spr/decfin/v47y2024i1d10.1007_s10203-023-00427-9.html
   My bibliography  Save this article

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

Author

Listed:
  • Andrey Shternshis

    (Scuola Normale Superiore
    Uppsala University)

  • Piero Mazzarisi

    (Scuola Normale Superiore
    University of Siena)

Abstract

Shannon entropy is the most common metric for assessing the degree of randomness of time series in many fields, ranging from physics and finance to medicine and biology. Real-world systems are typically non-stationary, leading to entropy values fluctuating over time. This paper proposes a hypothesis testing procedure to test the null hypothesis of constant Shannon entropy in time series data. The alternative hypothesis is a significant variation in entropy between successive periods. To this end, we derive an unbiased sample entropy variance, accurate up to the order $$O(n^{-4})$$ O ( n - 4 ) with n the sample size. To characterize the variance of the sample entropy, we first provide explicit formulas for the central moments of both binomial and multinomial distributions describing the distribution of the sample entropy. Second, we identify the optimal rolling window length to estimate time-varying Shannon entropy. We optimize this choice using a novel self-consistent criterion based on counting significant entropy variations over time. We corroborate our findings using the novel methodology to assess time-varying regimes of entropy for stock price dynamics by presenting a comparative analysis between meme and IT stocks in 2020 and 2021. We show that low entropy values correspond to periods when profitable trading strategies can be devised starting from the symbolic dynamics used for entropy computation, namely periods of market inefficiency.

Suggested Citation

  • 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.
  • Handle: RePEc:spr:decfin:v:47:y:2024:i:1:d:10.1007_s10203-023-00427-9
    DOI: 10.1007/s10203-023-00427-9
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10203-023-00427-9
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10203-023-00427-9?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Frédéric Ouimet, 2021. "General Formulas for the Central and Non-Central Moments of the Multinomial Distribution," Stats, MDPI, vol. 4(1), pages 1-10, January.
    2. Farooq Malik & Bradley T. Ewing & James E. Payne, 2005. "Measuring volatility persistence in the presence of sudden changes in the variance of Canadian stock returns," Canadian Journal of Economics/Revue canadienne d'économique, John Wiley & Sons, vol. 38(3), pages 1037-1056, August.
    3. 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.
    4. Andrey Shternshis & Piero Mazzarisi & Stefano Marmi, 2022. "Efficiency of the Moscow Stock Exchange before 2022," Papers 2207.10476, arXiv.org, revised Jul 2022.
    5. repec:cii:cepiei:2012-q1-129-5 is not listed on IDEAS
    6. Barnett, William A. & Serletis, Apostolos, 2000. "Martingales, nonlinearity, and chaos," Journal of Economic Dynamics and Control, Elsevier, vol. 24(5-7), pages 703-724, June.
    7. Morales, Raffaello & Di Matteo, T. & Gramatica, Ruggero & Aste, Tomaso, 2012. "Dynamical generalized Hurst exponent as a tool to monitor unstable periods in financial time series," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 391(11), pages 3180-3189.
    8. R. Cont, 2001. "Empirical properties of asset returns: stylized facts and statistical issues," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 223-236.
    9. 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.
    10. Chan, Joshua C.C. & Santi, Caterina, 2021. "Speculative bubbles in present-value models: A Bayesian Markov-switching state space approach," Journal of Economic Dynamics and Control, Elsevier, vol. 127(C).
    11. Sensoy, A., 2013. "Generalized Hurst exponent approach to efficiency in MENA markets," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 392(20), pages 5019-5026.
    12. Agliari, Anna & Naimzada, Ahmad & Pecora, Nicolò, 2018. "Boom-bust dynamics in a stock market participation model with heterogeneous traders," Journal of Economic Dynamics and Control, Elsevier, vol. 91(C), pages 458-468.
    13. 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.
    14. 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.
    15. Les Gulko, 1999. "The Entropic Market Hypothesis," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 2(03), pages 293-329.
    16. Xavier Brouty & Matthieu Garcin, 2023. "A statistical test of market efficiency based on information theory," Quantitative Finance, Taylor & Francis Journals, vol. 23(6), pages 1003-1018, June.
    17. 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.
    18. Walid Mensi & Chaker Alaoui & Khuong Nguyen, 2012. "Crude oil market efficiency: An empirical investigation via the Shannon entropy," International Economics, CEPII research center, issue 129, pages 119-137.
    19. Matilla-Garcia, Mariano, 2007. "A non-parametric test for independence based on symbolic dynamics," Journal of Economic Dynamics and Control, Elsevier, vol. 31(12), pages 3889-3903, December.
    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, 2022. "Variance of entropy for testing time-varying regimes with an application to meme stocks," Papers 2211.05415, arXiv.org, revised Jun 2023.
    2. 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.
    3. 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).
    4. Andrey Shternshis & Stefano Marmi, 2023. "Price predictability at ultra-high frequency: Entropy-based randomness test," Papers 2312.16637, arXiv.org, revised May 2024.
    5. 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.
    6. Andrey Shternshis & Piero Mazzarisi & Stefano Marmi, 2022. "Efficiency of the Moscow Stock Exchange before 2022," Papers 2207.10476, arXiv.org, revised Jul 2022.
    7. Oussama Tilfani & My Youssef El Boukfaoui, 2020. "Multifractal Analysis of African Stock Markets During the 2007–2008 US Crisis," Review of Pacific Basin Financial Markets and Policies (RPBFMP), World Scientific Publishing Co. Pte. Ltd., vol. 22(04), pages 1-31, January.
    8. Hasan, Rashid & Mohammad, Salim M., 2015. "Multifractal analysis of Asian markets during 2007–2008 financial crisis," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 419(C), pages 746-761.
    9. Oluwasegun B. Adekoya, 2021. "Persistence and efficiency of OECD stock markets: linear and nonlinear fractional integration approaches," Empirical Economics, Springer, vol. 61(3), pages 1415-1433, September.
    10. Zunino, Luciano & Zanin, Massimiliano & Tabak, Benjamin M. & Pérez, Darío G. & Rosso, Osvaldo A., 2009. "Forbidden patterns, permutation entropy and stock market inefficiency," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 388(14), pages 2854-2864.
    11. Stosic, Darko & Stosic, Dusan & Ludermir, Teresa & de Oliveira, Wilson & Stosic, Tatijana, 2016. "Foreign exchange rate entropy evolution during financial crises," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 449(C), pages 233-239.
    12. Ammy-Driss, Ayoub & Garcin, Matthieu, 2023. "Efficiency of the financial markets during the COVID-19 crisis: Time-varying parameters of fractional stable dynamics," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 609(C).
    13. Corzo Santamaría, Teresa & Martin-Bujack, Karin & Portela, Jose & Sáenz-Diez, Rocio, 2022. "Early market efficiency testing among hydrogen players," International Review of Economics & Finance, Elsevier, vol. 82(C), pages 723-742.
    14. Alvarez-Ramirez, Jose & Rodriguez, Eduardo & Alvarez, Jesus, 2012. "A multiscale entropy approach for market efficiency," International Review of Financial Analysis, Elsevier, vol. 21(C), pages 64-69.
    15. Martina, Esteban & Rodriguez, Eduardo & Escarela-Perez, Rafael & Alvarez-Ramirez, Jose, 2011. "Multiscale entropy analysis of crude oil price dynamics," Energy Economics, Elsevier, vol. 33(5), pages 936-947, September.
    16. Sensoy, Ahmet & Hacihasanoglu, Erk, 2014. "Time-varying long range dependence in energy futures markets," Energy Economics, Elsevier, vol. 46(C), pages 318-327.
    17. Sensoy, Ahmet & Tabak, Benjamin M., 2016. "Dynamic efficiency of stock markets and exchange rates," International Review of Financial Analysis, Elsevier, vol. 47(C), pages 353-371.
    18. Ladislav Kristoufek & Miloslav Vosvrda, 2014. "Measuring capital market efficiency: long-term memory, fractal dimension and approximate entropy," The European Physical Journal B: Condensed Matter and Complex Systems, Springer;EDP Sciences, vol. 87(7), pages 1-9, July.
    19. Patrick Krieger & Carsten Lausberg & Kristin Wellner, 2018. "Einblicke in die Gründe für nicht-normalverteilte Immobilienrenditen: eine explorative Untersuchung deutscher Wohnimmobilienportfolios [Insights into the reasons for non-normal real estate returns:," Zeitschrift für Immobilienökonomie (German Journal of Real Estate Research), Springer;Gesellschaft für Immobilienwirtschaftliche Forschung e. V., vol. 4(1), pages 49-79, November.
    20. 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.

    More about this item

    Keywords

    Market efficiency; Meme stocks; Multinomial distribution; Entropy distribution; Hypothesis testing;
    All these keywords.

    JEL classification:

    • C12 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Hypothesis Testing: General
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • D84 - Microeconomics - - Information, Knowledge, and Uncertainty - - - Expectations; Speculations
    • G14 - Financial Economics - - General Financial Markets - - - Information and Market Efficiency; Event Studies; Insider Trading

    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:spr:decfin:v:47:y:2024:i:1:d:10.1007_s10203-023-00427-9. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    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.