This project builds a market-regime complexity indicator inspired by polynomial slow entropy in dynamical systems.

The implementation is a finite-sample symbolic proxy rather than a direct estimate of measure-theoretic slow entropy. Daily returns are converted into symbolic states that encode direction and volatility quartile. Inside each rolling window, the indicator counts distinct symbolic words of different block lengths and estimates how quickly this word inventory grows.

p_W(n) = number of distinct symbolic return words of length n in window W
alpha_W ~= slope of log p_W(n) versus log n

I applied the indicator to SPY daily prices from 2016-05-09 to 2026-05-08 using a one-year rolling window. The highest-complexity windows cluster around the 2020 COVID shock and recovery, when the market moved through abrupt drawdown, policy response, liquidity shifts, and rapid rebound.

The reading is not simply high volatility. The indicator asks whether the symbolic return-pattern inventory keeps expanding as the observation block gets longer. In the 2020 windows, SPY paths were harder to compress into short recurring motifs, which is consistent with regime instability and weaker short-horizon signal reliability.

Repository: github.com/minhua-cheng/slow-entropy-market-complexity

重复使用

Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The source code is licensed under MIT. The full source is available at https://github.com/minhua-cheng/minhua.netlify.app.

欢迎修订

如果您发现本文里含有任何错误(包括错别字和标点符号),欢迎在本站的 GitHub 项目里提交修订意见。