BMA3102 Topic One
BMA3102 Topic One
II
Gabriel Kamau
078928605
gabkkamau@gmail.com
Brief Outline
18
16
14
12
10
0
0 2 4 6 8 10 12 14
Perfect negative
70
60
50
40
30
20
10
0
0 2 4 6 8 10 12 14
Cont...
ii) Part correlation: In this case not all points are on the
best line of fit i.e. not all changes in the dependent can
be explained by changes in the independent. There are
four types:
a) Strong positive correlation
b) Strong negative correlation
c) Weak positive correlation
d) Weak negative correlation
Strong positive correlation
25
20
15
10
0
0 2 4 6 8 10 12 14
Strong negative correlation
30
25
20
15
10
0
0 2 4 6 8 10 12 14
Weak positive correlation
35
30
25
20
15
10
0
0 2 4 6 8 10 12
Weak negative correlation
90
80
70
60
50
40
30
20
10
0
0 5 10 15 20 25 30
iii) No Correlation: in this case the variables do not
show any trend of relationship
Eg1. The following data relates to the cost of advertising
(000Rwf) and sales (0000rwf) for XYZ ltd.
𝑛Σ𝑥𝑦 − Σ𝑥Σ𝑦
𝑟=
𝑛Σ𝑥 2 − Σ𝑥 2 ∗ 𝑛Σ𝑦 2 − Σ 2
Eg2. Calculate the product moment coefficient for the
following. Comment on your answer.
X 1 5 6 7 9 10 12 14 16
Y 10 10 8 9 7 10 6 4 2
Using scientific calculator
• Step one: CLEAR THE MEMORY
Shift Mode 3(all) =
• Step two: ENTER DATA
Mode 3(reg) 1(lin)
Then enter data x and its y
X1 , y1 M+
X2 , y2 M+
• Step three :Obtaining results
Finding summations: shift 1
Eg Σxy: shift 1 scroll until u see Σxy 3 =
Finding r: shift 2 scroll until u see r 3 =
1.4 Spearman Rank coefficient of
correlation
•Also known as rank coefficient of correlation.
•It is symbolized by R and also lies between -1 and +1.
6 d 2
•R= 1-
n n 2 1
Judge2 1 3 5 6 8 2 7 4
Judge2 29 37 20 40 36 35 25 45
•Note: if there is a tied rank, the formula is adjusted to
take care of the tied ranks.
3
2 Σ 𝑡 −𝑡
6Σ𝑑 +
𝑅 =1− 12
𝑛 𝑛2 − 1
Contesta A B C D E F G H
nt
Judege1 48 35 20 47 38 30 35 42
Judge2 29 37 20 40 36 35 25 45
1.5 Method of Least Square
Σy = an + bΣx
Σxy = aΣx + bΣx2
where a= y-intercept
b=gradient(coefficient of regression)
y= dependent variable
x= independent variable
Eg6. Determine the regression equation of
Y on X. Find y hat when x=4
X 1 3 5 6 7 9 10 10
Y 2 6 8 10 6 10 8 12
ii) Using direct method
a=Σy- bΣx
n
b=n Σxy - ΣxΣy
nΣx2-(Σx)2
iii) Using calculator
• Step one: CLEAR THE MEMORY
Shift Mode 3(all) =
• Step two: ENTER DATA
Mode 3(reg) 1(lin)
Then enter data x and its y
X1 , y1 M+
X2 , y2 M+
• Step three :Obtaining results
Finding A: shift 2 scroll until you see A 1 =
Finding B: shift 2 scroll until you see B 2 = Finding r: shift 2 scroll
until you see r 3 =
•Finding y hat: x shift 2 scroll until you see y hat 2 =
Coefficient of determination (r2)
Produc 20 26 26 18 40 44 42 38 36
tion
cost
No. of 10 20 26 20 38 35 36 26 20
units