Institutional-grade optimization.
Scales to your understanding.

Construct resilient portfolios using deterministic mathematics, dynamic regime detection, and zero stochastic noise.

Live Strategy Radar

Dynamically shifting factor exposures based on current market regime analysis.

Matrix Configuration

$
5

1. CAPM (Capital Asset Pricing Model Prior)

The Core Mathematical Hypothesis

Established by William Sharpe in 1964, CAPM posits that investors should only be compensated for "systematic risk"—risk that cannot be diversified away. Expected returns are purely a function of an asset's covariance with the broader market baseline (its Beta).

E(R_i) = R_f + β_i(E(R_m) - R_f)

When It Shines vs. Fails

✓ Exceptional in stable, highly correlated macro environments where Beta is a reliable, stationary predictor of upside.

✗ Breaks down structurally when idiosyncratic shocks occur (e.g. a specific sector collapsing while the index rallies) because it completely ignores individual asset momentum.

2. Gradient Boosted Tree Ensemble (XGBoost & Lasso)

The Core Mathematical Hypothesis

Financial markets are deeply non-linear. This engine stacks gradient-boosted decision trees (XGBoost) to capture non-linear market regimes and anomalies, layered with a strictly penalized Lasso (L1 regularization) model to filter out extreme statistical noise. A Ridge Meta-Learner aggregates their predictions to ensure out-of-sample robustness.

y_pred = α * XGB(x) + (1-α) * Lasso(x)
Loss = MSE + λ_1||w||_1

When It Shines vs. Fails

✓ Dominates in highly complex, multi-factor datasets where linear assumptions (like CAPM) fail to capture hidden Alpha.

✗ Machine Learning inherently risks overfitting; it can misallocate capital if the market shifts into an unprecedented, structurally unobserved macroeconomic regime (e.g. Black Swan events).

3. Black-Litterman (Market Equilibrium Prior)

The Core Mathematical Hypothesis

Pure historical optimization (Markowitz) leads to wildly concentrated portfolios that change radically day-to-day. Black-Litterman solves this using Bayesian shrinkage: it calculates the global market equilibrium (implied returns) as the mathematical "Prior", and updates it only if there is statistical evidence to deviate.

E(R) = [(τΣ)^-1 + P^T Ω^-1 P]^-1 [(τΣ)^-1 Π + P^T Ω^-1 Q]

When It Shines vs. Fails

✓ The undisputed gold standard for generating robust, highly diversified portfolios that do not whip-saw across rebalancing periods.

✗ Inherently conservative. By anchoring to the market equilibrium, it may under-allocate to early-stage, explosive breakout trends compared to a pure momentum model.

4. Multifactor Regression (Fama-French + Momentum)

The Core Mathematical Hypothesis

An expansion of CAPM. Eugene Fama and Kenneth French proved that returns are not just driven by market Beta, but structurally driven by Small-Cap outperformance (SMB) and Value outperformance (HML). We append the Momentum factor (MOM) to ride prevailing trends.

R_it - R_ft = α_i + β_1(R_mt - R_ft) + β_2 SMB_t + β_3 HML_t + β_4 MOM_t + ε_it

When It Shines vs. Fails

✓ Extremely effective over long-term multi-year horizons, capitalizing on fundamental economic realities (value and size premiums).

✗ Vulnerable to "Factor Winter" where growth stocks dominate value for a decade (e.g. 2010-2020 Tech boom).

5. Bayesian Shrinkage (James-Stein Estimator)

The Core Mathematical Hypothesis

Historically estimated returns are riddled with estimation error. James-Stein shrinkage mathematically "shrinks" extreme individual asset estimates toward the grand mean of the portfolio. This is a statistical guarantee against trusting outlier data.

μ_JS = w * μ_i + (1 - w) * μ_global
where w is derived from variance of estimates.

When It Shines vs. Fails

✓ Reduces the impact of "noise" in the data, preventing the optimizer from chasing an asset just because it had a lucky 30-day run.

✗ Can shrink truly exceptional, paradigm-shifting assets back down to the average, muting potential asymmetric upside.

6. End-to-End Differentiable Optimization (SPO+)

The Core Mathematical Hypothesis

Traditional finance separates the prediction of returns from the optimization of weights. Predict-then-Optimize (SPO+) fuses them using a custom differentiable loss function. The machine learning model is trained to minimize the regret of the portfolio's actual performance, not just mean squared error of predictions.

Loss_SPO+(f(x), c) = max_w { (2f(x) - c)^T w } - 2f(x)^T w*(c) + c^T w*(c)

When It Shines vs. Fails

✓ Maximizes true financial utility by directly penalizing bad allocations rather than just inaccurate forecasts.

✗ Computationally expensive. Requires calculating optimization gradients through a convex solver at every training step.

7. Regime-Adaptive Hidden Markov Model (HMM)

The Core Mathematical Hypothesis

Markets do not behave uniformly over time; they transition between hidden probabilistic states (Bull, Bear, Stagflation). The HMM assigns a probability that the market is in a specific latent state today, and dynamically adjusts the covariance and return expectations based strictly on the parameters of the detected regime.

P(Z_t | X_{1:t}) ∝ P(X_t | Z_t) * Σ P(Z_t | Z_{t-1}) P(Z_{t-1} | X_{1:t-1})

When It Shines vs. Fails

✓ Instantly reallocates defensive assets when shifting from a high-growth to a high-volatility regime.

✗ "Whip-saw" risk. If the market falsely signals a crash regime but instantly rebounds, the model may trap the portfolio in cash.

1. Dynamic GARCH(1,1) Volatility Modeling

Standard historical volatility treats risk as a flat, static number. This is mathematically flawed. Financial markets exhibit "volatility clustering"—large changes are followed by large changes. Our GARCH (Generalized Autoregressive Conditional Heteroskedasticity) overlay dynamically detects expanding volatility regimes and proactively shrinks risk exposures before tail events crush the portfolio.

σ²_t = ω + α * r²_{t-1} + β * σ²_{t-1}

This equation updates today's volatility (σ²_t) using yesterday's shock (α * r²_{t-1}) and yesterday's variance (β * σ²_{t-1}), creating a memory effect that standard deviation lacks.

2. L1-Norm Tax Optimization Penalty

High turnover strategies look great on paper but bleed capital to short-term capital gains taxes in the real world. When the Tax Optimization flag is toggled, we inject a strict L1-norm penalty vector directly into the convex solver. This forces the engine to mathematically weigh the theoretical alpha of a trade against the concrete tax drag of selling an existing position.

Min: w^T Σ w + λ * || w - w_{prev} ||_1

The absolute difference penalty (L1) forces the optimizer to prefer zero-turnover unless the marginal return strictly exceeds the tax boundary λ.

3. Allocation Engine: CVaR vs. Risk Parity

CVaR (Conditional Value at Risk): Unlike Variance (which penalizes upside growth), CVaR explicitly isolates and minimizes only the worst 5% of historical tail crashes.

Hierarchical Risk Parity (HRP): Uses unsupervised machine learning (agglomerative clustering) to group correlated assets into sub-clusters, assigning capital purely based on risk distribution rather than unreliable return forecasts.

Exact Risk Parity (ERC): A non-linear root-finding algorithm that guarantees every single asset contributes the exact same marginal risk to the total portfolio variance, ensuring true diversification.

Risk Contribution_i = w_i * (Σw)_i / (w^T Σ w) = 1/N

4. HMM Macro Regime Detection

Financial markets operate in distinct probabilistic states (e.g., Bull, Bear, High-Inflation, Low-Growth). The engine uses a Hidden Markov Model (HMM) to classify the current state of the global economy in real-time. It then strictly filters historical covariances, ensuring the optimizer only trains on data from the current macro regime.

Transition Matrix A_{ij} = P(Regime_{t}=j | Regime_{t-1}=i)

Phase 1: Understanding the Current Economy

The engine first connects to live market data to pull historical prices and interest rates. However, assuming the market behaves the same way all the time is dangerous. Our engine uses an algorithm to classify the current "Regime" of the global economy (e.g., Bull Market vs. High Volatility Selloff). By understanding the current environment, the engine only focuses on data that is relevant to today's reality, ignoring irrelevant past events.

Regime = argmax_k P(Z_t = k | Market Data_{1:t})

Phase 2: Forecasting Future Returns

Next, the engine needs to predict how much return each asset will generate. Instead of simple guessing, you choose a Quantitative Alpha Model. For example, if you choose our advanced ensemble, the engine calculates momentum, volatility, and market correlation for every asset. It then uses statistical learning to find patterns between these metrics and future returns, creating a precise mathematical forecast for your portfolio.

E[R_{t+1}] = Model(Features_t, Parameters)

Phase 3: Risk Management & Allocation

With the forecasts in hand, the engine enters the Convex Solver. This is where it calculates the exact percentage weighting of each asset to maximize your returns while capping your downside risk. It does this by measuring how assets move together (Covariance) and explicitly minimizing the damage of the worst 5% of historical market crashes. If you enable Tax Optimization, it will actively avoid proposing trades that trigger short-term capital gains taxes.

w* = argmax (w^T E[R] - λ/2 w^T Σ w)

Phase 4: Stress Testing the Portfolio

Before delivering the final allocation, the engine attempts to "break" the portfolio. It runs thousands of randomized future simulations (Monte Carlo) to see how the portfolio handles uncertainty. It also tests the portfolio against a simulated 2008 Financial Crisis and the 2020 COVID-19 shock. Only if the portfolio survives these rigorous thresholds does the engine finalize the output report.

Path_{k, t+1} = Path_{k, t} * exp( (μ - σ²/2)dt + σ√dt Z )

1. Not Financial Advice

This platform is an experimental mathematical research tool, not a registered financial advisor. The outputs, forecasts, and allocations provided by the engine are for informational and research purposes only. They do not constitute financial, investment, legal, or tax advice.

2. Historical Illusion

All optimizations and predictive models rely heavily on historical data backtesting. Past performance is definitively not indicative of future results. Market dynamics can shift rapidly into unobserved regimes, rendering historical patterns obsolete.

3. No Liability

You are solely responsible for your own investment decisions. The creators, operators, and affiliates of Wealth Engine accept absolutely no liability for any financial losses, capital destruction, or damages resulting directly or indirectly from the use of this platform.

4. Institutional Access Key

Access to this platform is strictly limited to authorized users holding a valid institutional access key. You agree not to share, distribute, or otherwise compromise your access key. We reserve the right to revoke access at any time without notice.