Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

S

S: any

Methods

add

  • Parameters

    • value: Real
    • Default value weight: Real = 1

    Returns void

addSequence

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

averageShortfall

data

downsideDeviation

  • downsideDeviation(): Real

downsideSamples

  • downsideSamples(): Size

downsideVariance

  • downsideVariance(): Real
  • returns the variance of observations below 0.0, $$ \frac{N}{N-1} \mathrm{E}\left[ x^2 ;|; x < 0\right]. $$

    Returns Real

downsideWeightSum

  • downsideWeightSum(): Real

errorEstimate

  • errorEstimate(): Real

expectationValue1

expectationValue2

expectedShortfall

  • expectedShortfall(centile: Real): Real
  • expected shortfall at a given percentile 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

gaussianAverageShortfall

  • gaussianAverageShortfall(target: Real): Real

gaussianDownsideDeviation

  • gaussianDownsideDeviation(): Real

gaussianDownsideVariance

  • gaussianDownsideVariance(): Real

gaussianExpectedShortfall

  • gaussianExpectedShortfall(percentile: Real): Real

gaussianPercentile

  • gaussianPercentile(percentile: Real): Real

gaussianPotentialUpside

  • gaussianPotentialUpside(percentile: Real): Real

gaussianRegret

gaussianShortfall

gaussianTopPercentile

  • gaussianTopPercentile(percentile: Real): Real

gaussianValueAtRisk

  • gaussianValueAtRisk(percentile: Real): Real

kurtosis

max

mean

min

percentile

potentialUpside

regret

  • returns the variance of observations below target, $$ \frac{N}{N-1} \mathrm{E}\left[ (x-t)^2 ;|; x < t \right]. $$

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

    Parameters

    Returns Real

reserve

  • reserve(n: Size): void

reset

  • reset(): void

samples1

samples2

semiDeviation

  • semiDeviation(): Real
  • returns the semi deviation, defined as the square root of the semi variance.

    Returns Real

semiVariance

  • semiVariance(): Real
  • returns the variance of observations below the mean, $$ \frac{N}{N-1} \mathrm{E}\left[ (x-\langle x \rangle)^2 ;|; x < \langle x \rangle \right]. $$

    See Markowitz (1959).

    Returns Real

shortfall

  • probability of missing the given target, defined as $$ \mathrm{E}\left[ \Theta ;|; (-\infty,\infty) \right] $$ where $$ \Theta(x) = \left{ \begin{array}{ll} 1 & x < t \ 0 & x \geq t \end{array} \right. $$

    Parameters

    Returns Real

skewness

sort

  • sort(): void

standardDeviation

  • standardDeviation(): Real

topPercentile

valueAtRisk

variance

weightSum1

  • weightSum1(): Real

weightSum2