Destiny
Sign In
ACD-29 · Multivariate Time-Series Econometrics, Cholesky Eigensolvers & Causal Spread Math

Johansen VECM Cointegration Eigensystems, Augmented Dickey-Fuller Unit Roots & Spread Construction

High-correlation price series frequently diverge without bound when both follow independent random walks. Testing whether a linear portfolio combination is genuinely I(0) stationary requires reduced-rank Vector Error Correction (VECM) eigensystems and non-standard Dickey-Fuller asymptotic quantiles.

1. Vector Error Correction Representation & Cholesky Whitening

For a k-dimensional log-price vector Y_t, the p-lag Vector Error Correction Model decomposes first differences into error-correction loadings alpha, cointegrating vectors beta (Pi = alpha * beta^T), and transient lag matrices Gamma_i:

dY_t = Pi * Y_(t-1) + sum_(i=1..p-1) Gamma_i * dY_(t-i) + mu + eps_t

// Concentrate out short-run lags dY_(t-i) to obtain residuals R_0t (from dY_t) and R_1t (from Y_(t-1)):
S_ij = (1 / T) * sum_(t=1..T) R_it * R_jt^T,    i, j in {0, 1}

// Cholesky factor L * L^T = S_11 reduces |lambda * S_11 - S_10 * S_00^(-1) * S_01| = 0 to symmetric eigenproblem:
M = L^(-1) * S_10 * S_00^(-1) * S_01 * L^(-T)   ==>   eigenvalues 1 > lambda_1 >= ... >= lambda_k >= 0
J_trace(r) = -T * sum_(i=r+1..k) ln(1 - lambda_i),    J_max(r) = -T * ln(1 - lambda_(r+1))

2. Augmented Dickey-Fuller (ADF) Serial-Correlation Whitening

Given candidate spread Z_t = beta_1^T * Y_t, microstructure bid-ask bounce introduces negative MA(1) autocorrelation in dZ_t that inflates raw Dickey-Fuller rejection rates unless BIC/Schwert lag length L = floor(12 * (T / 100)^(1/4)) whitens innovations:

dZ_t = c + gamma * Z_(t-1) + sum_(j=1..L) psi_j * dZ_(t-j) + u_t
t_ADF = gamma_hat / SE(gamma_hat)   // Compare vs MacKinnon (2010) 1% (-3.43) and 5% (-2.86) critical bounds

3. Strictly Causal Rolling Eigenvectors & Structural Break Guards

Every spread evaluation in Destiny enforces strict bitemporal partitioning: eigenvectors beta_(t-1), spread mean mu_(t-1), and innovation scale sigma_(t-1) are fitted exclusively over [t - W, t - 1], flagging structural breakdown whenever rolling trace statistics fall below the 10% critical threshold.

4. Live 1-Second Cross-Asset Co-Movement Streams

Compare real-time 1-second BTC-USD and ETH-USD microstructure trajectories below, or launch synchronized multi-chart layouts inside /trade.

Hyperliquid L1 FeedBTC-USD · 1s · EMA-9 + Volume · Informational Only
LAST PRICE
--
WINDOW CHANGE
+0.00%
WINDOW VOLUME
Live
REALIZED σ (ANN)
--
Loading BTC-USD 1s bars from /v1/markets/bars...
Informational market analytics only · Not investment advice.
Open Full 1s Terminal →
Hyperliquid L1 FeedETH-USD · 1s · EMA-9 + Volume · Informational Only
LAST PRICE
--
WINDOW CHANGE
+0.00%
WINDOW VOLUME
Live
REALIZED σ (ANN)
--
Loading ETH-USD 1s bars from /v1/markets/bars...
Informational market analytics only · Not investment advice.
Open Full 1s Terminal →
Destiny Trader: 1s Supercharts · 914 FeedsZero Trackers · Cross-Origin SVG
Embed Live 1s Market Telemetry Badge

Link quantitative notebooks and market research repositories directly to live 1-second Supercharts.

FAQ · DIRECT ANSWERS

Johansen Cointegration & ADF Unit-Root Math — FAQ

Direct answers on order-invariant VECM generalized eigenproblems, MacKinnon critical surfaces, causal rolling windows, and analytical scope.

04 Questions
Why does Johansen VECM cointegration avoid the asymmetry of two-step Engle-Granger OLS?
In finite samples, regressing asset Y on X gives a different cointegrating slope and residual variance than regressing X on Y because ordinary least squares minimizes vertical errors along a single coordinate axis. Johansen (1988, 1991) solves the symmetric canonical-correlation generalized eigenvalue problem |lambda * S_11 - S_10 * S_00^(-1) * S_01| = 0 across an entire k-asset vector simultaneously, remaining invariant to variable ordering.
Why must Dickey-Fuller t-statistics be compared against MacKinnon critical surfaces instead of Student-t tables?
Under the unit-root null hypothesis gamma = 0 in dZ_t = alpha + gamma * Z_(t-1) + eps_t, Z_(t-1) is I(1) non-stationary, so the asymptotic distribution of the t-ratio converges to a functional of Wiener processes (the Dickey-Fuller distribution) skewed left of zero—requiring MacKinnon (1996, 2010) finite-sample response-surface quantiles such as -2.86 at 5% with intercept.
How do lookahead-free rolling or Kalman hedge ratios prevent backtest leakage?
Estimating a single full-sample eigenvector beta_full across [0, T] leaks future regime shifts into early z-scores. Strict causal evaluation re-solves the Cholesky-whitened eigensystem on trailing windows [t - W, t - 1] (or updates beta_t via a state-space Kalman recursion) before scoring bar t.
Does cointegration or spread analytics in Destiny constitute investment or trading advice?
No. Under Lowe v. SEC (472 U.S. 181), CSA NI 31-103, and CFTC Rule 4.41, Destiny provides impersonal econometric, linear-algebra, and charting software strictly for informational and educational study.