
Linear Regression in Python – Quiz 1
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Emily Anne
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of linear regression?
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()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
ECM3434 Business Analysis 1 - Data Modelling
Quiz
•
University
10 questions
Quiz CodeIgniter 4
Quiz
•
University
11 questions
Day #03 | Quiz
Quiz
•
University
10 questions
PYTHON_CHAPTER 6
Quiz
•
University
10 questions
CS1010 Lab 02
Quiz
•
University
10 questions
Round - 3
Quiz
•
University
10 questions
pictoblox_lvl_1
Quiz
•
2nd Grade - University
9 questions
CHAPTER 5 ONLINE QUIZ
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
