quantdata.dysanos.grid.gendysanos.run_implied_cvar#

Find empirical CVaR levels which eliminate profitable portfolio directions.

quantdata.dysanos.grid.gendysanos.run_implied_cvar.weighted_lower_tail_mean(value, path_weight, density_caps)[source]#

Return exact empirical lower-tail CVaR for every portfolio head.

density_caps contains 1+lambda. Its reciprocal is the retained lower-tail probability. The final observation at the quantile receives only the probability mass needed to make the retained mass exact.

quantdata.dysanos.grid.gendysanos.run_implied_cvar.run(args)[source]#