What is the main purpose of linear regression?

Linear Regression in Python – Quiz 1

Quiz
•
Computers
•
University
•
Medium
Emily Anne
Used 1+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
To classify data into categories
To cluster data into groups
To find a linear relationship between the features and the dependent variable
To reduce the dimensionality of data
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the .fit() method do in LinearRegression()?
Plots the regression line
Evaluates the model accuracy
Trains the model on the given data
Predicts values using the trained model
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to make predictions once the model is trained?
model.evaluate()
model.transform()
model.predict()
model.prediction()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the coefficient (slope) of the regression line in a trained model?
model.bias_
model.weights_
model.coef_
model.slope_
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the model.intercept_ attribute represent?
The root mean square error
The slope of the regression line
The predicted value
The y-intercept of the regression line
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What metric is commonly used to evaluate the performance of a linear regression model?
Confusion Matrix
R-squared (R²) Score
F1 Score
Recall
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to visualize a simple linear regression result?
sns.heatmap()
plt.scatter() + plt.plot()
plt.hist()
sns.pairplot()
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if the input features are not reshaped before fitting in scikit-learn (e.g., 1D array)?
Nothing, it will work
A warning will be shown
An error will occur because X must be 2D
The model will ignore the shape
Similar Resources on Quizizz
10 questions
Neural Networks Quiz

Quiz
•
University
7 questions
ILT-ML-03-AT

Quiz
•
University
10 questions
Machine Learning Quiz

Quiz
•
University
10 questions
Exploring Data Visualization

Quiz
•
9th Grade - University
10 questions
Session 5 | U

Quiz
•
University
13 questions
Machine Learning

Quiz
•
9th Grade - University
10 questions
Log Regression

Quiz
•
University
10 questions
Gradient Descent Method

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade