Tyler shrinkage

PortfolioOptimisers.shrink_shape! — Function
shrink_shape!(alg::TraceNormalisedShrinkage, V::MatNum, rho::Number) -> MatNum
shrink_shape!(alg::PenalisedShrinkage, V::MatNum, rho::Number) -> MatNum

Blends one step V of the shape equation with the identity matrix in place.

TraceNormalisedShrinkage then scales the blend to the trace p, and PenalisedShrinkage does not.

Arguments

  • alg: The form of the shrinkage.
  • V: The step of the shape equation, from tyler_shape_step.
  • rho: The shrinkage intensity.

Returns

  • V::MatNum: The input matrix.

Related

source
PortfolioOptimisers.tyler_intensity — Function
tyler_intensity(rho::Number, alg::AbstractTylerShrinkageAlgorithm, W::MatNum,
                w::Option{<:StatsBase.AbstractWeights})
tyler_intensity(rule::ConditionNumberIntensity, alg::AbstractTylerShrinkageAlgorithm,
                W::MatNum, w::Option{<:StatsBase.AbstractWeights})
tyler_intensity(rule::SphericityIntensity, alg::AbstractTylerShrinkageAlgorithm,
                W::MatNum, w::Option{<:StatsBase.AbstractWeights})
tyler_intensity(rule::OracleIntensity, alg::AbstractTylerShrinkageAlgorithm, W::MatNum,
                w::Option{<:StatsBase.AbstractWeights})
tyler_intensity(rule::AsymptoticIntensity, alg::AbstractTylerShrinkageAlgorithm,
                W::MatNum, w::Option{<:StatsBase.AbstractWeights})

Returns the shrinkage intensity of a TylerShrinkage.

A number is the intensity. Each rule states its formula under # Mathematical definition. SphericityIntensity and AsymptoticIntensity give the weight of the target in the shape of trace p. For PenalisedShrinkage, penalised_intensity turns that weight into the intensity.

One asset has one shape, which every intensity gives. The formulas of SphericityIntensity and OracleIntensity are then zero over zero, and the two rules return one.

Arguments

  • rule: The rule, or the intensity.
  • alg: The form of the shrinkage.
  • W: The centred data, in the coordinates that turn the target into the identity matrix.
  • w: The observation weights, or nothing.

Returns

  • rho::Number: The intensity.

Related

source