11.Tentukan fungsi lanjar yang mencocokan titik-titik data berikut dengan metode regresi.
X 1 2 3 4 5
a. Cocokkan titik di tabel masing-masing dengan fungsi f(x) = Ce^bx dan f(x)^b
Penyelesaian
11.
𝑛 𝑥𝑖 𝑎 𝑦𝑖
( ) [ ] = [ ]
𝑥𝑖 𝑋𝑖 2 𝑏 𝑥𝑖𝑦𝑖
5 10 𝑎 20.1
( ) [ ] = [ ]
10 22.5 𝑏 44.95
𝑎 1 22.5 − 10 20.1
[ ] = ( ) ( )
𝑏 (5)(22.5)−(10)(10) −10 5 44.95
𝑎 0.22
[ ] =( )
𝑏 1.9
a = 0.22 b = 1.9
0.043 1/2
Galat RMS = ERMS = [ ] = 0.09274
5
12. a.
y = Cxb
defenisikan :
Y = ln(y)
a = ln(C)
X = ln(x)
Persamaan regresi lanjar :
Y = a + bX
𝑛 𝑥𝑖 𝑎 𝑦𝑖
( ) [ ] = [ ]
𝑥𝑖 𝑋𝑖 2 𝑏 𝑥𝑖𝑦𝑖
5 4.7875 𝑎 5.4043
( ) [ ] = [ ]
4.7875 6.1995 𝑏 8.4189
𝑎 0.8421
[ ] =( )
𝑏 2.0082
a = 0.8421 b = 2.0082
C = ea = 2.720.8421 = 2.3225
Maka,
y = Cxb = 2.3225x2.0082
4916.74 1/2
Galat RMS = ERMS = [ ] = 31.3584
5
b.
ln(y) = ln(C) + bx
defenisikan :
Y = ln(y)
a = ln(C)
X=x
Y = a + bX
𝑛 𝑥𝑖 𝑎 𝑦𝑖
( ) [ ] = [ ]
𝑥𝑖 𝑋𝑖 2 𝑏 𝑥𝑖𝑦𝑖
5 15 𝑎 5.4043
( ) [ ] = [ ]
15 55 𝑏 24.4354
𝑎 1 55 − 15 5.4043
[ ] = ( ) ( )
𝑏 (5)(55)−(15)(15) −15 5 24.4354
𝑎 −1.3859
[ ] =( )
𝑏 −0.8222
a = -1.3859 b = -0.8222
C = ea = 2.72-1.3859 = 0.2499
Maka,
y = Cebx = 0.2499e-0.8222x
deviasi 1 deviasi 2 (deviasi 1)^2 (deviasi 2)^2
-2.833326 -0.620591 8.02773409 0.385132666
-9.448313 -0.153573 89.2706266 0.023584722
-19.63304 1.4374383 385.4561968 2.066228888
-35.55668 2.0188467 1264.27766 4.075741925
-56.30016 2.5296112 3169.7075 6.398933006
4916.739718 12.94962121
12.9496 1/2
Galat RMS = ERMS = [ ] = 1.6093
5
Maka, berdasarkan Galat RMSnya fungsi hampiran yang terbaik adalah fungsi y = Cebx.