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
MPB Week 6

Quiz
•
University
10 questions
Neural Networks Quiz

Quiz
•
University
7 questions
Machine Learning

Quiz
•
University
10 questions
Graficas con matlab y pandas

Quiz
•
University
6 questions
Intro to ML: Neural Networks Lecture 2 Part 1

Quiz
•
University
9 questions
IDS TAE-III

Quiz
•
University
12 questions
Python Quiz-2.2

Quiz
•
University
10 questions
Quiz 11

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade