Skip to main content

es

Provides Expected Shortfall (short: ES) of the selected stock.

Usageโ€‹

es [-m] [-d {laplace,student_t,logistic,normal}] [-p PERCENTILE]

Parametersโ€‹

NameDescriptionDefaultOptionalChoices
use_meanIf one should use the mean of the stocks returnFalseTrueNone
distributionsDistribution used for the calculationsnormalTruelaplace, student_t, logistic, normal
percentilePercentile for calculations, i.e. input 99.9 equals a 99.9 Percent Expected Shortfall99.9TrueNone

Examplesโ€‹

2022 Feb 25, 06:50 (๐Ÿฆ‹) /stocks/qa/ $ es
TSLA Expected Shortfall
โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ โ”ƒ ES: โ”ƒ Historical ES: โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ 90.0% โ”‚ -0.0752 โ”‚ -0.0705 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 95.0% โ”‚ -0.0885 โ”‚ -0.0932 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 99.0% โ”‚ -0.1144 โ”‚ -0.1561 โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ 99.9% โ”‚ -0.1444 โ”‚ -0.2106 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜