Serving the Quantitative Finance Community

Search found 21 matches

  • 1
  • 2
by JackHon
August 18th, 2003, 10:30 pm
Forum: Technical Forum
Topic: piece-wise linear approximation of CIR
Replies: 4
Views: 189990

piece-wise linear approximation of CIR

<t>The simplest solution is to have an "if statement" in your program or spreadsheet, so that when the model outputs a negative number you replace it with zero or some really small number (0.01%). ----------------------------------------------------------------------------Ahh.. I did that you see, b...
by JackHon
August 17th, 2003, 2:20 pm
Forum: Technical Forum
Topic: piece-wise linear approximation of CIR
Replies: 4
Views: 189990

piece-wise linear approximation of CIR

OK. So I made the volatility smaller, and that solved the problem.But out of curiosity still, if the volatility was large, how do I make it non-negative?
by JackHon
August 17th, 2003, 10:58 am
Forum: Technical Forum
Topic: piece-wise linear approximation of CIR
Replies: 4
Views: 189990

piece-wise linear approximation of CIR

Any idea of how to do this? In terms of computational algorithm?I must be doing something wrong, because my path keeps going negative, but CIR don't go negative....
by JackHon
August 17th, 2003, 10:47 am
Forum: Student Forum
Topic: Simulating CIR Path
Replies: 10
Views: 191370

Simulating CIR Path

<t>How can I simulate the path of a CIR process?I need to simulate the whole path,dr=k(h-r)dt+s*sqrt(r)dW(t)do i just simulate withr(t)=r(t-1)+k(h-r(t-1))*dt+s*sqrt(r(t-1))*I*sqrt(dt)where I is a N(0,1)..basically, i am doing that at the moment, but the volatility bit always drags r(t) into negative...
by JackHon
August 11th, 2003, 2:15 am
Forum: Student Forum
Topic: Intensity Based model and Poisson process
Replies: 17
Views: 193832

Intensity Based model and Poisson process

<t>Finally, I have a set of results to work with!Just like to say thanks to both of you kr and Aaron,for taking the time to answer idiotic questions and hopeless queries...I'd read the paper so many times before hand I thought I couldn't have missed it...Thanks for putting me on the right track anyw...
by JackHon
August 9th, 2003, 3:12 pm
Forum: Student Forum
Topic: Intensity Based model and Poisson process
Replies: 17
Views: 193832

Intensity Based model and Poisson process

<t>I've GOT IT!! I've GOT IT!It was in the paper all along!!pg.19"The par coupon rate on a given sinking-fund bond is the scheduled coupon rate c with the property that the initial market value is eqaul to its principal/initial face value F(0)"That's it!Thank you kr!! and Aaron...you've been great h...
by JackHon
August 8th, 2003, 3:29 pm
Forum: Programming and Software Forum
Topic: Random Numbers in C++
Replies: 10
Views: 191576

Random Numbers in C++

<t>I am not sure what you mean luizvus.A deterministic one as in one that changes according to just time?I don't need any underlying volatility factor to drive it like a brownian motion if thats what you mean.I just need it to be the distribution to exhibit a U(0,1) PDF if I draw infinite samples fr...
by JackHon
August 8th, 2003, 3:27 pm
Forum: Technical Forum
Topic: Duffie & Garleanu 'Risk Analysis & Valuation of CDO'
Replies: 2
Views: 190129

Duffie & Garleanu 'Risk Analysis & Valuation of CDO'

<t>KR have kindly pointed out that all I have to do is find the NPV of a tranche, based on the prioritisation scheme and an instance of the underlying assets performance. Then given the default details, the coupon spread is merely the amount needed to pay the tranche back up to par.Any ideas on how ...
by JackHon
August 8th, 2003, 1:57 am
Forum: Student Forum
Topic: Intensity Based model and Poisson process
Replies: 17
Views: 193832

Intensity Based model and Poisson process

<t>>-based on the cashflows to the tranches, you calculate their NPV by discounting; since the tranches may default, you'll need a nonzero >coupon to get the tranche prices up to par.Hmm, I think I have worked this out and sort out my confusion, just to confirm it:--NPV of cashflows(based on an inst...
by JackHon
August 7th, 2003, 1:42 am
Forum: Student Forum
Topic: Intensity Based model and Poisson process
Replies: 17
Views: 193832

Intensity Based model and Poisson process

<t>Thank you kr for taking time to actually read the paper on my behalf, it is very much appreciated..very kind of you.I will now take a bit of time to digest it, although it seems fairly straight forward now that you say it.Basically, the non-zero coupon is just the amount needed to pay up the tran...
by JackHon
August 5th, 2003, 9:14 pm
Forum: Student Forum
Topic: Intensity Based model and Poisson process
Replies: 17
Views: 193832

Intensity Based model and Poisson process

<t>Thanks kr. I did read somewhere that the spread produced were way too low, and in fact the correlation of default risk was also too low. But since I only have three months to reproduce something similiar to Duffie & Garleanu's effort from not even knowing the difference of structural and redu...
by JackHon
August 5th, 2003, 1:09 am
Forum: Technical Forum
Topic: Duffie & Garleanu 'Risk Analysis & Valuation of CDO'
Replies: 2
Views: 190129

Duffie & Garleanu 'Risk Analysis & Valuation of CDO'

Any suggestions?How about pricing of any securitisation notes?Is it a matter of working out the cash flow and then discounting it?But how will I find the par coupon spread for this?
by JackHon
August 4th, 2003, 10:42 pm
Forum: Programming and Software Forum
Topic: Random Numbers in C++
Replies: 10
Views: 191576

Random Numbers in C++

Thanks guys for your replies. I am using Microsoft Visual C++perhaps not the best choice really... and there are so much problems with name space and such that I can't use the Mersenne twister I found on google. Nvm.. thanks anyway.
by JackHon
August 4th, 2003, 9:45 pm
Forum: Student Forum
Topic: Intensity Based model and Poisson process
Replies: 17
Views: 193832

Intensity Based model and Poisson process

<t>I'm not sure what you mean by simulating them separately and adding them together. If probability of jump depends on level of the diffusion process, how can you simulate the jump process on its own?As for correlation, do you mean correlation between different bonds or correlation of diffusion pro...
by JackHon
August 4th, 2003, 6:56 am
Forum: Programming and Software Forum
Topic: Random Numbers in C++
Replies: 10
Views: 191576

Random Numbers in C++

<t>I am trying to write a function which draws a from a U(0,1) uniform distribution. I can use srand() and rand() to do this fairly sufficiently if I were to make just one sample.But as it is, I will be making repeated calls to the function for random numbers. I have planted the seed for srand() wit...
  • 1
  • 2