Skip to content

This repository provides the implementation of a handful of forecasting methods in yield curve modelling.

Notifications You must be signed in to change notification settings

tomasrubin/yield-curve-forecasting

Repository files navigation

Yield Curve Forecasting

This repository provides the implementation of the forecasting methods used in the quantitative analysis in [1]. This technical report originates from the semester project written by Kelly Ayliffe under the supervision of Tomas Rubin at the Institute of Mathematics, École Polytechnique Fédérale de Lausanne, Switzerland.

The authors of the code are Kelly Ayliffe and Tomas Rubin. Individuals are free to use the codes for the purpose academic research, provided it is properly acknowledged. For any other use, permission must first be arranged with the authors. Please contact us if you find errors in the code.

Contents

  • Static Nelson-Siegel fit.ipynb A jupyter notebook demonstrating the fit of Nelson Siegel parametric family to (discrete) yield curve data. The user may choose the parameter lambda to play with different fits.

Static Nelson-Siegel fit with varying parameter lambda

  • Yield curve forecasting.ipynb A jupyter notebook demonstrating forecasts by the considered forecasting methods in the report [1], namely the dynamic Nelson-Siegel model estimated by the one-step or two-step methods, the autoregression, the vector autoregression, and the random walk benchmark. The notebook loads the US Treasury yield curve data and allows the user to select the training window and the number of days to forecast ahead.

The forecasts by various methods

  • yield_curve_functions.py This file includes the functions for the estimation and prediction for the considered yield curve forecasting methods.

  • US_daily.xlsx The US Treasury yield curve data set (2011-2019).

Contact

Kelly Ayliffe

kelly.ayliffe@gmail.com

www.linkedin.com/in/kelly-ayliffe-20a24b17b/

Tomas Rubin

tomas.rubin@gmail.com

www.tomasrubin.com

www.linkedin.com/in/tomas-rubin/

Reference

[1] Ayliffe, Kelly and Rubin, Tomas. "A Quantitative Comparison of Yield Curve Models in the MINT Economies". EPFL Infoscience. URL: http://infoscience.epfl.ch/record/279314

About

This repository provides the implementation of a handful of forecasting methods in yield curve modelling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages