No BSD License  

Highlights from
Evaluate Nelson-Siegel function

4.75

4.8 | 4 ratings Rate this file 40 Downloads (last 30 days) File Size: 1.86 KB File ID: #18160
image thumbnail

Evaluate Nelson-Siegel function

by Dimitri Shvorob

 

30 Dec 2007 (Updated 01 Jan 2008)

(or fit one to a yield curve)

| Watch this File

File Information
Description

Functions NELSONFUN and NELSONFIT evaluate and fit (with non-linear least-squares) the Nelson-Siegel function, a popular yield-curve approximation device.

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
01 Jan 2008 Dimitri Shvorob

Note NELSONFIT's default (and easy-to-change) behavior of searching for tau in (0,10) and adjust the range if measuring time in days or months. (The Nelson-Sielgel function is homogeneous of degree 0 in x/tau).

29 Jan 2008 Wu-Fu Han  
21 Jul 2008 Antonio Juambeltz

I expect this is a very interesting point for us in the Ministry of Finance in Uruguay.

20 Jul 2009 rishad schaefer

Hello,
Great work...
Just a question: Do you know what scilab function ( used with wich parameters) could replace your fminbnd in order to get the fit.
I just can t get the propper algorithm on scilab...

29 Apr 2011 Qin

is there something wrong in the code?
I cannot run it.
 function[f] = nelsonsse(tau)
    [b,f] = lsbetas(tau); %#ok
    end

    function[b,varargout] = lsbetas(tau)
    i = x(:)/tau;

is this part has some mistakes?

26 Oct 2011 aasifalimd  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
finance Dimitri Shvorob 22 Oct 2008 09:40:56
modeling Dimitri Shvorob 22 Oct 2008 09:40:56
nelson siegel svensson yield term Dimitri Shvorob 22 Oct 2008 09:40:56
analysis Dimitri Shvorob 22 Oct 2008 09:40:56
nelson siegel svensson yield term pengwen Peng 20 Mar 2009 15:47:36

Contact us at files@mathworks.com