Skip to content
Worked Examples · Example 2

Q.Using the same advertising expenditure and sales data as Worked Example 1, find Pearson's correlation coefficient between the two variables.

West Bengal WbchseTextbookSubjectiveImportance★★★★★est
67% · 8/12 Questions
✓ Free question

We use r=∑(x−xˉ)(y−yˉ)∑(x−xˉ)2∑(y−yˉ)2r = \dfrac{\sum(x-\bar{x})(y-\bar{y})}{\sqrt{\sum(x-\bar{x})^2}\sqrt{\sum(y-\bar{y})^2}}, reusing the deviations already tabulated in Worked Example 1 (xˉ=3,yˉ=4\bar{x}=3,\bar{y}=4).

Step 1 — Recall the cross-product sum. From Worked Example 1, ∑(x−xˉ)(y−yˉ)=6\sum(x-\bar{x})(y-\bar{y}) = 6.

Step 2 — Find ∑(x−xˉ)2\sum(x-\bar{x})^2 and ∑(y−yˉ)2\sum(y-\bar{y})^2.

x−xˉx-\bar{x}(x−xˉ)2(x-\bar{x})^2y−yˉy-\bar{y}(y−yˉ)2(y-\bar{y})^2
−24−24
−1100
0011
1100
2411
Total106

Step 3 — Apply the formula.

r=6106=660=67.746≈0.775r = \dfrac{6}{\sqrt{10}\sqrt{6}} = \dfrac{6}{\sqrt{60}} = \dfrac{6}{7.746} \approx 0.775

Independent check (via covariance and standard deviations). Var(x)=10/5=2\text{Var}(x) = 10/5 = 2, Var(y)=6/5=1.2\text{Var}(y) = 6/5 = 1.2, so σx=2≈1.414\sigma_x = \sqrt{2} \approx 1.414, σy=1.2≈1.095\sigma_y = \sqrt{1.2} \approx 1.095. Using Cov(x,y)=1.2\text{Cov}(x,y) = 1.2 from Worked Example 1, r=1.2/(1.414×1.095)=1.2/1.549≈0.775r = 1.2/(1.414\times1.095) = 1.2/1.549 \approx 0.775 — matches exactly.

✓Final answer

r≈0.775r \approx 0.775

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.