Linear Regression Flashcards

(11 cards)

1
Q

What are basis functions? What they possibilitate?

A

Are functions that transform the input

They are used to extend linear models to non-linear relationships

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

What is the Ordinary Least Square? When is it most suitable to use?

A

It is a method that calculates the optimal weight vector by multiplying the inverse of the multiplication of the transpose of the basis by the basis by the transpose of the basis and the target vector.

It derives the optimal weights analytically using normal equations.

It yields the exact global optimum when the error function is quadratic and convex .

It is most suitable to smaller datasets.

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

How can we solve a regression problem for large scale problems?

A

For large scale problems where the closed-form solutions is impractical, iterative methods such as stochastic gradient descent are discussed.

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

Why the closed-form solution is not suitable for large problems?

A

Because it requires the computation of the inverse of the multiplication of the transpose of the basis by the basis what is computationally expensive with larga datasets (roughly O(M^3)

Also it assumes that that same matrix is nonsingular (invertible), if this condition fails, the closed-form solution might not exist or require regularization.

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

What is the central goal when using maximum likelihood for solving linear regressions? What does the likelihood function measure?

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

What are the steps taken to maximize the likelihood that a given set of parameters generated the data we have?

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

What is the size of the penalties for Ridge and Lasso? Which one can be solved with a closed form solution? Which one produce sparse models?

A

Proportional to square of weights

Proportional to absolute value of weights

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

What is the basic assumption done in the Bayesian approach to linear regression? What does this possibilitates?

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

What does it means to consider the weights as random variables?

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

Give a general framework starting from the prior distribution of the weights up to the prediction moment.

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

How does the Bayesian method related to regularizatiin?

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