Package: sochcontagion 0.1.0

sochcontagion: Scale-Ordered Contagion: Spectral Theory and Tests of Heterogeneous Information Adaptation

A spectral theory of financial contagion under heterogeneous information adaptation, with the estimators and falsifiable tests it implies. Modelling both the source and the receiving market as exponential information filters yields a bi-exponential transmission response whose power spectrum is the product of two Lorentzians; the slower market supplies the binding spectral corner. Projected onto a maximal-overlap discrete wavelet basis (Percival and Walden, 2000, ISBN:9780521685085) this gives a closed-form transfer-entropy-by-scale profile and three predictions (Scale-Ordered Contagion): scale ordering by adaptation speed, shape symmetry across direction, and magnitude asymmetry. The package provides the closed-form spectrum and scale power, a profile-matching estimator that recovers adaptation rates and endogenises the fast/slow classification, the wavelet-quantile directional-gain measure built from the transfer-entropy estimator of Schreiber (2000) <doi:10.1103/PhysRevLett.85.461> with quantile conditioning (Koenker and Bassett, 1978) <doi:10.2307/1913643> and the quantile goodness-of-fit of Koenker and Machado (1999) <doi:10.1080/01621459.1999.10473882>, and the three tests with phase-randomised surrogate (Theiler, Eubank, Longtin, Galdrikian and Farmer, 1992) <doi:10.1016/0167-2789(92)90102-S> and stationary block-bootstrap (Politis and Romano, 1994) <doi:10.1080/01621459.1994.10476870> nulls. Bundled G20 equity returns and replication scripts reproduce the headline results; the package is general-purpose and accommodates user-supplied returns.

Authors:Avishek Bhandari [aut, cre], Ipsita Parida [aut]

sochcontagion_0.1.0.tar.gz
sochcontagion_0.1.0.zip(r-4.7)sochcontagion_0.1.0.zip(r-4.6)sochcontagion_0.1.0.zip(r-4.5)
sochcontagion_0.1.0.tgz(r-4.6-any)sochcontagion_0.1.0.tgz(r-4.5-any)
sochcontagion_0.1.0.tar.gz(r-4.7-any)sochcontagion_0.1.0.tar.gz(r-4.6-any)
sochcontagion_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
sochcontagion/json (API)
NEWS

# Install 'sochcontagion' in R:
install.packages('sochcontagion', repos = c('https://avishekb9.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/avishekb9/sochcontagion/issues

Datasets:

On CRAN:

Conda:

3.00 score 21 exports 9 dependencies

Last updated from:17bda21768. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK131
source / vignettesOK171
linux-release-x86_64OK115
macos-release-arm64OK172
macos-oldrel-arm64OK151
windows-develOK79
windows-releaseOK77
windows-oldrelOK101
wasm-releaseOK105

Exports:modwt_detailphase_surrogateplot_market_ratesplot_scale_profilesplot_soch_symmetrysoch_bandssoch_classifysoch_fit_marketsoch_fit_pairsoch_peak_frequencysoch_peak_scalesoch_pipelinesoch_profilessoch_scale_powersoch_spectrumsoch_test_magnitudesoch_test_orderingsoch_test_symmetrysym_klwq_gainwqte_profile

Dependencies:latticeMASSMatrixMatrixModelsmultitaperquantregSparseMsurvivalwaveslim

Reproducing the G20 results

Rendered fromreplication.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2026-06-02
Started: 2026-06-02

The Scale-Ordered Contagion methodology

Rendered frommethodology.Rmdusingknitr::rmarkdownon Jun 03 2026.

Last update: 2026-06-02
Started: 2026-06-02