Code covered by the BSD License
-
CurveFitPlotFcn(x,optimValues...
Copyright 2009 The MathWorks, Inc.
-
DispStats(output, timings, fv...
Copyright 2009 The MathWorks, Inc.
-
GenerateFunctions(y,t,v,Jy)
Copyright 2009 The MathWorks, Inc.
-
evalsym(expr)
Copyright 2009 The MathWorks, Inc.
-
Yield_Curve_Optimization.m
-
View all files
Using MATLAB(R) and Symbolic Math Toolbox(TM) to Develop and Analyze Financial Models
by Dan Doherty
03 Dec 2009
(Updated 17 Nov 2010)
These files accompany the webinar with the same title.
|
Watch this File
|
| File Information |
| Description |
These files introduce how Symbolic Math Toolbox™ can be used to evaluate Nelson Siegel and Svensson models, which are 2 widely used techniques for modeling yield data. We demonstrate how you can define the models in the MuPAD notebook interface and perform some basic analysis and visualization of the models. We then show how you can calculate analytical Jacobians for the models, and use these Jacobians to help speed up an optimization where model parameters are optimized such that they fit government bond data as well as possible.
You will need MATLAB®, Symbolic Math Toolbox, and Statistics Toolbox™ to run this demo.
To run this demo, execute Yield_Curve_Optimization.m. Make sure to evaluate the contents of yieldCurve_models.mn before importing variables from the notebook using getVar. You can evaluate the entire notebook by going to the 'Notebook' menu and selecting 'Evaluate All'.
|
| Required Products |
Statistics Toolbox
Symbolic Math Toolbox
|
| MATLAB release |
MATLAB 7.9 (2009b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 04 Jan 2010 |
Changed zip file so that contents include appropriate copyright information. |
| 17 Nov 2010 |
Made minor updates to demo |
|
Contact us at files@mathworks.com