Skip to content

onc

Portfolio Construction and Risk

Cluster count selection is a key source of model risk in hierarchical portfolio methods.

J(k)=intra(k)inter(k)J(k)=\text{intra}(k)-\text{inter}(k)

k=argminkJ(k)k^*=\arg\min_k J(k)

use openquant::onc::get_onc_clusters;
let out = get_onc_clusters(&corr, 20)?;
println!("{}", out.clusters.len());
  • get_onc_clusters
  • check_improve_clusters
  • OncResult
  • Run with repeated seeds/restarts for robust k selection.
  • Use correlation cleaning before clustering unstable universes.