Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

Main : Matlab : 



Sort by:  Title () Date () Rating () Popularity ()
Files currently sorted by: Date (New Files Listed First)


Category: Matlab View Full Details
Download Now!Credit Default Swap Pricing
Submitter: vanna Date: 2007/3/31
Description:
Calculates upfront premium for a CDS using the following inputs:
1.CDS specs
2.Risk free term structure
3.Yield spread for corresponding bond grade

Uses default probability implied from the term structure to find present value of default payments

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 3266 times  3266  File Size 0 bytes  Supported Platforms Octave Matlab  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (13)

Category: Matlab View Full Details
Download Now!Plot Forward Rate Dynamics Hull White Model
Submitter: vanna Date: 2007/3/28
Description:
Plots forward forward rate curves for input parameters:

1.Hull white model parameters a,sigma for
% dr(t)=[nu(t) -a*r(t)]*dt + sigma*dW(t)

2.Forward rate term structure assuming continuos compounding


Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 1012 times  1012  File Size 0 bytes  Supported Platforms Octave Matlab  Home Page http://www.quantcode.com
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (12)

Category: Matlab View Full Details
Download Now!Bond Option Price in Hull White Model
Submitter: vanna Date: 2007/3/27
Description:
Calculates Bond Option price in Hull white (HW) model using Black analytical formula

Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 1526 times  1526  File Size 0 bytes  Supported Platforms Matlab Octave  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (12)

Category: Matlab View Full Details
Download Now!Variance Swap Pricing
Submitter: vanna Date: 2007/3/26
Description:
Calculates fair rate of variance swap for given input implied vol curve

Based on paper More Than You Ever Wanted To Know About Volatility Swaps by Derman et al

Note : This file requires the function BlackScholesPrice

Uploaded a new version of the file as the previous version code was not matching the values reproduced in Table 1. Thanks to Taras and Caye for their valued suggestion in pointing out the problem!
Results are now matching the table 1 values , and final value of 20.467 is compared to the value mentioned on page 22


Note: there is no change in calcualtion procedure. The changes made are:
1. T is set to 90/365 instead of 0.25 earlier. (it is mentioned to be 3 months in the paper, and their calc. procedure assumed it to be 90/365 I suppose. )
2.Border strike values (50 put and 135 call) are also now considered for calculation of total
3.A new display matrix is added to verify results are reproduced


Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 3197 times  3197  File Size 0 bytes  Supported Platforms Octave Matlab  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (17)

Category: Matlab View Full Details
Download Now!Homework Problem for Swaption Pricing Code
Submitter: vanna Date: 2007/3/14
Description:
Matlab files are solution of Homework 6 for pricing swaptions in Fisher Black formula.

Mentioned in the website:

For Derivative Securities homework 6 I wrote some MATLAB code to price a swaption with Black 76. It's a bit tedious to do by hand (trust me). The put-call parity relationship for swaptions is C - P = L * A * (Fswap - Rfix) where L is the notional (principal from which the payments will be calculated), A is an annuity factor which discounts the payments back to the present and Fswap is the forward par swap rate which makes the forward swap value zero at the option's maturity.


Got a question or problem with this link? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Downloaded 1431 times  1431  File Size 0 bytes  Supported Platforms Matlab  Home Page http://www.employees.org/~alokem/boing.cgi?MathFinArchive/December2005
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (16)
« 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 (21) 22 23 24 25 26 27 28 29 30 31 32 »
Similar Links:

Subscribe to RSS or daily email updates of latest quantitative finance code listings
Email address :
Copyright © 2011 QuantCode Inc. All rights reserved.