1 of 13

Mata Kuliah : Metode Numerik�Minggu ke 13

2 of 13

Mahasiswa dapat melakukan fitting model Menggunakan Regresi Linier Berganda beserta komputasi-nya

Tujuan perkuliahan

3 of 13

MULTIPLE LINEAR REGRESSION

Another useful extension of linear regression is the case where y is a linear function of two or more independent variables. For example, y might be a linear function of x1 and x2, as in

y = a0 + a1x1 + a2x2 + e

Such an equation is particularly useful when fitting experimental data where the variable being studied is often a function of two other variables. For this two-dimensional case, the regression “line” becomes a “plane”

4 of 13

MULTIPLE LINEAR REGRESSION

As with the previous cases, the “best” values of the coefficients are determined by formulating the sum of the squares of the residuals:

5 of 13

MULTIPLE LINEAR REGRESSION

and differentiating with respect to each of the unknown coefficients:

6 of 13

MULTIPLE LINEAR REGRESSION

and differentiating with respect to each of the unknown coefficients:

7 of 13

MULTIPLE LINEAR REGRESSION

The coefficients yielding the minimum sum of the squares of the residuals are obtained by setting the partial derivatives equal to zero and expressing the result in matrix form as

8 of 13

MULTIPLE LINEAR REGRESSION

9 of 13

MULTIPLE LINEAR REGRESSION

10 of 13

MULTIPLE LINEAR REGRESSION

11 of 13

MULTIPLE LINEAR REGRESSION

12 of 13

MULTIPLE LINEAR REGRESSION

where the standard error is formulated as

and the coefficient of determination is computed with Eq. (14.20).

Although there may be certain cases where a variable is linearly related to two or more other variables, multiple linear regression has additional utility in the derivation of power equations of the general form

Such equations are extremely useful when fitting experimental data. To use multiple linear regression, the equation is transformed by taking its logarithm to yield

13 of 13

THANK YOU

FOR YOUR ATTENTION