Computer Solutions of Multiple Regression
Statistics • Multiple Regression
Frequently Asked Questions
Why is QR decomposition recommended for computing multiple regression coefficients?
QR decomposition solves the least-squares problem without explicitly forming (X^T X) and is typically more numerically stable when predictors are correlated. Many statistical packages rely on QR-based routines for this reason.
What are normal equations and why can they be unstable?
Normal equations compute coefficients using (X^T X)^-1 X^T y. When predictors are collinear or nearly collinear, X^T X can become ill-conditioned, which can amplify rounding errors and produce unstable coefficients.
What does the condition number cond(X) tell me?
The condition number summarizes how sensitive the coefficient solution is to small numerical errors or small changes in the data. Large cond(X) values indicate potential instability and often reflect multicollinearity among predictors.
How do I choose gradient descent settings like learning rate and iterations?
A learning rate that is too large can prevent convergence, while a very small learning rate may converge slowly. This calculator allows setting eta to 0 to auto-pick a stable step size and shows SSE vs iteration to help you judge convergence.
What does the heatmap of |X^T X| show in this calculator?
It visualizes the magnitude of pairwise relationships among predictors through the structure of X^T X. Strong off-diagonal blocks suggest predictors move together and can signal multicollinearity patterns that affect numerical stability.