MODULE 2 S2.2 Flashcards

Linear Regression, Ridge and Lasso

1
Q

A constraint where each feature should have as little effect on the outcome as possible (which translates to having a small slope), while still predicting well.

A

Regularization

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

The ‘slope’ parameter is also called _______ or coefficients.

A

weight

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

Regression where the coefficients (w) are chosen not only so that they can predict well on the training data, but also to fit an additional constraint.

A

Ridge Regression

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

T/F Linear Regression is also known as Ordinal Least Squares.

A

FALSE (Ordinary)

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

It is the sum of the squared differences between the predictions and the true values.

A

Mean Squared Error

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

It is a linear model for classification problems.

A

Logistic Regression

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

Logistic Regression happens by fitting a logistic function, also known as the _______________

A

sigmoid function

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

An alternative to Ridge for regularizing linear regression.

A

Lasso

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

It is also referred to as w, weights, coefficients.

A

Slope

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

T/F In Linear Regression, the final output of the model is numeric value (numeric predictions).

A

TRUE

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

The algorithm used for solving regression problems.

A

Linear Regression

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

It makes a prediction using a linear function of the input features.

A

Linear Model

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

T/F In ridge regression, a higher alpha means a more restricted model, so we expect the entries of coef_ to have smaller magnitude for a high value of alpha than for a low value of alpha.

A

TRUE

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

T/F When comparing training set and test set scores, we find that we predict very accurately on the training set, but the R2 on the test set is much worse. This is a sign of underfitting.

A

FALSE

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

T/F Ridge regression is a linear regression model that controls complexity to avoid overfitting.

A

TRUE

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

T/F Dichotomous classes means Yes or No.

A

TRUE

17
Q

T/F In Ridge regression is α (alpha) is lesser, the penalty becomes larger.

A

FALSE

18
Q

What regularization is lasso regression?

A

L1 regularization

19
Q

What does the variable b represent?

A

Intercept / Offset

20
Q

When comparing training set and test set scores, we find that we predict very accurately on the training set, but the R2 on the test set is much worse. This is a sign of:

A

Overfitting

21
Q

Linear Regression is also known as _________________

A

Ordinary Least Squares (OLS)

22
Q

It generates a formula to create a best-fit line to predict unknown values.

A

Linear Model

23
Q

It means explicitly restricting a model to avoid overfitting.

A

Regularization

24
Q

It generates a probability between 0 and 1.

A

Logistic Regression

25
Q

They are called linear because they assume there is a __________ relationship between the __________ variable and each of its ________________.

A

linear
outcome
predictors

26
Q

T/F The ‘offset’ parameter is also called slope.

A

FALSE (intercept / b)

27
Q

It is one of the most commonly used alternatives to standard linear regression.

A

Ridge Regression

28
Q

Types of Linear Models

A

Linear Regression
Logistic Regression

29
Q

Linear regression finds the parameters ___ and ___ that minimize the ______________ error between predictions and the true regression targets, ___ , on the training set.

A

w
b
mean squared
y

30
Q

A model that is easy to analyze and understand.

A

Lasso

31
Q

It is the simplest and most classic linear method for regression.

A

Linear Regression

32
Q

What regularization is ridge regression?

A

L2 regularization

33
Q

T/F Ridge is generally preferred over Lasso, but if you want a model that is easy to analyze and understand then use Lasso.

A

TRUE

34
Q

T/F If α is larger, the penalty becomes larger and w should be smaller.

A

TRUE