Skip to content
Worked Examples · Example 1
Q.

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

Month12345
Advertising expenditure (xx)12345
Sales (yy)24545
Tamil Nadu DgeTextbookSubjectiveImportance★★★★★
23% · 7/31 Questions
✓ Free question

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 deviations, their product, and their squares.

xxyyx−xˉx-\bar xy−yˉy-\bar y(x−xˉ)(y−yˉ)(x-\bar x)(y-\bar y)(x−xˉ)2(x-\bar x)^2(y−yˉ)2(y-\bar y)^2
12−2−2444
24−10010
3501001
4410010
5521241
Total6106

Step 3 — Apply the formula.

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

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. ∑x2=1+4+9+16+25=55\sum x^2=1+4+9+16+25=55, ∑y2=4+16+25+16+25=86\sum y^2=4+16+25+16+25=86. Using r=n∑xy−(∑x)(∑y)n∑x2−(∑x)2n∑y2−(∑y)2r=\dfrac{n\sum xy-(\sum x)(\sum y)}{\sqrt{n\sum x^2-(\sum x)^2}\sqrt{n\sum y^2-(\sum y)^2}}: numerator =5(66)−(15)(20)=330−300=30=5(66)-(15)(20)=330-300=30; denominator =5(55)−2255(86)−400=5030=1500≈38.73=\sqrt{5(55)-225}\sqrt{5(86)-400}=\sqrt{50}\sqrt{30}=\sqrt{1500}\approx38.73. r≈30/38.73≈0.775r\approx30/38.73\approx0.775 — matches exactly.

✓Final answer

r≈0.775r \approx 0.775, indicating a fairly strong positive correlation between advertising expenditure and sales.

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.