[ 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 (Tracker Item Submitted) made by giulioggg
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: Open
Resolution: None
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

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

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@Ciosco 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