Contagion · Information Flow (diagnostic) · async / long-running
ksg_robustness
KSG Transfer Entropy — k/lag Robustness (async diagnostic). Sensitivity sweep of the KSG transfer-entropy result over a grid of the neighbour count k and history length lag. Reuses the SAME validated KSG/Frenzel-Pompe point estimator as ksg_te (no surrogates → fast per grid point) and reports how stable the directed-TE magnitudes and rankings are: Spearman rank correlation of the full directed-TE vector vs the (k=4,lag=1) baseline, top-10 directed-edge Jaccard overlap, and the rank of the baseline's #1 edge at every grid point. Checks TE magnitude/ranking stability across (k,lag), NOT significance-count stability (which would need surrogates at each grid point). Heavy on the full 18-market grid (k×lag × all directed pairs) — runs ONLY as a background job via /api/jobs/submit; discoverable here but rejected by the sync /api/compute/run endpoint. BADGE MODE (Phase 31, opt-in via param target=[from,to]): adds the WINDOW and ALPHA axes with IAAFT surrogates at each grid point to grade ONE directed edge's significance-robustness, returning pass_rate + a robust|conditional|fragile|untested badge (the significance-count stability this base sweep omits); written to robustness.badges by the orchestrator.
Identity
version 1.0.0 · capability contagion · min_obs 200 · runner r (ksg_robustness.R)
Primitives
P3P4
Composes with
not yet a catalog field — operator-composition metadata lands with Pathway F; nothing is invented here.
Parameters
| name | type | req | values / range |
|---|
| series | series (n=2–18) | optional | |
| k_grid | int_array | optional | |
| lag_grid | int_array | optional | |
| max_pairs | int | optional | |
Returns
method,dataset,k_grid,lag_grid,n_series,n_obs,n_pairs,baseline,grid,stability,runtime_s,interpretation
Paper
none — honest: a substrate method; no single companion paper claims it.
Changelog
[object Object]
Run it
curl -s -X POST https://shssm-compute-b7ui3oxaqq-el.a.run.app/api/compute/run \
-H "Content-Type: application/json" \
-d '{"method":"ksg_robustness","params":{"series":["India","USA"]}}'