P-Value for Correlation Comparison: Using SAS/SPSS

  • Thread starter Thread starter zli034
  • Start date Start date
  • Tags Tags
    Correlation Test
zli034
Messages
106
Reaction score
0
Say I have 2 separate predictor variables x and y.

And the response variable is z. The correlation between x and z is a; the correlation between y and z is b.

How to get the p-value for a = b? By using SAS or SPSS.

I believe we should use t-test. Because the correlation analysis for only 1 correlation is significant or not is compared to 0 by t-test.

I kind have some ideas to work this out on paper, but it is complicated to perform and consider normality, variances, and degree of freedom. I'm looking for a software package to do this simply.
 
Physics news on Phys.org
You should be able to "trick" the software, by running the regression

Z = b0 + b1 D + b2 W + b3 X + u

where
Z = [z z]'
D = [0 1]'
W = [y x]'
X = [0 x]'
0 is the zero vector
1 is a vector of 1's (sometimes called a summation vector)
u is the random error.

The t statistic of b3 is a test of whether the regression coefficient on y is different from that on x. However, a regression coefficient is not the same as a correlation coefficient, although they are very similar; and you'll need to scale your data (with the appropriate standard deviation ratio) to manipulate the software to produce a correlation coefficient "under the guise" of a regression coefficient.
 
Last edited:
What is the theory behind this?
 
zli034 said:
What is the theory behind this?
To be general about it, the "theory" is the linear regression model, or even more generally, linear optimization. However, I suspect you are asking a more specific question. The model I've suggested is a shortcut for performing the Chow test for pooling of two datasets.
 
Last edited:
Cool. I'll beware of this Chow test
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...

Similar threads

Back
Top