Linear Regression Flashcards

(12 cards)

1
Q

What is linear regression?

A

Linear regression assumes a linear functional relationship between the predictor and target variables

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the formula for linear regression?

A

y = f(x,w) + ∈

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why can we use linear and non-linear basis functions for linear regression?

A

Because our model remains linear w.r.t w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does a learned regression model do?

A

A learned regression model predicts y for new values of x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is Ordinary Least Squares (OLS)?

A

Ordinary Least Squares finds the weights that minimises the sum of squared residuals

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the formula for OLS?

(also known as squared error)

A

R(w) = Σ ri^2
= Σ(yi - ŷi(xi,w))^2
= Σ(yi - wTΦ(xi))^2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the regression function?

A

ŷ(xi,w) = Σ wjΦj(xi) = wTΦ(xi)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What do we get when we minimise R(w) w.r.t w to estimate Wols?

A

Σ yiΦT(xi) = wT(Σ Φ(xi)ΦT(xi))

This can be expressed in matrix-vector form by defining the design matrix Φ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the normal equation for solving Wols?

A

ΦTy = ΦTΦw
Wols - (ΦTΦ)^-1 ΦTy

(also known as computing the pseudoinverse of the design matrix)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a consequence of using the inversion in the normal equation?

A

Numerical inversions of matrices can be computationally expensive if the matrix is large

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the in-sample error?

A

Ein(h) = 1/N Σ (h(x(n)) - y(n))^2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the hypothesis for linear regression?

A

h(x) = Σ wixi = wTx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly