Skip to content
Worked Examples · Example 1
Q.

The monthly advertising expenditure (xx, in ₹'000) and the corresponding sales (yy, in ₹ lakh) of a small company over 5 months are given below. Find the covariance between advertising expenditure and sales.

Month12345
Advertising expenditure (xx)12345
Sales (yy)24545
West Bengal WbchseTextbookSubjectiveImportance★★★★★est
58% · 7/12 Questions
✓ Free question

Since each month contributes a pair of values (x,y)(x,y), this is bivariate data, and covariance is found using Cov(x,y)=1n∑(xi−xˉ)(yi−yˉ)\text{Cov}(x,y) = \dfrac{1}{n}\sum(x_i-\bar{x})(y_i-\bar{y}).

Step 1 — Find the means. xˉ=1+2+3+4+55=155=3\bar{x} = \dfrac{1+2+3+4+5}{5} = \dfrac{15}{5} = 3. yˉ=2+4+5+4+55=205=4\bar{y} = \dfrac{2+4+5+4+5}{5} = \dfrac{20}{5} = 4.

Step 2 — Tabulate the deviations and their product.

xxyyx−xˉx-\bar{x}y−yˉy-\bar{y}(x−xˉ)(y−yˉ)(x-\bar{x})(y-\bar{y})
12−2−24
24−100
35010
44100
55212
Total6

∑(x−xˉ)(y−yˉ)=4+0+0+0+2=6\sum(x-\bar{x})(y-\bar{y}) = 4+0+0+0+2 = 6.

Step 3 — Divide by nn.

Cov(x,y)=65=1.2\text{Cov}(x,y) = \dfrac{6}{5} = 1.2

Independent check (direct method). ∑xy=1(2)+2(4)+3(5)+4(4)+5(5)=2+8+15+16+25=66\sum xy = 1(2)+2(4)+3(5)+4(4)+5(5) = 2+8+15+16+25 = 66. Then 1n∑xy−xˉyˉ=665−(3)(4)=13.2−12=1.2\dfrac{1}{n}\sum xy - \bar{x}\bar{y} = \dfrac{66}{5} - (3)(4) = 13.2 - 12 = 1.2 — matches exactly.

✓Final answer

Cov(x,y)=1.2\text{Cov}(x,y) = 1.2

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.