MATLAB

 

MATLAB

(more to come...)

Note that this code may run a bit slow because it calculates spillovers for both Cholesky and Generalised FEVDs.

- Code to perform spillover analysis following the Diebold-Yilmaz approach:

Spillover.zip

Since these codes were written using a previous version of Matlab, version 2008 it is possible that some of the functions nolonger runs. Please send me an email if you encounter problems.

- Some code that can be used to fit the Smith-Wilson yield curve mode:

Smith-Wilson.zip

I implemented the Smith-Wilson model while I was working for EIOPA. However, please note that the code made available here is not identical to that currently used by EIOPA to produce risk free discount curves.

- A short summary on how to fit a yield curve to bond data using MATLAB's Financial Instruments Toolbox:

- Comparing Orthogonalised and Generalised Impulse Response Functions:

- Yield curve projections that are guaranteed to pass through future pre-specified yield curve fix-points (and the dynamic Nelson-Siegel model estimated with OLS and MATLAB's state-space toolbox):

 

Privacy Policy »

The content of this web site is not related to or endorsed by my employer. All views expressed here (if any) are mine alone and are not necessarily shared by my employer.

 

Terms Of Use »

All materials on this website are provided "as is" and no warranty is given for the correct functioning of e.g. computer codes. Nothing on this website should be seen as indicating investment advice of any kind. MATLAB code and teaching materials can be downloaded and used free of charge as long as re-used materials include proper quoting of the source (i.e. me). Support is not guaranteed (but please do email me if you find bugs or have questions).

 

Ken Nyholm (c) - Updated March 2018