Posted by U.Mutlu on Feb 19, 2016; 8:52am URL: http://quantlib.414.s1.nabble.com/Generating-pairwise-correlated-GBM-data-tp17308p17309.html
U.Mutlu wrote on 02/18/2016 11:11 AM:
>
> 1) Is it possible to generate correlated price data in quantlib
> by using a correlation matrix? (needed for simulations)
> 2) Sometimes there can be a problem with the correlation matrix,
> especially if it is not positive definite, ie. a defective correlation matrix.
> Here's an example for a defective correlation matrix:
> http://blogs.sas.com/content/iml/2012/09/12/when-is-a-correlation-matrix-not-a-correlation-matrix.html > 1.0 0.6 0.9
> 0.6 1.0 0.9
> 0.9 0.9 1.0
> In such cases one has to find a replacement matrix (Nearest Correlation Matrix
> Problem).
> Anybody know of C/C++/C#/Java code or library for computing/finding the
> nearest correlation matrix?
For finding the nearest correlation matrix there exist implementations
for Matlab, R, Python etc, and here I found C code by P. Zaczkowski,
but it seems to have some memory issues (alloc/free) as it throws
sometimes SIGSEGV when I run it (I haven't analyzed/debugged yet):
http://www.math.nus.edu.sg/~matsundf/ "If you need a C/C++ code, download main.c and main.h"
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________
QuantLib-users mailing list
[hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users