Linear Regression Task

From GM-RKB
(Redirected from fit linear models)
Jump to navigation Jump to search

A Linear Regression Task is a regression analysis task that is based on linear predictor functions.

[math]\displaystyle{ y_i=f(x_i,\boldsymbol\beta)+\varepsilon_i\quad }[/math] with [math]\displaystyle{ f(x_i,\beta_j )=\sum _{j=0}^{m}\beta _{j}\phi_{j}(x_i) }[/math] for [math]\displaystyle{ \quad i=1,\cdots,n \; }[/math] and [math]\displaystyle{ j=0,\cdots, p }[/math]
in this regression function [math]\displaystyle{ f(X)=f(x_i,\boldsymbol\beta) }[/math] is a parametric regression function which is a linear combination between [math]\displaystyle{ p }[/math] regression coefficients [math]\displaystyle{ \beta_j }[/math] (parameters) and basis functions [math]\displaystyle{ \phi_j(x_i) }[/math]. Usually, the basis function are polynomial, i.e. [math]\displaystyle{ \phi_j(x^i)=x_i^{j} }[/math]
or
[math]\displaystyle{ \mathbf{Y} = \mathbf{X}\mathbf{B} + \mathbf{U}, }[/math] where [math]\displaystyle{ \mathbf{Y}=y_i }[/math] is the measurement matrix, [math]\displaystyle{ \mathbf{X}=\phi _{j}(x_i) }[/math] is design matrix, [math]\displaystyle{ \mathbf{B}=\boldsymbol{\beta}=\beta_j }[/math] the parameters matrix and [math]\displaystyle{ \mathbf{U}=\varepsilon_i }[/math] a errors matrix. This is,

[math]\displaystyle{ \begin{pmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{pmatrix} = \begin{pmatrix} \phi_0(x_1) & \phi_1(x_1) & \cdots & \phi_p(x_1) \\ \phi_0(x_2) & \phi_1(x_2) & \cdots & \phi_p{x_2} \\ \vdots & \vdots & \ddots & \vdots \\ \phi_0(x_n) & \phi_1(x_n) & \cdots & \phi_p(x_n) \end{pmatrix}\begin{pmatrix} \beta_0 \\ \beta_1 \\ \vdots \\ \beta_p \end{pmatrix}+\begin{pmatrix} \varepsilon_1 \\ \varepsilon_2 \\ \vdots \\ \varepsilon_n \end{pmatrix} }[/math]

by estimating the best-fitting [math]\displaystyle{ \beta }[/math] parameters that optimizes the following objective function:

[math]\displaystyle{ E(f)=\sum _{i=1}^{n}L(y_{i},f(x_{i},{\boldsymbol \beta })) }[/math]

[math]\displaystyle{ L(\cdot) }[/math] is an error function that may be derived as a loss function or the negative of a likelihood function.



References

2017

2014

  • (Wikipedia, 2014) ⇒ http://en.wikipedia.org/wiki/linear_regression Retrieved:2014-11-23.
    • In statistics, linear regression is an approach for modeling the relationship between a scalar dependent variable y and one or more explanatory variables denoted X. The case of one explanatory variable is called simple linear regression. For more than one explanatory variable, the process is called multiple linear regression. (This term should be distinguished from multivariate linear regression, where multiple correlated dependent variables are predicted,rather than a single scalar variable.)

      In linear regression, data are modeled using linear predictor functions, and unknown model parameters are estimated from the data. Such models are called linear models. Most commonly, linear regression refers to a model in which the conditional mean of y given the value of X is an affine function of X. Less commonly, linear regression could refer to a model in which the median, or some other quantile of the conditional distribution of y given X is expressed as a linear function of X. Like all forms of regression analysis, linear regression focuses on the conditional probability distribution of y given X, rather than on the joint probability distribution of y and X, which is the domain of multivariate analysis.

      Linear regression was the first type of regression analysis to be studied rigorously, and to be used extensively in practical applications. This is because models which depend linearly on their unknown parameters are easier to fit than models which are non-linearly related to their parameters and because the statistical properties of the resulting estimators are easier to determine.

      Linear regression has many practical uses. Most applications fall into one of the following two broad categories:

      • If the goal is prediction, or forecasting, or reduction, linear regression can be used to fit a predictive model to an observed data set of y and X values. After developing such a model, if an additional value of X is then given without its accompanying value of y, the fitted model can be used to make a prediction of the value of y.
      • Given a variable y and a number of variables X1, ..., Xp that may be related to y, linear regression analysis can be applied to quantify the strength of the relationship between y and the Xj, to assess which Xj may have no relationship with y at all, and to identify which subsets of the Xj contain redundant information about y.
    • Linear regression models are often fitted using the least squares approach, but they may also be fitted in other ways, such as by minimizing the "lack of fit" in some other norm (as with least absolute deviations regression), or by minimizing a penalized version of the least squares loss function as in ridge regression (L2-norm penalty) and lasso (L1-norm penalty). Conversely, the least squares approach can be used to fit models that are not linear models. Thus, although the terms "least squares" and "linear model" are closely linked, they are not synonymous.


2013

2011a

2011b