![]()
Introduction to R for Quantitative Finance
Table of Contents
Introduction to R for Quantitative Finance
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Time Series Analysis
Working with time series data
Linear time series modeling and forecasting
Modeling and forecasting UK house prices
Model identification and estimation
Model diagnostic checking
Forecasting
Cointegration
Cross hedging jet fuel
Modeling volatility
Volatility forecasting for risk management
Testing for ARCH effects
GARCH model specification
GARCH model estimation
Backtesting the risk model
Forecasting
Summary
2. Portfolio Optimization
Mean-Variance model
Solution concepts
Theorem (Lagrange)
Working with real data
Tangency portfolio and Capital Market Line
Noise in the covariance matrix
When variance is not enough
Summary
3. Asset Pricing Models
Capital Asset Pricing Model
Arbitrage Pricing Theory
Beta estimation
Data selection
Simple beta estimation
Beta estimation from linear regression
Model testing
Data collection
Modeling the SCL
Testing the explanatory power of the individual variance
Summary
4. Fixed Income Securities
Measuring market risk of fixed income securities
Example â implementation in R
Immunization of fixed income portfolios
Net worth immunization
Target date immunization
Dedication
Pricing a convertible bond
Summary
5. Estimating the Term Structure of Interest Rates
The term structure of interest rates and related functions
The estimation problem
Estimation of the term structure by linear regression
Cubic spline regression
Applied R functions
Summary
6. Derivatives Pricing
The Black-Scholes model
The Cox-Ross-Rubinstein model
Connection between the two models
Greeks
Implied volatility
Summary
7. Credit Risk Management
Credit default models
Structural models
Intensity models
Correlated defaults â the portfolio approach
Migration matrices
Getting started with credit scoring in R
Summary
8. Extreme Value Theory
Theoretical overview
Application â modeling insurance claims
Exploratory data analysis
Tail behavior of claims
Determining the threshold
Fitting a GPD distribution to the tails
Quantile estimation using the fitted GPD model
Calculation of expected loss using the fitted GPD model
Summary
9. Financial Networks
Representation, simulation, and visualization of financial networks
Analysis of networksâ structure and detection of topology changes
Contribution to systemic risk â identification of SIFIs
Summary
A. References
Time series analysis
Portfolio optimization
Asset pricing
Fixed income securities
Estimating the term structure of interest rates
Derivatives Pricing
Credit risk management
Extreme value theory
Financial networks
Index
![]()
Introduction to R for Quantitative Finance
Copyright © 2013 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2013
Production Reference: 1151113
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK..
ISBN 978-1-78328-093-3
www.packtpub.com
![]()
Authors
Gergely DarĂłczi
Michael Puhle
Edina Berlinger
Péter Csóka
DĂĄniel Havran
MĂĄrton Michaletzky
Zsolt Tulassay
Kata VĂĄradi
Agnes Vidovics-Dancs
Reviewers
Dr. Hari Shanker Gupta
Ronald Hochreiter
Acquisition Editor
Akram Hussain
Lead Technical Editor
Mohammed Fahad
Technical Editors
Venu Manthena
Adrian Raposo
Amit Singh
Copy Editors
Alisha Aranha
Tanvi Gaitonde
Sayanee...