REGRESSION Flashcards

1
Q

what is linear regression?

A

shows a linear relationship between a dependent (y) and one or more independent (x) variables

it finds how the value of the dependent variable is changing according to the value of the independent variables.

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

what is best fit line?

A

When working with linear regression, our main goal is to find the best fit line that means the error between predicted values and actual values should be minimized. The best fit line will have the least error.

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

what is the key point of linear regression?

A

dependent variable must be a continuous/real value.

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

what are types of linear regression?

A

simple and multiple

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

what is simple linear regression?

A

response variable is affected by one predictor variable

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

what is multiple linear regression?

A

response variable is affected by more than one predictor variable

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

formula for simple linear regression?

A

y’=b+w1x1

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

formula for multiple linear regression?

A

y1=b+w1x1+w2x2+w3x3

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

if the model’s prediction is perfect then?

A

If the model’s prediction is perfect, the loss is zero; otherwise, the loss is greater.

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

what is cost function?

A

the different values of weights give different line of regression, so cost function is used to estimate the values of the co-efficient for the best fit line.

cost function optimizes the weights and measures how well a linear regression model is performing

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

ridge regression is used to prevent?

A

overfitting

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

what is regularization?

A

it is a strategy used to overcome overfitting by providing the machine with new knowledge. It is a type of regression. But here the co-efficient values are reduced to zero.

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

why use regularization?

A

it is not uncommon for our model to function well enough on training data but poorly on unseen or test data. the model is unable to forecast the output for unknown data and so the model is referred to as an overfitted model. To overcome this we use regularization

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

what is noise?

A

points in the data that are there by accident. They do not show the true nature of the model and can mislead.

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

how is cost function different in ridge and lasso regression?

A

The cost function for both ridge and lasso regression are similar. However, ridge regression takes the square of the coefficients and lasso takes the magnitude.

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

what is ridge regression

A

shrinks the co-efficient towards zero

works best when there are many small to medium sized coefficients

cannot eliminate features

adds a penalty term proportional to the sum of sq coefficients

17
Q

what is lasso regression?

A

shrinks the coefficient to be exactly zero

works best when there are few large coefficients

can eliminate features

adds a penalty term proportional to the sum of absolute values of coefficients