2. Calculate Population cov(x,y), Sample cov(x,y) from the following data
Class-X | Y |
20 - 25 | 110 |
25 - 30 | 170 |
30 - 35 | 80 |
35 - 40 | 45 |
40 - 45 | 40 |
45 - 50 | 35 |
Solution:
Mean `bar x = (sum x_i)/n`
`=(22.5+27.5+32.5+37.5+42.5+47.5)/6`
`=210/6`
`=35`
Mean `bar y = (sum y_i)/n`
`=(110+170+80+45+40+35)/6`
`=480/6`
`=80`
Class-X | Mid value `x` | `y` | `X=(x-35)/1` | `Y=(y-80)/5` | `X*Y` |
20-25 | 22.5 | 110 | -12.5 | 6 | -75 |
25-30 | 27.5 | 170 | -7.5 | 18 | -135 |
30-35 | 32.5 | 80 | -2.5 | 0 | 0 |
35-40 | 37.5 | 45 | 2.5 | -7 | -17.5 |
40-45 | 42.5 | 40 | 7.5 | -8 | -60 |
45-50 | 47.5 | 35 | 12.5 | -9 | -112.5 |
--- | --- | --- | --- | --- | --- |
| `210` | `480` | `sum X=0` | `sum Y=0` | `sum X*Y=-400` |
Population Cov(x,y) :
Population `Cov(x,y) = (sum (x-bar x)(y-bar y))/(n)`
`=-400/6`
`=-66.6667`
Sample Cov(x,y) :
Sample `Cov(x,y) = (sum (x-bar x)(y-bar y))/(n-1)`
`=-400/5`
`=-80`
This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then