Thursday, 1 January 2009

st.statistics - construct random variable with a fixed level of Spearman Coefficient to another

You don't even need sigma2 to construct such a variable.



Let Z be +1 with probability q, and 1 with probability 1q, and independent of X.



Let Y=eXZ. This squashes X to the positive reals preserving order, and then may change the sign.



y1 and y2 have the same ordering as x1 and x2 when the greater value isn't negated. That is, if x1gtx2, then sign((x1x2)(y1y2))=sign(y1). If x1ltx2, then sign((x1x2)(y1y2))=sign(y2). So, E[sign((x1x2)(y1y2))]=E[Z].



Choose Z to have average value p (set q=frac(p+1)2), and then X and Y have Spearman Rank Correlation Coefficient p.



Actually, there is a little ambiguity (to me) about whether you allow x1=x2, which I ignored above. If under your definition, the rank correlation of X with itself is alpha, then the rank correlation of X with Y is alphap, and you can get any value in [alpha,alpha].

No comments:

Post a Comment