ArticleslgStudy

mathematics

Linear predictor function

Linear predictor function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Linear predictor function rather than just read about it. In short: In statistics and in machine learning, a linear predictor function is a linear function (linear combination) of a set of coefficients and explanatory variables (independent variables), whose value is used to predict the outcome of a dependent variable. This sort of function usually comes in linear regression, where the coefficients are called regression coefficients.

Key takeaways

  • Linear predictor function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Linear predictor function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Linear predictor function from memory before moving on to harder problems.

Reference excerpt

In statistics and in machine learning, a linear predictor function is a linear function (linear combination) of a set of coefficients and explanatory variables (independent variables), whose value is used to predict the outcome of a dependent variable. This sort of function usually comes in linear regression, where the coefficients are called regression coefficients. However, they also occur in various types of linear classifiers (e.g. logistic regression, perceptrons, support vector machines, and linear discriminant analysis), as well as in various other models, such as principal component analysis and factor analysis. In many of these models, the coefficients are referred to as "weights".

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

f ( i ) = β 0 + β 1 x i 1 + ⋯ + β p x i p , {\displaystyle f(i)=\beta _{0}+\beta _{1}x_{i1}+\cdots +\beta _{p}x_{ip},}

where x i k {\displaystyle x_{ik}} , for k = 1, ..., p, is the value of the k-th explanatory variable for data point i, and β 0 , … , β p {\displaystyle \beta _{0},\ldots ,\beta _{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 ) = β ⋅ x i {\displaystyle f(i)={\boldsymbol {\beta }}\cdot \mathbf {x} _{i}}

using the notation for a dot product between two vectors.

Matrix Notation An equivalent form using matrix notation is as follows:

f ( i ) = β T x i = x i T β {\displaystyle f(i)={\boldsymbol {\beta }}^{\mathrm {T} }\mathbf {x} _{i}=\mathbf {x} _{i}^{\mathrm {T} }{\boldsymbol {\beta }}}

where β {\displaystyle {\boldsymbol {\beta }}} and x i {\displaystyle \mathbf {x} _{i}} are assumed to be a (p+1)-by-1 column vectors, β T {\displaystyle {\boldsymbol {\beta }}^{\mathrm {T} }} is the matrix transpose of β {\displaystyle {\boldsymbol {\beta }}} (so β T {\displaystyle {\boldsymbol {\beta }}^{\mathrm {T} }} is a 1-by-(p+1) row vector), and β T x i {\displaystyle {\boldsymbol {\beta }}^{\mathrm {T} }\mathbf {x} _{i}} 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.

Linear regression An example of the usage of a linear predictor function is in linear regression, where each data point is associated with a continuous outcome yi, and the relationship written

y i = f ( i ) + ε i = β T x i + ε i , {\displaystyle y_{i}=f(i)+\varepsilon _{i}={\boldsymbol {\beta }}^{\mathrm {T} }\mathbf {x} _{i}\ +\varepsilon _{i},}

where ε i {\displaystyle \varepsilon _{i}} is a disturbance term or error variable — an unobserved random variable that adds noise to the linear relationship between the dependent variable and predictor function.

Stacking In some models (standard linear regression, in particular), the equations for each of the data points i = 1, ..., n are stacked together and written in vector form as

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Linear predictor function

Start with the simplest possible case. Write down what Linear predictor function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Linear predictor function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Linear predictor function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Linear predictor function

In research
Linear predictor function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Linear predictor function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Linear predictor function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Machine learning, Regression analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Linear predictor function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Linear predictor function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Linear predictor function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Linear predictor function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Linear predictor function in simple terms?

In statistics and in machine learning, a linear predictor function is a linear function (linear combination) of a set of coefficients and explanatory variables (independent variables), whose value is used to predict the outcome of a dependent variable. This sort of function usually comes in linear…

Why does Linear predictor function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Linear predictor function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Linear predictor function.

Tags

  • Machine learning
  • Regression analysis

Keep exploring