Skip to content
13

Range

PortfolioOptimisers.Range Type
julia
struct Range{__T_settings} <: RiskMeasure

Represents the Range risk measure.

Range computes the difference between the maximum and minimum portfolio returns, measuring the full spread of the return distribution. It is a simple measure of the total variability across all scenarios.

Mathematical Definition

Range(x)=max1tTxtmin1tTxt.

Fields

  • settings: Risk measure configuration.

Constructors

julia
Range(;
    settings::RiskMeasureSettings = RiskMeasureSettings()
) -> Range

Keywords correspond to the struct's fields.

Functor

julia
(r::Range)(x::VecNum)

Computes the Range of a portfolio returns vector x.

Arguments

  • x::VecNum: Portfolio returns vector.

Examples

julia
julia> Range()
Range
  settings ┼ RiskMeasureSettings
           │   scale ┼ Float64: 1.0
           │      ub ┼ nothing
           │     rke ┴ Bool: true

Related

source