Filter löschen
Filter löschen

Runstest and corrcoef : difference and problems

2 Ansichten (letzte 30 Tage)
Damiano Capocci
Damiano Capocci am 31 Mär. 2018
Hi. I have noticed that if i use rand() function to generate for example 2*10^6 numbers and then i evaluate the correlation coefficient through corrcoef() i always obtain good results (null hypothesis not rejected and small values of the non diagonal elements of corr matrix).
On the contrary if i use runstest sometimes i get null hypothesis rejected and consequently small values of pvalue.
Is it a good test choice using runstest to test unif. random numbers?

Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by