[ quantlib-Bugs-3426042 ] Sobol 18th inizialization polinomial

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ quantlib-Bugs-3426042 ] Sobol 18th inizialization polinomial

SourceForge.net
Bugs item #3426042, was opened at 2011-10-19 18:47
Message generated for change (Comment added) made by lballabio
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3426042&group_id=12740

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Private: No
Submitted By: giulio (giulioggg)
Assigned to: Nobody/Anonymous (nobody)
Summary: Sobol 18th inizialization polinomial

Initial Comment:
I have an old Sobol code.
Very clear implementation, but poor performance.
I tried to switch to QuantLib\'s one, as it should be better implemented.
But first, I checked they were the same (I mean, different implementation but same results).

I generated 8000 random vectors of dimension between 1 and 32 (because in my old Sobol code I can\'t use more than 32 dimensions).
All output are exactly the same except on the 18th dimension.
i.e.: the 8000 realizations of random vectors with dimension from 1 and 17 are exactly the same, while the 8000 realization of random vector of dimension between 18 and 32 differ only at the 18th component.

If I remember well (sorry but many years have passed since I deal with Sobol sequence), this may be caused from a different 18th inizialization polinomial.

I checked mine, and it is the same as publiched by Jaeckel at page 85 (table 8.3), i.e. 1101101.

Of course I\'m not sure the bug is in your library, but maybe a check can be a good idea ;-)

I attached two files for your convenience, old.txt and new.txt.
Both contain 8000 random vectors of dimension 20.
By comparing such files (for example with WinMerge) you can see the difference on the 18th dimension (the others being exactly the same).

Bye, Giulio

----------------------------------------------------------------------

>Comment By: Luigi Ballabio (lballabio)
Date: 2011-10-21 11:30

Message:
Ok, glad it's solved.  Thanks for putting effort into this.

----------------------------------------------------------------------

Comment By: giulio (giulioggg)
Date: 2011-10-20 13:04

Message:
Solved.
The problem was in my old code.
The initializers polinomials were correct. The problem was in the
direction integers.
At the row 18, instead of (1, 1, 1, 3, 13, 39) I had (1, 1, 1, 3, 13,
13).
Correcting that single istruction was sufficient to reproduce exactly the
same numbers of QuantLib.

Now I don't know. Do I have to put the keyword SOLVED in same place within
this bug report?

In this case, let me know...

Bye

----------------------------------------------------------------------

Comment By: giulio (giulioggg)
Date: 2011-10-19 18:49

Message:
For size limit the files actually attached contain 3000 rows, instead of
8000 (as I wrongly wrote in the post above).

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3426042&group_id=12740

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev