Anda di halaman 1dari 8

RESISTANT LINE

A. Pengertian Resistant Line


Resistant line atau garis resisten adalah salah satu metode EDA yang penting untuk
menyesuaikan model regresi. Velleman dan Hoaglin menyarankan pemasangan garis
resisten sebelum menggunakan regresi kuadrat terkecil untuk melihat apakah
hubungan itu linier dan untuk mengidentifikasi adanya outlier. Garis resisten berguna
apabila data mengandung outlier yang akan sangat memengaruhi rata-rata elemen
pertama atau kedua dalam set data dua variabel.

Kotak dialog hitam


 Respons: Memilih kolom yang berisi variabel respons (Y). Setidaknya terdapat
enam pengamatan, tetapi lebih baik sembilan pengamatan atau lebih.
 Predictor: Memilih kolom yang berisi variabel prediktor (X).
 Jumlah iterasi maksimum: Menentukan jumlah iterasi maksimum yang digunakan
untuk menemukan solusi, standarnya adalah 10. Prosedur ini akan berhenti
sebelum jumlah iterasi yang ditentukan jika nilai kemiringan (slope) tidak
banyak berubah.

Proses iterasi ini dapat dihentikan jika nilai b n+1 sudah cukup kecil. Sebagai patokan,
jika nilainya sudah lebih kecil dari 1% kali nilai b awal

B. Tujuan
Tujuan dari adanya garis resisten adalah untuk mengenali trend hubungan linear
antara dua peubah yang tidak banyak berpengaruh oleh adanya data pencilan.

C. Prosedur Umum
Bila terdapat data dengan dua peubah, yaitu X dan Y, maka prosedur membuat
resistant line adalah sebagai berikut.
1. Mengurutkan data dari data terkecil berdasarkan nilai peubah X
2. Membagi data menjadi tiga bagian.
3. Menghitung nilai median dari data X dan Y pada setiap bagian. Misalnya
diperoleh (mx1 , my1), (mx2 , my2), dan (mx3 , my3).
4. Menentukan intersep (a) dan kemiringan (b), dengan
( my1 +my 2+ my3 ) −b ( mx1 +mx 2+ mx3 )
a=
3
my
( 3 −my 1)
b=
( mx3 −mx1 )
5. Membuat garis resisten, dimana garis resiten adalah garis lurus dengan persamaan
Y=a+Bx

1
D. Variabel
Adapun variabel yang sesuai untuk metode resistant line adalah sebagai berikut.

1. Variabel 1&2
2. Variabel 3&5
3. Variabel 8&6
4. Variabel 7&10
5. Variabel 11&12
6. Variabel 13&14

2
Variabel 1 & 2: CRIM & ZN

MTB > RLine 'CRIM' 'ZN';


SUBC> MaxIterations 10;
SUBC> Brief 4.

Resistant Line Fit: CRIM versus ZN

Slope = 0.2593 Level = 0.1314 Half-slope ratio = *

Scatterplot of CRIM vs ZN
120 Median x1 = 0
100 Median y1 = 0.0551
80
Median x2 = 0
0
CRIM

60
Linear (0) Median y2 = 0.2565
40
f(x) = 0.11 x − 16.65 Median x3 = 25
20 R² = 0.48
Median y3 = 7.0226
0
0 100 200 300 400 500 600
ZN

Interpretasi :
1. Berdasarkan pencaran titik pada gambar Scatterplot di atas, terlihat adanya suatu
pola garis lurus tertentu.
2. Dengan tahapan untuk memperoleh Resistent Line, didapat koefisien a dan b
sebagai berikut:
(my ¿ ¿ 3−my2 ) 7.0226 – 0.00551
b= ¿= = 0.2787
(mx ¿ ¿ 3−mx 2) ¿ 25 – 0

(0.0551+0.2565+7.0226) – 0.2787 (0+0+25)


a = (my ¿ ¿ 1+ my2 +my 3)−b ¿ ¿ ¿ = =
3
0.12223
3. Sehingga persamaan Resistent Line yang didapat adalah sebagai berikut:
Y = 0.12223 + 0.2787X

3
Variabel 3 & 5: INDUS & NOX

Welcome to Minitab, press F1 for help.


MTB > RLine 'NOX' 'INDUS';
SUBC> MaxIterations 10;
SUBC> Brief 4.

Resistant Line Fit: NOX versus INDUS


Straightness check - Left half-slope = 0.016797
Right half-slope = 0.015828 Ratio = 0.942

Slope 1 = 0.016143
Slope 2 = 0.015412
Slope 3 = 0.015462

Slope = 0.0155 Level = 0.3885 Half-slope ratio = 0.942

Scatterplot of INDUS vs NOX


1
Median x1 : 3.97
0.9 Interpretasi: Median y1 : 0.442
0.8
0.7f(x) = 0.01 x + 0.41
1. Berdasarkan
0.6R² = 0.58 pencaranMediantitikx2 : 9.69
NOX
NOX

0.5
Linear (NOX)
pada gambary2
Median : 0.524
0.4
0.3 Scatterplot di
0.2 atas, Median
terlihatx3 : 18.1
0.1
0 adanya Median
suatuy3 : 0.71
0 5 10 15 20 25 30 pola garis lurus
INDUS tertentu
2. Dengan tahapan
untuk
memperoleh Resistent Line, didapat koefisien a dan b sebagai berikut:
(my 3−my 1) 0.672−0.442
b= = =0.016207
(mx 3−mx1 ) 18.1−3.97
( my1 +my 2+ my3 ) −b ( mx1 +mx 2+ mx3 ) 1.676−( 0.016207 )( 31.76 )
a= = =0.274092
3 3
3. Sehingga persamaan Resistent Line yang diperoleh adalah sebagai berikut:
Y=0.274+0.016X
Variabel 8 & 6 : DIS & RM

Welcome to Minitab, press F1 for help.


MTB > RLine 'RM' 'DIS';
SUBC> MaxIterations 10;

4
SUBC> Brief 4.

Resistant Line Fit: RM versus DIS

Straightness check - Left half-slope = 0.072920


Right half-slope = 0.050092 Ratio = 0.687

Slope 1 = 0.057449
Slope 2 = 0.057143
Slope 3 = 0.057193

Slope = 0.0571 Level = 5.9946 Half-slope ratio = 0.687

Median x1 : 1.8498
Scatterplot of DIS vs RM
10
Median y1 : 6.103
9 Median x2 : 3.2074
8
7 Median y2 : 6.202
6 f(x) = 0.07 x + 6.02
R² = 0.04
5 Median x3 : 6.0622
RM

4 Linear ()
3 Median y3 : 6.345
2
1
0
0 2 4 6 8 10 12 14

DIS

Interpretasi :
1. Berdasarkan pencaran titik pada Scatterplot di atas, terlihat adanya suatu pola
garis lurus tertentu.
2. Dengan tahapan untuk memperoleh garis resisten, didapat kemiringan (b) dan
intersep (a) sebagai berikut.
(my 3−my 1) 6.345−6.103
b= = =0.0574
(mx 3−mx1 ) 6.0622−1.8498
( my1 +my 2+ my3 ) −b ( mx1 +mx 2+ mx3 ) 18.65−( 0.0574 )( 11.1194 )
a= = =6.0037
3 3
3. Sehingga persamaan resistant line yang diperoleh adalah Y=6.0037+ 0.0574X

Variabel 10 & 7 : TAX & AGE

Welcome to Minitab, press F1 for help.


MTB > RLine 'AGE' 'TAX';
SUBC> MaxIterations 10;
SUBC> Brief 4.

5
Resistant Line Fit: AGE versus TAX
Straightness check - Left half-slope = 0.138793
Right half-slope = 0.096076 Ratio = 0.692

Slope 1 = 0.102239
Slope 2 = 0.117695
Slope 3 = 0.110276
Slope 4 = 0.110226

Slope = 0.1103 Level = 23.7910 Half-slope ratio = 0.692

Median x1 : 264
Scatterplot of TAX vs AGE
Median y1 : 53.8
120

100 Median x2 : 330


f(x) = 0.08 x + 34.04 Median y2 : 72.3
80 R² = 0.26
60 Median x3 : 666
AGE

Linear ()
40 Median y3 : 94.3
20

0
100 200 300 400 500 600 700 800
TAX

my 3−my 1 94.3−53.8
b= = = 0.100746
mx 3−mx 1 666−264
a = ((my1+my2+my3)-(b(mx1+mx2+mx3))) / 3
= ((53.8+72.3+94.3)-(0.100746 (264+330+666))) / 3
= 31.15323
Garis resisten adalah garis lurus Y= a+bX
Y= 31.153 + 0.101X
Interpretasi : Resistant line lebih sedikit dipengaruhi oleh outlier daripada garis
regresi kuadrat-terkecil (median-median lebih kuat atau tidak sensitif terhadap outlier
daripada garis regresi kuadrat-terkecil). Terdapat 15 outlier pada grafik diatas.

Variabel 11 & 12 : B & PTRATIO

Resistant Line Fit: X versus Y

Straightness check - Left half-slope = 1.394231

6
Right half-slope = -5.603333 Ratio = -4.019

Slope 1 = -1.165854
Slope 2 = -0.760262
Slope 3 = -0.944692
Slope 4 = -0.852477
Slope 5 = -0.942593
Slope 6 = -0.942643

Slope = -0.9426 Level = 408.2485 Half-slope ratio = -4.019

Scatterplot of B vs PTRATIO Median x 1 : 351.85


25
Median y 1 : 20.2
20
f(x) = − 0 x + 19.96 Median x 2 : 391.44
15 R² = 0.03
PTRATIO

Y Median y 2 : 18.35
10 Linear (Y)
Median x 3 : 396.9
5
Median y 3 : 19
0
0 50 100 150 200 250 300 350 400 450
B

Interpretasi:
1. Berdasarkan pencaran titik pada gambar Scatterplot diatas, terlihat adanya suatu
pola garis lurus tertentu
2. Dengan tahapan untuk memperoleh Resistant Line, didapat koefisien a dan b
sebagai berikut:
(my 3−my 1) 19−20.2
b= = =−0.0266
(mx 3−mx1 ) 396.9−351.85
( my1 +my 2+ my3 ) −b ( mx1 +mx 2+ mx3 )
a=
3
57.55−(−0.0266 )( 1140.19 )
¿ =29.30710692
3
3. Sehingga persamaan Resistant Line yang diperoleh adalah sebagai berikut :
Y = 29.3071 – 0.02X

Variabel 13 & 14 : LSTAT & MEDV

MTB > RLine 'MEDV' 'LSTAT';


SUBC> MaxIterations 10;
SUBC> Brief 4.

7
Resistant Line Fit: MEDV versus LSTAT
Straightness check - Left half-slope = 0,818662
Right half-slope = -1,154873 Ratio = -1,411

Slope 1 = -0,303721
Slope 2 = -0,262734
Slope 3 = -0,272627
Slope 4 = -0,288174
Slope 5 = -0,273206
Slope 6 = -0,280690
Slope 7 = -0,273312

Slope = -0,2733 Level = 24,6012 Half-slope ratio = -1,411

MEDV (y) : median value of owner-occupied homes in $1000’s


LSTAT (x) : % lower status of the population

Median x1 : 5.68
Median y1 : 20.4
Median x2 : 11.36
Median y2 : 25.05
Median x3 : 18.85
Median y3 : 16.4

Interpretasi:
1. Berdasarkan pencaran titik pada gambar Scatterplot diatas, terlihat adanya suatu
pola garis lurus tertentu
2. Dengan tahapan untuk memperoleh Resistant Line, didapat koefisien a dan b
sebagai berikut:
(my 3−my 1) 16.4−20.4
b= = =−0.30372
(mx 3−mx1 ) 18.85−5.68

( my1 +my 2+ my3 ) −b ( mx1 +mx 2+ mx3 )


a=
3
( 61.85 )−( 0.0574 )( 35.89 )
¿ =72.75053
3
3. Sehingga persamaan Resistant Line yang diperoleh adalah sebagai berikut :
Y=72.75053-0.30372X

Anda mungkin juga menyukai