Skip to content
MVIE Pro
Methodology

A white box, on purpose

Every number the engine reports can be traced back to a published method. This page covers the mathematics inside, why the model refuses to be a black box, and how it differs from VaR.

Inside the Brain: how MVIE works

We don't hide the math. Every layer is documented and reproducible.

1. Rolling-Window Instability Engine

The MVIE composite blends three structural metrics — Absorption Ratio (eigenvalue concentration of the correlation matrix), Instability Score (mean change in pairwise correlations) and Priority Drift (MST centrality rank drift). Each is measured on the latest 60 trading sessions, standardised against its own previous 252 sessions and mapped to 0–100:

Composite formula · pseudocode

# Pseudocode — MVIE composite (one rolling 60-session window)# C_t = Spearman correlation of the latest 60 sessions, C_b = the 60 beforeAR = sum(top_k_eigenvalues(C_t)) / trace(C_t)     # k = max(1, ceil(0.20 * n))IS = mean(abs(C_t - C_b) over i != j)PD = footrule(rank(eigencentrality(MST(C_t))),              rank(eigencentrality(MST(C_b))))    # normalised to [0, 1]# Each component against its own previous 252 sessions (min 63), never itselfz = (x_t - mean(x[t-252 .. t-1])) / std(x[t-252 .. t-1])s = clip(50 + z * 50/3, 0, 100)MVIE = (0.40*s_AR + 0.35*s_IS + 0.25*s_PD) / (sum of available weights)

Regime thresholds:

  • 0–60 GREEN — the score near or below its usual level for the past year
  • 60–80 AMBER — the score above its usual level for the past year
  • 80–100 RED — the score unusually high against its own past year
  • A state comes down only below 58 (AMBER to GREEN) and 78 (RED to AMBER), so the state also depends on the sessions before it

2. Network Topology Analysis

Spearman correlation builds a Minimum Spanning Tree (d_ij = 1 − |ρ_ij|, so strong negative correlation also counts as close). Eigenvector, betweenness and degree centrality on the MST quantify systemic hubs; Priority Drift tracks how the eigenvector-centrality ranking moves from the previous 60 sessions to the latest 60:

  • Eigenvector centrality — Hub assets whose stress propagates through the MST (e.g., SPY)
  • Betweenness centrality — Bridge nodes linking otherwise disconnected clusters (contagion paths)
  • Degree centrality — Direct connectivity count on the MST

3. Indicator Readings and Scenario Ranges

Each asset gets two readings from three technical indicators — how stretched the price is (RSI and Bollinger) and which side of its signal line MACD is on — and a range calibrated on past 21-session moves. The MVIE state never changes a reading:

Indicator readings · engine rules

Stretch points (per asset):  RSI:              3  Bollinger Bands:  2  Maximum:          5Stretch:   OVERSOLD or OVERBOUGHT when that side has at least 3 points           and more than the other, otherwise NORMAL RANGEMACD:      MACD UP above its signal line, MACD DOWN below (no points)Points:    a count, not a probabilityRange:     68% / 90% band over the next 21 sessions, multipliers measured           per asset class on past 21-session moves

4. Veto Protocol

The Veto Protocol is a rule that the app's Backtest tab simulates on your own holdings: while the MVIE score is at or above a threshold you choose (80 by default, where the state turns RED), a share of the portfolio you choose is held in cash, and the rule is left only once the score falls 2 points below the threshold. The tab shows what the rule would have done over the sessions on screen. It changes no indicator reading.

5. LLM Analyst Layer

A large language model layer turns the quantitative output into a structured written summary. The prompt is compliance-locked — no investment advice, only analytical scenarios. Output is markdown-formatted with explicit risk framework sections. The underlying model can be swapped as newer APIs become available.

Transparent Quant · No Black Boxes

Every number traces back to a published formula. Not a black box.

MVIE Pro reads markets with transparent mathematics — eigenvalue decomposition, changes in pairwise correlation, and Minimum Spanning Tree centrality. The LLM layer turns the quantitative output into a plain-language written summary. You can inspect every Z-score, every weight, every threshold.

MVIEComposite MVIE Score

MVIE = 0.40·s_AR + 0.35·s_IS + 0.25·s_PD

Weighted mean of three 0–100 component scores. Each component is first standardised against its own previous 252 sessions (z), then mapped to 0–100: s = clip(50 + 50·z/3, 0, 100).

ARAbsorption Ratio

AR = Σλ(top 20%) / Σλ(all)

Share of total variance in the top 20% of eigenvalues (at least one) of the Spearman correlation matrix. Correlation, not covariance, so one volatile asset cannot dominate it. High AR → the assets move more together.

ISInstability Score

IS = mean_{i≠j} |C_t[i,j] − C_b[i,j]|

Mean absolute change in the pairwise Spearman correlations between the latest 60 sessions and the 60 before them. Averaging over pairs keeps it comparable across portfolio sizes.

PDPriority Drift

PD = Σ |rank_t(i) − rank_b(i)| / ⌊n²/2⌋

Spearman footrule between the eigenvector-centrality rankings on the Minimum Spanning Tree of the latest 60 sessions and of the 60 before them, scaled to 0–1. Measures leadership rotation in the asset network.

λEigenvalue Decomposition→ZZ-Score Normalization→ΣWeighted Composite

⚠ All outputs are educational scenario descriptions, not investment advice. The LLM layer is compliance-locked — no price targets, no recommendations.

Traditional approach vs. MVIE Pro

Traditional Risk ToolsMVIE Pro
One correlation snapshotRolling 60-session window, compared with the 60 sessions before it
Static risk metricsDynamic MVIE score (0-100) with regime classification
Ignores asset network effectsMinimum Spanning Tree topology + centrality metrics
Buy/sell labels with no range or contextTwo readings per asset (stretch, points of 5; MACD's side) with a 68% / 90% range calibrated on past 21-session moves
No test of a defensive ruleVeto backtest — what holding cash while the score is high would have done, on your own holdings
Black-box ML modelsTransparent mathematics — every Z-score is auditable

Score revisions · October and November 2026

  • US market holidays are no longer scored as trading sessions. When a series still printed on a holiday (FRED's VIX does on most of them), the engine kept the day and gave every US-listed asset a 0% return. Those days are now dropped; a non-US holding's move on such a day counts in its next session.
  • The score is dated to the last session on which every core input is available. FRED publishes the VIX a session late, so the newest session is often held back; the app shows which session is scored and what the next one is waiting for.
  • On the sample portfolios, dropping the holiday days moved past scores by up to about 16 points on single sessions (median about 2) and changed the band on 6 to 30 of 252 sessions. The validation study (November 2026) re-measured the 60/80 bands on licensed data with the corrected calendar; they stay, with the dead band below.
  • Since November 2026 a state comes down only below 58 (AMBER to GREEN) and 78 (RED to AMBER); it still goes up at 60 and 80, and the score itself is unchanged. The validation study chose this dead band of 2 points: on six sample portfolios (2023-10 to 2026-09) it cut the state changes from 299 to 209 and labelled 2.4% of sessions differently.
  • The same input still gives the same score and the same state. The state now also depends on the sessions before it: on those six portfolios a history started later agreed with the full one within 3 sessions. That is a measurement, not a guarantee; the weekly engine self-check watches it.