Skip to content
Prev 313137 / 398506 Next

Anomalous outputs from rbeta when using two different random number seeds

On 06/12/2012 11:00, Jonathan Minton wrote:
The 'anomaly' is in your expectation.  There is no reason why random 
variate streams for similar but different distributions started at the 
same seed should be similar or dissimilar.  They will be 
deterministically related if inversion is used (for continuous 
distributions), but not if rejection is used.  If you consider the 
sequential order of your examples you will see that over parts of the 
period the two generators are in step, and for parts they are not.

R is Open Source so you can read the algorithm and work out why for 
yourself.