GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - BayerSe/esback: Expected Shortfall Backtesting

BranchesTags
Open more actions menu

Latest commit

 

History

98 Commits
98 Commits

Folders and files

NameName
Last commit message
Last commit date
R
R
 
 
data-raw
data-raw
 
 
data
data
 
 
man
man
 
 
.Rbuildignore
.Rbuildignore
 
 
.gitignore
.gitignore
 
 
DESCRIPTION
DESCRIPTION
 
 
NAMESPACE
NAMESPACE
 
 
NEWS.md
NEWS.md
 
 
README.md
README.md
 
 
esback.Rproj
esback.Rproj
 
 

Repository files navigation

esback

The esback can be used to backtest forecasts of the expected shortfall risk measure.

Installation

CRAN (stable release)

You can install the released version from CRAN via:

install.packages("esback")

GitHub (development)

The latest version of the package is under development at GitHub. You can install the development version using these commands:

install.packages("devtools")
devtools::install_github("BayerSe/esback", ref = "master")

Implemented Backtests

This package implements the following backtests:

  • Expected Shortfall Regression Backtest (Bayer & Dimitriadis, 2020)
  • Exceedance Residuals Backtest (McNeil & Frey, 2000)
  • Conditional Calibration Backtest (Nolde & Ziegel, 2017)

Examples

# Load the esback package
library(esback)

# Load the data
data(risk_forecasts)

# Plot the returns and expected shortfall forecasts
plot(risk_forecasts$r, xlab = "Observation Number", ylab = "Return and ES forecasts")
lines(risk_forecasts$e, col = "red", lwd = 2)

# Backtest the forecast using the ESR test
esr_backtest(r = risk_forecasts$r, e = risk_forecasts$e, alpha = 0.025, version = 1)

About

Expected Shortfall Backtesting

Topics

backtestingexpected-shortfallr

Resources

Readme
Activity

Stars

13 stars

Watchers

3 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.