2-Analisis Regresi
2-Analisis Regresi
(REGRESSION ANALYSIS)
Oleh:
Agung Priyo Utomo, S.Si., MT.(agung@stis.ac.id)
Sekolah Tinggi Ilmu Statistik (STIS)
Yi = 0 + 1Xi + i
(i = 1, 2, , n)
dimana :
Yi merupakan nilai dari variabel dependent pada
observasi ke-i
0 dan 1 merupakan parameter model
i merupakan komponen error
(pengaruh variabel bebas lain selain variabel X)
Xi adalah nilai variabel bebas X pada observasi ke-i
n adalah banyaknya data observasi (sampel)
Beberapa Asumsi
E(i) = 0
PENDUGAAN/ESTIMASI PARAMETER
METODE ESTIMASI
PADA REGRESI LINIER
MAXIMUM LIKELIHOOD
METHOD
LEAST SQUARES
METHOD
Ordinary Least
Squares (OLS)
Generalized Least
Squares (GLS)
Prinsipnya: Min i2
i
Pada model regresi linear sederhana dengan asumsi
yang telah diberlakukan, maka dipakai Metode OLS
untuk mengestimasi parameter model
Estimasi Parameter
0 y 1x
S xy
S xx
( x x)( y y)
( x x)
i
20
y = 5x + 10
15
10
5
0
0
1 Banyaknya2Iklan TV
10
160
140
120
100
80
60
40
20
0
0
11
12
XX
XY
b1
S XY 408.909
20.26
S XX
20.182
1
1
b0 ( Y b1 X)
(975 ( 20.26)(58)) 195.47
n
10
Re gressionEquation :
Y 195.47 20.26X
As the age increasesthe price decreases.
For a singleyear increasein age the price decreasesby $ 2026
13
14
16
Residual
Age
(yrs)
Xi
5
4
6
5
5
5
6
6
2
7
7
58
Price
($100s)
Estimated
Mean
Response
Yi
Y
i
85
103
70
82
89
98
66
95
169
70
48
975
Residual
Squared
Residual
e i Yi Y
i
)2
e i2 (Yi Y
i
-9
-11
-4
-12
-5
4
-8
21
14
16
-6
0
84
131
15
148
27
15
63
445
197
267
32
1424
94
114
74
94
94
94
74
74
155
54
54
975
17
18
19