Skip to main content

Dynamic Resonance Rooting research framework for complex adaptive systems

Project description

Dynamic Resonance Rooting (DRR) Framework

CI License: MIT

๐Ÿ“ฆ PyPI publishing coming soon! Install from source for now (see below).

A research framework for studying complex adaptive systems through resonance detection, causal rooting analysis, and stability diagnostics.

Version: 4.2.0
License: MIT
Author: Christopher Woodyard


What is DRR?

The Dynamic Resonance Rooting (DRR) Framework is a computational pipeline that analyzes time-series and panel data to answer three core questions about complex adaptive systems:

  1. Resonance Detection โ€” What oscillatory modes exist in the data?
  2. Rooting Analysis โ€” What are the directional lead-lag relationships between variables?
  3. Stability Assessment โ€” How stable are the resonance structures over time?

DRR combines spectral analysis (FFT, Welch PSD), causal rooting (transfer entropy, lagged correlation), and state-space diagnostics to provide evidence for hypothesis generation about system behavior.


Key Features

Core Capabilities

Capability Description
Resonance Detection Identifies oscillatory patterns via FFT and Welch power spectral density
Causal Rooting Maps directional lead-lag relationships using transfer entropy or lagged correlation
Resonance Depth Composite scoring combining spectral concentration, temporal persistence, phase coherence, and amplitude stability
State-Space Diagnostics Transition, measurement, and stability analysis
Phase-Transition Detection Evidence for drift or abrupt changes in system behavior

Supported Data Sources

Source Description
Physics Systems Coupled oscillators, Lorenz, Rรถssler, Heston, FitzHugh-Nagumo benchmarks
Policy Data Tabular time-series from FRED, policy observables
Supervisory Panels Banking data (FFIEC 002, FR Y-9C), institutional metrics
Custom Time-Series Any multivariate numerical array

Export Formats

  • JSON โ€” Structured analysis results
  • CSV โ€” Tableau-ready artifacts
  • Markdown โ€” Human-readable reports
  • Plots โ€” Visualization of resonance, rooting graphs, state-space

Installation

From Source (Recommended)

git clone https://github.com/topherchris420/dynamic-resonance-rooting.git
cd dynamic-resonance-rooting
python -m pip install -e .

From PyPI (Coming Soon)

pip install drr-framework

For development tools:

python -m pip install -e ".[dev]"
pre-commit install

Quick Start

from drr_framework import DynamicResonanceRooting, generate_coupled_oscillator

sampling_rate = 200.0
_, data = generate_coupled_oscillator(
    sampling_rate=sampling_rate,
    target_frequency_hz=12.5,
    random_state=42,
)

drr = DynamicResonanceRooting(embedding_dim=3, tau=2, sampling_rate=sampling_rate)
results = drr.analyze_system(data, multivariate=True, window_size=256)

print(results["resonance_depths"])
print(results["rooting_analysis"]["significant_edges"])

Use Cases

Physics Lab

File: examples/physics_lab.py

Analyze coupled oscillator systems and benchmark generators:

  • Lorenz attractor
  • Rรถssler system
  • Heston volatility model
  • FitzHugh-Nagumo neurons

Policy Lab

File: examples/policy_lab.py

Analyze tabular policy observables:

  • Time-series from FRED
  • Economic indicators
  • Policy shock response

Supervisory Policy Lab

File: examples/supervisory_policy_lab.py

Federal Reserve banking supervision:

  • FFIEC 002 / FR Y-9C data integration
  • Institutional risk metrics
  • Validation-readiness packets
  • Tableau exports for executive dashboards

Quick Start

File: examples/quickstart_resonance_export.py

Compact load-detect-export demonstration


Macro Stability & Banking Skin Cockpit

The framework includes a specialized supervisory application for Federal Reserve oversight:

Purpose

Real-time early-warning system for detecting non-linear liquidity panics ("Dash for Cash" loop) across Large Foreign Banking Organizations (LFBOs).

Key Capabilities

  1. Resonance Detection โ€” Identifies hidden cyclical funding stress via Welch/FFT
  2. Rooting Analysis โ€” Maps lead-lag structures between Treasury shocks and bank liquidity drains
  3. Composite Scoring โ€” Resonance Depth combining spectral concentration, temporal persistence, phase coherence, amplitude stability
  4. Stress Simulation โ€” 200 bps parallel rate shift (Full AOCI vs. Opt-Out)

Files

  • layer1_regulatory_backend.py โ€” Python/SQL regulatory backend
  • layer2_tableau_blueprint.twb โ€” Tableau dashboard blueprint
  • tableau_calculated_fields.py โ€” Tableau calculated fields
  • tableau_output/ โ€” Generated CSV exports

Compliance

Implements SR 11-7 Model Risk Management guidelines from the Federal Reserve.


Project Structure

dynamic-resonance-rooting/
โ”œโ”€โ”€ src/drr_framework/          # Core package
โ”‚   โ”œโ”€โ”€ analysis.py             # DynamicResonanceRooting class
โ”‚   โ”œโ”€โ”€ _spectral.py            # Spectral analysis
โ”‚   โ”œโ”€โ”€ benchmarks.py           # Benchmark generators
โ”‚   โ”œโ”€โ”€ datasets.py              # Data adapters
โ”‚   โ”œโ”€โ”€ reporting.py            # Export utilities
โ”‚   โ”œโ”€โ”€ state_space.py          # State-space diagnostics
โ”‚   โ”œโ”€โ”€ supervision.py           # Supervisory components
โ”‚   โ””โ”€โ”€ validation_readiness.py # Validation packets
โ”œโ”€โ”€ examples/                    # Usage examples
โ”‚   โ”œโ”€โ”€ physics_lab.py
โ”‚   โ”œโ”€โ”€ policy_lab.py
โ”‚   โ”œโ”€โ”€ supervisory_policy_lab.py
โ”‚   โ””โ”€โ”€ quickstart_resonance_export.py
โ”œโ”€โ”€ tests/                       # Test suite
โ”œโ”€โ”€ docs/                        # Documentation
โ”‚   โ”œโ”€โ”€ architecture.md
โ”‚   โ”œโ”€โ”€ user-guide.md
โ”‚   โ”œโ”€โ”€ developer-guide.md
โ”‚   โ”œโ”€โ”€ api.md
โ”‚   โ””โ”€โ”€ faq.md
โ”œโ”€โ”€ data/                        # Datasets
โ”œโ”€โ”€ results/                     # Output artifacts
โ””โ”€โ”€ pyproject.toml              # Package config

Output Interpretation

Key Description
resonances Dominant frequencies and spectral evidence
resonance_depths Scalar persistence/stability scores by dimension
resonance_depth_details Component-level scores and confidence intervals
rooting_analysis Directed lagged relationships and edge metadata
state_space_analysis Transition, measurement, likelihood, stability, impulse-response

Important: DRR outputs are research diagnostics. Domain conclusions require separate validation, calibration, and review.


Documentation


Citation

If you use DRR in your research, please cite:

@software{drr-framework,
  author = {Christopher Woodyard},
  title = {Dynamic Resonance Rooting (DRR) Framework},
  url = {https://github.com/topherchris420/dynamic-resonance-rooting},
  version = {4.2.0},
  year = {2026}
}

License

MIT License โ€” see LICENSE file for details.


References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drr_framework-4.2.0.tar.gz (57.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drr_framework-4.2.0-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file drr_framework-4.2.0.tar.gz.

File metadata

  • Download URL: drr_framework-4.2.0.tar.gz
  • Upload date:
  • Size: 57.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for drr_framework-4.2.0.tar.gz
Algorithm Hash digest
SHA256 d5c7993753192bd49f2ae3e36313ede1cde276b1df76b91e49096878b1fd5c16
MD5 5484ca829f56c7deb80b5b7a624077be
BLAKE2b-256 9f88ba1ad387e79266a373fc664892e3ce00fe5b361efe694f39c33df53da2d9

See more details on using hashes here.

File details

Details for the file drr_framework-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: drr_framework-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for drr_framework-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f08f8c64086e6ee66ca224d2ead6a7dc74ef000d5c089cd2d3dda11b49fe232f
MD5 edf70be679b5cbb43e85f8a2f96fcac6
BLAKE2b-256 a962cd990321ff9a655f8b380bbaaf29dbe4c24239cef075b78a825595fa682f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page