Regression Flashcards

1
Q

What is Linear Regression?

A

Linear Regression is a statistical method used to model the relationship between one or more independent variables (Predictors) and an dependent variable(outcome)

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

What is the assumption in Linear Regression?

A

The core assumption behind linear regression is that there exist a linear relation between the independent variables and the dependent variable. (proportional change)

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

What is the mathematical equation behind Linear Regression?

A

y=mx+b
y = b0 + b1x1 + b2x2 + …. bnxn

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

What is the value that we try to find in Linear Regression?

A

We try to find the coefficients that best fit the data.

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

How do we find the line in Linear Regression?

A

Using least squares.
Minimize Sum of Residual Squares

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

What is Least Squares?

A

Smallest sum of residual squares

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

What are the methods to compare models in Linear Regression?

A

R-square, P Value

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

What does Logistic Regression predict?

A

Logistic Regression(Classification) gives the probability of whether a data point belongs to a class or not(Obese or Not Obese) based on one or more predictors(Size, Size & Genotype etc.).

i.e. It classifies a data point.

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

How does logistic regression find the best fit?

A

1) Converts the Y axis to log(odds), allowing for straight lines, which can be used to find the best fit.

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

How do we find the best fit line in Logistic Regression?

A

Using Maximum Likelihood

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

Why do we use maximum likelihood instead of Least Squares in Logistic Regression?

A

When y axis is transformed into log(y), then the class values are pushed to negative and positive infinity. Hence residuals will be infinite.

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

Describe the steps in finding best fitting squiggle in Logistic Regression?

A

1) Transform the Y axis to Log(Y)
2) Assign a candidate straight line b0+ b1x1 in the log(Y) graph.
3) Project the datapoints at either infinites to the candidate line.
4)Take the Log(Y) values for each datapoint for the candidate line.

5) Transform log(Y) back into probabilities for each datapoint

6)Take the likelihood(Y value) for each datapoint belonging to each class.
7) Product(Likelihoods of belonging to one class) * Product (Likelhood of belonging to other class)

OR

Sum(Log(All Likelihoods))

8) This gives the likelihood for the candidate line
9) Change the line to find a lines that maximizes the likelihood

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

What is the equation for Logistic Regression?

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