0% found this document useful (0 votes)
39 views8 pages

Tugas Ujian (R. Linear)

The document discusses using linear regression to model a relationship between variables y and x1, x2, x3, x1x2, x1x3, and x2x3. It presents the equations to minimize the sum of squared errors and take partial derivatives with respect to the coefficients Ø, a, b, c, d, e, and f. Setting each partial derivative equal to 0 results in seven equations that can be written in matrix form to solve for the coefficients.

Uploaded by

Liona Dwie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views8 pages

Tugas Ujian (R. Linear)

The document discusses using linear regression to model a relationship between variables y and x1, x2, x3, x1x2, x1x3, and x2x3. It presents the equations to minimize the sum of squared errors and take partial derivatives with respect to the coefficients Ø, a, b, c, d, e, and f. Setting each partial derivative equal to 0 results in seven equations that can be written in matrix form to solve for the coefficients.

Uploaded by

Liona Dwie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

TUGAS MATAKULIAH

REKAYASA PEMODELAN

Oleh:
Liona Dwi Sarisa 1425011020

PROGRAM STUDI MAGISTER TEKNIK SIPIL


FAKULTAS TEKNIK
UNIVERSITAS LAMPUNG
2016

Tugas ke Ujian Regresi Linear


^y = +a x 1+ b x 2+ c x 3+ d x 1 x 2 +e x 1 x3 + f x2 x 3
n

JKG= ( y^y ) 2
i=1

ya x 1b x2 c x 3d x 1 x 2e x1 x3 f x 2 x 3
() 2
JKG=
JKG JKG JKG JKG JKG JKG JKG
=
=
=
=
=
=
=0

a
b
c
d
e
f

JKG
=0

2 ( ya x 1b x 2c x 3d x 1 x 2e x 1 x 3 f x 2 x 3)=0

y a x 1b x 2c x3 d x1 x 2 e x 1 x 3 f x 2 x 3=0

+ a x 1+ b x 2 +c x3 + d x 1 x 2 + e x 1 x 3 + f x 2 x3 = y ...................................................................................................................................(1)

JKG
=0
a
2 ( ya x 1b x 2c x 3d x 1 x 2e x 1 x 3 f x 2 x 3) x 1=0

y x 1 x 1 a x 21 b x 1 x2 c x 3 x 1d x 21 x 2 ex 21 x 3 f x 1 x2 x 3=0
x 1 a x 21 +b x 1 x 2 + c x 3 x 1+ d x 21 x 2 +ex 21 x 3 + f x 1 x2 x 3= y x1 .............................................................................................................(2)

JKG
=0
b
2 ( ya x 1b x 2c x 3d x 1 x 2e x 1 x 3 f x 2 x 3) x 2=0

y x 2 x 2 a x 1 x2b x22 c x 3 x2 d x 1 x 22 e x 1 x 2 x 3 f x 22 x 3=0


x 2 + a x 1 x 2+ b x 22+ c x 3 x 2 + d x1 x 22+ e x 1 x 2 x 3 + f x 22 x 3= y x 2 ...............................................................................................................(3)

JKG
=0
c
2 ( ya x 1b x 2c x 3d x 1 x 2e x 1 x 3 f x 2 x 3) x 3=0

y x 3 x 3 a x1 x3 b x 2 x 3 c x 23d x1 x 2 x 3e x1 x32f x 2 x 23=0


x3 + a x 1 x3 + b x 2 x 3 +c x 23+ d x 1 x 2 x3 + e x1 x 23+ f x 2 x 23= y x 3

............................................................................................................(4)

JKG
=0
d
2 ( ya x 1b x 2c x 3d x 1 x 2e x 1 x 3 f x 2 x 3) x 1 x 2=0

y x 1 x 2 x 1 x2 a x21 x 2b x 22 x 1 c x 1 x 2 x 3 d x 21 x 22 e x21 x 2 x 3 f x 22 x3 x 1=0

x1 x 2+ a x 21 x2 +b x 22 x1 +c x 1 x 2 x 3 +d x 21 x 22+ e x 21 x 2 x 3 +f x 22 x 3 x1= y x 1 x 2

........................................................................................(5)

JKG
=0
e
2 ( ya x 1b x 2c x 3d x 1 x 2e x 1 x 3 f x 2 x 3) x 1 x 3=0

y x 1 x 3 x 1 x3 a x 21 x 3b x 1 x 2 x3 c x 23 x1 d x 21 x 2 x3 e x 21 x 23 f x 2 x 23 x 1=0
x1 x 3+ a x21 x3 + b x 1 x2 x 3+ c x 23 x 1 +d x12 x 2 x 3 + e x 21 x 23 + f x 2 x23 x 1= y x 1 x3

........................................................................................(6)

JKG
=0
f
2 ( ya x 1b x 2c x 3d x 1 x 2e x 1 x 3 f x 2 x 3) x 2 x 3=0

y x 2 x 3 x2 x3 a x 1 x 2 x 3 b x 22 x3 c x 23 x2 d x 1 x22 x 3 e x 1 x 23 x 2f x 22 x 23=0

x2 x 3+ a x1 x 2 x 3+ b x22 x 3+ c x 23 x 2 +d x 1 x 22 x 3 + e x 1 x 23 x 2+ f x22 x 23= y x2 x 3

........................................................................................(7)

Hasil Rekap di atas:

+ a x 1+ b x 2 +c x3 + d x 1 x 2 + e x 1 x 3 + f x 2 x3 = y ...................................................................................................................................(1)
x 1 a x 21 +b x 1 x 2 + c x 3 x 1+ d x 21 x 2 +ex 21 x 3 + f x 1 x2 x 3= y x1 .............................................................................................................(2)
x 2 + a x 1 x 2+ b x 22+ c x 3 x 2 + d x1 x 22+ e x 1 x 2 x 3 + f x 22 x 3= y x 2 ...............................................................................................................(3)

x3 + a x 1 x3 + b x 2 x 3 +c x 23+ d x 1 x 2 x3 + e x1 x 23+ f x 2 x 23= y x 3

............................................................................................................(4)

x1 x 2+ a x 21 x2 +b x 22 x1 +c x 1 x 2 x 3 +d x 21 x 22+ e x 21 x 2 x 3 +f x 22 x 3 x1= y x 1 x 2

........................................................................................(5)

x1 x 3+ a x21 x3 + b x 1 x2 x 3+ c x 23 x 1 +d x12 x 2 x 3 + e x 21 x 23 + f x 2 x23 x 1= y x 1 x3

........................................................................................(6)

x2 x 3+ a x1 x 2 x 3+ b x22 x 3+ c x 23 x 2 +d x 1 x 22 x 3 + e x 1 x 23 x 2+ f x22 x 23= y x2 x 3

........................................................................................(7)

Matrik 7 x 7
n

x1

x2

x3

x1 x2

x1 x3

x2 x3

x1

x 21

x1 x2

x2

x1 x2

x3

x1 x2 x3

y x1

x2 x3

y x2

x 2 x 23

y x3

x 21 x 2 x 3

x 22 x 3 x 1

y x 1 x2

x 21 x 23

x 2 x 23 x 1

y x 1 x3

y x 2 x3

x3 x1

x 21 x 2

x2

x3 x2

x1 x2

x1 x2 x3

x1 x3

x2 x3

x 23

x1 x2 x3

x 1 x 23

x1 x2

x 21 x 2

x 22 x 1

x1 x2 x3

x 21 x 22

x1 x3

x 21 x 3

x1 x2 x3

x 23 x 1

x 21 x 2 x 3

x2 x3

x1 x2 x3

x2 x3

x3 x2

x1 x2 x3

x 21 x 3

x1 x3 x2

x2 x3

You might also like