Home > Statistical Methods calculators > Covariance - Population Covariance, Sample Covariance example

2. Covariance - Population Covariance, Sample Covariance example ( Enter your problem )
  1. Formula & Example-1 (Class-X & Y)
  2. Example-2 (Class-X & Y)
  3. Example-3 (X & Y)
  4. Example-4 (X & Y)
Other related methods
  1. Correlation Coefficient r
  2. Covariance - Population Covariance, Sample Covariance

1. Correlation Coefficient r
(Previous method)
2. Example-2 (Class-X & Y)
(Next example)

1. Formula & Example-1 (Class-X & Y)





Formula
1. `r = (n * sum xy - sum x * sum y)/(sqrt(n * sum x^2 - (sum x)^2) * sqrt(n * sum y^2 - (sum y)^2))`
2. `r = (sum XY)/(sqrt(sum X^2) * sqrt(sum Y^2))`
3. `r = (n * sum dxdy - sum dx * sum dy)/( sqrt(n * sum dx^2 - (sum dx)^2) * sqrt(n * sum dy^2 - (sum dy)^2))`
4. Population `Cov(x,y)`
1. Population `Cov(x,y) = (sum (x-bar x)(y-bar y))/(n)`
2. Population `Cov(x,y) = (sum dxdy - (sum dx * sum dy)/n)/(n)`
3. Population `Cov(x,y) = (sum xy - (sum x * sum y)/n)/(n)`
5. Sample `Cov(x,y)`
1. Sample `Cov(x,y) = (sum (x-bar x)(y-bar y))/(n-1)`
2. Sample `Cov(x,y) = (sum dxdy - (sum dx * sum dy)/n)/(n-1)`
3. Sample `Cov(x,y) = (sum xy - (sum x * sum y)/n)/(n-1)`

Examples
1. Calculate Population cov(x,y), Sample cov(x,y) from the following data
Class-XY
2 - 43
4 - 64
6 - 82
8 - 101


Solution:
Class-XMid value `x``y``x*y`
2-4339
4-65420
6-87214
8-10919
------------
`sum x=24``sum y=10``sum xy=52`




Population Cov(x,y) :

Population `Cov(x,y) = (sum xy - (sum x * sum y)/n)/(n)`

`=(52 - (24 xx 10)/4)/4`

`=(52 - (240)/4)/4`

`=(52 - 60)/4`

`=(-8)/4`

`=-2`





Sample Cov(x,y) :

Sample `Cov(x,y) = (sum xy - (sum x * sum y)/n)/(n-1)`

`=(52 - (24 xx 10)/4)/3`

`=(52 - (240)/4)/3`

`=(52 - 60)/3`

`=(-8)/3`

`=-2.6667`





This material is intended as a summary. Use your textbook for detail explanation.
Any bug, improvement, feedback then Submit Here



1. Correlation Coefficient r
(Previous method)
2. Example-2 (Class-X & Y)
(Next example)





Share this solution or page with your friends.


 
Copyright © 2024. All rights reserved. Terms, Privacy
 
 

.