correlationTest

Performs the correlation test

Return

the test statistic

Parameters

rng

the thing that produces U(0,1) numbers, must not null

lag

the lag to test

n

the number to sample