0% found this document useful (0 votes)
3 views4 pages

Week4 - Python

The document outlines the Week 4 assessment for the 'Python for Data Science' course, detailing various questions related to regression and classification problems. It includes a case study on an automotive service chain's launch day and the application of machine learning techniques to predict whether cars require servicing. Additionally, it provides instructions for data preparation and model building, along with links to datasets for analysis.

Uploaded by

R.V.Maniessh Ram
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views4 pages

Week4 - Python

The document outlines the Week 4 assessment for the 'Python for Data Science' course, detailing various questions related to regression and classification problems. It includes a case study on an automotive service chain's launch day and the application of machine learning techniques to predict whether cars require servicing. Additionally, it provides instructions for data preparation and model building, along with links to datasets for analysis.

Uploaded by

R.V.Maniessh Ram
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

2/15/26, 6:03 PM Python for Data Science - - Unit 7 - Week 4

Assessment submitted.
([Link] ([Link]
X

nageswari@[Link] 

NPTEL ([Link] » Python for Data Science (course)


Click to register
for Certification
exam
Thank you for taking the Week 4 :
Assignment 4.
([Link]

If already
registered, click
to check your
Week 4 : Assignment 4
payment status Your last recorded submission was on 2026-02-15, 18:03 IST Due date: 2026-02-18, 23:59 IST.

1) Which of the following are regression problems? Assume that appropriate data is 1 point
given.
Course
outline Predicting the house price.
Predicting whether it will rain or not on a given day.
About NPTEL Predicting the maximum temperature on a given day.
() Predicting the sales of the ice-creams.

How does an 2) Which of the following are multiclass classification problems? 1 point
NPTEL online
course work? Classifying emails as spam or not spam.
()
Classifying a person’s blood type as A, B, AB, or O.
Predicting the price of a second-hand car.
Week 0 ()
Classifying a movie genre into Drama, Comedy, Action, or Thriller.
Week 1 ()
3) If a linear regression model achieves zero training error, can we say that all the data 1 point
Week 2 () points lie on a straight line in the feature space?

Yes
Week 3 ()
No
Week 4 ()
Read the information given below and answer the questions from 4 to 6:
Introduction to
Classification
Case Study Data Description:

[Link] 1/4
2/15/26, 6:03 PM Python for Data Science - - Unit 7 - Week 4

(unit?
Assessment submitted.
unit=56&lesson An automotive service chain is launching its new grand service station this weekend. They offer to
X =57) service a wide variety of cars. The current capacity of the station is to check 315 cars thoroughly per
Case Study on day. As an inaugural offer, they claim to freely check all cars that arrive on their launch day,
Classification and report whether they need servicing or not! Unexpectedly, they get 450 cars. The servicemen will
Part I (unit? not work longer than the working hours, but the data analysts have to! Can you save the day for the
unit=56&lesson new service station? How can a data scientist save the day for them? He has been given a data set,
=58) ‘[Link] ([Link]
Case Study on
usp=sharing)’ that contains some attributes of the car that can be easily measured and a conclusion
Classification that if a service is needed or not. Now for the cars they cannot check in detail, they measure those
Part II (unit? attributes and store them in ‘[Link]
unit=56&lesson ([Link]
=59)
Problem Statement:
Introduction to
Regression
Case Study Use machine learning techniques to identify whether the cars require service or not.
(unit?
unit=56&lesson Read the given datasets ‘[Link]
=60) ([Link]
usp=sharing)’ and ‘[Link]
Case Study on
Regression ([Link]
Part I (unit? usp=sharing)’ as train data and test data respectively and import all the required packages
unit=56&lesson for analysis.
=61)
4) Which of the following machine learning techniques would NOT be appropriate to solve 1 point
Case Study on the problem given in the problem statement?
Regression
Part II (unit? kNN
unit=56&lesson
Random Forest
=62)
Logistic Regression
Case Study on
Linear regression
Regression
Part III (unit?
unit=56&lesson Prepare the data by following the steps given below, and answer questions 5 and 6.
=63)
• Encode categorical variable, Service - Yes as 1 and No as 0 for both the train and test
Data sets (unit? datasets.
unit=56&lesson • Split the set of independent features and the dependent feature on both the train and test
=64) datasets.
• Set random_state for the instance of the logistic regression class as 0.
Case Study
codes (unit? 5) After applying logistic regression, what is/are the correct observations from the 1 point
unit=56&lesson
resultant confusion matrix?
=65)
True Positive = 29, True Negative = 94
Week 4
Feedback Form True Positive = 94, True Negative = 29
: Python for False Positive = 5, True Negative = 94
Data Science!!
(unit?
None of the above

[Link] 2/4
2/15/26, 6:03 PM Python for Data Science - - Unit 7 - Week 4

unit=56&lesson 6) The logistic regression model built between the input and output variables is checked 1 point
Assessment
=116)submitted. for its prediction accuracy of the test data. What is the accuracy range (in %) of the predictions
X made over test data?
Quiz: Week 4 :
Assignment 4
60 - 79
(assessment?
name=187) 90 - 95

Practice: Week
30 – 59
4 : Practice 80 – 89
Assignment 4
(assessment? 7) How are categorical variables preprocessed before model building? 1 point
name=188)
Standardization
Supporting
Dummy variables
material for
Week 4 () Correlation
None of the above
Download
Videos () 8) A regression model with the function y = 80 + 4.5x was built to understand the 1 point
impact of temperature x on ice cream sales y. The temperature this month is 10 degrees more than
Books () the previous month. What is the predicted difference in ice cream sales?

Text 56 units
Transcripts () 45 units
80 units
Problem
None of the above
Solving
Session - Jan
2026 () 9) X and Y are two variables that have a strong linear relationship. Which of the 1 point
following statements are incorrect?

There cannot be a negative relationship between the two variables.


The relationship between the two variables is purely causal.
One variable may or may not cause a change in the other variable.
The variables can be positively or negatively correlated with each other.

The Global Happiness Index report contains the Happiness Score data with multiple features
(namely the Economy, Family, Health, and Freedom) that could affect the target variable
value.

Prepare the data by following the steps given below, and answer question 10.

• Split the set of independent features and the dependent feature on the given dataset

• Create training and testing data from the set of independent features and dependent feature
by splitting the original data in the ratio 3:1 respectively, and set the value for random_state of the
training/test split method’s instance as 1

[Link] 3/4
2/15/26, 6:03 PM Python for Data Science - - Unit 7 - Week 4

10) A multiple linear regression model is built on the Global Happiness Index dataset ‘GHI 1 point
Assessment submitted. [Link] ([Link]
X usp=sharing)’. What is the RMSE of the baseline model?

2.00
0.50
1.06
0.75

You may submit any number of times before the due date. The final submission will be considered
for grading.
Submit Answers

[Link] 4/4

You might also like