Buat program dengan Visual Basic Application For Excel untuk menentukan persamaan
Metode Kuadrat Terkecil Untuk Kurva Linier atau persamaan regresi linier dari data
berikut :
X 4 6 8 10 14 16 20 22 24 28
Y 30 18 22 28 14 22 16 8 20 8
Dengan
Persamaan Garis
y abx
dengan
n xi yi x i yi
b
x
2 2
n xi i
a ybx
x
xi
y
yi
n n