0% found this document useful (0 votes)
383 views

Linear Regression

Uploaded by

sayantani 11
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
383 views

Linear Regression

Uploaded by

sayantani 11
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

29/02/2024, 13:09 Intellipaat

7 0 0 4
Courses To Do Assignment Overdue Quiz Overdue Completed

My Courses Calendar My Sessions Notifications 11 Messages 0 Support

MY COURSES RESULTS Search courses ... 

Continue where you left..

Online Session-DS-AI-BC=230306 B_(AI)

Introduction To Deep Learning – Assignment

Continue 

Linear Regression Assignment Quiz

How many employees having more than 5 years experience are earning more than 60000?

Marked Answer :

14

Correct Answer :

14

MARKS OBTAINED 1 TOTAL MARKS : 1

How many employees are earning between 50000-80000?

Marked Answer :

12
Correct Answer :

12

MARKS OBTAINED 1 TOTAL MARKS : 1

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.

MARKS OBTAINED 1 TOTAL MARKS : 1

The distribution plot of the column “YearsExperience” is shown in the image below, what possible inferences can be drawn from the plot.

Marked Answer :

“YearsExperience” data is positively skewed.

Correct Answer :

“YearsExperience” data is positively skewed.

MARKS OBTAINED 1 TOTAL MARKS : 1

What all inferences can be drawn from the table shown below:

Marked Answer :

The range of the “YearsExperience” and “Salary” data is (9.4 , 84660 )

Correct Answer :

The range of the “YearsExperience” and “Salary” data is (9.4 , 84660 )

MARKS OBTAINED 1 TOTAL MARKS : 1

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.

MARKS OBTAINED 1 TOTAL MARKS : 1

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.

MARKS OBTAINED 1 TOTAL MARKS : 1

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

MARKS OBTAINED 1 TOTAL MARKS : 1

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 :

Reshape the data to a two dimensional array

MARKS OBTAINED 0 TOTAL MARKS : 1

The exercise after this contains questions that are based on the housing dataset.

How many houses have a waterfront?

Marked Answer :

163
Correct Answer :

163

MARKS OBTAINED 1 TOTAL MARKS : 1

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.

How many houses have 2 floors?

Marked Answer :

8241
Correct Answer :

8241

MARKS OBTAINED 1 TOTAL MARKS : 1

The exercise after this contains questions that are based on the housing dataset.

How many houses built before 1960 have a waterfront?

Marked Answer :

80
Correct Answer :

80

MARKS OBTAINED 1 TOTAL MARKS : 1

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

MARKS OBTAINED 1 TOTAL MARKS : 1

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 :

There is a presence of outliers in the price data.

Correct Answer :

There is a presence of outliers in the price data.

MARKS OBTAINED 1 TOTAL MARKS : 1

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.

MARKS OBTAINED 1 TOTAL MARKS : 1

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

MARKS OBTAINED 1 TOTAL MARKS : 1

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 :

High difference between observed and fitted values.

Correct Answer :

High difference between observed and fitted values.

MARKS OBTAINED 1 TOTAL MARKS : 1

What will be the appropriate metrics for performance evaluation of Linear Regression model?
Marked Answer :

r2_score
Correct Answer :

r2_score

MARKS OBTAINED 1 TOTAL MARKS : 1

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

MARKS OBTAINED 1 TOTAL MARKS : 1

Total Marks 18 / 19

RETAKE QUIZ

Number of retakes : 0 out of 16


Previous Results for 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

You might also like