Quantitative Trading & Financial Markets
A structured overview of financial market behavior and advanced quantitative modeling, from epistemic unpredictability to neural regime detection.
Note: The foundational philosophy of market behavior in Section 1 is largely adapted from the recent paper, "Markets Are Not Random, They Are Hard to Predict" by Miquel Noguer i Alonso (arXiv:2606.08209, June 2026).
1. Nature of the Markets
Before applying mathematical models, a quantitative trader must understand the fundamental philosophy of financial data. Markets exhibit complex behaviors that defy simple statistical assumptions.
Not Random, Hard to Predict
▼
Financial returns are often casually described as "random walks." However, as Noguer i Alonso (2026) elegantly argues, this conflates true randomness with strategic ignorance. Markets are not random in an "ontic" sense (like a quantum measurement or a roll of a die). They are causal economic systems.
Epistemic Difficulty
The future of the market is hard to predict because the relevant causes are hidden, costly to observe, capacity constrained, and strategically guarded by other market participants. Therefore, unpredictability in finance is an epistemic limit (we lack the full information set) rather than a lack of underlying deterministic structure.
Non-Stationarity in Time Series
▼
A time series is stationary if its statistical properties (mean, variance, autocorrelation) remain constant over time. Financial markets are famously non-stationary.
Because markets are governed by "changing laws" (shifting monetary policies, global pandemics, technological breakthroughs), the underlying distribution generating the price data constantly evolves. A predictive model trained on data from a low-interest-rate decade will likely fail when transitioning into an inflationary, high-rate environment.
Micro vs. Macro Variables
▼
Micro Variables
Micro variables describe the market microstructure. This includes ultra-high-frequency data such as the Limit Order Book (LOB) depth, bid-ask spread, tick-by-tick trade flow, and order cancellations. These variables are highly causal in the extreme short term (milliseconds to seconds) but are incredibly noisy and dominated by algorithmic execution and high-frequency trading constraints.
Macro Variables
Macro variables represent the broad economic environment. Examples include GDP growth, inflation (CPI/PCE), Federal Reserve interest rates, and employment reports. While micro variables dictate how an asset moves tick-by-tick, macro variables dictate the broad directional drifts and structural risk premiums over months and years.
2. What is ARCH / GARCH?
Because asset prices are heavily non-stationary, their variance (volatility) changes over time. Financial series exhibit "volatility clustering": large price movements tend to be followed by large movements, and small movements by small movements. ARCH and GARCH are the standard mathematical frameworks used to model this phenomenon.
The GARCH Model
▼
ARCH stands for Autoregressive Conditional Heteroskedasticity. GARCH is its Generalized version. Simply put, instead of trying to predict the *price* of an asset, GARCH models try to predict the *variance* (risk) of the asset by looking at recent market shocks and recent estimated variances.
The Math: GARCH(1,1)
- σ²t : The predicted variance for today.
- ω (omega) : A constant baseline variance.
- ε²t-1 : The squared return (or shock) from yesterday. A large move yesterday pushes today's variance higher.
- σ²t-1 : The variance we predicted yesterday. This creates "memory" in the system, causing volatility to persist.
3. Markov Models to Detect Regimes
Because of non-stationarity, trading algorithms cannot use a "one-size-fits-all" parameter set. A trend-following strategy that dominates in a bull market will bleed capital in a volatile, mean-reverting sideways market.
Hidden Markov Models (HMMs)
▼
A Hidden Markov Model assumes that the market operates in one of several unobservable (hidden) "states" or "regimes" (e.g., State 1: Low Volatility Bull, State 2: High Volatility Bear).
How it Works
While we cannot directly observe which state the market is in, we *can* observe "emissions"—the daily returns and the daily volatility. The HMM uses probability matrices to constantly guess: "Given the recent string of returns and volatility, what is the probability we just transitioned from a Bull regime to a Bear regime?"
Advantages for Quants
Unlike moving averages which strictly look at lagging prices, HMMs provide a probabilistic understanding of market structure. If the model detects a 90% probability of being in a High-Volatility Regime, the algorithmic trading system can automatically shrink position sizing and switch to mean-reversion strategies.
4. Advanced Strategies for Regimes
While traditional HMMs are powerful, modern quantitative researchers utilize advanced statistical and deep learning methodologies to identify structural market shifts.
Deep Hidden Markov Models
▼
Standard HMMs assume simple linear or Gaussian relationships. Deep HMMs parameterize the emission and transition probabilities using Deep Neural Networks (DNNs/RNNs). This allows the model to process highly complex, multi-dimensional inputs (like digesting the entire limit order book and macroeconomic feeds simultaneously) to determine the probability of a regime switch.
Change Point Detection (CPD)
▼
Change Point Detection algorithms specifically look for abrupt, structural breaks in a time series where the underlying probability distribution changes drastically (like a sudden flash crash or a central bank intervention).
Rather than assuming the market is continuously flowing between predefined states (like an HMM), CPD treats the market as mostly stable until it abruptly fractures into a totally new statistical reality. Techniques include Bayesian Online Change Point Detection (BOCPD), which updates probabilities in real-time as each new tick arrives.
Variational Autoencoders (VAEs)
▼
VAEs are powerful unsupervised deep learning models. Instead of forcing the market into rigid categorical labels ("Bull" vs "Bear"), a VAE compresses raw, chaotic market data into a low-dimensional latent space.
In this continuous latent space, regimes are represented as clusters or regions. Quants use VAEs to uncover "hidden coordinates" of the market environment that humans would never mathematically intuit, translating these hidden representations into adaptable risk models.