The Stress Test worker calculates the expected behavior of the portfolio under different scenarios, including extreme events. It calculates the probabilities of extreme events happening and factors those probabilities into the calculations. For example: it takes into account that correlations and volatility tend to increase in periods of market distress, resulting in large price oscillations for securities.
Parameters
The Stress Test worker must receive specific parameters in order to execute properly. When parameters are not set correctly it may cause the worker to not work as expected. This worker parameters is separated in the following tabs: Input and Advanced.
1. Input
The Input tab contains parameters which are consumed by the worker, in order to execute it's calculations or actions.
1.1 Portfolio
Select the portfolio to be calculated using Fixed Portfolio, Get Latest, Get List or Upstream Data variants.
1.2 Workspace
Set the research workspace of the portfolio to be calculated using Fixed Workspace variant
1.3 Shock
Select the factor in which the shock will be applied using Select Symbol variant.
1.4 Magnitude
Set the magnitude of the shock using Percent variant.
1.5 Filter
Select the filter to be applied in the calculation using Select variant.
1.6 Aggregation
Select the aggregation to be applied in the calculation using Select variant.
1.7 Time Period
Select the time period to be applied in the calculation using Select variant.
1.8 Format
Select the format in which the calculation will be performed using Select variant.
2. Advanced
The Advanced tab contains parameters that defines the worker execution results, and how it will be provided to downstream workers.
2.1 Horizon
Set horizon using Select variant. You can check the Sampling Combination section, on the Everysk API documentation, to know more about combinations between Horizon and Sampling.
2.2 Sampling
Set the sampling using Select variant. You can check the Sampling Combination section, on the Everysk API documentation, to know more about combinations between Horizon and Sampling.
2.3 Volatility Half-Life
Set the Volatility Half-Life using Select variant.
2.4 Correlation Half-Life
Set the Correlation Half-Life using Select variant.
2.5 Confidence
Set the Confidence using Select variant.
2.6 Posterior Model
Set the Posterior Model using Select variant.
Result
Once the worker finishes it's executions succesfully, it will return a result object containing the merged portfolio to the workflow, which can be used by downstream workers. Below you can see an example of the Stress Test's result object hierarchy.
- Portfolio Level (object)
- EV (number)
- Positive CVaR (number)
- Negative CVaR (number)
- Beta (number)
- Aggregation Level (object)
- Aggregation ID (string)
- EV (number)
- Positive CVaR (number)
- Negative CVaR (number)
- Info (object)
- Implied Magnitude (number)
- Implied Horizon (number)