Professional Documents
Culture Documents
Regression
analysis
In regression analysis, our objective is to use the data to
position a line that best represents the relationship between
the two variables. Our first approach is to use a scatter
diagram to visually position the line.
Regression analysis
Regression equa-on
Another example:
2.6
3.4
6.2
5.3
3.5
6.5
Score (y)
99
78
83
100
76
100
66
Linear
100
Positive
80
No outliers
60
40
20
r=
i =1
xi
yi
1.5
2.6
3.4
6.2
5.3
3.5
6.5
66
99
78
83
100
76
100
( xi x )( yi y )
(n 1) s x s y
29 602
x=
i =1 i
29
= = 4.14
7
y=
i =1 i
602
= 86
7
x = 4.14
r=
i =1
y = 86
xi
yi
1.5
2.6
3.4
6.2
5.3
3.5
6.5
66
99
78
83
100
76
100
( xi x )( yi y )
(n 1) s x s y
2 ( y y)2
(
y
y
)
( xi x ) i
( xi x )
i
29
602
7
sx =
i=1 ( xi x )
n 1
sy =
2
(
y
y
)
i=1 i
n 1
x = 4.14
r=
i =1
y = 86
(n 1) s x s y
2 ( y y)2
(
y
y
)
( xi x ) i
( xi x )
i
66
-2.64
-20
6.97
400
99
-1.54
13
2.37
169
78
-0.74
-8
0.55
64
83
2.06
-3
4.24
9
100
1.16
14
1.35
196
76
-0.64
-10
0.41
100
100
2.36
14
5.57
196
602
21.46
1134
yi
xi
1.5
2.6
3.4
6.2
5.3
3.5
6.5
29
sx =
( xi x )( yi y )
i=1 ( xi x )
n 1
21.46 = 1.89
=
7 1
sy =
2
(
y
y
)
i=1 i
n 1
1134
= 13.75
=
7 1
x = 4.14
r=
i =1
y = 86
xi
1.5
2.6
3.4
6.2
5.3
3.5
6.5
29
( xi x )( yi y )
(n 1) s x s y
2 ( y y)2
(
y
y
)
( xi x ) ( yi y )
( xi x ) i
( xi x )
i
66
-2.64
-20
6.97
400
99
-1.54
13
2.37
169
78
-0.74
-8
0.55
64
83
2.06
-3
4.24
9
100
1.16
14
1.35
196
76
-0.64
-10
0.41
100
100
2.36
14
5.57
196
602
21.46
1134
sx = 1.89
s y = 13.75
yi
x = 4.14
r=
i =1
y = 86
xi
1.5
2.6
3.4
6.2
5.3
3.5
6.5
29
( xi x )( yi y )
(n 1) s x s y
88.20
= 0.57
=
6 1.89 13.75
2 ( y y)2
(
y
y
)
( xi x ) ( yi y )
( xi x ) i
( xi x )
i
66
-2.64
-20
6.97
400
52.80
99
-1.54
13
2.37
169
-20.02
78
-0.74
-8
0.55
64
5.92
83
2.06
-3
4.24
9
-6.18
100
1.16
14
1.35
196
16.24
76
-0.64
-10
0.41
100
6.40
100
2.36
14
5.57
196
33.04
602
21.46
1134
88.20
sx = 1.89
s y = 13.75
yi
0.57
Positive
Exercise: