Base Distance
PortfolioOptimisers.SimpleDistance Type
struct SimpleDistance <: AbstractDistanceAlgorithmSimple distance algorithm for portfolio optimization.
where
Related
sourcePortfolioOptimisers.SimpleAbsoluteDistance Type
struct SimpleAbsoluteDistance <: AbstractDistanceAlgorithmSimple absolute distance algorithm for portfolio optimization.
where
Related
sourcePortfolioOptimisers.LogDistance Type
struct LogDistance <: AbstractDistanceAlgorithmLogarithmic distance algorithm for portfolio optimization.
where
Related
sourcePortfolioOptimisers.CorrelationDistance Type
struct CorrelationDistance <: AbstractDistanceAlgorithmCorrelation distance algorithm for portfolio optimization.
where
Related
sourcePortfolioOptimisers.VariationInfoDistance Type
struct VariationInfoDistance{__T_bins, __T_normalise} <: AbstractDistanceAlgorithmVariation of Information (VI) distance algorithm for portfolio optimization.
VariationInfoDistance specifies the use of the Variation of Information (VI) metric, an information-theoretic distance based on entropy and mutual information.
Fields
bins: Binning algorithm or fixed number of bins.normalise: Whether to normalise the mutual and/or variation of information calculation.
Constructors
VariationInfoDistance(;
bins::Int_Bin = HacineGharbiRavier(),
normalise::Bool = true
) -> VariationInfoDistanceKeywords correspond to the struct's fields.
Validation
- If
binsis an integer,bins > 0.
Examples
julia> VariationInfoDistance()
VariationInfoDistance
bins ┼ HacineGharbiRavier()
normalise ┴ Bool: trueRelated
sourcePortfolioOptimisers.CanonicalDistance Type
struct CanonicalDistance <: AbstractDistanceAlgorithmCanonical distance algorithm for portfolio optimization.
Defines the canonical distance metric for a given covariance estimator. The resulting distance metric is consistent with the properties of the covariance estimator (relevant when the covariance estimator is MutualInfoCovariance).
| Covariance Estimator | Distance Metric |
|---|---|
MutualInfoCovariance | VariationInfoDistance |
LowerTailDependenceCovariance | LogDistance |
DistanceCovariance | CorrelationDistance |
StatsBase.CovarianceEstimator | SimpleDistance |
The table also applies to PortfolioOptimisersCovariance where ce is one of the aforementioned estimators.
When used with a covariance matrix directly, uses SimpleDistance.
Related
PortfolioOptimisers.AbstractDistanceEstimator Type
abstract type AbstractDistanceEstimator <: AbstractEstimatorAbstract supertype for all distance estimator types in PortfolioOptimisers.jl.
All concrete and/or abstract types implementing distance-based estimation algorithms should be subtypes of AbstractDistanceEstimator.
Related
sourcePortfolioOptimisers.AbstractDistanceAlgorithm Type
abstract type AbstractDistanceAlgorithm <: AbstractAlgorithmAbstract supertype for all distance algorithm types in PortfolioOptimisers.jl.
All concrete and/or abstract types implementing specific distance-based algorithms (such as correlation distance, absolute distance, log distance, or information-theoretic distances) should be subtypes of AbstractDistanceAlgorithm.
Related