Linear Regression
A statistical and machine learning method that builds a predictive model by fitting a linear relationship between independent variables and a dependent variable, producing coefficients (weights) and an intercept that form an interpretable linear equation.
Core Facts
Timeline (last 90 days)
When the dependent variable is a continuous numerical value, linear regression is a reasonable starting point with strong interpretability.
The coefficients of linear regression are essentially the weights in the model formula and require no additional conversion.
Dragging an outlier in linear regression makes it visually apparent how the least squares method is skewed by anomalous values.
A univariate linear regression model can be expressed as y = w * x + b, where w is the weight (slope) and b is the bias (intercept).
Multivariate linear regression can be expressed in matrix form as y = X · W + b.
Normalization is not strictly necessary when an analytical solution (normal equation) exists for linear regression, but it is almost an essential step when using iterative optimization.
The gradient descent framework of linear regression can be transferred to more complex models such as logistic regression and neural networks.
The loss curve of linear regression takes the shape of a convex bowl; convexity guarantees that optimization has a unique global minimum, and gradient descent will not get trapped in local optima.
A project implementing linear regression from scratch using NumPy connects calculus, linear algebra, and programming, helping one understand the effect of gradient descent and learning rate on convergence.
The author compared four models—linear regression, ridge regression, random forest, and gradient boosting—and all four exhibited exactly the same bias.
3 more timeline events
All Facts (13)
A univariate linear regression model can be expressed as y = w * x + b, where w is the weight (slope) and b is the bias (intercept).
65%UnverifiedWhen the dependent variable is a continuous numerical value, linear regression is a reasonable starting point with strong interpretability.
50%UnverifiedThe coefficients of linear regression are essentially the weights in the model formula and require no additional conversion.
50%UnverifiedDragging an outlier in linear regression makes it visually apparent how the least squares method is skewed by anomalous values.
50%UnverifiedThe gradient descent framework of linear regression can be transferred to more complex models such as logistic regression and neural networks.
50%UnverifiedMultivariate linear regression can be expressed in matrix form as y = X · W + b.
50%UnverifiedNormalization is not strictly necessary when an analytical solution (normal equation) exists for linear regression, but it is almost an essential step when using iterative optimization.
50%UnverifiedThe loss curve of linear regression takes the shape of a convex bowl; convexity guarantees that optimization has a unique global minimum, and gradient descent will not get trapped in local optima.
50%UnverifiedA project implementing linear regression from scratch using NumPy connects calculus, linear algebra, and programming, helping one understand the effect of gradient descent and learning rate on convergence.
50%UnverifiedUnder the homoscedasticity assumption, noise variance is constant, which is the standard assumption of classical linear regression; under heteroscedasticity, variance changes with input.
50%UnverifiedClassical linear regression adopts the homoscedasticity assumption.
50%Unverified线性回归的闭式解为 w = (X^T X)^{-1} X^T y,涉及矩阵转置、矩阵乘法和矩阵求逆
50%UnverifiedThe author compared four models—linear regression, ridge regression, random forest, and gradient boosting—and all four exhibited exactly the same bias.
50%