onc
Subject
Section titled “Subject”Portfolio Construction and Risk
Why This Module Exists
Section titled “Why This Module Exists”Cluster count selection is a key source of model risk in hierarchical portfolio methods.
Mathematical Foundations
Section titled “Mathematical Foundations”Cluster Score
Section titled “Cluster Score”
Selection
Section titled “Selection”
Usage Examples
Section titled “Usage Examples”Infer cluster structure
Section titled “Infer cluster structure”use openquant::onc::get_onc_clusters;
let out = get_onc_clusters(&corr, 20)?;println!("{}", out.clusters.len());API Reference
Section titled “API Reference”Rust API
Section titled “Rust API”get_onc_clusterscheck_improve_clustersOncResult
Implementation Notes
Section titled “Implementation Notes”- Run with repeated seeds/restarts for robust k selection.
- Use correlation cleaning before clustering unstable universes.