X
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
nandu544@gmail.com
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Introduction to Machine Learning (course)
Click to register
for Certification
exam
Week 1 : Assignment 1
(https://examform.nptel.ac.in/2025_01/exam_form/dashboard)
The due date for submitting this assignment has passed.
If already Due on 2025-02-05, 23:59 IST.
registered, click
to check your Assignment submitted on 2025-01-29, 09:38 IST
payment status
1) Which of the following is/are unsupervised learning problem(s)? 1 point
Sorting a set of news articles into four categories based on their titles
Course Forecasting the stock price of a given company based on historical data
outline Predicting the type of interaction (positive/negative) between a new drug and a set of
human proteins
About Identifying close-knit communities of people in a social network
NPTEL () Learning to generate artificial human faces using the faces from a facial recognition
dataset
How does an
Partially Correct.
NPTEL Score: 0.5
online
Accepted Answers:
course Identifying close-knit communities of people in a social network
work? ()
Learning to generate artificial human faces using the faces from a facial recognition dataset
Week 0 ()
2) Which of the following statement(s) about Reinforcement Learning (RL) is/are true? 1 point
Week 1 () While learning a policy, the goal is to maximize the reward for the current time step
During training, the agent is explicitly provided the most optimal action to be taken in
Introduction to
Machine
each state.
Learning (unit? The actions taken by an agent do no affect the environment in any way.
unit=22&lesso
RL agents used for playing turn based games like chess can be trained by playing the
n=23)
agent against itself (self play).
Supervised RL can be used in a autonomous driving system.
Learning (unit?
unit=22&lesso Yes, the answer is correct.
n=24) Score: 1
Accepted Answers:
Unsupervised RL agents used for playing turn based games like chess can be trained by playing the agent
Learning (unit? against itself (self play).
unit=22&lesso
RL can be used in a autonomous driving system.
n=25)
3) Which of the following is/are regression tasks(s)? 1 point
Reinforcement
Learning (unit?
Predicting whether an email is spam or not spam
unit=22&lesso
n=26) Predicting the number of new CoVID cases in a given time period
Predicting the total number of goals a given football team scores in an year
Statistical
Decision Identifying the language used in a given text document
Theory - Yes, the answer is correct.
Regression Score: 1
(unit? Accepted Answers:
unit=22&lesso Predicting the number of new CoVID cases in a given time period
n=27) Predicting the total number of goals a given football team scores in an year
Statistical
Decision 4) Which of the following is/are classification task(s)? 1 point
Theory -
Classification Predicting whether or not a customer will repay a loan based on their credit history
(unit? Forecasting the weather (temperature, humidity, rainfall etc.) at a given place for the
unit=22&lesso
following 24 hours
n=28)
Predict the price of a house 10 years after it is constructed.
Bias -
Predict if a house will be standing 50 years after it is constructed.
Variance (unit?
unit=22&lesso Yes, the answer is correct.
n=29) Score: 1
Accepted Answers:
Week 1 Predicting whether or not a customer will repay a loan based on their credit history
Feedback Predict if a house will be standing 50 years after it is constructed.
Form :
Introduction To
5) Consider the following dataset. Fit a linear regression model of the form 1 point
Machine
Learning (unit? y = β0 + β1 x1 + β2 x2 using the mean-squared error loss. Using this model, the predicted
unit=22&lesso value of y at the point (x 1 , x 2 ) = (0.5, −1.0) is
n=189)
Quiz: Week 1
: Assignment
1
(assessment?
name=306)
Week 2 ()
Week 3 () 4.05
2.05
Week 4 () −1.95
−3.95
Week 5 ()
No, the answer is incorrect.
Week 6 ()
Score: 0
Week 7 () Accepted Answers:
4.05
Week 8 ()
6) Consider the following dataset. Using a k-nearest neighbour (k-NN) regression 1 point
Week 9 () model with k = 3, predict the value of y at (x 1 , x 2 ) = (1.0, 0.5). Use the Euclidean distance to
find the nearest neighbours.
Week 10 ()
Week 11 ()
Week 12 ()
Text
Transcripts
() −1.766
−1.166
Download
1.133
Videos ()
1.733
Books () No, the answer is incorrect.
Score: 0
Problem Accepted Answers:
Solving 1.733
Session -
Jan 2025 () 7) Consider the following dataset with three classes: 0, 1 and 2. x1 and x2 are the 1 point
independent variables whereas y is the class label. Using a k-NN classifier with k = 5, predict the
class label at the point (x 1 , x 2 ) = (1.0, 1.0). Use the Euclidean distance to find the nearest
neighbours.
0
1
2
Cannot be predicted
Yes, the answer is correct.
Score: 1
Accepted Answers:
1
8) Consider the following statements regarding linear regression and k-NN regression 1 point
models. Select the true statements.
A linear regressor requires the training data points during inference.
A k-NN regressor requires the training data points during inference.
A k-NN regressor with a higher value of k is less prone to overfitting.
A linear regressor partitions the input space into multiple regions such that the prediction
over a given region is constant.
Yes, the answer is correct.
Score: 1
Accepted Answers:
A k-NN regressor requires the training data points during inference.
A k-NN regressor with a higher value of k is less prone to overfitting.
9) Which of the following statement(s) regarding bias and variance is/are correct? 1 point
2 2
^ ^ ^
Bias = E [(E [f (x)] − f (x)) ] ; Variance = E [(f (x) − f (x)) ]
2
^ ^ ^
Bias = E [f (x)] − f (x); Variance = E [(E [f (x)] − f (x)) ]
Low bias and high variance is a sign of overfitting
Low variance and high bias is a sign of overfitting
Low variance and high bias is a sign of underfitting
Partially Correct.
Score: 0.67
Accepted Answers:
2
^ ^ ^
Bias = E [f (x)] − f (x); Variance = E [(E [f (x)] − f (x)) ]
Low bias and high variance is a sign of overfitting
Low variance and high bias is a sign of underfitting
10) Suppose that we train two kinds of regression models corresponding to the 1 point
following equations.
(i). y = β0 + β1 x1 + β2 x2
(ii). y = β0 + β1 x1 + β2 x2 + β3 x1 x2 + β4 x
2
1
+ β5 x
2
2
Which of the following statement(s) is/are correct?
On a given training dataset, the mean-squared error of (i) is always less than or equal to
that of (ii).
(i) is likely to have a higher variance than (ii).
(ii) is likely to have a higher variance than (i).
If (i) overfits the data, then (ii) will definitely overfit.
If (ii) underfits the data, then (i) will definitely underfit.
Partially Correct.
Score: 0.33
Accepted Answers:
(ii) is likely to have a higher variance than (i).
If (i) overfits the data, then (ii) will definitely overfit.
If (ii) underfits the data, then (i) will definitely underfit.