BaseFrontier
MV: Standard Deviation.KT: Square Root of Kurtosis.MAD: Mean Absolute Deviation.GMD: Gini Mean Difference.MSV: Semi Standard Deviation.SKT: Square Root of Semi Kurtosis.FLPM: First Lower Partial Moment (Omega Ratio).SLPM: Second Lower Partial Moment (Sortino Ratio).CVaR: Conditional Value at Risk.TG: Tail Gini.EVaR: Entropic Value at Risk.RLVaR: Relativistic Value at Risk.WR: Worst Realization (Minimax).RG: Range of returns.CVRG: CVaR range of returns.TGRG: Tail Gini range of returns.EVRG: EVaR range of returns.RVRG: RLVaR range of returns. I recommend only use this function withMOSEKsolver.MDD: Maximum Drawdown of uncompounded cumulative returns (Calmar Ratio).ADD: Average Drawdown of uncompounded cumulative returns.CDaR: Conditional Drawdown at Risk of uncompounded cumulative returns.EDaR: Entropic Drawdown at Risk of uncompounded cumulative returns.RLDaR: Relativistic Drawdown at Risk of uncompounded cumulative returns.UCI: Ulcer Index of uncompounded cumulative returns.
Ancestors
abc.ABCriskfolio.src.Portfolio.Portfolio
Descendants
systematica.portfolio.frontier.models.FrontierAssetStatssystematica.portfolio.frontier.models.FrontierBLFactorsStatssystematica.portfolio.frontier.models.FrontierBLStatssystematica.portfolio.frontier.models.FrontierFactorsStatssystematica.portfolio.frontier.models.FrontierWCStats
Class variables
-
alpha: float: Significance level ofVaR,CVaR,EVaR,RLVaR,DaR,CDaR,EDaR,RLDaRandTail Giniof losses. The default is0.05. -
a_sim: int: Number ofCVaRsused to approximateTail Giniof losses. The default is100. -
beta: float: Significance level ofCVaRandTail Giniof gains. IfNoneit duplicates alpha value. The default isNone. -
b_sim: int: Number of CVaRs used to approximate Tail Gini of gains. IfNoneit duplicatesa_simvalue. The default isNone. -
model: str: Methodology used to estimate input parameters. The default isClassic. -
rm: str: The risk measure used to optimize the portfolio. The default isMV. Possible values are displayed above. -
kelly: str: Method used to calculate mean return. Possible values are: None for arithmetic mean return, “approx” for approximate mean logarithmic return using first and second moment and “exact” for mean logarithmic return. The default is None. -
rf: float: Risk free rate. The default is0.0. -
hist: bool: Indicate what kind of returns are used to calculate risk measures that depends on scenarios (All exceptMVrisk measure). The default isTrue. If model =BL,Truemeans historical covariance and returns andFalseBlack Litterman covariance and historical returns. If model =FM,Truemeans historical covariance and returns and False Risk Factor model for covariance and returns. If model =BL_FM,Truemeans historical covariance and returns,FalseBlack Litterman with Risk Factor model for covariance and Risk Factor model for returns, and2Risk Factor model for covariance and returns. -
solver: str: Solver available forCVXPYthat supports power cone programming. Used to calculateRLVaRandRLDaR. The default value isCLARABEL. -
constraints: List[Dict[str, str]]: Risk contribution constraints. Defaults toNone. -
asset_classes: dict: Asset classes. -
config: Dict[str, Any]: Riskfolio-lib configuration. Overwrite other required parameters if referenced.
Instance variables
-
kappa: float: Deformation parameter ofRLVaRandRLDaRfor losses, must be between0and1. The default is0.30. -
freq: Infer the frequency of the returns index. -
ann_factor: Calculate the annualization factor based on the frequency. -
x_axis: str: Generate the label for the x-axis based on the risk measure. -
y_axis: str: Generate the label for the y-axis based on the Kelly criterion. -
z_axis: str: Generate the label for the z-axis.
Methods
init
Raises:
fit
Returns:
add_constraints
predict
Returns:
get_portfolio
Returns:
get_efficient_frontier
Returns:
plot_frontier
Returns:

