Professional Documents
Culture Documents
=
dan
b mx y + =
maka untuk sembarang titik pada garis ) , (
1 1
y x dan ) , (
2 2
y x maka
b mx y + =
2 2
sehingga
2 2
mx y b =
dan akhirnya
2
1 2
1 2
2
x
x x
y y
y b
|
|
.
|
\
|
=
6. Fitting menurut kuadrat terkecil
1. Garis lurus y =a +bx
i i
bx a x y + = ) (
6
) (
i i i
x y y y = A
a dan b dicari agar
total
P bernilai maksimum.
Misal didefinisikan
2
_ (chi kuadrat dibaca kai kuadrat) sebagai
|
|
.
|
\
|
=
2
2
) (
i
y
i i
s
x y y
_
|
|
.
|
\
|
+
=
2
2
) (
i
y
i i
s
bx a y
_
a. Jika
y
i
y y y y
s s s s s = = = =
3 2 1
0
2
4
6
8
10
12
14
0 2 4 6 8 10 12
Hal ini terjadi jika pada masing-masing titik tidak dilakukan pengulangan
sehingga ralatnya merupakan ralat yang berasal dari alat ukur yang besarnya
selalu tetap.
( )
+ =
2
2
2
) (
1
i i
y
bx a y
s
_ = ( )
2
2
1
i i
y
y y
s
(0)
Syarat
2
_ minimum adalah 0
2 2
=
c
c
=
c
c
b a
_ _
( )
= + =
c
c
0 ) 1 ( ) ( 2
1
2
2
i i
y
bx a y
s a
_
i i
y bx a E = E + E
i i
y bx Na E = E + (1)
( )
= + =
c
c
0 ) ( ) ( 2
1
2
2
i i i
y
x bx a y
s b
_
i i i i
y x bx x a E = E + E
2
(2)
Dari pers. (1) dan (2) maka diperoleh:
7
( )( ) ( )( )
( )
2 2
2
2
2
i i
i i i i i
i
i i
i i
i i i
x N x
y x y x x
x N
x x
x y
x y x
a
E E
E E E E
=
E
E E
E E
E E
= (3)
Misal bagian penyebut pada pers. (3):
A = ( )
2 2
i i
x N x E E
Maka :
a = ( )( ) ( )( ) | |
i i i i i
y x y x x E E E E
A
2
1
(4)
Dengan cara yang sama yaitu dengan menerapkan 0
2
=
c
c
b
_
maka diperoleh:
i
i i
i
i i i
x N
x x
y N
y x x
b
E
E E
E
E E
=
2
( )( ) | |
i i i i
y x N y x b E E E
A
=
1
(5)
Tampak bahwa nilai a dan b tidak ada ketergantungan terhadap s
y
.
b. Jika
i
x dan
i
y keduanya memiliki ralat yang besarnya | | | |
i i
y x
s s = maka s total
untuk x
i
dan y
i
adalah :
2 2
i i
y x
i
s s s + = (6)
Lanjutan ...
) ,..., , ( ) (
2 1 N i
y y y a y a a = =
2
2
2
2
2
2
2
1
2
2
2
...
2 1 N i
y
N
y y y
i
a
s
y
a
s
y
a
s
y
a
s
y
a
s
|
|
.
|
\
|
c
c
+ +
|
|
.
|
\
|
c
c
+
|
|
.
|
\
|
c
c
=
|
|
.
|
\
|
c
c
E =
y
i
Ay
i
x
i
Ax
i
8
=
=
|
|
.
|
\
|
c
c
N
j
y
j
j
s
y
a
1
2
2
(7)
dimana
(
(
|
|
.
|
\
|
|
|
.
|
\
|
A
=
c
c
i
i
i
j i
j
x x x
y
a
2
1
ingat, karena
y y
s s
j
= maka pada pers. (7) ungkapan tersebut dimasukkan sehingga:
2
1
2
2
2
2
1
y
N
j i
i
i
j i a
s x x x s
=
|
|
.
|
\
|
A
=
( )
= (
(
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
+ |
.
|
\
|
A
=
N
j i
i j
i
i
i
i
i
j i
y
x x x x x x
s
1
2
2
2
2
2
2
2
(
(
|
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
+
|
|
.
|
\
|
|
.
|
\
|
A
=
j
j
i
i
i
i
i
i
j
j
i
i
y
x x x x N x x
s
2
2
2 2
2
2
2
2
(
(
|
.
|
\
|
|
.
|
\
|
|
.
|
\
|
+ |
.
|
\
|
|
.
|
\
|
A
=
i
i
i
i
i
i
i
i
i
i
y
x x x N x x
s
2
2 2
2 2
2
2
2
2
| |
A
E E E
A
=
2 2 2
2
2
2
) (
i i i
y
a
x x N x
s
s
2
2
2
i
y
a
x
s
s E
A
=
atau 2 2
2
) (
i i
i
y a
x x N
x
s s
E E
E
=
(8)
Dengan cara yang sama maka diperoleh:
A
=
2
2 y
b
Ns
s atau
2 2
) (
i i
y b
x x N
N
s s
E E
= (9)
Untuk latihan tentukan rumus untuk
a
s dan
b
s jika persamaan regresinya b ax y + = .
b. Jika konstan
3 2 1
= = = =
i
y
i
y y y y
s s s s s
Hal ini dapat terjadi jika pada masing-masing titik dilakukan pengukuran berulang
sehingga memiliki simpangan baku.
9
0
2
4
6
8
10
12
14
0 2 4 6 8 10 12
| |
+ =
|
|
.
|
\
|
+
=
2
2
2
2
) (
1 ) (
i i
i
y
i
y
i i
bx a y
s s
bx a y
_
=
(
(
+
=
c
c
0 ) 1 (
) (
2
2
2
i
y
i i
s
bx a y
a
_
(10)
2 2 2
1
i
y
i
i
y
i
i
y
s
y
s
x
b
s
a E = E + E (11)
=
(
(
+
=
c
c
0 ) (
) (
2
2
2
i
i
y
i i
x
s
bx a y
b
_
(12)
2 2
2
2
i
y
i i
i
y
i
i
y
i
s
y x
s
x
b
s
x
a E = E + E (13)
Dari pers. (11) dan (13) maka diperoleh:
2
2 2
2
2
2 2 2 2
2
2
2
2
2 2
2
2
2
2 2
1
1
|
|
.
|
\
|
E E E
E E E E
=
E E
E E
E E
E E
=
i
y
i
i
y
i
i
y
i
y
i i
i
y
i
i
y
i
i
y
i
i
y
i
i
y
i
i
y
i
i
y
i
y
i
i
y
i i
i
y
i
i
y
i
s
x
s
x
s
s
y x
s
x
s
y
s
x
s
x
s
x
s
x
s
s
x
s
y x
s
x
s
y
a (14)
Dengan memisalkan
A =
2
2 2
2
2
1
|
|
.
|
\
|
E E E
i
y
i
i
y
i
i
y
s
x
s
x
s
(15)
( )
2 2
i i i i i
x w x w w E E E = A
10
Maka intersep
a =
(
(
E E E E
A
2 2 2 2
2
1
i
y
i i
i
y
i
i
y
i
i
y
i
s
y x
s
x
s
y
s
x
(16)
| |
i i i i i i i i i
y x w x w y w x w a E E E E
A
=
2
1
|
|
.
|
\
|
c
c
=
j
j
y
j
a
s
y
a
s
2
2
2
=
|
|
.
|
\
|
c
c
j
j
y
j
s
y
a
2
(17)
atau untuk untuk memudahkan pemahaman:
2 2
3
3
2
2
2
2
1
1
...
|
|
.
|
\
|
c
c
+ +
|
|
.
|
\
|
c
c
+
|
|
.
|
\
|
c
c
+
|
|
.
|
\
|
c
c
=
N
y
N
y y y a
s
y
a
s
y
a
s
y
a
s
y
a
s
Pada pers. (16) turunan a terhadap y
j
dimana y
j
adalah salah satu nilai dari y
i
adalah:
(
(
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
|
.
|
\
|
|
|
.
|
\
|
A
=
c
c
2 2 2 2
2
1 1
j
y
j
i
i
y
i
j
y
i
i
y
i
j
s
x
s
x
s s
x
y
a
(18)
Dengan mensubstitusikan pers. (18) ke (17) dan kemudian memasukkan
j
y
s
2
ke dalam
kurung maka diperoleh:
(
(
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
A
=
j
j
y
j
i
i
y
i
j
y
i
i
y
i
a
s
x
s
x
s s
x
s
2
2 2
2
2
2
1 1
=
(
(
(
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
+
|
|
.
|
\
|
|
|
.
|
\
|
A
j
j
y
j
i
i
y
i
j
y
i
i
y
i
j
y
j
i
i
y
i
j
y
i
i
y
i
s
x
s
x
s s
x
s
x
s
x
s s
x
2 2
2
2
2
2
2
2
2
2
2
1
2
1 1
Jika tanda
j
dimasukkan ke dalam kurung kotak maka
ij
j
j
y
j
i
i
y
i
i
i
y
i
j
y
j
j i
i
y
i
j
j
y
i
i
y
i
a
s
x
s
x
s
x
s
x
s
x
s s
x
s o
(
(
(
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
+
|
|
.
|
\
|
A
=
2 2 2
2
2
2
2 2
2
2
2
2
2
2
1 1
sehingga dengan menjalankan i = j = 1... N maka diperoleh:
(
(
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
+
|
|
.
|
\
|
|
|
.
|
\
|
A
=
2
2 2
2
2 2
2 2
2
2
2
2
2
2
1 1
i
i
y
i
i
i
y
i
i
i
y
i
i
i
y
i
i
i
y
i
i
y
i
a
s
x
s
x
s
x
s
x
s s
x
s (20)
Dengan menguraikan A
2
menjadi AA dan mengganti salah satu A dengan pers. (15) maka
AA ditulis menjadi:
11
|
|
|
.
|
\
|
|
|
.
|
\
|
E E E A
2
2 2
2
2
1
i
y
i
i
y
i
i
y
s
x
s
x
s
(21)
maka persamaan (20) menjadi
(
(
(
(
(
(
(
|
|
|
.
|
\
|
|
|
.
|
\
|
E E E
(
(
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
|
|
.
|
\
|
+
|
|
.
|
\
|
|
|
.
|
\
|
A
=
2
2 2
2
2
2
2 2
2
2 2
2 2
2
2
2
2
1
2
1
1
i
y
i
i
y
i
i
y
i
i
y
i
i
i
y
i
i
i
y
i
i
i
y
i
i
i
y
i
i
y
i
a
s
x
s
x
s
s
x
s
x
s
x
s
x
s s
x
s (22)
yang nilainya dapat didekati dengan:
A
~
i
i
y
i
a
s
x
s
2
2
2
1
atau
A
~
i
i
y
i
a
s
x
s
2
2
1
atau
A
~
i
i i a
x w s
2
1
(23)
Slope grafik
2
2 2
2
2
2 2 2 2
2
2
2
2 2
2 2
2 2
1
1
1
1
|
|
.
|
\
|
E E E
E E E E
=
E E
E E
E E
E E
=
i
y
i
i
y
i
i
y
i
y
i
i
y
i
i
y
i i
i
y
i
y
i
i
y
i
i
y
i
i
y
i
y
i i
i
y
i
i
y
i
i
y
s
x
s
x
s
s
x
s
y
s
y x
s
s
x
s
x
s
x
s
s
y x
s
x
s
y
s
b
A
E E E E
=
i i i i i i i i
x w y w y x w w
b
Dengan cara yang sama untuk
b
s maka diperoleh:
A
~
i
i
y
b
s
s
2
2
1 1
atau
A
~
i
i
y
b
s
s
2
1 1
atau
A
~
i
i b
w s
1
(24)
dengan A =
Untuk gejala yang mengikuti distribusi Poisson maka
i
i
y
y s = (25)
maka:
N y = sehingga N s
y
= (26)
12
Misalkan pada kasus pencacahan radiasi dengan berbagai waktu pencacahan sehingga
jumlah cacah radiasi yang terkait dengan t
i
adalah N
i
, sebagaimana diskripsi pada tabel
berikut:
Tabel
i
i
t
i
N
i
s
1 5 menit 1022
1022
2 10 menit 11007
11007
3 15 menit 134015
134015
4 20 menit 210020
210020
Dari tabel tersebut tampak jelas bahwa masing-masing data memiliki simpangan baku
yang berbeda-beda sehingga penentuan nilai rata-rata laju pencacahan harus dilakukan
dengan regresi linier dengan simpangan baku baku yang berbeda-beda.
Berikut diberikan contoh masalah yang diselesaikan dengan regresi linear namun
memiliki
Example 6.1.
A student is studying electrical currents and potential differences. He has been provided
with a l-m nickel-silver wire mounted on a board, a lead-acid battery, and an analog voltmeter.
He connects cells of the battery across the wire and measures the potential difference or voltage
between the negative end and various positions along the wire. From examination of the meter, he
estimates the uncertainty in each potential measurement to be 0.05 V. The uncertainty in the
position of the probe is less than 1 mm and is considered to be negligible.
Tabel 6.1
Beda potensial y sebagai fungsi dari posisi sepanjang kawat nikel-silver berarus
I
Posisi
i
x
Beda
potensial
i
y
2
i
x
i i
y x
i i
bx a y + =
( )
2
i i
y y
1 10 0.37 100 3.70 0.33 0.0013
2 20 0.58 400 11.60 0.60 0.0002
3 30 0.83 900 24.90 0.86 0.0008
4 40 1.15 1,600 46.00 1.12 0.0009
5 50 1.36 2,500 68.00 1.38 0.0005
6 60 1.62 3,600 97.20 1.64 0.0005
7 70 1.90 4,900 133.00 1.91 0.0000
8 80 2.18 6,400 174.40 2.17 0.0002
9 90 2.45 8,100 220.50 2.43 0.0004
E 450 12 28,500 779.30 12.43 0.0049
13
Nilai
'
a
o dan
'
b
o diperoleh melalui persamaan (8) dan (9) hanya nilai
y
s diganti dengan
2
) (
2
E
=
N
y y
s
i i
y
Selanjutnya nilai
2
_ diperoleh dari persamaan (0) karena s
y
untuk kasus ini sama yaitu
0,05 volt.
95 . 1 05 . 0 / 0049 . 0
2 2
= = _
279 . 0
7
95 . 1
2
2
= = =
v
v
_
_
Jika dilihat pada Tabel C4 maka diperoleh ) , (
2
v P _
_
~ 98%.
Untuk fungsi hasil fitting yang baik yaitu yang mendekati distribusi induk, maka nilai
2
v
_
mendekati 1 dan probabilitas ) , (
2
v P _
_
pada Tabel C4 halaman 258 mendekati 0,5.
Untuk fitting yang jelek maka nilai
2
v
_ lebih besar dari 1 dan probabilitas ) , (
2
v P _
_
lebih kecil dari 0,5.
Pada Tabel C4 angka-angka yang berada di dalam tabel merupakan nilai dari
v
v
/
2 2
_ _ = dengan v merupakan derajat kebebasan yaitu jumlah data dikurangi dengan
jumlah parameter. Untuk garis lurus maka ada 2 parameter yaitu a dan b.
y = 0.0262x + 0.0714
R
2
= 0.9988
-
0.5
1.0
1.5
2.0
2.5
3.0
- 20 40 60 80 100
Posisi (cm)
T
e
g
a
n
g
a
n
(
v
o
l
t
)
14
Untuk eksperimen yang berbentuk teknik rerata berbobot:
Example 6.2.
In another experiment, a student is provided with a radioactive source enclosed in a small
8-mm-diameter plastic disk and a Geiger counter with a 1-cm-diameter end window. Her object is
to investigate the 1/r law by recording Geiger counter measurements over a fixed period of time
at various distances from the source between 20 and 100 cm. Because the counting rate is not
expected to vary from measurement to measurement, except for statistical fluctuations, the
student can record data long enough to obtain good statistics over the entIre range of the
experiment. She uses an automatic recording system and records counts for thirty 15-s intervals at
each position. For analysis in this experiment, she sums the counts from the 30 measurements at
each positions. The separate 15-s interval measurements at each position can be used in other
statistical studies.
Data pengukuran adalah
Posisi
xi
Cacah
Ci
20 901
25 652
30 443
35 339
40 283
45 281
50 240
60 220
75 180
100 154
Karena data tersebut telah diketahui bersama mengikuti distribusi Poisson maka masing-
masing data memiliki simpangan baku akar dari cacahnya. Selain itu jumlah cacah
radioaktif berbanding lurus terhadap 1/r
2
.
15
16
KEBOLEHJADIAN TERKORELASI
1. Linear bx a y + =
Bagaimana adanya perubahan pada suhu T menyebabkan perubahan pada indek
bias n? Dalam kasus ini dikatakan bahwa n terkorelasi secara linier terhadap T. Jika
asumsi ini benar maka
i i
bx a y + = (26)
atau
i i
y
b b
a
x
1
+ = =
i
y b
b
a
' + (27)
Jika slope dari pers. (26) dan (27) dikalikan maka diperoleh koefisien korelasi:
1
1
. '
2
= = =
b
b bb r
' bb r =
contoh: y = 2x + 3. Jika dibalik menjadi x = y/2 3/2
0
2
4
6
8
10
12
14
0 1 2 3 4 5 6
0
1
2
3
4
5
6
0 2 4 6 8 10 12 14
Jika x dan y tidak terkorelasi samasekali maka r = 0.
Contoh
x y
1 5
2 7
3 9
4 11
5 13
Jika diplot ) , (
i i
y x maka diperoleh grafik
17
y = 2.4x + 1.2
0
5
10
15
0 1 2 3 4 5 6
x
y
Jika diplot ) , (
i i
x y maka diperoleh grafik
y = 0.3922x - 0.2941
0
2
4
6
0 5 10 15
y
x
Tentu saja kedua grafik tidak bisa digambar bersma karena identitas sumbu-sumbunya
berlainan.
Nilai koefisien determinasi bb = r
2
= 2,4 x 0,3922 = 0,94
Nilai r ini belum cukup untuk untuk menyimpulkan ketergantungan y terhadap x, seperti
jumlah pengukuran yang terlalu sedikit. Oleh karena itu diperlukan kriteria tambahan
yaitu probabilitas koefisien korelasi.
Dari suatu sampel data acak tak terkorelasi dibuat distribusi probabilitas r nya yaitu
P
r
(r,v) dengan v adalah derajat kebebasan.
( )
| |
( )
2 / ) 2 (
2
1
) 2 / (
2 / ) 1 ( 1
;
I
+ I
=
v
r
r
v
v
v r P
t
Probabilitas koefisien korelasi r hasil pengamatan (eksperimen) lebih besar dari r untuk
sampel acak dengan jumlah data N dan derajat kebebasan v adalah integral kebolehjadian
( )
| |
( ) dx x
v
v
N r P
r
v
c
}
I
+ I
=
1
2 / ) 2 (
2
1
) 2 / (
2 / ) 1 ( 1
;
t
dengan v = N-2
18
19
20
21
KEBAGUSAN HASIL PENCOCOKAN
Sebagaimana diungkapkan sebelumnya:
|
|
.
|
\
|
=
2
2
) (
i
i i
s
x y y
_
2
_ tereduksi / termodifikasi menjadi
2
v
_ dengan v adalah derajat kebebasan.
koefisien data
N N v =
v
v
2
2
_
_ = selanjutnya probabilitasnya dilihat pada table C4. Bentuk distribusinya adalah
( )
2 / 2 / ) 2 ( 2
2 /
2
) (
) 2 / ( 2
1
;
x v
v
x
e x
v
v P
I
= _
( ) v P
x
; _ berupa integral yang menyatakan kebolehjadian pengamatan nilai
2
_ dari hasil
pengamatan melebihi sample acak dengan N pengamatan dan v derajat kebebasan.
22
23
24