Hi AllI am trying to price a European option on a pure discount bond where the short rate is modeled using a two-factor CIR model. I am using Chen and Scott's paper to adjust the multivariate integral to a univariate integral and am loosely following their approach to evaluate such an integral.I am having difficulty with the standard non-central chi-squared density function on page 9. This formula appears fairly simple to calculate, except for evaluating the modified Bessel function of the first kind.Although I have used a different algorithm from that suggested in the paper to calculate the bessel function, my bessel function appears to be coded correctly - I have compared answers with those on the wolfram site (
http://functions.wolfram.com/webMathema ... me=BesselI).The parameters inputted into this equation also appear correct.Currently the integral is evaluated using Simpson's rule whereby the x increases incrementally from 0 to L2 (or L2Star).Has anyone implemented this function? If so, can you provide any advice (or be willing to look at my VBA code)? There is something obvious that I am missing however I can't find my mistake.Many thanks