ANALISIS REGRESI
Dr. Vita Ratnasari, S.Si, M.Si
vitaratna70@gmail.com
0817324424
dimana −1 ≤ rxy ≤ 1
Mgg 1 2 3 4 5 6 7 8 9 10
Y 10 6 5 12 10 15 5 12 17 20
X1 1.3 2.0 1.7 1.5 1.6 1.2 1.6 1.4 1.0 1.1
X2 9 7 5 14 15 12 6 10 15 21
22 22
20 20
18 18
16 16
14 14
Y
Y
12 12
10 10
8 8
6 6
4 4
2 2
0.8 1 1.2 1.4 1.6 1.8 2 2.2 2 4 6 8 10 12 14 16 18 20 22 24
X1 X2
1. Hipotesis :
H0 : ρ = 0
H1 : ρ ≠ 0
3. Daerah penolakan :
Tolak H0 jika t > t α ; df =n −2
2
Distribusi y adalah
E ( y x ) =β 0 + β1 xi + ε i
yˆ=
i βˆ0 + βˆ1 xi
yˆi= b0 + b1 xi
Analisis Regresi - MMT ITS Surabaya
Estimasi Parameter
13
yˆi= b0 + b1 xi
b0 = estimasi β 0
= intersep (perpotongan sumbu Y pada saat x=0)
b1 = estimasi β1
= slope atau koefisien kemiringan garis regresi
ˆ i = nilai estimasi atau prediksi variabel dependen
y
pengamatan ke-i
=i 1 =i 1
∑ i i
( y − ˆ
y ) 2
( )
n 2
i =1
∂S ∂S
=0 dan =0
∂β 0 ∂β1
S xy ∑ ( x − x )( y − y )
i i ∑x y −nx y
i i
β=
ˆ
1 b=
1 = i =1
n
= i =1
n
∑ ( xi − x ) ∑i
S xx
−
2 2 2
x n x
=i 1 =i 1
βˆ0 = b0 = y − b1 x
n n
∑ xi ∑ y i
n
i =1 i =1
Sxy = ∑ xi y i − n
i =1
Analisis Regresi - MMT ITS Surabaya
23
2
n
n n
xi ∑
∑
Sxx = ( xi − x )2 = xi2 − i =1
∑
=i 1 =i 1 n
sehingga
S xy
b1 = dan b0= y − b1 x
S xx
MSE
var(b1 ) =
S xx
n 2
∑ xi
var(b0 ) = MSE i =1
nS xx
Analisis Regresi - MMT ITS Surabaya
Inferensia …. (cont)
26
Hipotesis H 0 : β 0 = β 00
H1 : β 0 ≠ β 00
b0 − β 00
thit =
Statistik uji ( )
var βˆ0
SS R egresi
; R =2
1−
[ SSE n − (k + 1) ]
R =
2
SSTotal
adj
[ SSTotal n − 1]
1
VIF =
1 − R2
Iklan Penjualan
Misal diketahui
0.9 91
data biaya iklan
0.8 92
dan jumlah unit
0.8 82
yang terjual tiap 1.3 120
bulan adalah 1.0 93
sebagai berikut : 0.7 90
1.1 105
0.6 75
0.9 91
1.0 110
Analisis Regresi - MMT ITS Surabaya
Pemeriksaan Asumsi
29
Analysis of Variance
Source DF SS MS F P
Regression 1 1300,9 1300,9 36,14 0,000
Residual Error 8 288,0 36,0
Total 9 1588,9
Analysis of Variance
Source DF SS MS F P
Regression 2 1412,91 706,45 28,10 0,000
Residual Error 7 175,99 25,14
Total 9 1588,90
Analisis Regresi - MMT ITS Surabaya
Contoh 2
36
Asal Asal
X Y X Y
Negara Negara
28 13.3 Georgia 26 11.8 Virginia
20 8.9 Georgia 21 11.5 Wisconsin
32 15.1 Georgia 27 14.2 Wisconsin
22 10.4 Georgia 29 15.4 Wisconsin
29 13.1 Virginia 23 13.1 Wisconsin
27 12.4 Virginia 25 13.8 Wisconsin
28 13.2 Virginia