0% found this document useful (0 votes)
33 views4 pages

Lampiran 2. Perhitungan Regresi Manual 1. Percobaan A: (N. Xy - (X. Y) ) (N. X - (X) ) (N. y - (Y) )

The document contains calculations for linear regression analyses on 3 different data sets (labeled Experiments A, B, and C). For each experiment, the data is presented in a table with the x and y values. The calculations then determine: 1) The slope (a) and y-intercept (b) of the linear regression line 2) The coefficient of determination (R2) which indicates how well the regression line fits the data. The results show that Experiment A has the best fit (highest R2 of 0.1150), Experiment B has a moderate fit (R2 of 0.4130), and Experiment C has the worst fit (lowest R2 of 0.0010).

Uploaded by

Eva Indriani
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)
33 views4 pages

Lampiran 2. Perhitungan Regresi Manual 1. Percobaan A: (N. Xy - (X. Y) ) (N. X - (X) ) (N. y - (Y) )

The document contains calculations for linear regression analyses on 3 different data sets (labeled Experiments A, B, and C). For each experiment, the data is presented in a table with the x and y values. The calculations then determine: 1) The slope (a) and y-intercept (b) of the linear regression line 2) The coefficient of determination (R2) which indicates how well the regression line fits the data. The results show that Experiment A has the best fit (highest R2 of 0.1150), Experiment B has a moderate fit (R2 of 0.4130), and Experiment C has the worst fit (lowest R2 of 0.0010).

Uploaded by

Eva Indriani
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/ 4

Lampiran 2.

Perhitungan regresi manual

1. Percobaan A

Tabel 2. Regresi
y = ax + b
No x y xy x2 y2
1 -2,7501 -6,0939 16,7588 7,5630 37,1356

2 -2,9139 -5,7305 16,6981 8,4909 32,8387

3 -3,8064 -5,4504 20,7464 14,4887 29,7080

4 -4,7931 -6,3307 30,3436 22,9738 40,0777

∑ -14,2635 -23,6055 84,5469 53,5164 139,7600

n∑xy - ∑x∑y
a=
n∑x2 - (∑x)2

(4× 84,5469)– (-14,2635× -23,6055)


=
(4 × 53,5164 – (-14,2635)2

= 0,1400

∑y∑x2 -∑x∑xy
b=
n∑x2 – (∑x)2
(-23,6055 ×53,5164) - (-14,2635 × 84,5469)
=
(4 × 53,5164) – (-14,2635)2
.
= -5,4000

R2 =tetapan kelurusan grafik

2
(n.xy –(x.y))2
R =
(n.x2 - (x)2 )(n.y2 - (y)2 )

2
((4 × 84,5469)– (-14,2635 × -23,6055))2
R =
(4 × 53,5164) – (-14,2635)2 )((4×139,7600)- (-23,6055)2 )

= 0,1150
2. Percobaan B

Tabel 4. Regresi
y = ax + b
No x y xy x2 y2
.
1 -2,6864 -5,9392 15,9550 7,2168 35,2740

2 -2,8224 -5,7341 16,1839 7,9640 32,8799

3 -3,0222 -5,7327 17,3253 9,1337 32,8638

4 -4,2441 -5,5261 23,4533 18,0123 30,5377

5 -4,7167 -7,8962 37,2440 22,2473 62,3491


Σ -17,4918 -30,8283 110,1615 64,5741 193,9045

n∑xy - ∑x∑y
a=
n∑x2 - (∑x)2
(5× 110,1615)– (-17,4918× -30,8283)
=
(5 × 64,5741 – (-17,4918)2

= 0,6839

∑y∑x2 -∑x∑xy
b=
n∑x2 – (∑x)2

(-30,8283 ×64,5741) - (-17,4918 × 110,1615)


=
(5 × 64,5741) – (-17,4918)2
.
= -3,7730

R2 =tetapan kelurusan grafik

2
(n.xy –(x.y))2
R =
(n.x2 - (x)2 )(n.y2 - (y)2 )

2
((5 × 110,1615)– (-17,4918 × -30,8283))2
R =
(5 × 64,5741) – (-17,4918)2 )((5×193,9045)- (-30,8283)2 )
= 0,4130
3.Percobaan C

Tabel 6. Regresi
y = ax + b
No X y xy x2 y2
.
1 -2,5237 -6,3090 15,9220 6,3690 39,8034

2 -2,5462 -6,2939 16,0255 6,4831 39,6131

3 -2,5739 -6,2343 16,0464 6,6249 38,8664

4 -2,6119 -6,1279 16,0054 6,8220 37,5511

5 -2,6609 -6,0604 16,1261 7,0803 36,7284

6 -2,7448 -5,8938 15,0188 7,5339 34,7368

7 -2,8707 -5,8210 15,1601 8,2409 33,8840

8 -3,2017 -5,6206 17,9958 10,2508 31,5922

9 -4,5072 -5,7009 25,6950 20,3149 32,5002

Σ -26,2410 -54,0618 153,9951 79,7198 325,2756

n∑xy - ∑x∑y
a=
n∑x2 - (∑x)2

(9× 153,9951)– (-26,2410 × -54,0618 )


=
(9 × 79,7198 – (-26,2410)2

= -0.004

∑y∑x2 -∑x∑xy
b=
n∑x2 – (∑x)2

(-54,0618 × 79,7198) - (-26,2410 × 153,9951)


=
(9 × 79,7198) – (-26,2410)2
.
= -5,9960
2
(n.xy –(x.y))2
R =
(n.x2 - (x)2 )(n.y2 - (y)2 )

((9 × 153,9951)– (-26,2410 × -54,0618))2


R 2
=
(9 × 79,7198) – (-26,2410)2 )((9×325,2756)- (-54,0618)2 )

= 0,0010

You might also like