比方说,两个序列x, y. 它们可以本来就相关也可以独立。现在我想指定一个-1到+1的数字(比如0.3)做它们的相关系数,但是又要求它们不改变均值,程序应该怎么写。如果扩展到三个序列,程序应该怎么写。
问题起源于P11 of EW2012RFS, 原文是这么说的:
we then multiply the vector (x,y) by our data estimate of the square root of cov(x,y), which we calculate via an eigenvalue decomposition. This last procedure has a negligible effect on the persistence of (x,y).