Home   >   User Resources   >   Online Help   >   apaCorrels.Randomize
 

 

Function index Version 3.0.0

apaCorrels.Randomize(CorrelMat, Degree)

Excel=apaCorrels.Randomize(CorrelMat, Degree)

Result

Perturbs a correlation matrix in a random manner without rendering it invalid, by shrinking it towards a random correlation matrix.

Syntax

CorrelMat: n x n valid correlation matrix

Degree: degree of randomization between 0 and 1

Remarks

  • The resulting correlation matrix is always valid.

  • The random correlation values do not follow a particular distribution (i.e. they are also not uniformly distributed in [-1, 1]).

  • A degree of 100% generates a completely random correlation matrix, as apaCorrels.Random does.