Lably
Skip to content

Linear predictor function

  • 6 min read
  • 4 chapters

Related on Lably

Through Statistics, Machine learning and Linear function

Definition

The basic form of a linear predictor function f(i) for data point i (consisting of p explanatory variables), for i = 1, ..., n, is

f(i)=β0+β1xi1+⋯+βpxip,

where xik, for k = 1, ..., p, is the value of the k-th explanatory variable for data point i, and β0,…,βp are the coefficients (regression coefficients, weights, etc.) indicating the relative effect of a particular explanatory variable on the outcome.

Notations

It is common to write the predictor function in a more compact form as follows:

  • The coefficients β0, β1, ..., βp are grouped into a single vector β of size p + 1.
  • For each data point i, an additional explanatory pseudo-variable xi0 is added, with a fixed value of 1, corresponding to the intercept coefficient β0.
  • The resulting explanatory variables xi0(= 1), xi1, ..., xip are then grouped into a single vector xi of size p + 1.

Vector Notation

This makes it possible to write the linear predictor function as follows:

f(i)=β⋅xi

using the notation for a dot product between two vectors.

Matrix Notation

An equivalent form using matrix notation is as follows:

f(i)=βTxi=xiTβ

where β and xi are assumed to be a (p+1)-by-1 column vectors, βT is the matrix transpose of β (so βT is a 1-by-(p+1) row vector), and βTxi indicates matrix multiplication between the 1-by-(p+1) row vector and the (p+1)-by-1 column vector, producing a 1-by-1 matrix that is taken to be a scalar.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics and probability