Professional Documents
Culture Documents
Kalibrasi Regresi Linear
Kalibrasi Regresi Linear
Regresi
Linear
Statistik
1
12/18/2017
REGRESI LINEAR
Tinjauan kasus: n-pasangan data (xi,yi) didekati dengan garis lurus
y = ao + alx + e.
Dalam pers tsb, e = kesalahan/residu = penyimpangan antara harga
yang sebenarnya dengan harga pendekatan pers garis lurus tsb.
Fitting Terbaik
2
12/18/2017
Transformasi
Linearisasi hubungan tak linear
3
12/18/2017
4
12/18/2017
Linear Regression
Assume n points, with each point having values of both an independent
variable x and a dependent variable y.
Preliminary Computations
1 n
x = sample mean of the x values = ∑ xk
n k =0
1 n
y = sample mean of the y values = ∑ yk
n k =0
1 n 2
x = sample mean-square of the x values = ∑ xk
2
n k =1
1 n
xy = sample mean of the product xy = ∑ xk yk
n k =1
10
5
12/18/2017
a0 =
( x ) ( y ) − ( x )( xy )
2
(x )−(x)2 2
Alternately, a0 = y − a1 x
y = a1 x + a0
11
1 10 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 45
x = ∑ xk = = = 4.50
10 k =1 10 10
12
6
12/18/2017
16.27
= =1.9721
8.250
a0 = y − a1 x = 13.02 − 1.972 × 4.50 = 4.1455
y = 1.9721x + 4.1455
14
7
12/18/2017
y
25
y = 1.9721x + 4.1455
R² = 0.9973
20
15
y
Linear (y)
10
0
0 1 2 3 4 5 6 7 8 9 10
15
The best-fit plot and the actual points are shown on the next slide.
16
8
12/18/2017
17
18
9
12/18/2017
Koefisien determinasi
19
20
10