Computational Finance and Financial Engineering: The R/Rmetrics - - PowerPoint PPT Presentation

computational finance and financial engineering the r
SMART_READER_LITE
LIVE PREVIEW

Computational Finance and Financial Engineering: The R/Rmetrics - - PowerPoint PPT Presentation

Computational Finance and Financial Engineering: The R/Rmetrics Software Environment Diethelm Wrtz and Yohan Chalabi ITP ETH Zrich, Finance Online GmbH Zrich useR! 2008 Introduction What is Rmetrics ? Open Source Software


slide-1
SLIDE 1

Computational Finance and Financial Engineering: The R/Rmetrics Software Environment

Diethelm Würtz and Yohan Chalabi ITP ETH Zürich, Finance Online GmbH Zürich useR! 2008

slide-2
SLIDE 2

R/Rmetrics – Diethelm Würtz

Rmetrics

is a system of R packages for computational finance and financial engineering. It is based on the R language and the R run-time environment.

Rmetrics

is designed as an Open Source Environment and as a Rapid Model Prototyping System for Teaching “Computational Finance and Financial Engineering”.

Introduction …

What is Rmetrics ?

… Open Source Software Development for Statistical and Financial Computing

Seite 2

slide-3
SLIDE 3

R/Rmetrics – Diethelm Würtz

Rmetrics Packages

Which Packages are Coming with Rmetrics ?

… 20 R Packages, 1’600 R Functions, 80’000 lines of R Code Rmetrics

fUtilities fEcofin fCalendar / timeDate fSeries / timeSeries fImport fBasics fArma fGarch fNonlinear fUnitRoots fTrading fMultivar fRegression fExtremes fCopulae fOptions fExoticOptions fAsianOptions fAssets fPortfolio

Rmetrics Package Graph by Dirk Eddelbuettel

Seite 3

slide-4
SLIDE 4

R/Rmetrics – Diethelm Würtz

Download the Rmetrics Packages from CERAN www.r-project.org

R/Rmetrics Homepages

From where I can get Information on R / Rmetrics ?

… visit the CRAN and Rmetrics Servers

Visit the home of Rmetrics: www.rmetrics.org

Seite 4

slide-5
SLIDE 5

R/Rmetrics – Diethelm Würtz

Where to discuss and find help on R/Rmetrics ? https://stat.ethz.ch/mailman/ listinfo/r-sig-finance

Thanks to Martin Mächler

R-sig-Finance

Where I can get help for R/Rmetrics’ Financial Applications ?

… join the R-sig-finance – Special Interest Group for ‘R in Finance’

Seite 5

slide-6
SLIDE 6

R/Rmetrics – Diethelm Würtz

Thanks to Kurt Hornik,Stefan Theussl for R-forge, and Martin Mächler and Yohan Chalabi for the move to R-forge

R-Forge

Where to get the most recent versions of the Rmetrics Packages? Goto to the SVN repository of Rmetrics, part of https://r-forge.r-project.org

The most recent Rmetrics ?

… get it from the R-forge Server

Seite 6

slide-7
SLIDE 7

R/Rmetrics – Diethelm Würtz Seite 7

Rmetrics - Workshop

Next Workshop June 28th – July 2nd 2009

slide-8
SLIDE 8

R/Rmetrics – Diethelm Würtz

SP500 ARMA -APARCH Modeling Diagnostic Analysis: Volatility Forecasts:

Residual Tests, ARCH Tests, IC Statistics, 11 Diagnostic Plots

Volatility Forecasting

Example 1: ARMA-GARCH Modeling

Modeling and Forecasting Volatility fGARCH

Seite 8

slide-9
SLIDE 9

R/Rmetrics – Diethelm Würtz

Danish Fire Losses

Optimal Bias Reduced Estimator

OBRE

Expected Shortfall Risk

Extreme Value Theory: Value-at-Risk and Expected Shortfall are estimated from the GPD

GPD

Example 2: Extreme Value Theory

Robust Estimation of VaR and Expected Shortfall fExtremes

Seite 9

slide-10
SLIDE 10

R/Rmetrics – Diethelm Würtz

Dependence Structures

Pictet Swiss Pension Fund Portfolio

Tail Dependence: Lower Upper SBI SPI SBI SII 0.055 SBI LMI 0.064 0.069 SBI MPI SBI ALT SPI SII 0.064 SPI LMI 0.072 SPI MPI 0.352 0.214 SPI ALT 0.273 0.048 SII LMI 0.075 SII MPI 0.164 LMI MPI LMI ALT MPI ALT 0.124 0.012 SBI CH Bonds SPI CH Stocks SII CH Immo LMI World Bonds MPI World Stocks ALT World AltInvest

Example 3: Bivariate Copulae

Estimating Pairwise Lower Tail Dependence fCopulae

Seite 10

slide-11
SLIDE 11

R/Rmetrics – Diethelm Würtz

  • Find for all maturities τ1,2

the best solution for the coefficients β

  • Take this value as starting

point for the nonlinear (least square) solver.

Objective Function: non-convex!

Search for the Global Minimum

Term Structure

Calibration

Example 4: Term Structure Modeling

… Nelsen-Siegel-Svenson Estimation for the Zero Rates fBonds

Seite 11

slide-12
SLIDE 12

R/Rmetrics – Diethelm Würtz

Stock Sector Rotation

Example 5: Vontobel German Sector Rotation Index

ISIN CH0026834058

Build a Portfolio on the SPI Universe:

Sectors: Auto, Banks, Chemicals, Basic Resources, Food & Beverage, Insurance, Transport & Logistics, Industrial, Construction Performance, Pharmacy & Healthcare Utilities Rebalancing: Quarterly

fPortfolio

Seite 12

slide-13
SLIDE 13

R/Rmetrics – Diethelm Würtz 13

Theta Fund Managment, Zürich

dynAAx FIX dynAAx TRACKER dynAAx FLEX

  • Constant risk Index
  • Tracking the risk or return of

a known benchmark

  • An Index following an

investment strategy ...

Benchmark

Dynamic Asset Allocation

Dominik Locher

slide-14
SLIDE 14

R/Rmetrics – Diethelm Würtz Seite 14

Advisory Services

slide-15
SLIDE 15

R/Rmetrics – Diethelm Würtz

Summary Thank You

Diethelm Würtz wuertz@ethz.ch

Consider R/Rmetrics as a competitive and unique rapid model prototyping environment in education and even for business applications

Seite 15