Statics
Statics
ASSIGNMENT SET-1
ASSIGNMENTS SET-2
Q.4. The data given below depicts the sales statistics of six
sales representative in two different localities. Find whether
there is a relationship between the buying habits of the people in
the localities.
Representative 1 2 3
Locality I 70 40 65
Locality II 70 30 80
Ans. To determine whether there is a relationship between
the buying habits of the people in Locality I and Locality II, we can
analyse the given data using a statistical method to check for a
correlation. Specifically, we can calculate the correlation
coefficient, which will tell us how strongly the sales figures in
Locality I and Locality II are related.
Given Data:
Representative Locality I Locality II
1 70 70
2 40 30
3 65 80
We need to check if there's a relationship between Locality I
(Sales of Representatives) and Locality II (Sales of
Representatives).
Step 1: Calculate the correlation coefficient
The formula to calculate the Pearson correlation coefficient (rrr)
is:
r=n∑xy−∑x∑y(n∑x2−(∑x)2)(n∑y2−(∑y)2)r = \frac{n \sum{xy} - \sum{x}
\sum{y}}{\sqrt{(n \sum{x^2} - (\sum{x})^2)(n \sum{y^2} -
(\sum{y})^2)}}r=(n∑x2−(∑x)2)(n∑y2−(∑y)2)n∑xy−∑x∑y
Where:
xxx represents the sales figures for Locality I,
yyy represents the sales figures for Locality II,
nnn is the number of data points (here, n=3n = 3n=3).
Step 2: Calculate the necessary sums
From the data, we have:
x1=70,x2=40,x3=65x_1 = 70, x_2 = 40, x_3 = 65x1=70,x2
=40,x3=65
y1=70,y2=30,y3=80y_1 = 70, y_2 = 30, y_3 = 80y1=70,y2
=30,y3=80
Now, let's calculate the necessary sums:
1. Sum of xxx:
∑x=70+40+65=175\sum{x} = 70 + 40 + 65 = 175∑x=70+40+65=175
2. Sum of yyy:
∑y=70+30+80=180\sum{y} = 70 + 30 + 80 = 180∑y=70+30+80=180
3. Sum of x2x^2x2:
x12=702=4900,x22=402=1600,x32=652=4225x^2_1 = 70^2 =
4900, \quad x^2_2 = 40^2 = 1600, \quad x^2_3 = 65^2 = 4225x12
=702=4900,x22=402=1600,x32=652=4225
∑x2=4900+1600+4225=10725\sum{x^2} = 4900 + 1600 + 4225 =
10725∑x2=4900+1600+4225=10725
4. Sum of y2y^2y2:
y12=702=4900,y22=302=900,y32=802=6400y^2_1 = 70^2 = 4900,
\quad y^2_2 = 30^2 = 900, \quad y^2_3 = 80^2 = 6400y12
=702=4900,y22=302=900,y32=802=6400
∑y2=4900+900+6400=12100\sum{y^2} = 4900 + 900 + 6400 =
12100∑y2=4900+900+6400=12100
5. Sum of xyxyxy:
x1y1=70×70=4900,x2y2=40×30=1200,x3y3=65×80=5200x_1y_1 =
70 \times 70 = 4900, \quad x_2y_2 = 40 \times 30 = 1200, \quad
x_3y_3 = 65 \times 80 = 5200x1y1=70×70=4900,x2y2
=40×30=1200,x3y3=65×80=5200 ∑x
y=4900+1200+5200=11300\sum{x y} = 4900 + 1200 + 5200 =
11300∑xy=4900+1200+5200=11300
Step 3: Substitute the values into the formula
Now, substitute these values into the formula for the correlation
coefficient:
r=3×11300−175×180(3×10725−1752)(3×12100−1802)r = \frac{3
\times 11300 - 175 \times 180}{\sqrt{(3 \times 10725 - 175^2)(3
\times 12100 - 180^2)}}r=(3×10725−1752)(3×12100−1802)
3×11300−175×180
Numerator:
3×11300=33900,175×180=315003 \times 11300 = 33900, \quad
175 \times 180 = 315003×11300=33900,175×180=31500
Numerator=33900−31500=2400\text{Numerator} = 33900 - 31500
= 2400Numerator=33900−31500=2400
Denominator:
First, calculate each part of the denominator:
3×10725=32175,1752=306253 \times 10725 = 32175, \quad
175^2 = 306253×10725=32175,1752=30625
3×12100=36300,1802=324003 \times 12100 = 36300, \quad
180^2 = 324003×12100=36300,1802=32400
Now, calculate the denominator:
Denominator=(32175−30625)(36300−32400)=(1550)(3900)=6045
000≈2457.66\text{Denominator} = \sqrt{(32175 - 30625)(36300 -
32400)} = \sqrt{(1550)(3900)} = \sqrt{6045000} \approx.
2457.66Denominator=(32175−30625)(36300−32400)
=(1550)(3900)=6045000≈2457.66
Step 4: Final calculation of rrr
r=24002457.66≈0.976r = \frac{2400}{2457.66} \approx.
0.976r=2457.662400≈0.976
Step 5: Interpretation
The correlation coefficient r≈0.976r \approx. 0.976r≈0.976, which
is very close to +1. This indicates a strong positive relationship
between the sales in Locality I and Locality II. As the sales in
Locality I increase, the sales in Locality II also tend to increase in
a similar pattern.
Conclusion:
There is a strong positive relationship between the buying habits
of the people in Locality I and Locality II, as shown by the high
correlation coefficient of approximately 0.976.