 |
|
| Science Forum Index » Space - Consult Forum » I have problem with a Spearman index and relative P... |
|
Page 1 of 1 |
|
| Author |
Message |
| thegenius... |
Posted: Sun Oct 18, 2009 3:29 am |
|
|
|
Guest
|
on a book I have find this example, but isn't explain
this is my data
product taste cooking price
A 1 3 3
B 2 1 4
C 4 5 5
D 3 2 2
E 5 4 1
taste 1=better 5=worst
cooking 1=better 5=worst
price 1=expensive 5=cheaper
I have find on book this results about P matrix
1,00 0,60 0,40
P = 0,60 1,00 -0,30
0,40 -0,30 1,00
but i have try to calculate:
product taste cooking d d^2
A 1 3 -2 4
B 2 1 1 1
C 4 5 -1 1
D 3 2 1 1
E 5 4 1 1
sum d^2=8
product taste price d d^2
A 1 3 -2 4
B 2 4 -2 4
C 4 5 -1 1
D 3 2 1 1
E 5 1 4 16
sum d^2=26
product cooking price d d^2
A 3 3 0 0
B 1 4 -3 9
C 5 5 0 0
D 2 2 0 0
E 4 1 3 9
sum d^2=18
1,00 0,60 -0,30
P = 0,60 1,00 0,10
-0,30 0,10 1,00
this is my results
where is my error? |
|
|
| Back to top |
|
|
|
| Ray Koopman... |
Posted: Sun Oct 18, 2009 9:24 am |
|
|
|
Guest
|
On Oct 18, 2:29 am, thegenius <cezann... at (no spam) tiscali.it> wrote:
[quote:3a21c6fdab]on a book I have find this example, but isn't explain
this is my data
product taste cooking price
A 1 3 3
B 2 1 4
C 4 5 5
D 3 2 2
E 5 4 1
taste 1=better 5=worst
cooking 1=better 5=worst
price 1=expensive 5=cheaper
I have find on book this results about P matrix
1,00 0,60 0,40
P = 0,60 1,00 -0,30
0,40 -0,30 1,00
but i have try to calculate:
product taste cooking d d^2
A 1 3 -2 4
B 2 1 1 1
C 4 5 -1 1
D 3 2 1 1
E 5 4 1 1
sum d^2=8
product taste price d d^2
A 1 3 -2 4
B 2 4 -2 4
C 4 5 -1 1
D 3 2 1 1
E 5 1 4 16
sum d^2=26
product cooking price d d^2
A 3 3 0 0
B 1 4 -3 9
C 5 5 0 0
D 2 2 0 0
E 4 1 3 9
sum d^2=18
1,00 0,60 -0,30
P = 0,60 1,00 0,10
-0,30 0,10 1,00
this is my results
where is my error?
[/quote:3a21c6fdab]
Your correlations are right. The book's are wrong. |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Mon Nov 30, 2009 8:09 am
|
|