Regression Flashcards

(19 cards)

1
Q

Regression vs classification

A
  • Regression: when we predict quantitative outputs
  • Classification: when we predict categorical (qualitative) outputs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Regression

A

determine the relationship between the
dependent variable ๐‘Œ and a set of independent variables ๐‘‹

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

Dependent and independent values

A

X are independent, Y changes as a consequence of other variables

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

How do we fit linear model

A

We fit it through m inimizing the difference between the actual and predicted Y value.

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

Multiple Linear Regression

A

multiple input variables

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

Ordinary Least Squares

A

Used to fit regression line

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

How to measure the fit of the model

A

R2 measure.

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

Gradient Descent

A

Itโ€™s an optimization algorithm that finds the linear regression coefficients
iteratively

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

Problems with fitting the data

A

Over-fitting: the model models the training data
too well. Under-fitting: the model that can neither model the
training data nor generalize to new data

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

Problems with OLS

A

Low performance (such as over-fitting and Interpretation: to get the bigger picture. Solution is regularizing the coefficient estimates (Shrinkage Methods) which can be done with RIdge and lasso regression

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

Ridge regression

A

Shrinks the regression coefficients by imposing a
penalty on their size

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

Lasso Regression

A

Lasso regression is a shrinkage method like ridge. The only difference
is instead of taking the square of the coefficients, magnitudes are taken
into account:

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

Assumptions in linear regression. what is it?

A

โ€œassumptionsโ€ are statements that we take to be true about our data and the model in order for the mathematical properties of linear regression to hold.

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

What are the assumptions?

A

The observations are independent (random sampling)
The relationship of ๐‘Œ with ๐‘‹ and the error term is linear
๐‘Œ is normally distributed at each value of ๐‘‹
The error term is normally distributed with mean zero and constant
variance
The ๐‘‹ variables are independent(only multiple linear regression)

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

Evaluation of a linear regression model

A

The performance of the model must be reported as an error for the predictions. Some methods are MSE, RMSE, MAE, MAPE

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

MSE

A

Is calculated as the mean or average of the squared differences
between predicted and expected target values in a dataset

17
Q

RMSE

A

RMSE is calculated as the square root of the MSE, which means that
the units of the error are the same as the units of the target value that is
being predicted:

18
Q

MAE

A

MAE is calculated as the average of the absolute error values, and like
RMSE, the units of the error score match the units of the target value
that is being predicted

19
Q

MAPE

A

MAPE is the percentage equivalent of MAE.