Multiple Regression Analysis

Fit multiple linear regression model with diagnostics. Performs multiple linear regression with R², adjusted R², coefficient tests, VIF for multicollinearity…

Performs multiple linear regression with R², adjusted R², coefficient tests, VIF for multicollinearity, and residual diagnostics. Last column is treated as the response variable.

What Is Multiple Linear Regression?

Multiple linear regression extends simple regression to model the relationship between a response variable (y) and two or more predictor variables (x₁, x₂, …, xₚ). The model y = β₀ + β₁x₁ + β₂x₂ + ⋯ + βₚxₚ + ε is fitted using Ordinary Least Squares, minimizing the sum of squared residuals.

Key diagnostics include R² (variance explained), Adjusted R² (penalized for number of predictors), F-test p-value (overall model significance), individual coefficient p-values, and the Variance Inflation Factor (VIF) for detecting multicollinearity — correlation among predictors that inflates standard errors.

A VIF above 5-10 indicates problematic multicollinearity. Remedies include removing redundant variables, combining correlated predictors, or using regularization techniques (Ridge, Lasso). The residual plot should show random scatter; patterns indicate model misspecification.

Formula: y = β₀ + β₁x₁ + β₂x₂ + ⋯ + βₚxₚ + ε β = (XᵀX)⁻¹Xᵀy R² = 1 − SS_res/SS_tot Adj R² = 1 − (1−R²)(n−1)/(n−p−1) VIF_j = 1/(1 − R²_j)

Example Calculation

Predicting house price (y) from area x₁ (sq ft) and age x₂ (years). Five houses: area 1,300/1,800/1,900/2,000/2,400 sq ft, age 10/5/12/25/15 years, price $150,000/$233,000/$216,000/$208,000/$249,000. The least-squares fit gives β₀ = 50,000, β₁ = 100 (each sq ft adds $100), β₂ = −2,000 (each year reduces $2,000). R² = 0.92, Adj R² = 0.84. VIF(x₁) = 1.2, VIF(x₂) = 1.2 — no multicollinearity.

When to Use This Calculator

Common Mistakes to Avoid

How to Interpret Results

Related Standards & References

Frequently Asked Questions

What is Adjusted R² and why is it better than R²?

R² always increases (or stays the same) when you add more predictors, even irrelevant ones. Adjusted R² penalizes for the number of predictors, decreasing when a new variable does not improve the model enough to justify the added complexity. Use Adjusted R² for model comparison when the number of predictors differs.

What does a high VIF value mean?

VIF (Variance Inflation Factor) measures how much the variance of a coefficient is inflated due to correlation with other predictors. VIF = 1 means no collinearity; VIF > 5 suggests moderate collinearity; VIF > 10 indicates severe multicollinearity. High VIF makes individual coefficient estimates unreliable, though overall predictions may still be accurate.