In: Statistics and Probability
1). Use the data given below to answer the following questions
Observation | Height (X1) | Weight (X2) |
1 | 69 | 153 |
2 | 69 | 175 |
3 | 68 | 155 |
4 | 65 | 150 |
5 | 72 | 143 |
6 | 62 | 140 |
7 | 66 | 132 |
8 | 65 | 130 |
9 | 76 | 145 |
10 | 63 | 145 |
i) Evaluate the sample covariance for the height and weight
ii) Find the sample correlation of the two variables.
(i)
X Y XY X2 Y2
69 153 10557 4761 23409
69 175 12075 4761 30625
68 155 10540 4624 24025
65 150 9750 4225 22500
72 143 10296 5184 20449
62 140 8680 3844 19600
66 132 8712 4356 17424
65 130 8450 4225 16900
76 145 11020 5776 21025
63 145 9135 3969 21025
--------------------------------------------------------------------------------------------
675 1468 99215 45725 216982
n = 10
So,
Covariance (X,Y) = pXY is given by:
So,
pXY = 125.001/9 = 13.889
So,
Sample Covariance = 13.889
(ii)
X Y XY X2 Y2
69 153 10557 4761 23409
69 175 12075 4761 30625
68 155 10540 4624 24025
65 150 9750 4225 22500
72 143 10296 5184 20449
62 140 8680 3844 19600
66 132 8712 4356 17424
65 130 8450 4225 16900
76 145 11020 5776 21025
63 145 9135 3969 21025
--------------------------------------------------------------------------------------------
675 1468 99215 45725 216982
So,
Sample correlation = 0.2549