Dosen :
1. Dr.Ir. Eddy Winarno, S.Si, MT
2. Ir. Sugeng Raharjo, MT
Trend dan Korelasi Data
Trend Data :
kecenderungan data mengikuti model matematis
Korelasi Data :
arah dan kedekatan hubungan dua variabel data sesuai dengan trend datanya,
dinyatakan dengan notasi r (koefisien korelasi)
Tingkat ketepatan data terhadap trend datanya dinyatakan dengan R2 atau r2
Semakin besar nilai R2 (koefisien determinasi) semakin tepat trend datanya.
r positip r ≈ 0 r negatip
n X iYi ( X i )( Yi )
r
{n X ( X i ) }{n Yi ( Yi ) 2 }
2 2 2
i
Pemodelan Kecocokan Data (Fitting Curve)
Trend Data : kecenderungan data mengikuti model matematis
Real data
Sn Estimasi data model
S2
n
∑ Si = jumlah simpangan terkecil
S1 i=1
min
0 1 2 3 4 5 6 7 8 9 10
Trend Linier
(Regresi Linier)
Polinomial
Trend Data Eksponensial
Logaritmik
(Regresi) Trigoneometrik
dll
• Persamaan Umum :
Y . X , X ,.., X
( X , X ,.., X , ,.., )
1 2 k 1 2 m
1 2 k
Yˆ a bX
10
8
6
y = 0,28x + 0,8
; a taksiran 1 , b taksiran 2
4
R² = 0,9703
2
0
0 20 40 60
2. Beberapa Variabel Bebas, linier : Regresi Linier Berganda
0 1 X 1 2 X 2 ..... k X k
Y .X
dengan taksiran persamaan :
Yˆ a0 a1 X 1 a2 X 2 .... ak X k
16
14
12
10
8
6
y = 2E-05x4 - 0,0027x3 + 0,0925x2 -
4 0,8833x + 5
2 R² = 1
0
0 20 40 60
Regresi Linier Sederhana
(RLS)
Regresi Linier Sederhana (RLS)
Yˆ a bX
Yˆ
16
14
Variabel Tak Bebas
12
10
X = Varibel Bebas
8
6
y = 0,28x + 0,8
R² = 0,9703
Y = f(X)
4
2
2
0
R = Koefisien Determinasi
0 20 40 60
Persamaan Regresi
A. Metode Pembentukan RLS
ˆ
Y a bX
1. Metode Komputerisasi (Exel)
Tahapan :
1. Permasalahan : CT vs Jarak
■ CT dipengaruhi (Y) oleh
jarak angkut (X)
■ Scatter plot
Jarak, X CT, Y
10 3
20 7
30 10
40 11
50 15
2. Trend Data
■ Linier or non-linier
2. Metode Least Square Methods (Kuadrat Terkecil)
Y; Y;
Y;
t n
t
u a
e
r
t i
u k
n a
p
-1 < r < 1
Koefisien korelasi didapat dengan rumus :
n X iYi ( X i )( Yi )
1. r
{n X i2 ( X i ) 2 }{n Yi ( Yi ) 2 }
2
2. r 1 s 2
y. x /s 2
y S 2 y. x
i i
(Y ˆ
Y ) 2
(n 2)
Sampel ke- 1 2 3 4 5 6 7 8 9 10
Jam Kuliah 8 5 11 13 10 5 18 15 2 8
IP 2,5 2,3 3,0 3,2 2,7 2,3 3,4 3,1 2,1 2,6
Dipengaruhi oleh
Jumlah jam kuliah Indeks Prestasi (IP)
Dipengaruhi oleh
Yˆ a bX
SOLUSI :
n X iYi ( X i )( Yi )
r
{n X i2 ( X i ) 2 }{n Yi ( Yi ) 2 }
2
Sampel ke- 1 2 3 4 5 6 7 8 9 10
Jam Kuliah X 8 5 11 13 10 5 18 15 2 8 95
IP Y 2,5 2,3 3,0 3,2 2,7 2,3 3,4 3,1 2,1 2,6 27,2
b= 0,086499
a= 1,898261