codependence
Subject
Section titled “Subject”Market Microstructure, Dependence and Regime Detection
Why This Module Exists
Section titled “Why This Module Exists”Financial relationships are often non-linear and regime-dependent; correlation alone is insufficient.
Mathematical Foundations
Section titled “Mathematical Foundations”Mutual Information
Section titled “Mutual Information”
Variation of Information
Section titled “Variation of Information”
Usage Examples
Section titled “Usage Examples”Distance correlation between series
Section titled “Distance correlation between series”use openquant::codependence::distance_correlation;
let x = vec![1.0, 2.0, 3.0, 4.0];let y = vec![1.1, 1.9, 3.2, 3.8];let dcor = distance_correlation(&x, &y)?;API Reference
Section titled “API Reference”Rust API
Section titled “Rust API”distance_correlationget_mutual_infovariation_of_information_scoreangular_distance
Implementation Notes
Section titled “Implementation Notes”- Use with clustering and feature pruning workflows.
- Bin selection materially impacts MI estimates.