Are you looking for the Answers to **NPTEL Introduction to Machine Learning Assignment 2 – IIT Madras? **This article will help you with the answer to the **Nation**** al Programme on Technology Enhanced Learning (NPTEL)** Course “

**NPTEL Introduction to Machine Learning**

**Assignment 2**“

## What is Introduction to Machine Learning?

With the increased availability of data from varied sources there has been increasing attention paid to the various data driven disciplines such as analytics and machine learning. In this course we intend to introduce some of the basic concepts of machine learning from a mathematically well motivated perspective. We will cover the different learning paradigms and some of the more popular algorithms and architectures used in each of these paradigms.

## CRITERIA TO GET A CERTIFICATE

Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.

Exam score = 75% of the proctored certification exam score out of 100

Final score = Average assignment score + Exam score

**YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.**

**Below you can find the answers for NPTEL Introduction to Machine Learning Assignment 2**

Assignment No. | Answers |
---|---|

Assignment 1Introduction to Machine Learning | Click Here |

Assignment 2Introduction to Machine Learning | Click Here |

Assignment 3Introduction to Machine Learning | Click Here |

Assignment 4Introduction to Machine Learning | Click Here |

Assignment 5Introduction to Machine Learning | Click Here |

Assignment 6Introduction to Machine Learning | Click Here |

Assignment 7Introduction to Machine Learning | Click Here |

Assignment 8Introduction to Machine Learning | Click Here |

## NPTEL Introduction to Machine Learning Assignment 2 Answers:-

**Q1. Given a training data set of 10,000 instances, with each input instance having 17 dimensions and each output instance having 2 dimensions, the dimensions of the design matrix used in applying linear regression to this data is**

(A) 10000 × 17

(B) 10002 × 17

(C) 10000 × 18

(D) 10000 × 19

**Answer:- ** **c**

**Q2. Suppose we want to add a regularizer to the linear regression loss function, to control the magnitudes of the weights β. We have a choice between Ω1(β)=Σpi=1|β| and Ω2(β)=Σpi=1β2 Which one is more likely to result in sparse weights?**

(A) Ω1

(B) Ω2

(C) Both Ω1 and Ω2 will result in sparse weights

(D) Neither of Ω1 or Ω2 can result in sparse weights

**Answer:-** **a**

**Bosch Recruitment Drive 2022 | BE/B.Tech | Software Test Engineer | Bangalore**

**Q3. **The model obtained by applying linear regression on the identified subset of features may differ from the model obtained at the end of the process of identifying the subset during

(A) Forward stepwise selection

(B) Backward stepwise selection

(C) Forward stagewise selection

(D) All of the above

Answer:- **c**

Q4. **Consider forward selection, backward selection and best subset selection with respect to the same data set. Which of the following is true?**

(A) Best subset selection can be computationally more expensive than forward selection

(B) Forward selection and backward selection always lead to the same result

(C) Best subset selection can be computationally less expensive than backward selection

(D) Best subset selection and forward selection are computationally equally expensive

(E)Both (b) and (d)

Answer:- **a**

???? **Next Week Answers: Assignment 03** ????

**Q5. In the lecture on Multivariate Regression, you learn about using orthogonalization iteratively to obtain regression co-effecients. This method is generally referred to as Multiple Regression using Successive Orthogonalization. In the formulation of the method, we observe that in iteration k, we regress the entire dataset on z0,z1,…zk−1 . It seems like a waste of computation to recompute the coefficients for z0 a total of p times, z1 a total of p−1 times and so on. Can we re-use the coefficients computed in iteration j for iteration j+1 for zj−1 ?**

(A) No. Doing so will result in the wrong *γ* matrix. and hence, the wrong *βi* ’s.

(B) Yes. Since *zj*−1 is orthogonal to *zj*−*l*∀*l*≤*j*1, the multiple regression in each iteration is essentially a univariate regression on each of the previous residuals. Since the regression coefficients for the previous residuals don’t change over iterations, we can re-use the coefficients for further iterations.

**Answer:-** **b**

**Salesforce off campus Drive 2022 | Intern | Any Graduate | Bangalore/Hyderabad**

**Q6. **Principal Component Regression (PCR) is an approach to find an orthogonal set of basis vectors which can then be used to reduce the dimension of the input. Which of the following matrices contains the principal component directions as its columns (follow notation from the lecture video)

**Answer:-** **d**

**Q7. **Consider the following five training examples

We want to learn a function *f*(*x*) of the form *f*(*x*)=*a**x*+*b* which is parameterised by (*a*,*b*). Using squared error as the loss function, which of the following parameters would you use to model this function to get a solution with the minimum loss.

**Answer:-** **d**

**Q8. **Here is a data set of words in two languages.

Let us build a nearest neighbours classifier that will predict which language a word belongs to. Say we represent each word using the following features.• Length of the word• Number of consonants in the word• Whether it ends with the letter ’o’ (1 if it does, 0 if it doesn’t)

For example, the representation of the word ‘waffle’ would be [6, 2, 0]. For a distance function, use the Manhattan distance.

**Answer:-Answer will be uploaded soon and notified on our telegram channel So JOIN NOW**

**For other courses answers:- Visit**

**For Internship and job updates:- Visit**

**Disclaimer:** We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.

if you have any suggestions then comment below or contact us at [email protected]

If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.

**NPTEL Introduction to Machine Learning Assignment 2 Answers 2022:-** All the Answers provided here to help the students as a reference, You must submit your assignment at your own knowledge.