Options
All
  • Public
  • Public/Protected
  • All
Menu

Discretized probability density and cumulative probability

Hierarchy

  • Distribution

Index

Properties

Private _average

_average: Real[]

Private _count

_count: Size[]

_cumulativeDensity

_cumulativeDensity: Real[]

Private _cumulativeExcessProbability

_cumulativeExcessProbability: Real[]

_density

_density: Real[]

_dx

_dx: Real[]

_excessProbability

_excessProbability: Real[]

Private _isNormalized

_isNormalized: boolean

Private _overFlow

_overFlow: Integer

Private _size

_size: Size

Private _underFlow

_underFlow: Integer

Private _x

_x: Real[]

_xmax

_xmax: Real

_xmin

_xmin: Real

Methods

add

  • add(value: Real): void
  • Parameters

    Returns void

addAverage

  • Parameters

    Returns void

addDensity

  • Parameters

    Returns void

average

  • Parameters

    Returns Real

confidenceLevel

  • Parameters

    Returns Real

cumulative

  • Parameters

    Returns Real

cumulativeDensity

  • Parameters

    Returns Real

cumulativeExcess

  • Parameters

    Returns Real

cumulativeExcessProbability

  • Parameters

    Returns Real

density

  • Parameters

    Returns Real

dx1

  • Parameters

    Returns Real

dx2

  • Returns Real[]

dx3

  • Parameters

    Returns Real

excess

  • Parameters

    Returns Real

expectedShortfall

  • expectedShortfall(percValue: Real): Real
  • Parameters

    Returns Real

expectedValue1

  • expectedValue1(): Real
  • Returns Real

expectedValue2

init

  • Parameters

    Returns Distribution

locate

  • Parameters

    Returns Size

normalize

  • normalize(): void
  • Returns void

size

  • Returns Size

tranche

  • tranche(attachmentPoint: Real, detachmentPoint: Real): void
  • Transform the loss distribution into the tranche loss distribution for losses L_T = min(L,D) - min(L,A). The effects are:

    1) shift the distribution to the left by A, then 2) cut off at D-A, Pr(L_T > D-A) = 0 3) ensure Pr(L_T >= 0) = 1, i.e. a density spike at L_T = 0

    Parameters

    • attachmentPoint: Real
    • detachmentPoint: Real

    Returns void

trancheExpectedValue

  • Parameters

    Returns Real

x1

  • Parameters

    Returns Real

x2

  • Returns Real[]