Unit M4: Longitudinal Moments (ts_*), Lead-Lag r(τ), Order Statistics (P50, P90) & Confluence Dose D ∈ {0..4}

Cartridge M4 • Non-Sequentially Revertible via hs-math-docs --disable timeseries-moments-and-confluence-dose • v2.2.0

Prerequisite Track for Novices • Required Expertise: Level 3-4: Nonparametric Order Statistics & Time-Series Correlation (15-20 hrs study)

If any mathematical notation on this page is unfamiliar, occupy your study time with these free foundational resources first:

Core Mathematical Prerequisites:
  • Basis-point return arithmetic Δbps_{i,t} = round(((P_t - P_{t-1}) / P_{t-1}) × 10^4)
  • Nonparametric order statistics (Median P50, 90th percentile P90) vs. outlier-sensitive means
  • Pearson linear correlation r(τ) across lags τ ∈ [-5..+5] and indicator sums ∑ I(A_s)
Curated Free Public Study Resources:
λ Guile Scheme Foil (M4): Confluence Dose D ∈ {0..4} & Thomas' Calculus Central Derivative via Z
1. Mathematical Identity:f'(x) = lim_{h→0} (f(x+h) - f(x-h)) / (2h), D_{i,t} = ∑ I(A_s)
2. Production Python:
confluence_dose = sum(1 for x in species_hits if x)
3. Guile Scheme (Z-Combinator):((derivative (lambda (x) (* x x x)) 1e-5) 2.0)
=> [Toggle Guile Lens ON to evaluate]
Guided Micro-Challenge: Compute the derivative of x^3 at x=2.0 (=> 12.0) or the 2nd derivative via ((nth-derivative (lambda (x) (* x x x)) 2 1e-3) 2.0).

1. Four-Species Confluence Dose Indicator Sum D_{i,t} ∈ {0, 1, 2, 3, 4}

For ticker i on trading session t, D_{i,t} = I(Scope1_{i,t}) + I(Scope2Ring_{i,t}) + I(SharedDossier_{i,t}) + I(WireEntity_{i,t}). Whenever a session is closed or private (data_available = False), D_{i,t} = null rather than 0, preventing missing-data bias.

2. Nonparametric Order Statistics (P50, P90) & the Empirical Two-Regime Split

Because cross-asset returns |Δbps| are heavy-tailed, Median P50 and P90 are the robust estimators: across the 440 real November 2026 bars, Dose 2 (Market Ring × Same-Day Dossier without headline shock, n=34) compresses median displacement by -58% (P50 = 101.0 bps vs. 240.5 bps at Dose 0; P90 = 292 bps vs. 665 bps), whereas Dose 3+ (n=4) triggers a 1.98x volume surge and 377.5 bps next-day continuation.

← Prev: M3: Graph & ETI Math Next: M5: Macro & Bayesian Math →