Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Type aliases

Static value_type

value_type: Real

Constructors

constructor

Properties

S

S: any

Methods

add

addSequence

  • addSequence(value: Real[], weight?: Real[]): void

data

downsideDeviation

  • downsideDeviation(): Real

downsideSamples

  • downsideSamples(): Size

downsideVariance

  • downsideVariance(): Real

downsideWeightSum

  • downsideWeightSum(): Real

errorEstimate

  • errorEstimate(): Real

expectationValue1

expectationValue2

gaussianAverageShortfall

  • gaussianAverageShortfall(target: Real): Real

gaussianDownsideDeviation

  • gaussianDownsideDeviation(): Real

gaussianDownsideVariance

  • gaussianDownsideVariance(): Real
  • returns the downside variance, defined as $$ \frac{N}{N-1} \times \frac{ \sum_{i=1}^{N} \theta \times x_i^{2}}{ \sum_{i=1}^{N} w_i} $$, where $ \theta $ = 0 if x > 0 and $ \theta $ =1 if x <0

    Returns Real

gaussianExpectedShortfall

  • gaussianExpectedShortfall(percentile: Real): Real
  • gaussian-assumption Expected Shortfall at a given percentile Assuming a gaussian distribution it returns the expected loss in case that the loss exceeded a VaR threshold,

    $$ \mathrm{E}\left[ x ;|; x < \mathrm{VaR}(p) \right], $$

    that is the average of observations below the given percentile $ p $. Also know as conditional value-at-risk.

    See Artzner, Delbaen, Eber and Heath, "Coherent measures of risk", Mathematical Finance 9 (1999)

    Parameters

    Returns Real

gaussianPercentile

  • gaussianPercentile(percentile: Real): Real
  • gaussian-assumption y-th percentile, defined as the value x such that $$ y = \frac{1}{\sqrt{2 \pi}} \int_{-\infty}^{x} \exp (-u^2/2) du $$

    Parameters

    Returns Real

gaussianPotentialUpside

  • gaussianPotentialUpside(percentile: Real): Real

gaussianRegret

  • returns the variance of observations below target $$ \frac{\sum w_i (min(0, x_i-target))^2 }{\sum w_i}. $$

    See Dembo, Freeman "The Rules Of Risk", Wiley (2001)

    Parameters

    Returns Real

gaussianShortfall

gaussianTopPercentile

  • gaussianTopPercentile(percentile: Real): Real

gaussianValueAtRisk

  • gaussianValueAtRisk(percentile: Real): Real

kurtosis

max

mean

min

percentile

reserve

  • reserve(n: Size): void

reset

  • reset(): void

samples1

samples2

skewness

sort

  • sort(): void

standardDeviation

  • standardDeviation(): Real

topPercentile

variance

weightSum1

  • weightSum1(): Real

weightSum2