Linear regression model Flashcards

1
Q

Q: What is the linear regression model in machine learning?

A

A: A model that fits a straight line to the data to predict outputs based on inputs.

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

Q: What is a regression problem?

A

A: A type of problem where the model predicts continuous numbers, such as prices.

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

Q: Give an example of a regression problem.

A

A: Predicting the price of a house based on its size.

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

Q: What is the difference between regression and classification problems?

A

A: Regression problems predict continuous values while classification problems predict from a finite set of categories.

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

Q: How do you denote an input variable in a dataset for machine learning?

A

Q: How do you denote an input variable in a dataset for machine learning?
A: The input variable is denoted by lowercase x.

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

Q: How do you denote an output variable in a dataset for machine learning?

A

A: The output variable, or target variable, is denoted by lowercase y.

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

Q: What does m represent in a training set?

A

m is the total number of training examples.

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

Q: How is a single training example denoted in machine learning notation?

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

Q: What can a data table represent in the context of supervised learning?

A

A: The input (house size) and output (house price) for each training example.

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

Q: What term is used for the dataset used to train the model?

A

A: The training set.

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

Q: Why do you need a training set in supervised learning?

A

A: To train the model to learn from the examples so it can make accurate predictions on new data.

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

Q: What does the supervised learning algorithm output after processing the training set?

A

A: A function f (historically called a hypothesis).

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

Q: What is y-hat in supervised learning?

A

A: The estimated or predicted value of y by the model.

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

Q: How do you denote an input feature in machine learning?

A

A: As x.

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

Q: How is the term y-hat different from y?

A

A: y represents the actual true value, whereas y-hat is the estimated value predicted by the model.

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

Q: What is the function f called in machine learning terminology?

A

A: The model.

17
Q

Q: How do you write a simple linear regression function?

A
18
Q

Q: What do w and b represent in the linear regression function?

A

A: w is the weight (slope), and b is the bias (intercept).

19
Q

Q: What does a linear regression model with one input variable mean?

A

A: It means a model that predicts outputs using a single feature, such as the size of a house.

20
Q

Q: What is another name for a linear model with one input variable?

A

A: Univariate linear regression.

21
Q

Q: Why do we sometimes use linear functions instead of non-linear functions?

A

A: Linear functions are relatively simple and easy to work with, making them a good foundation for learning more complex models.

22
Q

Q: What is a cost function in machine learning?

A

A: A function that measures how well the model’s predictions match the actual data, and it is used to train and improve the model.