Admin 08 Jun 2026 08:02

 

Multiple Linear Regression Analysis

1. Introduction

Multiple Linear Regression (MLR) is a statistical technique used to model the linear relationship between a single dependent variable (often called the response) and two or more independent variables (the predictors). While simple linear regression deals with only one predictor, MLR expands the scope, allowing analysts to capture the joint effect of several factors on the outcome.

The method is widely applied in economics, engineering, medicine, social sciences, and any field where understanding or predicting a quantitative outcome based on a set of explanatory variables is essential.

2. The Mathematical Model

In matrix notation the MLR model is written as:

Y = X +

  • Y n 1 vector of observed responses.
  • X n p design matrix (first column of ones for the intercept, the remaining p1 columns contain the predictor values).
  • p 1 vector of unknown coefficients (, ,,) to be estimated.
  • n 1 vector of random errors, assumed to be independent, identically distributed with mean0 and variance .

The estimated coefficients are obtained by minimizing the sum of squared residuals:

= (XX) XY

Provided XX is nonsingular (i.e., the predictors are not perfectly collinear), the solution is unique.

3. Assumptions Behind the Model

  1. Linearity: The expected value of Y is a linear combination of the predictors.
  2. Independence: Observations are independent of each other.
  3. Homoscedasticity: The variance of the errors is constant across all levels of the predictors.
  4. Normality: Errors are normally distributed (important for inference).
  5. No perfect multicollinearity: No predictor can be expressed as an exact linear combination of the others.

Violations of these assumptions can lead to biased estimates, inflated standard errors, or misleading significance tests.

4. Estimating the Model

4.1. Ordinary Least Squares (OLS)

OLS is the most common estimation technique. Using the formula above, most statistical packages compute , the residuals e = Y X, and the residual sum of squares (RSS). From these quantities, the coefficient of determination (R) and adjusted R are derived.

4.2. Software Implementation

Below is a concise example in Python using statsmodels:

import pandas as pdimport statsmodels.api as sm# Load data (example.csv must contain columns: y, x1, x2, x3)df = pd.read_csv('example.csv')X = df[['x1', 'x2', 'x3']]X = sm.add_constant(X)          # adds intercept termy = df['y']model = sm.OLS(y, X).fit()print(model.summary())

The summary() method prints coefficient estimates, standard errors, tvalues, pvalues, confidence intervals, R, adjusted R, and diagnostic statistics.

5. Interpreting Coefficients

Each coefficient represents the expected change in the response variable for a oneunit increase in predictor X, holding all other predictors constant. For example, if = 4.5, then a oneunit rise in X leads to an expected increase of 4.5 units in Y, assuming the values of X, X, remain unchanged.

Significance of a coefficient is tested with the null hypothesis H: = 0. The tstatistic is t = / SE(). A small pvalue (typically < 0.05) indicates that the predictor contributes meaningfully to the model.

6. Model Diagnostics

6.1. Residual Plots

Plotting residuals versus fitted values helps detect nonlinearity, heteroscedasticity, or outliers.

6.2. Normal Probability Plot (QQ Plot)

A QQ plot compares the distribution of residuals to a normal distribution. Deviations from the straight line suggest nonnormal errors.

6.3. Variance Inflation Factor (VIF)

VIF quantifies multicollinearity. VIF for predictor X is 1 / (1 - R), where R is the R from regressing X on all other predictors. Values > 5 (or 10) often signal problematic collinearity.

6.4. Influence Measures

Statistics such as Cooks distance, leverage, and DFFITS identify observations that disproportionately affect the fitted model. Large values merit a closer look; they may be data entry errors or genuine extreme cases.

7. Model Selection

When many predictors are available, selecting a parsimonious subset improves interpretability and predictive performance. Common strategies include:

  • Forward selection: Start with no predictors and add the most significant one at each step.
  • Backward elimination: Begin with all predictors and remove the least significant.
  • Stepwise selection: Combine forward and backward steps.
  • Regularization: Techniques like Ridge (L) and Lasso (L) apply penalties to coefficient magnitude, automatically shrinking less important coefficients toward zero.

Model comparison metrics such as AIC (Akaike Information Criterion), BIC (Bayesian Information Criterion), and adjusted R guide the choice of the best-fitting yet simplest model.

8. Practical Example: Predicting House Prices

Consider a dataset containing the following variables:

  • Price sale price of a house (USD).
  • Size total livable area (sqft).
  • Bedrooms number of bedrooms.
  • Age years since construction.
  • Distance distance to the city centre (miles).

The MLR model:

Price = + Size + Bedrooms + Age + Distance +

After fitting, suppose we obtain:

CoefficientEstimateStd. Errortvaluepvalue
Intercept15,2005,4302.800.006
Size112814.0<0.001
Bedrooms7,3002,2003.320.001
Age-420150-2.800.006
Distance-1,050300-3.500.001

Interpretation: each additional square foot adds roughly $112 to the price, holding other features constant. Older houses and those farther from the city centre have lower values, with the impact quantified by the negative coefficients for Age and Distance.

9. Limitations and Extensions

While MLR is powerful, it has constraints:

  • It only captures linear relationships. Nonlinear patterns require transformations or nonlinear models.
  • Outliers can heavily influence estimates; robust regression methods (e.g., RANSAC, Huber) may be needed.
  • When predictors are highly correlated, coefficient estimates become unstable; principal component regression or partial least squares can alleviate this.
  • For categorical predictors with many levels, dummy variable creation can increase dimensionality dramatically.

Extensions such as Generalized Linear Models (GLM), MixedEffects Models, and MachineLearning algorithms (e.g., random forests, gradient boosting) broaden the toolbox for situations where traditional MLR assumptions do not hold.

10. Key Takeaways

  • Multiple Linear Regression models the relationship between one continuous outcome and several predictors.
  • OLS provides closedform estimates when the design matrix has full rank.
  • Checking assumptions (linearity, independence, homoscedasticity, normality, no multicollinearity) is essential.
  • Diagnostic plots and statistics (VIF, Cooks distance, residual analyses) help identify problems.
  • Model selection balances goodnessoffit with simplicity; criteria like AIC, BIC, adjusted R, or regularization methods aid this process.
  • Interpretation focuses on the magnitude, sign, and statistical significance of each coefficient.

Mastering MLR equips analysts with a versatile technique that forms the basis for many advanced statistical and machinelearning methods, making it an indispensable skill across scientific and business domains.

```

Reference Files For Analisis Regresi Linier Berganda
Screenshoot
File Name
bab_iii.pdf

File Size
0.57 MB

File Type
PDF

File Site
Description
This file is just a reference file for Analisis Regresi Linier Berganda. Does not guarantee that the specific things you want are included in it.
Direct download (wait 10 seconds)

Analisis Regresi Linier Berganda and Reference File Download Link


admin
Admin
2026-06-08 08:02:05

Regresi Linier Berganda dan Link Download File Referensi


admin
Admin
2026-06-07 10:32:06

Regresi Linear Berganda dan Link Download File Referensi


admin
Admin
2026-06-01 01:06:04

Regresi Linier Ganda dan Link Download File Referensi


admin
Admin
2026-06-01 04:45:08

Klasifikasi Citra Lahan Kelapa Sawit Menggunakan Metode Regresi Linier dan Link Download F...


admin
Admin
2026-06-07 10:42:14