Math 2.0

Statistics Definition

Linear regression

Builds on Statistical modelExpected valueVarianceCovarianceRank of a matrix

Definition

Let n≥p≥1n \ge p \ge 1. Let XX be a known n×pn \times p real matrix, the design matrix, whose ii-th row xiTx_i^T holds the explanatory variables of unit ii. The linear regression model for a response vector y=(y1,…,yn)Ty = (y_1, \ldots, y_n)^T is y=Xβ+ε,that is,yi=xiTβ+εi,y = X \beta + \varepsilon, \qquad \text{that is,} \qquad y_i = x_i^T \beta + \varepsilon_i, where:

  1. β∈ℝp\beta \in \R^p is an unknown vector of coefficients;
  2. ε=(ε1,…,εn)T\varepsilon = (\varepsilon_1, \ldots, \varepsilon_n)^T is a random error vector with mean 𝔼ε=0\mathbb{E}\varepsilon = 0;
  3. the errors are uncorrelated with a common unknown variance σ2>0\sigma^2 > 0, that is, Cov⁡(ε)=σ2In\operatorname{Cov}(\varepsilon) = \sigma^2 I_n.

Usually XX is assumed to have full column rank pp, and often the errors are assumed normal.

Remarks

Example: simple linear regression yi=β0+β1ti+εiy_i = \beta_0 + \beta_1 t_i + \varepsilon_i is the case p=2p = 2 with rows xiT=(1,ti)x_i^T = (1, t_i). The model yi=β0+β1ti+β2ti2+εiy_i = \beta_0 + \beta_1 t_i + \beta_2 t_i^2 + \varepsilon_i is also a linear regression, with rows (1,ti,ti2)(1, t_i, t_i^2), because it is linear in β\beta. Non-example: yi=β0eβ1ti+εiy_i = \beta_0 e^{\beta_1 t_i} + \varepsilon_i is not linear in (β0,β1)(\beta_0, \beta_1), so it is a nonlinear regression model. The conditions 2 and 3 are the Gauss–Markov conditions; when they hold and XX has full column rank, ordinary least squares is the best linear unbiased estimator of β\beta. Weaker forms allow correlated or heteroscedastic errors, which leads to generalised least squares.

Reading path

To understand this page from the ground up, read these 6 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Covariance concept
  2. Expected value concept
  3. Rank of a matrix concept
  4. Statistical model concept
  5. Variance concept
  6. Linear regression definition

Further reading

  1. Web https://en.wikipedia.org/wiki/Linear_regression
About this page
TagPKFPHK189T
URIm2://PKFPHK189T
Kinddefinition
WritingW0 stub
MSC62J05
DefinesLinear regression
UsesStatistical model, Expected value, Variance, Covariance, Rank of a matrix

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.