Serving the Quantitative Finance Community

Search found 15 matches

by dobranszky
January 7th, 2010, 8:46 am
Forum: Programming and Software Forum
Topic: C++: Portable Multithreaded Singleton
Replies: 13
Views: 43280

C++: Portable Multithreaded Singleton

<t>I made the following simple implementation of Singleton. I know that Double-Checked Locking (DPL) may fail in theory, but using a temp variable I have never experienced any problem (I use the Intel C++ compiler on Windows).I use the singleton pattern for my issue logger like Singleton<IssueLog>::...
by dobranszky
May 6th, 2009, 10:58 pm
Forum: Numerical Methods Forum
Topic: Problem using FFT to get prob dist in Matlab
Replies: 2
Views: 41830

Problem using FFT to get prob dist in Matlab

<t>You miss two things: the weightening by cutting the tails and a multiplication by two at the end. Please, see below.Best regards, Peterl = -10;u = 10;T = 512;dx = (u-l)/T;n = [0:T-1];x = (l)+n*dx; %my pdf x'st = [0:1:T-1];s_t = 2*pi*t/(T*dx); %my s's for the Gaussian characteristic functionmu = 0...
by dobranszky
May 24th, 2008, 12:42 pm
Forum: Numerical Methods Forum
Topic: How to use Matlab to simulate the pure jump process
Replies: 2
Views: 59819

How to use Matlab to simulate the pure jump process

<t>In case of Poisson, you use one uniform random number and the inverse Poisson CDF (poissinv) to simulate the total number of jumps until the maturity, then you use so many uniform random numbers as many jumps you have in total in order to simulate the jump arrival times that are uniformly distrib...
by dobranszky
May 24th, 2008, 12:15 pm
Forum: Technical Forum
Topic: Database and MAtlab
Replies: 5
Views: 55699

Database and MAtlab

<t>humtumiit, if you want to do it from VC++, then I propose you to connect to your database through ODBC using libodbc++. This is also what I do.After the extraction and making some preprocessing you may put the data towards to MATLAB using the MEX functionalities.However, if you really need the da...
by dobranszky
April 12th, 2008, 2:44 pm
Forum: Numerical Methods Forum
Topic: Quanto Asian Basket Options
Replies: 2
Views: 58961

Quanto Asian Basket Options

<t>If you can accept the Brownian assumption about the world as approximation, then you can consider asianing as basket of fixings and simply apply the quanto adjustment on your forward prices at the fixing dates. In this case you can easily derive the correlation between different fixings and diffe...
by dobranszky
March 27th, 2008, 5:20 pm
Forum: Numerical Methods Forum
Topic: optimal filter for jump-diffusion
Replies: 10
Views: 60522

optimal filter for jump-diffusion

<t>What about to use the Expectation Maximization technique to calibarte the jump-diffusion parameters, and then use this set of parameters to split up the jump-diffusion density into the diffusion density and into the jump density? The proportion of the two densities should give then a filtration r...
by dobranszky
March 27th, 2008, 4:12 pm
Forum: Technical Forum
Topic: Levy lognormal model
Replies: 2
Views: 57555

Levy lognormal model

<t>In MATLAB working with vectors looks like that:function call = Levy(Fwd, Weight, Vol0, Corr, TTM, DF, Strike)% Levy, E. (1992) Pricing European average rate currency options. Journal% of International Money and Finance, 11, 474-491.%% function call = Levy(Fwd, Weight, Vol0, Corr, TTM, DF, Strike)...
by dobranszky
March 27th, 2008, 4:05 pm
Forum: Technical Forum
Topic: Tools for woking with very large data sets
Replies: 8
Views: 58715

Tools for woking with very large data sets

<t>KludgeDude, I access my data stored in SQL databases through ODBC. In my C++ toolkit I use the libodbc++ library for this purpose. It is a quite simple library and easy to use. Basically, I do not loose time or precision with data transfers. The SQL query is as quick as your database server, whil...
by dobranszky
January 14th, 2008, 11:43 am
Forum: Technical Forum
Topic: vanna volga approach
Replies: 2
Views: 62536

vanna volga approach

by dobranszky
December 1st, 2007, 10:56 pm
Forum: Numerical Methods Forum
Topic: How to invert a Gamma (a, b) CDF?
Replies: 4
Views: 67259

How to invert a Gamma (a, b) CDF?

<r>ALGLIB provides one solution at <URL url="http://www.alglib.net/specialfunctions/incompletegamma.phpIn"><LINK_TEXT text="http://www.alglib.net/specialfunctions/ ... amma.phpIn">http://www.alglib.net/specialfunctions/incompletegamma.phpIn</LINK_TEXT></URL> order to get the inverse of the gamma(a,b...
by dobranszky
November 1st, 2007, 9:43 pm
Forum: Numerical Methods Forum
Topic: Computing the Brownian Bridge
Replies: 9
Views: 68613

Computing the Brownian Bridge

<t>Hello Cuchulainn,my experience is that the standard discretization works better than the BB, if you have a derivative payoff which is hardly sensitive to the last simulated fixing, but rather to some earlier fixings.A simple vanilla call depends only on the last simulated fixing, so the BB techni...
by dobranszky
September 25th, 2007, 10:26 pm
Forum: Numerical Methods Forum
Topic: Maximum Likelihood Estimation of Jump Parameters
Replies: 8
Views: 72884

Maximum Likelihood Estimation of Jump Parameters

For this problem I am used to apply the Expectation Maximization technique either.However, I found a nice trick in Honoré, P. (1998) Pitfalls in Estimating Jump-Diffusion Models. The trick helped me to avoid the stability problem by the estimation.Peter
by dobranszky
September 25th, 2007, 9:56 pm
Forum: Numerical Methods Forum
Topic: Local vol / American exercise
Replies: 4
Views: 70631

Local vol / American exercise

<t>Concerning the original question, does this even make sense to calibrate local volatility model to American options? I mean the American option is about forward probability distributions, while the local volatility model (as it is from 1994) is only about unconditional probability distributions.I...
by dobranszky
September 25th, 2007, 9:30 pm
Forum: Technical Forum
Topic: average price options in commodity markets
Replies: 4
Views: 67139

average price options in commodity markets

<t>Hi Paul,what you have to know about the Turnbull-Wakeman and the Levy approaches that they approximate the distribution of the arithmetic basket by a lognormal distribution. However, we know that the sum of lognormal randoms is not lognormal, but if these lognormal randoms are highly correlated w...
by dobranszky
April 11th, 2007, 9:41 pm
Forum: Technical Forum
Topic: Quanto Option Pricing with Present of Volatility Smile
Replies: 1
Views: 79700

Quanto Option Pricing with Present of Volatility Smile

<t>Dear All,I should price European quanto options with present of asset volatility smile but with flat FX volatility. (Here, quanto would mean an option on an asset denominated in a foreign currency with an associated predetermined exchange rate.)As far as I saw, the literature discusses the quanto...