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

Main : C++ : 



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


Category: C++ View Full Details
Download Now!CDO Pricing in Gaussian Copula
Submitter: vanna Date: 2007/6/3
Description:
Author : Aloke Tukul Mukherjee

Calculates prices of the floating leg, fixed leg, total price and break-even spread for the tranches of a standard 5-year synthetic CDO swap. The information is sent to stdout.

Check the Homepage for further details and notes

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 2358 times  2358  File Size 0 bytes  Supported Platforms C++ NewMat  Home Page http://math.nyu.edu/~atm262/files/spring06/ircm/cdo/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (16)

Category: C++ View Full Details
Download Now!nth to Defaults CDS without Monte Carlo Simulation
Submitter: vanna Date: 2007/5/22
Description:
Calculates spread of nth to default swap by calculating the probability distribution of the number of defaults by a certain time using recurrence relationship as mentioned in Appendix A of paper Valuation of a CDO and an nth to Default CDS Without Monte Carlo Simulation

Results are compared to data in tables 1 & 2

Formula for calculating present value of default/accrued / premium leg payments are noted from eqn 39-41 ofCopula Functions and their Application in Pricing and Risk Managing Multiname Credit Derivative Products

Note : I have not been able to match values exactly with results in paper. Don't know if it is due to precision error or bug. If you happen to note bug, pl. discuss in comments.
Following is result on running this program:

441.935 814.668 1163.41
139.959 322.801 514.006
53.5581 150.434 265.609

Following are actual values in table:
440 814 1165
139 321 513
53 149 263

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 1110 times  1110  File Size 0 bytes  Supported Platforms C++, GSL, Visual C++ express 2005  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (9)

Category: C++ View Full Details
Download Now!Terreneuve-devel Project
Submitter: vanna Date: 2007/4/12
Description:
Quoted :
What is Terreneuve? Simply:

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 591 times  591  File Size 0 bytes  Supported Platforms C++  Home Page http://terreneuve.sourceforge.net/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (8)

Category: C++ View Full Details
Download Now!Swaption pricing in Libor Market Model(LMM)
Submitter: vanna Date: 2007/3/31
Description:
This file contains C++ code/GNU Scientific Library to perform Monte Carlo simulation for calculating price of an European swaption under the Libor Market Model (LMM) framework.
It is based on Milstein scheme discretization as described in page 82 of Lecture Notes

Results are tested with LFM approximation formula , which is further compared to Table2 data in Linking Caplet and Swaption Volatilities in a BGM/J Framework: Approximate Solutions
(Fine tuning is required on dt parameter. Decreasing it below 0.05 seems to bring in precision errors, while making it higher seems to give lower swaption values.Brigo's book recommends to use refined variance scheme to improve convergence, but is not implemented in this file)

eg., following result were obtained with parameters in this file:


Swap start = 2.5 year
Swap end = 7 year
SR=0.0651932
swaption price = 2.22793
Press any key to continue . . .


following results are obtained with setting these parameters in file LFM approximation formula:
alpha=6; %start peg of swap
beta=15; %end peg of swap


octave:137> lmm_rebonato
SR = 0.065193
var_sum = 0.069366
swap start=2.500000
swap end=7.000000
swaption price=2.238223


Note: The file has been updated to fix issue of compiling problem with new version of Dev C++ 4.9.9.2
To set up GNU scientific library , refer How do I start using GSL on Windows XP?

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 4665 times  4665  File Size 0 bytes  Supported Platforms C++  Home Page http://www.quantcode.com/
Rating: 0.00 (0 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (9)

Category: C++ View Full Details
Download Now!Hodrick Prescott Filter
Submitter: curtis Date: 2007/3/27
Description:
Hodrick Prescott Filter with fast algorithm in ANSI C

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 1002 times  1002  File Size 8.79 KB  Supported Platforms Ansi C  Home Page http://www.web-reg.de
Rating: 7.00 (2 votes)
Rate this File | Modify | Delete | Report Broken File | Tell a Friend | Comments (10)
« 1 2 3 4 5 6 (7) 8 9 10 11 »
Similar Links:

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