Beruflich Dokumente
Kultur Dokumente
Y-Axis
X-Axis
Figure 1 Scatter Diagram
r=-1 r=1
r=0
Where:
n= number of ordered pairs in the series.
∑XY= Sum of the product of the pairs.
∑X= Sum of X Values.
∑Y= Sum of Y Values.
∑X2= Sum of square of X Values.
∑Y2= Sum of square of Y Values.
Taking an example where a relationship is examined between the annual expenses of advertisement
and the annual sales. The values of the variables stated in the table below.
Advertisement Annual Sales
Expenses ($M) ($M)
11 21
9 15
7 10
10 20
8 14
5 6
8 10
Taking the Advertisement Expenses as the variable on the X-axis and the Annual Sales variable on the
Y-Axis, the Scatter Graph is plotted as seen in Fig. 3
Annual Sales
25
Advertisement Expenses
20
15
10
0
0 2 4 6 8 10 12
Annual Sales
Figure 3 Scatter Graph
The Scatter graph shows a high strength positive relationship between the variable values, meaning
the calculated “r” is predicted to be a positive value that is close to the integer “1”.
Advertisement Annual Sales XY X2 Y2
Expenses
11 21 231 121 441
9 15 135 81 225
7 10 70 49 100
10 20 200 100 400
8 14 112 64 196
5 6 30 25 36
8 10 80 64 100
Total 58 96 858 504 1498
Table 1
Substituting the values in the equation:
(∑𝑋)(∑𝑋𝑌) − (∑𝑌)(∑𝑋 2 )
𝑏=
(∑𝑋)2 − 𝑛∑𝑋 2
Using the same data in Table 1:
Advertisement Annual Sales X2 Y2 XY
Expenses
(58)(858) − (96)(504)
𝑏= = −8.4146
504 − 7 ∗ 504
Therefore, using
𝑌 = 𝑎𝑋 + 𝑏
𝑌 = 2.6707(𝑋) − 8.4146
Taking x=6
𝑌 = 2.6707(6) − 8.4146 = 7.6
This Table Summarizes the Difference between Correlation and Regression
1
Therefore, r2= (0.9597)2= 0.921 which is 92.1% meaning 92.1% of the points fall within the regression
line.
1
“Correlation and Regression” Surbhi, Key Differences. May 3 2016. Web.