Author: Denis Avetisyan
A new portfolio construction framework uses advanced statistical modeling to dynamically adapt to changing market conditions and improve investment outcomes.

This paper introduces the Wasserstein Hidden Markov Model for robust regime identification and portfolio optimization using time series analysis and conditional volatility modeling.
Traditional portfolio construction often struggles with non-stationary market dynamics and maintaining stable economic interpretation. This is addressed in ‘Explainable Regime Aware Investing’ through a novel framework leveraging a Wasserstein Hidden Markov Model to adaptively identify and track latent market regimes. By combining geometric principles with predictive modeling, the approach demonstrably improves risk-adjusted performance and reduces drawdown relative to conventional benchmarks-achieving a Sharpe ratio of 2.18 and a maximum drawdown of -5.43%. Can this focus on regime inference stability and adaptive complexity provide a pathway towards more robust and explainable asset allocation strategies in practice?
Whispers of Instability: Why Traditional Portfolios Fail to Adapt
Financial markets aren’t static entities; rather, they exhibit a tendency towards ‘regime switching’, meaning the underlying statistical characteristics – volatility, correlation, expected returns – aren’t constant but shift over time. This dynamic behavior poses a significant challenge to traditional portfolio construction methods that rely on historical data to project future performance. Static allocations, optimized for a specific market environment, can quickly become suboptimal – and even detrimental – when regimes change. For instance, a portfolio designed to thrive in a low-volatility, bull market may suffer considerably during periods of heightened uncertainty or a bear market. Recognizing and adapting to these evolving statistical properties is therefore crucial for effective risk management and achieving consistent investment outcomes, as relying on fixed allocations assumes a stability that the market rarely provides.
Static Mean-Variance Optimization, a cornerstone of modern portfolio theory, operates under the assumption of relatively stable market conditions, a premise frequently challenged by real-world dynamics. This approach calculates optimal asset allocations based on historical means, variances, and correlations, effectively building a portfolio suited to a past market environment. When regimes shift – meaning statistical properties like volatility and correlation change – this static allocation becomes increasingly misaligned with current realities. Consequently, portfolios constructed using this method can exhibit suboptimal performance, failing to capture potential gains in a new regime. More critically, the lack of adaptability heightens drawdown risk, as the portfolio remains exposed to asset classes that perform poorly in the prevailing conditions, potentially leading to significant losses when market behavior diverges from historical norms.
Historical market events demonstrate the substantial risks associated with neglecting regime shifts. A prime example is “Liberation Day” in 1990 – the day Iraq invaded Kuwait – which triggered unexpectedly large declines across numerous portfolios. Traditional portfolio strategies, predicated on stable market conditions, were caught off guard by the sudden, dramatic shift in investor sentiment and geopolitical risk. The event highlighted how quickly previously uncorrelated assets could become highly correlated in times of crisis, invalidating the assumptions underpinning many standard asset allocation models. Consequently, portfolios experienced significant drawdowns, illustrating that failing to account for evolving market dynamics can expose investors to considerable and unanticipated losses, even in seemingly diversified strategies.
A robust portfolio construction strategy demands more than static allocation; it requires a dynamic framework capable of discerning and reacting to shifts in market regimes. This isn’t merely about predicting the future, but rather, identifying the current statistical environment – be it a bull market characterized by low volatility, a bear market defined by increased risk aversion, or a transitional phase exhibiting mixed signals. Such a framework moves beyond relying solely on historical averages, instead incorporating techniques that monitor key indicators and adjust asset allocations accordingly. The ability to swiftly recognize a change – from growth to value, or stability to inflation – and rebalance a portfolio to align with the prevailing conditions is paramount to mitigating drawdown risk and maximizing long-term returns. Ultimately, successful investing in a world of fluctuating market dynamics hinges on embracing adaptability and proactively responding to the ever-changing landscape.

The Shifting Sands: Modeling Regimes with Wasserstein Distance
The Wasserstein Hidden Markov Model (WHMM) addresses the challenges of modeling time series data exhibiting shifts in underlying distributions by explicitly representing these changes as regime switches within a probabilistic framework. Unlike traditional Hidden Markov Models which rely on Euclidean distance metrics potentially leading to inaccurate state identification, the WHMM utilizes the 2-Wasserstein distance to quantify the dissimilarity between probability distributions. This allows for a more stable and accurate inference of latent states, even when dealing with complex or noisy data. By assigning probabilities to each regime at each time step, the WHMM provides a comprehensive and mathematically rigorous approach to understanding and predicting dynamic systems characterized by regime shifts, offering increased robustness compared to methods that implicitly assume a static underlying structure.
The model employs Rolling Window Estimation to dynamically infer latent market states by continuously updating parameters based on a fixed-size, sliding window of historical data. This allows the system to adapt to non-stationary time series. Specifically, a Gaussian Hidden Markov Model (GHMM) is utilized, assuming that the observed data within each latent state follows a Gaussian distribution. The GHMM parameters – mean μ, variance \sigma^2, and transition probabilities – are estimated for each rolling window, effectively tracking evolving market regimes and enabling real-time state inference based on the most recent observations.
Predictive Model-Order Selection within the Wasserstein Hidden Markov Model (WHMM) dynamically adjusts the number of latent regimes based on incoming data. This is achieved through a forward-looking approach that evaluates the model’s performance with varying regime counts, selecting the configuration that minimizes a specified cost function – typically based on information criteria such as the Bayesian Information Criterion (BIC) or Akaike Information Criterion (AIC). The algorithm iteratively tests different numbers of regimes, estimates the model parameters for each configuration, and quantifies the trade-off between model fit and complexity. By continuously re-evaluating and updating the regime count, the WHMM avoids overfitting to historical data and adapts to non-stationary market conditions, providing a more responsive and accurate representation of evolving dynamics compared to static regime-switching models.
Wasserstein Template Tracking addresses the label switching problem inherent in Hidden Markov Models by employing the 2-Wasserstein distance to maintain consistent regime identity across time. Label switching occurs when the model incorrectly reassigns numerical labels to states, leading to inaccurate interpretations of state transitions despite no actual change in the underlying market dynamics. The 2-Wasserstein distance, a metric for comparing probability distributions, quantifies the minimal cost of transforming one distribution into another, allowing the algorithm to track the evolution of each regime’s probability distribution and consistently associate it with its original label. This ensures that a regime identified at one point in time is correctly recognized as the same regime at a later point, even if the parameters of that regime have shifted, thereby stabilizing the model’s interpretation of latent states.

Beyond Benchmarks: Evidence of Dynamic Performance
The performance evaluation of the Weighted Hidden Markov Model (WHMM) incorporates a benchmark comparison utilizing K-Nearest Neighbors (KNN) for the estimation of conditional moments. This approach allows for a data-driven assessment of the model’s predictive capabilities relative to established financial strategies. KNN is employed to estimate the expected return and volatility, providing a localized and adaptive assessment of market conditions used in the WHMM’s calculations. The resulting conditional moment estimates are then used to compare the WHMM’s performance against static benchmarks, specifically the SPX Buy & Hold strategy and an Equal-Weight Portfolio, providing a quantifiable measure of the model’s added value.
Benchmarking indicates the Weighted Hidden Markov Model (WHMM) consistently exceeds the performance of static investment strategies. Specifically, the WHMM achieved a Sharpe Ratio of 2.18 during evaluation. This figure represents a substantial improvement over the Sharpe Ratios recorded by the SPX Buy & Hold strategy (1.18) and the Equal-Weight Portfolio approach (1.59). The Sharpe Ratio, calculated as the risk-free rate adjusted excess return divided by the standard deviation of excess returns, provides a standardized measure of risk-adjusted performance, demonstrating the WHMM’s ability to generate higher returns for a given level of risk when compared to these baseline strategies.
The Weighted Hidden Markov Model (WHMM) achieved a Sharpe Ratio of 2.18 during performance evaluation. This figure represents a substantial improvement over benchmark strategies; the equal-weight diversification approach yielded a Sharpe Ratio of 1.59, while a simple SPX Buy & Hold strategy resulted in a Sharpe Ratio of only 1.18. The Sharpe Ratio is calculated as the risk-free rate of return minus the average rate of return, divided by the standard deviation of the rate of return; a higher ratio indicates better risk-adjusted returns. The observed difference demonstrates the WHMM’s capacity to generate greater returns for a given level of risk compared to these traditional investment methods.
Analysis of maximum drawdown – the peak-to-trough decline during a specific period – reveals a substantial risk management advantage for the WHMM. The model experienced a maximum drawdown of -5.43%, indicating a limited loss from peak portfolio value. In comparison, the SPX Buy & Hold strategy suffered a maximum drawdown of -14.62% over the same evaluation period. This difference of 9.19 percentage points demonstrates the WHMM’s capacity to mitigate potential losses and preserve capital during market downturns, resulting in a more stable investment profile.

Beyond Optimization: A Framework for Market Intelligence
The application of a Hidden Markov Model (WHMM) to financial time series allows for the dynamic identification of distinct market regimes – periods characterized by specific statistical properties like volatility, correlation, and expected returns. This isn’t merely descriptive; the model actively infers these regimes as they unfold, offering a crucial advantage over static analyses. By recognizing transitions between states – such as calm stability shifting to heightened volatility – portfolio managers can proactively adjust risk exposures. For example, the WHMM can signal a move from a ‘low-risk’ regime to a ‘high-risk’ one, triggering a reduction in leveraged positions or an increase in hedging strategies. Consequently, the framework doesn’t simply react to market changes; it anticipates them, enabling more informed and potentially more effective risk management and offering valuable insights into the underlying behavioral patterns driving market dynamics.
The model’s strength lies in its explicit recognition that financial markets aren’t static; they transition between distinct operational states, or regimes. By directly incorporating the probability of these shifts, the framework moves beyond simply reacting to market stress and instead begins to anticipate it. This proactive capability allows for the dynamic adjustment of portfolio risk, potentially reducing exposure before significant downturns occur. During periods of heightened uncertainty, the model can signal increased volatility and recommend defensive strategies, while a growth regime could favor more aggressive equity allocations. Consequently, the framework doesn’t just optimize for returns in calm markets, but provides a crucial buffer against the inevitable shocks and transitions inherent in financial systems.
The Hidden Markov Model framework demonstrates considerable versatility beyond equities, extending its analytical power to diverse financial instruments and investment approaches. Studies reveal its effectiveness across fixed income, commodities, foreign exchange, and even alternative assets like real estate and private equity, due to its capacity to capture shifting underlying states irrespective of asset type. This adaptability isn’t limited to what is analyzed, but also how; the model accommodates both passive, long-term investment strategies and more active, short-term trading techniques. Consequently, portfolio managers can leverage the framework to refine asset allocation, optimize hedging strategies, and dynamically adjust risk exposure across a broad spectrum of investment portfolios, proving its utility as a foundational tool for modern financial analysis.
The distinct market regimes identified by the model aren’t merely descriptive; they provide a structured foundation for constructing advanced financial tools. Investment strategies can be specifically tailored to each regime – for example, a high-volatility regime might trigger a shift towards protective options strategies. This regime-based approach extends beyond simple asset allocation, enabling the creation of dynamic trading algorithms that automatically adjust parameters based on the prevailing market state. Consequently, financial product development benefits from a more nuanced understanding of market dynamics, potentially leading to innovative instruments designed to capture regime-specific opportunities or hedge against predictable risks, ultimately enhancing portfolio performance and risk-adjusted returns.

The pursuit of stable regimes, as outlined in this work with its Wasserstein Hidden Markov Model, echoes a fundamental truth about observation itself. Anything declared definitively ‘known’ is already a fossil. John Locke observed, “All knowledge is ultimately based on perception.” This paper doesn’t seek to know the market, but to continuously perceive its shifting geometry-the subtle alterations in the Wasserstein distance that signal a transition. The model doesn’t predict, it persuades the chaos, coaxing a semblance of order from the noise. It’s a delicate spell, contingent on the ever-elusive present, acknowledging that any precise categorization will inevitably fail as the market state dissolves into a new, undefined possibility.
What’s Next?
The pursuit of regime identification, elegantly framed here through Wasserstein geometry and Hidden Markov Models, merely relocates the problem. Any system that claims stable tracking of latent states implies a faith in persistence – a comforting illusion. The true market doesn’t switch regimes; it dissolves them, blends them into new, unpredictable configurations. The model offers a refined map, certainly, but remember: anything you can measure isn’t worth trusting. A perfect correlation between identified regime and subsequent return would not indicate insight, but a fundamental failure to probe deeply enough.
Future work will inevitably focus on extending this framework to incorporate higher-order dependencies and non-stationarities. However, a more fruitful direction may lie in embracing the inherent ambiguity. Rather than seeking definitive regime boundaries, the next generation of models should quantify degrees of regime-ness, acknowledging that markets exist in a perpetual state of flux. The challenge isn’t to find the hidden order, but to navigate the beautiful chaos.
Ultimately, this approach, like all quantitative endeavors, is a temporary truce with entropy. The promise of improved risk-adjusted returns is not a guarantee, but a conditional one – valid only until the universe discovers a more efficient way to invalidate it. The model’s elegance is a testament to human ingenuity, but the market remains indifferent to such niceties.
Original article: https://arxiv.org/pdf/2603.04441.pdf
Contact the author: https://www.linkedin.com/in/avetisyan/
See also:
- SHIB PREDICTION. SHIB cryptocurrency
- Movie Games responds to DDS creator’s claims with $1.2M fine, saying they aren’t valid
- Scream 7 Will Officially Bring Back 5 Major Actors from the First Movie
- United Airlines can now kick passengers off flights and ban them for not using headphones
- The MCU’s Mandarin Twist, Explained
- These are the 25 best PlayStation 5 games
- Server and login issues in Escape from Tarkov (EfT). Error 213, 418 or “there is no game with name eft” are common. Developers are working on the fix
- Rob Reiner’s Son Officially Charged With First Degree Murder
- MNT PREDICTION. MNT cryptocurrency
- Gold Rate Forecast
2026-03-07 05:51