Relativistic X at Risk
PortfolioOptimisers.RelativisticValueatRisk Type
struct RelativisticValueatRisk{__T_settings, __T_slv, __T_alpha, __T_kappa, __T_w} <: RiskMeasureRepresents the Relativistic Value-at-Risk (RVaR) risk measure.
RelativisticValueatRisk is a coherent risk measure generalising EVaR via the Tsallis (
Mathematical definition
Define the
Where:
: Relativistic Value-at-Risk. : Portfolio returns vector . : Significance level (left tail probability), . : Number of observations. : Tsallis deformation parameter. : -logarithm. , , , , , : Conic optimisation variables.
subject to the power-cone constraints:
Where:
: Power cone.
Fields
settings: Risk measure settings.slv: Solver or vector of solvers.alpha: Quantile level for the lower tail.kappa: Relativistic deformation parameter.w: Optional observation weights vectorobservations × 1, or a concrete subtype ofDynamicAbstractWeights. Ifnothing, the computation is unweighted.
Constructors
RelativisticValueatRisk(;
settings::RiskMeasureSettings = RiskMeasureSettings(),
slv::Option{<:Slv_VecSlv} = nothing,
alpha::Number = 0.05,
kappa::Number = 0.3,
w::Option{<:ObsWeights} = nothing
) -> RelativisticValueatRiskKeywords correspond to the struct's fields.
Validation
0 < alpha < 1.0 < kappa < 1.If
slvis aVecSlv:!isempty(slv).If
wis notnothing:!isempty(w).
Functor
(r::RelativisticValueatRisk)(x::VecNum)Computes the RVaR of a portfolio returns vector x.
Arguments
x::VecNum: Portfolio returns vector.
Examples
julia> RelativisticValueatRisk()
RelativisticValueatRisk
settings ┼ RiskMeasureSettings
│ scale ┼ Float64: 1.0
│ ub ┼ nothing
│ rke ┴ Bool: true
slv ┼ nothing
alpha ┼ Float64: 0.05
kappa ┼ Float64: 0.3
w ┴ nothingRelated
PortfolioOptimisers.factory Function
factory(
r::RelativisticValueatRisk,
pr::AbstractPriorResult;
...
) -> RelativisticValueatRisk
factory(
r::RelativisticValueatRisk,
pr::AbstractPriorResult,
slv::Union{Nothing, Solver, AbstractVector{<:Solver}},
args...;
kwargs...
) -> RelativisticValueatRiskCreate an instance of RelativisticValueatRisk by selecting observation weights and solver from the risk-measure instance or falling back to the prior result.
Related
sourcePortfolioOptimisers.factory Function
factory(
r::RelativisticValueatRisk,
slv::Union{Solver, AbstractVector{<:Solver}};
...
) -> Union{RelativisticValueatRisk{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, <:AbstractVector{var"#s869"}, <:Number, <:Number} where {__T_scale, __T_ub, __T_rke, var"#s869"<:Solver}, RelativisticValueatRisk{RiskMeasureSettings{__T_scale, __T_ub, __T_rke}, Solver{__T_name, __T_solver, __T_settings, __T_check_sol, __T_add_bridges}, <:Number, <:Number} where {__T_scale, __T_ub, __T_rke, __T_name, __T_solver, __T_settings, __T_check_sol, __T_add_bridges}}
factory(
r::RelativisticValueatRisk,
slv::Union{Solver, AbstractVector{<:Solver}},
pr::Union{Nothing, AbstractPriorResult},
args...;
kwargs...
) -> RelativisticValueatRiskCreate an instance of RelativisticValueatRisk by overriding the solver and optionally selecting observation weights from the prior result.
Related
sourcePortfolioOptimisers.RelativisticValueatRiskRange Type
struct RelativisticValueatRiskRange{__T_settings, __T_slv, __T_alpha, __T_kappa_a, __T_beta, __T_kappa_b, __T_w} <: RiskMeasureRepresents the Relativistic Value-at-Risk Range (RVaR Range) risk measure.
RelativisticValueatRiskRange computes the sum of the lower-tail RVaR (at level alpha with deformation kappa_a) and the upper-tail RVaR (at level beta with deformation kappa_b).
Mathematical definition
Where:
: Relativistic VaR range. : Portfolio returns vector . : Lower-tail RVaR with parameters . : Upper-tail RVaR with parameters .
Fields
settings: Risk measure settings.slv: Solver or vector of solvers.alpha: Quantile level for the lower tail.kappa_a: Relativistic deformation parameter for the lower tail.beta: Quantile level for the upper tail.kappa_b: Relativistic deformation parameter for the upper tail.w: Optional observation weights vectorobservations × 1, or a concrete subtype ofDynamicAbstractWeights. Ifnothing, the computation is unweighted.
Constructors
RelativisticValueatRiskRange(;
settings::RiskMeasureSettings = RiskMeasureSettings(),
slv::Option{<:Slv_VecSlv} = nothing,
alpha::Number = 0.05,
kappa_a::Number = 0.3,
beta::Number = 0.05,
kappa_b::Number = 0.3,
w::Option{<:ObsWeights} = nothing
) -> RelativisticValueatRiskRangeKeywords correspond to the struct's fields.
Validation
0 < alpha < 1,0 < kappa_a < 1.0 < beta < 1,0 < kappa_b < 1.If
slvis aVecSlv:!isempty(slv).If
wis notnothing:!isempty(w).
Functor
(r::RelativisticValueatRiskRange)(x::VecNum)Computes the RVaR Range of a portfolio returns vector x.
Arguments
x::VecNum: Portfolio returns vector.
Examples
julia> RelativisticValueatRiskRange()
RelativisticValueatRiskRange
settings ┼ RiskMeasureSettings
│ scale ┼ Float64: 1.0
│ ub ┼ nothing
│ rke ┴ Bool: true
slv ┼ nothing
alpha ┼ Float64: 0.05
kappa_a ┼ Float64: 0.3
beta ┼ Float64: 0.05
kappa_b ┼ Float64: 0.3
w ┴ nothingRelated
sourcePortfolioOptimisers.factory Method
factory(
r::RelativisticValueatRiskRange,
pr::AbstractPriorResult,
slv::Union{Nothing, Solver, AbstractVector{<:Solver}},
args...;
kwargs...
) -> RelativisticValueatRiskRangeCreate an instance of RelativisticValueatRiskRange by selecting observation weights and solver from the risk-measure instance or falling back to the prior result.
Related
sourcePortfolioOptimisers.RelativisticDrawdownatRisk Type
struct RelativisticDrawdownatRisk{__T_settings, __T_slv, __T_alpha, __T_kappa, __T_w} <: RiskMeasureRepresents the Relativistic Drawdown-at-Risk (RDDaR) risk measure.
RelativisticDrawdownatRisk applies the Relativistic Value-at-Risk framework to the absolute drawdown series of portfolio returns.
Mathematical definition
Define the absolute drawdown series:
Where:
: Portfolio returns vector . : Cumulative simple portfolio return at period . : Absolute drawdown at period .
The Relativistic Drawdown-at-Risk is the RVaR of the drawdown series:
Where:
: Relativistic Drawdown-at-Risk. : Significance level (left tail probability), . : Tsallis deformation parameter. : Absolute drawdown series vector .
Fields
settings: Risk measure settings.slv: Solver or vector of solvers.alpha: Quantile level for the lower tail.kappa: Relativistic deformation parameter.w: Optional observation weights vectorobservations × 1, or a concrete subtype ofDynamicAbstractWeights. Ifnothing, the computation is unweighted.
Constructors
RelativisticDrawdownatRisk(;
settings::RiskMeasureSettings = RiskMeasureSettings(),
slv::Option{<:Slv_VecSlv} = nothing,
alpha::Number = 0.05,
kappa::Number = 0.3,
w::Option{<:ObsWeights} = nothing
) -> RelativisticDrawdownatRiskKeywords correspond to the struct's fields.
Validation
0 < alpha < 1.0 < kappa < 1.If
slvis aVecSlv:!isempty(slv).If
wis notnothing:!isempty(w).
Functor
(r::RelativisticDrawdownatRisk)(x::VecNum)Computes the Relativistic Drawdown-at-Risk of a portfolio returns vector x.
Arguments
x::VecNum: Portfolio returns vector.
Examples
julia> RelativisticDrawdownatRisk()
RelativisticDrawdownatRisk
settings ┼ RiskMeasureSettings
│ scale ┼ Float64: 1.0
│ ub ┼ nothing
│ rke ┴ Bool: true
slv ┼ nothing
alpha ┼ Float64: 0.05
kappa ┼ Float64: 0.3
w ┴ nothingRelated
PortfolioOptimisers.factory Function
factory(
r::RelativisticDrawdownatRisk,
pr::AbstractPriorResult;
...
) -> RelativisticDrawdownatRisk
factory(
r::RelativisticDrawdownatRisk,
pr::AbstractPriorResult,
slv::Union{Nothing, Solver, AbstractVector{<:Solver}},
args...;
kwargs...
) -> RelativisticDrawdownatRiskCreate an instance of RelativisticDrawdownatRisk by selecting observation weights and solver from the risk-measure instance or falling back to the prior result.
Related
sourcePortfolioOptimisers.factory Function
factory(
r::RelativisticDrawdownatRisk,
slv::Union{Solver, AbstractVector{<:Solver}};
...
) -> Union{RelativisticDrawdownatRisk{_A, <:AbstractVector{var"#s869"}, <:Number, <:Number} where {_A, var"#s869"<:Solver}, RelativisticDrawdownatRisk{_A, Solver{__T_name, __T_solver, __T_settings, __T_check_sol, __T_add_bridges}, <:Number, <:Number} where {_A, __T_name, __T_solver, __T_settings, __T_check_sol, __T_add_bridges}}
factory(
r::RelativisticDrawdownatRisk,
slv::Union{Solver, AbstractVector{<:Solver}},
pr::Union{Nothing, AbstractPriorResult},
args...;
kwargs...
) -> RelativisticDrawdownatRiskCreate an instance of RelativisticDrawdownatRisk by overriding the solver and optionally selecting observation weights from the prior result.
Related
sourcePortfolioOptimisers.RelativeRelativisticDrawdownatRisk Type
struct RelativeRelativisticDrawdownatRisk{__T_settings, __T_slv, __T_alpha, __T_kappa, __T_w} <: HierarchicalRiskMeasureRepresents the Relative Relativistic Drawdown-at-Risk (Relative RDDaR) risk measure for hierarchical optimisation.
RelativeRelativisticDrawdownatRisk applies the Relativistic Value-at-Risk framework to the relative (compounded) drawdown series of portfolio returns.
Mathematical definition
Define the compounded wealth process and relative drawdown series:
Where:
: Portfolio returns vector . : Compound wealth process at period . : Relative drawdown at period .
The Relative Relativistic Drawdown-at-Risk is the RVaR of the relative drawdown series:
Where:
: Relative Relativistic Drawdown-at-Risk. : Significance level (left tail probability), . : Tsallis deformation parameter. : Relative drawdown series vector .
Fields
settings: Risk measure settings.slv: Solver or vector of solvers.alpha: Quantile level for the lower tail.kappa: Relativistic deformation parameter.w: Optional observation weights vectorobservations × 1, or a concrete subtype ofDynamicAbstractWeights. Ifnothing, the computation is unweighted.
Constructors
RelativeRelativisticDrawdownatRisk(;
settings::HierarchicalRiskMeasureSettings = HierarchicalRiskMeasureSettings(),
slv::Option{<:Slv_VecSlv} = nothing,
alpha::Number = 0.05,
kappa::Number = 0.3,
w::Option{<:ObsWeights} = nothing
) -> RelativeRelativisticDrawdownatRiskKeywords correspond to the struct's fields.
Validation
0 < alpha < 1.0 < kappa < 1.If
slvis aVecSlv:!isempty(slv).If
wis notnothing:!isempty(w).
Functor
(r::RelativeRelativisticDrawdownatRisk)(x::VecNum)Computes the Relative Relativistic Drawdown-at-Risk of a portfolio returns vector x.
Arguments
x::VecNum: Portfolio returns vector.
Examples
julia> RelativeRelativisticDrawdownatRisk()
RelativeRelativisticDrawdownatRisk
settings ┼ HierarchicalRiskMeasureSettings
│ scale ┴ Float64: 1.0
slv ┼ nothing
alpha ┼ Float64: 0.05
kappa ┼ Float64: 0.3
w ┴ nothingRelated
PortfolioOptimisers.factory Function
factory(
r::RelativeRelativisticDrawdownatRisk,
pr::AbstractPriorResult;
...
) -> RelativeRelativisticDrawdownatRisk
factory(
r::RelativeRelativisticDrawdownatRisk,
pr::AbstractPriorResult,
slv::Union{Nothing, Solver, AbstractVector{<:Solver}},
args...;
kwargs...
) -> RelativeRelativisticDrawdownatRiskCreate an instance of RelativeRelativisticDrawdownatRisk by selecting observation weights and solver from the risk-measure instance or falling back to the prior result.
Related
PortfolioOptimisers.factory Function
factory(
r::RelativeRelativisticDrawdownatRisk,
slv::Union{Solver, AbstractVector{<:Solver}};
...
) -> Union{RelativeRelativisticDrawdownatRisk{HierarchicalRiskMeasureSettings{__T_scale}, <:AbstractVector{var"#s869"}, <:Number, <:Number} where {__T_scale, var"#s869"<:Solver}, RelativeRelativisticDrawdownatRisk{HierarchicalRiskMeasureSettings{__T_scale}, Solver{__T_name, __T_solver, __T_settings, __T_check_sol, __T_add_bridges}, <:Number, <:Number} where {__T_scale, __T_name, __T_solver, __T_settings, __T_check_sol, __T_add_bridges}}
factory(
r::RelativeRelativisticDrawdownatRisk,
slv::Union{Solver, AbstractVector{<:Solver}},
pr::Union{Nothing, AbstractPriorResult},
args...;
kwargs...
) -> RelativeRelativisticDrawdownatRiskCreate an instance of RelativeRelativisticDrawdownatRisk by overriding the solver and optionally selecting observation weights from the prior result.
Related
PortfolioOptimisers.RRM Function
RRM(x, slv, alpha = 0.05, kappa = 0.3, ...; kwargs...)Compute the Relativistic Risk Measure (RRM) for a vector of portfolio returns.
Solves a convex optimisation problem to compute the RRM at confidence level alpha with relativistic parameter kappa, using the specified solver(s).
Arguments
x: Vector of portfolio returns.slv: Solver or vector of solvers.alpha: Confidence level (default0.05).kappa: Relativistic parameter (default0.3).Additional parameters depending on the specific RRM formulation.
kwargs...: Additional keyword arguments passed to the solver.
Returns
- RRM value (scalar).
Related
source