TEST of correlation
TEST of correlation
S xy
Ans 1. sample correlation coefficient= 1
( S xx S yy ) 2
for 200 samples∈form of ( x , y )
(−2 , 2 ) occurs50׿
( 0 , 0 ) occurs 90׿
( 2 ,−1 ) occurs 60׿
¿−320
∑ X i=50 (−2 ) +90 ( 0 ) +60 ( 2 )
¿ 20
∑ Y i=50 ( 2 ) + 90 ( 0 ) +60 (−1 )
¿ 40
¿ 440
∑ X ∑Y ( 20 ( 40 ) )
hence , S xy =∑ XY − =−320− =−324
n 200
2 ( ∑ X )2 ( 20 2 )
S xx =∑ X − =440− =438
n 200
( ∑ Y )2 402
S yy =∑ Y 2− =260− =252
n 200
−324
therefore , r= 1
=−0.975
( 438∗252 ) 2
H 1 : ρ>0
r ( √ n−2 ) r ( √ 10−2 )
then ,test statistics value= =
√ 1−r 2
√ 1−r 2
¿ , for one tailed test p−value is
(
p t n−2 >
r ( √10−2 )
√ 1−r 2 ) =0.025
( √
( (√
p t 8>
r 10−2 )
1−r
2 ))
=0.025
r ( √10−2 )
=2.306
√ 1−r 2
√
1
then ,r = =0.631
8
1+ 2
( 2.306 )
hence , sample correlation coefficient must be 0.631