Serving the Quantitative Finance Community

 
User avatar
tibbar
Topic Author
Posts: 10
Joined: November 7th, 2005, 9:21 pm

random number generators

February 15th, 2008, 11:49 pm

Which is the best algorithm? GSL seems to suggest ranlux, others say it's ran2 from numerical recipes... Some convergence testing I did seems to suggest ranlux is a lot better.
 
User avatar
Stylz
Posts: 1
Joined: May 18th, 2005, 12:14 pm

random number generators

February 18th, 2008, 7:42 pm

mersenne twister is the best quasi-random out there IMHO
 
User avatar
ExSan
Posts: 495
Joined: April 12th, 2003, 10:40 am

random number generators

February 18th, 2008, 7:59 pm

"Which is the best algorithm? GSL seems to suggest ranlux, others say it's ran2 from numerical recipes... Some convergence testing I did seems to suggest ranlux is a lot better. "ExSan uses core code from Numerical Recipes in C++ 2nd Ed. You may use the attached program that generates random numbers for your final evaluation.MENU: 1 Generate Random NumbersRAND MENU1 Uniform Random Deviate between 0.0 and 1,2 Normally distributed deviate N(0, 1) ,3 Exponential,4 Pareto,5 Gamma,6 Poisson Deviates, 7 Correlated Random Numbers,8 Log Normal Distributed Random number,9 Fisher Distributed Random Numbers,10 Hyperbolic Distributed Random Numbers ...men at work,b Simulating Geometric Brownian Motion, !NEWo Simulating Ornstein-Uhlenbeck Process, !NEWv Simulating Interest Rates with the Vasicek Model, !NEWs Simulating the Schwartz Type 1 Stochastic Process, !NEWFrom the download-able file extract executable EXSAN to your desktop.The very first time EXSAN is executed it will create the default input/output directory c:\exsanIn order to access this directory START / RUN and type in c:\exsan
Attachments
RandomNumbersExSan3.18.f.zip
(1.41 MiB) Downloaded 85 times
Last edited by ExSan on November 21st, 2008, 11:00 pm, edited 1 time in total.
 
User avatar
Cuchulainn
Posts: 22933
Joined: July 16th, 2004, 7:38 am

random number generators

February 18th, 2008, 8:08 pm

QuoteOriginally posted by: Stylzmersenne twister is the best quasi-random out there IMHOThat's the one, for the moment. (sequential C++)
Last edited by Cuchulainn on February 17th, 2008, 11:00 pm, edited 1 time in total.
 
User avatar
AVt
Posts: 90
Joined: December 29th, 2001, 8:23 pm

random number generators

February 18th, 2008, 8:19 pm

and to be used for what?
 
User avatar
tibbar
Topic Author
Posts: 10
Joined: November 7th, 2005, 9:21 pm

random number generators

February 18th, 2008, 9:42 pm

Mainly risk management Monte Carlo models (large models, lots of heavy tailed distributions with correlation). Interested in percentiles and conditional tail expectation of various outputs.robsan7 - that's the ran2 I've already tested - seems to slower poor convergence compared to ranlux.I'm trying the twister one at moment. Looks good so far. Thanks guys.
 
User avatar
Zedr0n
Posts: 1
Joined: April 6th, 2007, 5:07 am

random number generators

February 19th, 2008, 5:21 am

I've kinda thought that for Monte Carlo low discrepancy numbers are better than quasi-random, no?
 
User avatar
tibbar
Topic Author
Posts: 10
Joined: November 7th, 2005, 9:21 pm

random number generators

February 19th, 2008, 8:04 am

You mean quasi are better than pseudo ;-)Of course, but when the dimensionality gets high, you need a back up plan...
 
User avatar
Zedr0n
Posts: 1
Joined: April 6th, 2007, 5:07 am

random number generators

February 19th, 2008, 2:38 pm

Yes, sure hm, mersenne twister is definitely pseudo-random then, not quasi-random.
 
User avatar
ExSan
Posts: 495
Joined: April 12th, 2003, 10:40 am

random number generators

April 20th, 2012, 10:28 am

This website offers true random numbers to anyone on the internet. The random numbers are generated in real-time in lab by measuring the quantum fluctuations of the vacuumQuantum Random Numbers
Last edited by ExSan on April 19th, 2012, 10:00 pm, edited 1 time in total.
 
User avatar
Traden4Alpha
Posts: 3300
Joined: September 20th, 2002, 8:30 pm

random number generators

April 20th, 2012, 1:20 pm

QuoteOriginally posted by: ExSanThis website offers true random numbers to anyone on the internet. The random numbers are generated in real-time in lab by measuring the quantum fluctuations of the vacuumQuantum Random NumbersI sincerely hope that they don't let two people use the same numbers or the long-distance correlations could get quite spooky.
 
User avatar
Cuchulainn
Posts: 22933
Joined: July 16th, 2004, 7:38 am

random number generators

April 20th, 2012, 1:30 pm

and here
 
User avatar
animeshsaxena
Posts: 18
Joined: June 19th, 2008, 2:56 pm

random number generators

April 21st, 2012, 9:42 am

and no one said sobol