structural_breaks
Subject
Section titled “Subject”Market Microstructure, Dependence and Regime Detection
Why This Module Exists
Section titled “Why This Module Exists”Regime instability can invalidate model assumptions; break detection is a core risk control.
Mathematical Foundations
Section titled “Mathematical Foundations”ADF Regression
Section titled “ADF Regression”
Usage Examples
Section titled “Usage Examples”Compute SADF statistic
Section titled “Compute SADF statistic”use openquant::structural_breaks::{get_sadf, SadfLags};
let y = vec![100.0, 100.2, 100.4, 100.1, 99.8, 100.0];let sadf = get_sadf(&y, 3, SadfLags::Fixed(1))?;API Reference
Section titled “API Reference”Rust API
Section titled “Rust API”get_chow_type_statget_chu_stinchcombe_white_statisticsget_sadfSadfLags
Implementation Notes
Section titled “Implementation Notes”- SADF can be computationally expensive on long windows.
- Use dedicated slow/nightly test paths for heavy scenarios.