Linear Regression
Linear Regression
7 0 0 4
Courses To Do Assignment Overdue Quiz Overdue Completed
Continue
How many employees having more than 5 years experience are earning more than 60000?
Marked Answer :
14
Correct Answer :
14
Marked Answer :
12
Correct Answer :
12
We're Online!
Help Center
https://lms.intellipaat.com/members/saurabhsinghsikarwarudaygmail-com/course/course-results/?action=850752 1/5
29/02/2024, 13:09 Intellipaat
The scatter plot in the following image shows the relationship between the
“YearsExperience” and “Salary” columns. What possible inferences can be drawn from the
plot?
Marked Answer :
The plot shows a positive correlation between the ‘YearsExperience” and “Salary” column.
Correct Answer :
The plot shows a positive correlation between the ‘YearsExperience” and “Salary” column.
The distribution plot of the column “YearsExperience” is shown in the image below, what possible inferences can be drawn from the plot.
Marked Answer :
Correct Answer :
What all inferences can be drawn from the table shown below:
Marked Answer :
Correct Answer :
We're Online!
Help Center
https://lms.intellipaat.com/members/saurabhsinghsikarwarudaygmail-com/course/course-results/?action=850752 2/5
29/02/2024, 13:09 Intellipaat
To split the dataset into training and testing data, if we use the following
code. X = data[‘YearsExperience’]
y = data[‘Salary’]
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2,
random_state=0) What does it mean when we write the test size as 0.2?
Marked Answer :
The training data will consist of 80% of the samples from the total population.
Correct Answer :
The training data will consist of 80% of the samples from the total population.
In the above example code, we have taken the random state as 0, if we change the
random state as 42, what does it mean for our training and testing data?
Marked Answer :
The random state does not have any effect on the shape of the data.
Correct Answer :
The random state does not have any effect on the shape of the data.
If the r2 score calculated in the above example is 0.98 , change the sample size of
the training and testing set in the ratio 60:40, and build a linear regression model again.
After plotting the best fit line on the test data, calculate the r2_score for the new model.
Marked Answer :
0.95-0.97
Correct Answer :
0.95-0.97
If while fitting the model with training and testing data, you get the following error
ValueError: Expected 2D array, got 1D array instead: What could be
the issue with the data, and how can you solve it?
Marked Answer :
Both 1 and 2
Correct Answer :
The exercise after this contains questions that are based on the housing dataset.
Marked Answer :
163
Correct Answer :
163
We're Online!
Help Center
https://lms.intellipaat.com/members/saurabhsinghsikarwarudaygmail-com/course/course-results/?action=850752 3/5
29/02/2024, 13:09 Intellipaat
The exercise after this contains questions that are based on the housing dataset.
Marked Answer :
8241
Correct Answer :
8241
The exercise after this contains questions that are based on the housing dataset.
Marked Answer :
80
Correct Answer :
80
The exercise after this contains questions that are based on the housing dataset.
What is the price of the most expensive house having more than 4 bathrooms?
Marked Answer :
7700000
Correct Answer :
7700000
The exercise after this contains questions that are based on the housing dataset.
The image shown below shows the boxplot of the price column from the housing dataset. What inferences can you make from the plot?
Marked Answer :
Correct Answer :
The exercise after this contains questions that are based on the housing dataset.
For instance, if the ‘price’ column consists of outliers, how can you make the data clean and remove the redundancies?
Marked Answer :
Calculate the IQR range and drop the values outside the range.
Correct Answer :
Calculate the IQR range and drop the values outside the range.
We're Online!
Help Center
https://lms.intellipaat.com/members/saurabhsinghsikarwarudaygmail-com/course/course-results/?action=850752 4/5
29/02/2024, 13:09 Intellipaat
The exercise after this contains questions that are based on the housing dataset.
What are the various parameters that can be used to determine the dependent variables in the housing data to determine the price of the
house?
Marked Answer :
Correlation coefficients
Correct Answer :
Correlation coefficients
The exercise after this contains questions that are based on the housing dataset.
If we get the r2 score as 0.38, what inferences can we make about the model and its efficiency?
Marked Answer :
Correct Answer :
What will be the appropriate metrics for performance evaluation of Linear Regression model?
Marked Answer :
r2_score
Correct Answer :
r2_score
The exercise after this contains questions that are based on the housing dataset.
If the Variance Inflation Factor value for a feature is considerably higher than the other features, what can we say about that column/feature?
Marked Answer :
High multicollinearity
Correct Answer :
High multicollinearity
Total Marks 18 / 19
RETAKE QUIZ
© COPYRIGHT 2011- 2024 INTELLIPAAT.COM. ALL RIGHTS RESERVED. | FOR SUPPORT QUERIES CALL : +91-9513252311 | +91-80-44637861
We're Online!
Help Center
https://lms.intellipaat.com/members/saurabhsinghsikarwarudaygmail-com/course/course-results/?action=850752 5/5