Multiple linear regression (gradient descent) Flashcards

1
Q

Q: How is multiple linear regression written using vector notation?

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

Q: What is the purpose of vectorizing parameters w1 to wn?

A

A: To treat them as a single vector w for more efficient computation.

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

Q: What does the cost function J depend on in vectorized notation?

A

A: It depends on the vector of parameters w and the scalar b.

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

Q: What is the difference in the error term between univariate and multivariate regression?

A

A: In multivariate regression, both w and
x are vectors.

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

Q: What is an alternate method to gradient descent for finding w and b?

A

A: The normal equation, which is a direct method using linear algebra techniques.

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

Q: What is a disadvantage of the normal equation method?

A

A: It’s not generalizable to other learning algorithms and can be slow with many features.

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

Q: What significant aspect makes the gradient descent more preferred?

A

A: Its adaptability to different learning problems and efficient implementation in libraries like NumPy.

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

Q: What are some tricks to improve the performance of multiple linear regression?

A

A: Properly scaling features and choosing a suitable learning rate α.

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

Q: Why is multiple linear regression considered widely used?

A

A: It is practical for a variety of prediction problems and easy to implement.

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

Q: Why is it recommended to understand NumPy for implementing regression?

A

A: NumPy efficiently handles large calculations and supports vectorization, crucial for implementing ML algorithms.

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

Q: What is essential before executing gradient descent efficiently?

A

A: Understanding how to calculate predictions and cost in multiple regression using vector operations.

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

Q: How can the choice of learning rate α affect performance?

A

A: The correct learning rate can significantly speed up convergence and improve model performance.

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