The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Fully Flexible Probabilities

Lifecycle: experimental R-CMD-check Codecov test coverage CRAN status CRAN RStudio mirror downloads CRAN RStudio mirror downloads

Functions for Scenario Analysis and Risk Management

Oftentimes, the econometrician needs to stress-test the potential outcomes for a given set of risk-drivers. This process can be computationally costly when the entire set of scenarios needs to be repriced.

To overcome this difficulty, the Fully Flexible Probabilities (FFP) approach offers an inexpensive way for scenario generation: it reprices the probabilities associated to each scenario, instead of the scenarios themselves. Once the new probabilities have been defined, the computations can be performed very quickly because the burden of scenario generation has been left aside.

Installation

Install the official version from CRAN with:

install.packages("ffp")

Install the development version from github with:

# install.packages("devtools")
devtools::install_github("Reckziegel/ffp")

Probability Estimation

The package ffp comes with five functions to extract probabilities from the historical scenarios:

Stress-Testing and Portfolio Construction

The package also offers eight different constructors to make it easier to input views on the market for portfolio optimization (mean-variance, risk-parity, etc.):

The output is a list that entropy_pooling() can handle easily. To combine multiple views in a single object use bind_views().

Scenario Analysis

Once the new probabilities have been estimated, bootstrap_scenarios() can be used to sample data, while keeping the structure of the empirical copulas intact.

The main statistics of arbitrary scenarios can be computed with empirical_stats().

References

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.