3-Analisis Regresi
3-Analisis Regresi
(REGRESSION ANALYSIS)
Oleh:
Agung Priyo Utomo, S.Si., MT.(agung@stis.ac.id)
Sekolah Tinggi Ilmu Statistik (STIS)
Yi = 0 + 1Xi + i
Dimana i
Contoh:
Sebuah Perusahaan, Westwood Company, sedang
meneliti tentang hubungan antara jumlah sparepart
yang diproduksi (X) dengan jumlah jam kerja yang
diperlukan (Y) dari 10 proses produksi terakhir.
(Data ada di buku Neter and Wasserman, halaman 40)
2 ,n 2)
1 1 s( 1 )t(1
2 ,n 2)
) (1 )100%
X
)
3400
X i 28400 X 2.0 i
2
(
Y
Y
)
13660
i
Sehingga CI
P(1.89 1
Keputusan?
Kesimpulan?
(
Y
Y
)
(
Y
Y
)
(
Y
Y
)
i
i i i
SST
Total Sum of Squares
df
n1
SSE
Error SS
n2
SSR
Regression SS
1
( Yi ) 2
n
(
Xi
)
SSR 12 X i2
ILUSTRASI GEOMETRIS
PARTISI JUMLAH KUADRAT
Yi
Yi
Yi Yi
Yi Y
Y
SS
df
MS
Regression
(Yi Y )2
MSR
2 12 ( X i X ) 2
Error
(
Y
Y
)
i i
n2
MSE
Total
(Yi Y )2
n1
E{MS}
F*
MSR
MSE
13600
60
MSR
13600 dan MSE
7.5
1
8
SS
df
MS
Regression
13600
13600
Error
60
7.5
Total
13660
F*
1813
10
11
KOEFISIEN KORELASI
Linear Correlation Coefficient
( xi x )( yi y )
( xi x )2 ( yi y )2
12
13
14
KOEFISIEN DETERMINASI
R2 = SSR/SST = 100/114 = 0,8772
Artinya:
Hubungan regresi sangat kuat karena 88% variasi mobil
yang terjual dapat dijelaskan oleh banyaknya iklan TV.
KOEFISIEN KORELASI
rx y 0,8772 0,9366
15
rXY = rYX
S
1 r y r
Sx
Hipotesis
H 0 : 1 = 0
H 1 : 1 0
(
y
y
)
i i
Sy
; 1
Sx
i ( xi x)2
setara dengan
2
(
y
y
)
i i
2
i ( xi x)
H0 : = 0
H1 : 0
16
Statistik Uji:
t hitung
r 0
1 r
n2
2
r n2
1 r
~ t n2
Tolak H0 jika
t hitung t
2
;n 2
17
18
Model
1
Variables
Entered
Car Age
a
(y ears)
Variables
Remov ed
.
Method
Enter
Model
1
R
.924a
R Square
.853
Adjusted
R Square
.837
St d. Error of
the Estimate
12.577
19
Error of
prediction
ANOVAb
Model
1
Regression
Residual
Total
Sum of
Squares
8285.014
1423.532
9708.545
df
1
9
10
Mean Square
8285.014
158.170
F
52.380
Sig.
.000a
Is regression Significant?
Model
1
(Constant)
Car Age (y ears)
Unstandardized
Coef f icients
B
St d. Error
195.468
15.240
-20.261
2.800
St andardized
Coef f icients
Beta
-.924
t
12.826
-7.237
Sig.
.000
.000
Slope
Intercept
Agung Priyo Utomo (STIS Jakarta)
20