Monte Carlo Method with Confidence Interval.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Monte Carlo Method with Confidence Interval.

cypanic
Hi all,
I'm working on an example file, equityOption.cpp. It has some monte carlo simulations. I would like to get confidence intervals, when I do the monte carlo simulations. Is there any way to calculate the confidence interval using Quantlib? If you have any suggestion, please let me know.
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Monte Carlo Method with Confidence Interval.

Luigi Ballabio
On Sat, 2007-09-22 at 02:45 -0700, cypanic wrote:
> Hi all,
> I'm working on an example file, equityOption.cpp. It has some monte carlo
> simulations. I would like to get confidence intervals, when I do the monte
> carlo simulations. Is there any way to calculate the confidence interval
> using Quantlib? If you have any suggestion, please let me know.

option.errorEstimate() should give you the standard error of the
returned NPV.

Luigi



--

Within C++, there is a much smaller and cleaner language struggling to
get out.
-- Bjarne Stroustrup



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev