quantlab.portfolio.predefined.expected_return#
The shipped expected return models of the mean-variance rule (ADR 0046).
An ExpectedReturnModel (quantlab.portfolio.base) turns the prediction
of a mean-variance rule’s expected_return_label into the expected return
mu its optimiser maximises, on [bars, symbols] arrays, so one
implementation serves the per-bar rule (one row) and the approximate
backtest. Five are shipped:
GrinoldExpectedReturn:mu = ic * sigma * z,zthe prediction’s cross-sectional z-score over the bar’s candidates andsigmaeach candidate’s volatility on the label’s span (Grinold’s rule; a riskier name gets a largermu);ZScoreExpectedReturn:mu = ic * median(sigma) * z, the same scale without the tilt to risky names: within a barmuranks as the prediction;UnscaledZScoreExpectedReturn:mu = z, the z-score itself, unscaled: the same units on every bar, soturnover_penaltyis in z units;RawExpectedReturn:muis the prediction, which must be in return units (its label spec’s scale"raw");PredictionExpectedReturn:muis the prediction as it is, in its own units (a standardized ensemble score, say);risk_aversionandturnover_penaltyare then in those units too.
Classes
|
|
|
|
|
|
|
|
|