Linear regression and logistic regression Flashcards

1
Q

What is logistic regression used for?

A

To predict an outcome that falls into one of two categories.
Example yes or no, pass or fail.

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

When is logistic regression commonly used?

A

When the outcome that is being predicted is binary.

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

What numbers are the probabilities between when using logistic regression?

A

0 and 1 using the sigmoid function.

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

What is the difference between logistic regression and linear regression?

A

Linear regression is used for predicting continuous outcomes and the output is a numerical value.
Logistic regression is used for predicting categorical outcomes, the output is probability which is converted into categories like 0 or 1.

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

What is a continuous variable?

A

A random variable that can take on an infinite number of values within a certain range and is not countable.

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

What is an example of a continuous variable?

A

Temperature

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

What is linear regression?

A

A simple method used to find the relationship between 2 things.

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

What does linear regression help us understand?

A

How one variable changes when another variable changes.
Eg: how weight changes with height.

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

What 2 questions can linear regression help us answer?

A

How strongly two variables affect each other.
If you can predict outcomes of the variables in the future.

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

Fill the blank:
Linear regression finds a —- that best fits the data.

A

Straight line.

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

What variable is the X variable?

A

The independent variable (thing that is controlled).

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

What variable is the Y variable?

A

The dependent variable (thing being predicted).

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

What is the equation of the straight line in linear regression?

A

Y = mX + b
Y = dependent variable
m = slope of the line
X = independent variable
b = intercept

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