Giter Club home page Giter Club logo

tsoronis-afns_master_thesis_code's Introduction

Master's Thesis Code, provided by Jakob Meldgaard & Alexandros Bøgeskov-Tsoronis

Our master's thesis is titled A Technical Analysis of the Arbitrage-Free Nelson-Siegel Model where we dicuss the "hands-on" implementation of the Arbitrage Free Nelson Siegel (AFNS). We explain the model in depth, implement it with the use of python and test it in a Danish setting. The code can replicate the results from the original paper using the same data set fairly accurate (see reference below & our thesis).

main_fama_bliss & main_danish:

These modules are as the name indicates, the main python files to execute the model. They load data from CRSP & Bloomberg respectively. Both are licensed data sources, thus one needs access to both in order to replicate the data (we provide precise explanations, index names and the date range of time series in the master thesis)

Dependencies:

Apart from a standard Anaconda Python 3 installation (Version 4.12.0, with no single module upgrades), the project requires the following installations:

conda install -c conda-forge numdifftools pip install QuantLib

Other dependencies can be downloaded from this repository like yield_adj_term.py, Chart.py etc. Anaconda Python 3 installation includes NumPy, pandas, scipy, matplotlib, and sklearn which are used in the above modules.

Possible improvements:

The main caveat is, that it is difficult to find convergence in the maximum likelihood estimation and the selected Nelder-Mead algorithm is time-consuming. Thus we suggest trying other algorithms and testing whether more restrictions to the model could help the robustness of estimation. There is also room for improvement in terms of error handlers, especially regarding estimating the standard errors.

Model Reference:

Christensen, J. H., Diebold, F. X., & Rudebusch, G. D. (2011). The affine arbitrage- free class of nelson–siegel term structure models. Journal of Econometrics, 164 (1), 4–20.

tsoronis-afns_master_thesis_code's People

Contributors

tsoronis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.