NPTEL Introduction to Machine Learning - IITKGP Week 1 Assignment Answers 2024 (July-October)

Embarking on the journey of learning Machine Learning through NPTEL’s course offered by IIT Kharagpur is an exciting venture. This course, ...

Embarking on the journey of learning Machine Learning through NPTEL’s course offered by IIT Kharagpur is an exciting venture. This course, spanning several weeks, dives deep into the fundamentals and advanced concepts of machine learning. Week 1 lays the groundwork, setting the stage for the rest of the course. This article aims to guide you through the Week 1 assignment, providing detailed answers and explanations to ensure you grasp the foundational concepts.

NPTEL Introduction to Machine Learning - IITKGP Week 1 Assignment Answers 2024 (July-October)


Question 1

Which of the following is a classification task?

a. Detect pneumonia from chest X-ray image
b. Predict the price of a house based on floor area, number of rooms etc.
c. Predict the temperature for the next day
d. Predict the amount of rainfall

Answer: a. Detect pneumonia from chest X-ray image

Explanation: Classification involves predicting a discrete label. Detecting pneumonia from chest X-rays is a classification task, as it involves determining whether or not pneumonia is present (binary classification).

Question 2

Which of the following is not a type of supervised learning?

a. Classification
b. Regression
c. Clustering
d. None of the above

Answer: c. Clustering

Explanation: Clustering is a type of unsupervised learning, where the goal is to group similar data points without prior labels.

Question 3

Which of the following tasks is NOT a suitable machine learning task?

a. Finding the shortest path between a pair of nodes in a graph
b. Predicting if a stock price will rise or fall
c. Predicting the price of petroleum
d. Grouping mails as spams or non-spams

Answer: a. Finding the shortest path between a pair of nodes in a graph

Explanation: Finding the shortest path between nodes is a graph algorithm problem, typically solved by algorithms like Dijkstra's or A*. It is not a machine learning task, which involves learning from data.

Question 4

Suppose I have 10,000 emails in my mailbox out of which 300 are spams. The spam detection system detects 150 mails as spams, out of which 50 are actually spams. What is the precision and recall of my spam detection system?

a. Precision = 33.33%, Recall = 25%
b. Precision = 25%, Recall = 33.33%
c. Precision = 33.33%, Recall = 16.66%
d. Precision = 75%, Recall = 33.33%

Answer: a. Precision = 33.33%, Recall = 25%

Explanation: Precision is calculated as True PositivesTrue Positives+False Positives\frac{\text{True Positives}}{\text{True Positives} + \text{False Positives}}, and recall is calculated as True PositivesTrue Positives+False Negatives\frac{\text{True Positives}}{\text{True Positives} + \text{False Negatives}}.

  • True Positives (TP) = 50
  • False Positives (FP) = 150 - 50 = 100
  • False Negatives (FN) = 300 - 50 = 250

Precision = 5050+100×100=33.33%\frac{50}{50 + 100} \times 100 = 33.33\%
Recall = 5050+250×100=25%\frac{50}{50 + 250} \times 100 = 25\%

Question 5

Which of the following is/are supervised learning problems?

A. Predicting disease from blood samples.
B. Grouping students in the same class based on similar features.
C. Face recognition to unlock your phone.

Answer: A. Predicting disease from blood samples.
Answer: C. Face recognition to unlock your phone.

Explanation: Predicting disease from blood samples and face recognition are supervised learning problems because they involve training a model on labeled data. Grouping students is an unsupervised learning problem (clustering).

Question 6

Aliens challenge you to a complex game that no human has seen before. They give you time to learn the game and develop strategies before the final showdown. You choose to use machine learning because an intelligent machine is your only hope. Which machine learning paradigm should you choose for this?

a. Supervised learning
b. Unsupervised learning
c. Reinforcement learning
d. Use a random number generator and hope for the best

Answer: c. Reinforcement learning

Explanation: Reinforcement learning is suitable for scenarios where an agent needs to learn from interactions with an environment to achieve a goal, making it ideal for developing strategies in a new and complex game.

Question 7

How many Boolean functions are possible with N features?

a. 2(2N)2^{(2^N)}
b. 2N2^N
c. (N!)(N!)
d. 4N4^N

Answer: a. 2(2N)2^{(2^N)}

Explanation: For N Boolean variables, there are 2N2^N possible input combinations. Each combination can map to either 0 or 1, resulting in 2(2N)2^{(2^N)} possible Boolean functions.

Question 8

What is the use of Validation dataset in Machine Learning?

a. To train the machine learning model.
b. To evaluate the performance of the machine learning model.
c. To tune the hyperparameters of the machine learning model.
d. None of the above.

Answer: c. To tune the hyperparameters of the machine learning model.

Explanation: A validation dataset is used to tune hyperparameters and prevent overfitting by providing an unbiased evaluation of a model fit on the training dataset.

Question 9

Regarding bias and variance, which of the following statements are true? (Here 'high' and 'low' are relative to the ideal model.)

a. Models which overfit have a high bias.
b. Models which overfit have a low bias.
c. Models which underfit have a high variance.
d. Models which underfit have a low variance.

Answer: b. Models which overfit have a low bias.
Answer: d. Models which underfit have a low variance.

Explanation: Models that overfit have low bias (they fit the training data very well) but high variance (they don't generalize well). Models that underfit have high bias (they don't fit the training data well) but low variance (they are too simple to capture the underlying trend).

Question 10

Which of the following is a categorical feature?

a. Height of a person
b. Price of petroleum
c. Mother tongue of a person
d. Amount of rainfall in a day

Answer: c. Mother tongue of a person

Explanation: A categorical feature represents discrete categories or labels. "Mother tongue of a person" is categorical, as it involves different languages (e.g., English, Spanish, Chinese). The other options are numerical features.

COMMENTS

Name

1sem,1,1st Sem,33,1st year,2,2 sem,1,2nd Sem,29,2sem,1,3rd Sem,40,4th sem,9,5th sem,28,6th sem,19,7th sem,8,8th sem,6,About BEU,1,ABOUT MAKAUT,1,aku civil Notes,15,Aku EE/EC Notes,14,aku ME Notes,14,aku notes,45,aku papers,11,aku syllabus,6,All Branch,2,all semester,19,B pharm,1,BAU Question Papers,1,BCA Notes,1,BEU Collage,12,BEU Model Paper Question,3,BEU Notes,10,BEU Organizer,31,BEU Previous Year Questions,2,Beu pyq,4,BEU PYQ Ans,5,BEU syllabus,8,Blogs,1,Btech results,1,Civil Branch,2,Civil Engineering,8,CS Engineering,8,CSE Branch,1,CSE Notes,19,Developing Soft Skills And Personality,13,EC Engineering,10,EE Branch,2,EE Engineering,9,engineering chemistry,5,Gate,1,internship,3,Introduction To Internet Of Things,21,Introduction To Machine Learning,2,iot,1,MAKAUT CE Organizer,6,MAKAUT CSE Organizer,5,MAKAUT ECE Organizer,3,MAKAUT EE Organizer,2,MAKAUT ME Organizer,4,MAKAUT Notes,5,MAKAUT Organizer,8,MAKAUT Question Paper,1,MAKAUT Syllabus,1,make money,6,ME Engineering,19,NPTEL,92,NPTEL COURSE,91,Programming Tutorial,12,Public Speaking,22,PYQ Solution,4,Question Bank,19,Soft Skills,33,Traffic & SEO,9,week 1,7,week 10,3,week 11,3,week 12,3,week 2,10,week 3,6,week 4,7,week 5,5,week 6,4,week 7,4,week 8,4,week 9,3,WEEK1,4,WEEK10,3,WEEK11,3,WEEK12,3,WEEK2,5,WEEK3,6,WEEK4,6,WEEK5,5,WEEK6,3,WEEK7,4,WEEK9,1,ztest,6,
ltr
item
BEU BIHAR : BEU PYQ , Beu previous year question All Courses All Semester Solutions: NPTEL Introduction to Machine Learning - IITKGP Week 1 Assignment Answers 2024 (July-October)
NPTEL Introduction to Machine Learning - IITKGP Week 1 Assignment Answers 2024 (July-October)
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAdMwp9yX79eRuuaa_zPIW50nQJ_gUNbCvDeLQHbvGQyKD-FBELuW5XNWS07OMBmXDJaP2B_uqdcO2e9aIxwaGJiKiMG_slwqYweGQf2VCcZMo7UgY1UWuDgkmRLuehEufxiWkmHj8dFB08-PjgXgL24VGWQ32UaXYbT36cWpQL8eTjEb6sKFbu2ydhgus/w400-h400/th%20(2).jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAdMwp9yX79eRuuaa_zPIW50nQJ_gUNbCvDeLQHbvGQyKD-FBELuW5XNWS07OMBmXDJaP2B_uqdcO2e9aIxwaGJiKiMG_slwqYweGQf2VCcZMo7UgY1UWuDgkmRLuehEufxiWkmHj8dFB08-PjgXgL24VGWQ32UaXYbT36cWpQL8eTjEb6sKFbu2ydhgus/s72-w400-c-h400/th%20(2).jpg
BEU BIHAR : BEU PYQ , Beu previous year question All Courses All Semester Solutions
https://www.beubihar.org.in/2024/07/nptel-introduction-to-machine-learning_21.html
https://www.beubihar.org.in/
https://www.beubihar.org.in/
https://www.beubihar.org.in/2024/07/nptel-introduction-to-machine-learning_21.html
true
8161375692651428750
UTF-8
Loaded All Posts Not found any posts VIEW ALL Read More Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content
×