In statistics, linear regression is a linear approach to modelling the relationship between a scalar response (or dependent variable) and one or more explanatory variables (or independent variables).
Category | Usage | Methematics | Application Field |
---|---|---|---|
Supervised Learning | Regression | Many... |
- Linear Regression
- Locally Weighted Linear Regression (LWLR)
- Ridge Regression
- Stagewise Linear Regression
- Train
- Find the regression weights
- Test
- Measure the R2
- Correlation of the predicted value and tata, measure the success of the models
-
input data:
$X$ -
regression weights:
$w$ -
predicted value:
$\hat{y} = X^T w$
- error defination: difference between predicted y and the actual y
Squared error:
Squared error in matrix notation:
=> Take the derivative of this with respect to w =>
Set this to 0 and solve for w to get:
- sklearn.preprocessing.PolynomialFeatures: Seems it can improve the accuracy.