Tracking risk measure: private API
PortfolioOptimisers.supports_precomputed_returns — Method
supports_precomputed_returns(
_::TrackingRiskMeasure{<:Any, <:WeightsTracking}
) -> Bool
Return false: a WeightsTracking measure compares against a benchmark weight vector and always requires explicit portfolio weights.
Related
PortfolioOptimisers.supports_precomputed_returns — Method
supports_precomputed_returns(
_::TrackingRiskMeasure{<:Any, <:ReturnsTracking}
) -> Bool
Return true: a ReturnsTracking measure compares against a benchmark return series and its risk is a function of the net-return series alone.
Related
PortfolioOptimisers.supports_precomputed_returns — Method
supports_precomputed_returns(
_::RiskTrackingRiskMeasure
) -> Bool
Return false: a RiskTrackingRiskMeasure tracks a benchmark held as a weight vector and always needs explicit portfolio weights.
Its tr slot is a WeightsTracking, and both functors read the benchmark weights from it: the independent mode measures the inner risk of w - r.tr.w, and the dependent mode takes the difference of the inner risk at w and at r.tr.w. A bare net-return series carries no weights, so neither difference exists for it.
Related
supports_precomputed_returnsRiskTrackingRiskMeasureWeightsTrackingexpected_risk_from_returns: the contract entry this predicate gates.