Vous êtes sur la page 1sur 45

26/09/2019 Data Science for Engineers - - Unit 2 - Week 0

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 2 - Week 0

Course outline

How to access the portal?


Assignment 0
The due date for submitting this assignment has passed. Due on 2019-08-31, 23:59 IST.
Week 0

Prerequisite (unit?
Assignment submitted on 2019-07-26, 20:51 IST
unit=5&lesson=6)
(https://drive.google.com/file/d/1i01j0AKMQPTrbPJtuIBMkyPasxa559NT/view?usp=sharing)Click here
Quiz : Assignment 0
(https://drive.google.com/file/d/1i01j0AKMQPTrbPJtuIBMkyPasxa559NT/view?usp=sharing) for R Set up guide pdf
(assessment?name=90)

FAQ (unit?
unit=5&lesson=97)
Note : This assignment is for practice and it will not be graded
Week 1
1) The value of “x” after running the R script given below is --------- 1 point
Week 2
x=6
Week 3 if(x==6){
x=x+1
Week 4 }else if(x<8){
x=x+2
Week 5 }else {
x=x+3}
Week 6 print(x)

6
Week 7
7
Week 8 8
9
DOWNLOAD VIDEOS
Yes, the answer is correct.
Score: 1
Accepted Answers:
7

2) Number of times the string "It’s gonna rain" will be printed when the code below is executed is---- 1 point

n=5
sum = 1
while(n!=0)
{
sum = sum*n
print(sum)
n=n-1
if(sum < 50)
{
print("It’s gonna rain")
}
else
{
print("It’s not gonna rain")
}

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=5&assessment=90 1/7
26/09/2019 Data Science for Engineers - - Unit 2 - Week 0

2
3
4
5
No, the answer is incorrect.
Score: 0
Accepted Answers:
5

3) In the R code given below, value at which value of “i” the loop breaks is ----------- 1 point

n=200
sum=0
for(i in seq(1,n,2)){
sum=sum+i
print(c(i,sum))
if(sum>15)
break
}

2
4
6
7
Yes, the answer is correct.
Score: 1
Accepted Answers:
7

4) The value(s) of “y” at the end of the program is-------------- 1 point

x1<-matrix(1:9,3,3)
x2<-matrix(11:19,3,3)
m = rbind(apply(x1,1,min),apply(x2,1,mean))
y = apply(m,1,sum)
print(y)

15 45
27 30 33
20 35
6 45
Yes, the answer is correct.
Score: 1
Accepted Answers:
6 45

5) The expected output from the addition vectors “x” & “y” is --------- 1 point

x = c(1:4)
y = c(6,7)
print(x * y)

Error!
7 11
6 14 18 28
7 9 9 11
Yes, the answer is correct.
Score: 1
Accepted Answers:
6 14 18 28

6) The expected output from the code given below is? 1 point

x <- c("a",1, 3>2)


print(as.ordered(x))

TRUE TRUE TRUE


a 1 TRUE,1<a<TRUE
1 a TRUE
NA TRUE TRUE
Yes, the answer is correct.
Score: 1
Accepted Answers:
a 1 TRUE,1<a<TRUE

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=5&assessment=90 2/7
26/09/2019 Data Science for Engineers - - Unit 2 - Week 0

Create a list using vec1, vec2 & vec3 & answer the questions (7 & 8) below.
vec1 = c(1,2,3)
vec2 = c("Orange","Mango","Apple")
vec3 = c("100", "200", "300")
Store the vectors in the list variable - “mylist”.

7) Choose the correct command to replace “Orange” with “Grapes”? 1 point

mylist[[2]][3] = "Grapes"
mylist[[2]][1] = "Grapes"
mylist[2,3] = "Grapes"
mylist[2]3 = "Grapes"
Yes, the answer is correct.
Score: 1
Accepted Answers:
mylist[[2]][1] = "Grapes"

8) Choose the correct command to add a new list with variable name “vec4” with values “Juice”, “Jam”, “Squash” to the existing list? 1 point

mylist=c(mylist,list(c("Juice","Jam","Squash")))
list(vec4 = c("Juice","Jam","Squash"), mylist)
mylist = list(“vec4” = c(“Juice”, ”Jam”, ”Squash”))
vec4=list(c(10,11,12))
Yes, the answer is correct.
Score: 1
Accepted Answers:
mylist=c(mylist,list(c("Juice","Jam","Squash")))

9) The correct command to build a square matrix with numbers from 20 to 28, arranged column wise and name it as “A” is ---------- 1 point

A = matrix(c(20:28), nrow = 3, ncol = 3, byrow = F)


A =matrix(c(20:29), nrow = 1, ncol = 9, byrow = T)
A =matrix(c(20:28), nrow = 9, ncol = 1, byrow = F)
A =matrix(c(21:29), nrow = 3, ncol = 3, byrow = T)
Yes, the answer is correct.
Score: 1
Accepted Answers:
A = matrix(c(20:28), nrow = 3, ncol = 3, byrow = F)

Answer all the questions from 10 to 12 using the matrix from Q.9:

10) The command to extract all the elements of third column from matrix “A” is ------------ 1 point

A[3,]
A[,3]
A(3,)
A{3}
Yes, the answer is correct.
Score: 1
Accepted Answers:
A[,3]

11) The command to extract the element in 2nd row, 3rd column from matrix “A”is------------ 1 point

A(2,3)
A[2,3]
A{2,3}
A[3,2]
Yes, the answer is correct.
Score: 1
Accepted Answers:
A[2,3]

12) The command to extract the diagonal elements of matrix “A” is ---- 1 point

diag(A)
diagonal[A]
diag[A]
diagonal(A)
Yes, the answer is correct.
Score: 1
Accepted Answers:
diag(A)

13) The output displayed on running the code given below? 1 point
x <- matrix(1:4, 2, 2)

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=5&assessment=90 3/7
26/09/2019 Data Science for Engineers - - Unit 2 - Week 0

y <- matrix(rep(10, 4), 2, 2)


print(x * y)

[,1] [,2]
[1,] 10 20
[2,] 30 40

[,1] [,2]
[1,] 10 30
[2,] 20 40

[,1] [,2]
[1,] 30 40
[2,] 10 20

[,1] [,2]
[1,] 20 40
[2,] 10 30
Yes, the answer is correct.
Score: 1
Accepted Answers:
[,1] [,2]
[1,] 10 30
[2,] 20 40

14) Upon calling the function with func_add (1,2,3), the output is … 1 point
func_add= function(a,b,c=1)
{
result=a+b+c
return(result)
}

6
4
Error
3
Yes, the answer is correct.
Score: 1
Accepted Answers:
6

15) The output displayed on running the code given below is 1 point
x <- 1
f <- function() {
y <- 2
return(c(x, y))
}
f()

2
12
1
Error!
Yes, the answer is correct.
Score: 1
Accepted Answers:
12

16) What will be the output displayed on running the code given below? 1 point
func <- function(){
X<-3
Y<-x+3
return(c(X,Y))
}
print(Y)

36
6
Error: object 'Y' not found
366
Yes, the answer is correct.
Score: 1
Accepted Answers:
Error: object 'Y' not found

Create a data frame with given vectors below.

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=5&assessment=90 4/7
26/09/2019 Data Science for Engineers - - Unit 2 - Week 0

vec1 = c(1,2,3)
vec2 = c("Orange","Mango","Apple")
vec3 = c(100, 200, 300)

Store the data frame in the variable named – “df”.

Answer the questions from 17 to 19 based on the data frame created above.

17) What is the command to extract the information from 1st & 2nd rows of the 2nd columns? 1 point

print(df[1:2,2])
print(df[,1,2])
print(df[1,2,])
print(df[,2])
Yes, the answer is correct.
Score: 1
Accepted Answers:
print(df[1:2,2])

18) The command to add a new row to the data frame “df” with the following values passed to each vector? 1 point
vec1= 4, vec2="Grapes", vec3="150"

rbind(data.frame(vec1=4,vec2="Grapes",vec3="150",df))
rbind(data.frame(vec1=4,vec2=" Grapes ",vec3="150"))
rbind(data.frame(vec1=4,vec2=" Grapes ",vec3="150”),df)
rbind(df,data.frame(vec1=4,vec2=" Grapes ",vec3="150"))
Yes, the answer is correct.
Score: 1
Accepted Answers:
rbind(df,data.frame(vec1=4,vec2=" Grapes ",vec3="150"))

19) The command to add a new column to the data frame “df” with vector 1 point
“vec4” taking values 10,20,30,40?

cbind(data.frame(vec4 = c(10,20,30,40),df))
cbind(df,data.frame(vec4 = c(10,20,30,40)))
cbind(df.data.frame(vec4 = c(10,20,30,40)))
cbind(data.frame(vec4 = c(10,20,30,40)),df)
Yes, the answer is correct.
Score: 1
Accepted Answers:
cbind(df,data.frame(vec4 = c(10,20,30,40)))

Answer the questions from 20 to 22 based on the data frame created at the end of Q19.

20) The correct way to extract all elements for which "vec3" is greater than 150 using the “subset” command is ---------- 1 point

subset(df, df$vec3 > 150)


subset[df, df$vec3 > 140]
subset(df$vec3 > 140,pd)
subset(df.vec3 > 150)
Yes, the answer is correct.
Score: 1
Accepted Answers:
subset(df, df$vec3 > 150)

21) The library needed to do melt & cast operations in R is---------- 1 point

cars
caret
gdata
reshape2
Yes, the answer is correct.
Score: 1
Accepted Answers:
reshape2

22) What is the output after recasting the data frame in single command by running the code below? 1 point

library(reshape2)
df_new=recast(df,id.var="vec2",variable~vec2)
print(df_new)

variable Apple Mango Orange Grapes


vec1 3 2 1 4
vec3 300 200 100 150
vec4 30 20 10 40

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=5&assessment=90 5/7
26/09/2019 Data Science for Engineers - - Unit 2 - Week 0

variable 100 200 300


vec1 2 1 1
vec3 1 2 1
vec4 1 1 2

variable 1 2 3
vec1 2 1 1
vec3 1 2 1
vec4 1 1 2

variable 1 2 3 4
vec2 Orange Mango Apple Grapes
vec3 100 200 300 150
vec4 10 20 30 40
Yes, the answer is correct.
Score: 1
Accepted Answers:
variable Apple Mango Orange Grapes
vec1 3 2 1 4
vec3 300 200 100 150
vec4 30 20 10 40

Create a new data frame with the following variables.


a = data.frame(x1= c("A","B","C"), x2=1:3)
b = data.frame(x1= c("A","B","D"), x2=c("Yes","No","Yes"))
Answer the questions (23 & 24) based on the data frame created above.

23) The command to join data frame “b” to “a” by x1 is ----------- 1 point

left_join(a,b,by='x1')
left_join(b,a,by='x1')
left_join(by='x1',a,b)
left_join(by='x1',b,a)
Yes, the answer is correct.
Score: 1
Accepted Answers:
left_join(a,b,by='x1')

24) The command to join data frame “a” to “b” by x1 is ------------ 1 point

right_join(b,a,by='x1')
right_join(a,b,by='x1')
right_join(by='x1',a,b)
right_join(by='x1',b,a)
Yes, the answer is correct.
Score: 1
Accepted Answers:
right_join(a,b,by='x1')

25) The syntax to set the working directory in "R- studio" is ---------- 1 point

getwd("file path")
wd("file path")
currentwd("file path")
setwd("file path")
Yes, the answer is correct.
Score: 1
Accepted Answers:
setwd("file path")

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=5&assessment=90 6/7
26/09/2019 Data Science for Engineers - - Unit 2 - Week 0

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=5&assessment=90 7/7
26/09/2019 Data Science for Engineers - - Unit 3 - Week 1

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 3 - Week 1

Course outline

How to access the portal?


Assignment 1
The due date for submitting this assignment has passed. Due on 2019-08-14, 23:59 IST.
Week 0
Assignment submitted on 2019-08-04, 14:56 IST
Week 1
1) The value of "x" after running the R script given below is -------- 1 point
Data science for
engineers Course x=49
philosophy and if((x+25)%%5==0) {
expectation (unit? print("True")
unit=7&lesson=8) }else if((x+25)%%5==1){
Introduction to R (unit? print("False")
unit=7&lesson=9) }else {
x= x^3}
Introduction to R
print(x)
(Continued) (unit?
unit=7&lesson=10)
117649
Variables and datatypes True
in R (unit?
False
unit=7&lesson=11)
615125
Data frames (unit?
unit=7&lesson=12) Yes, the answer is correct.
Score: 1
Recasting and joining of Accepted Answers:
dataframes (unit? 117649
unit=7&lesson=13)
2) The last value of sum and month printed is ---------- 1 point
Arithmetic,Logical and
Matrix operations in R n=3
(unit?unit=7&lesson=14)
sum=0
Advanced programming for(i in 1:11){
in R : Functions (unit? sum=sum+(i^3)
unit=7&lesson=15) if (i %% 2 !=0)
next
Advanced Programming
in R : Functions print(c(month.abb[i+1],sum))
(Continued) (unit? }
unit=7&lesson=16)
"Dec" "4356"
Control structures (unit?
"Oct" "2025"
unit=7&lesson=17)
"Sep" "1296"
Data visualization in R
"Nov" "3025"
Basic graphics (unit?
unit=7&lesson=18) Yes, the answer is correct.
Score: 1
Week - 1 Feedback Form
Accepted Answers:
(unit?unit=7&lesson=19)
"Nov" "3025"
Quiz : Assignment 1
3) Number of times the string "Mango" will be printed when the code below is executed is-------- 1 point
(assessment?name=92)

Assignment 1 solutions n=7


(unit? sum=1
unit=7&lesson=107) for (i in 1:n) {

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=7&assessment=92 1/5
26/09/2019 Data Science for Engineers - - Unit 3 - Week 1

sum=sum*n
Week 2
if(sum >50)
{
Week 3
print("Apple")
}
Week 4 else
{
Week 5 print("Mango")
}
Week 6 }

Week 7 3
2
Week 8 4
5
DOWNLOAD VIDEOS
Yes, the answer is correct.
Score: 1
Accepted Answers:
2

4) In the R code given below, the value of "i” at which the loop breaks is --------- 1 point

n=16
x = seq(1,n,2)
for (i in x) {
if (i == 5){
print(i)
break
}
}

3
15
5
25
Yes, the answer is correct.
Score: 1
Accepted Answers:
5

5) Which one of the following function is can be used to list the installed packages in R? 1 point

library( )
library[ ]
library{ }
All the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
library( )

6) The value(s) of "y" at the end of the program given below is-------- 1 point

x1=matrix(10:18,3,3)
x2=matrix(11:19,3,3)
m =cbind(apply(x1,1,min),apply(x2,1,max))
print(m)
y =apply(m,1,mean)
print(y)

11 12 13
30 20 40
13.5 14.5 15.5
2 12
Yes, the answer is correct.
Score: 1
Accepted Answers:
13.5 14.5 15.5

7) The command to access help in R Studio is------------ 1 point

topic.help
help(topic)
help{topic}
ctrl + l

Y h i

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=7&assessment=92 2/5
26/09/2019 Data Science for Engineers - - Unit 3 - Week 1

Yes, the answer is correct.


Score: 1
Accepted Answers:
help(topic)

8) The output of the code given below is --------- 1 point

x =c(1:4)
y =c(6,3)
x *y

Error!
6 12 9 12
6 6 8 8
6 6 18 12
Yes, the answer is correct.
Score: 1
Accepted Answers:
6 6 18 12

9) The output displayed on running the code given below is 1 point


sample(1:100, 3)

First three natural numbers


100 random real numbers
Three random integers between 1 to 100
Thirty-three random real numbers
Yes, the answer is correct.
Score: 1
Accepted Answers:
Three random integers between 1 to 100

10) The output displayed on running the code given below is 1 point

x=c(55,44,55,77)
x[c(FALSE,TRUE,FALSE,TRUE)]

55 44 55 77
44 77
Error
TRUE TRUE TRUE FALSE
Yes, the answer is correct.
Score: 1
Accepted Answers:
44 77

11) Consider a list defined as below: 1 point

mylist=list("Apple","Mango","Orange",c("Jan","May","Nov"),"125","90","150")

Choose the correct command to access the element "May"

mylist[[2]][2]
mylist[[4]][2]
mylist[[4]][1]
mylist[2]2
Yes, the answer is correct.
Score: 1
Accepted Answers:
mylist[[4]][2]

12) Using append command choose the correct command to add a new component with the name "Dec" to the vector containing month 0 points
names in the list defined below:

mylist=list("Apple","Mango","Orange",c("Jan","May","Nov"),"125","90","150")

mylist = append(mylist[[4]], "Dec")


mylist = append(mylist[4], "Dec")
mylist = append(mylist[3][3], "Dec")
mylist = append(mylist[3][4], "Dec")
Yes, the answer is correct.
Score: 0
Accepted Answers:
mylist = append(mylist[[4]], "Dec")

13) The correct command to build a matrix with numbers from 1 to 12, arranged row wise of size 3x4 and name it as "A" is ----------- 1 point

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=7&assessment=92 3/5
26/09/2019 Data Science for Engineers - - Unit 3 - Week 1

A =matrix(c(1:12), nrow = 9, ncol = 1, byrow = F)


A =matrix(c(1:12), nrow = 3, ncol = 4, byrow = T)
A =matrix(c(1:12), nrow = 4, ncol = 3, byrow = T)
A =matrix(c(1:12), nrow = 3, ncol = 4, byrow = F)
Yes, the answer is correct.
Score: 1
Accepted Answers:
A =matrix(c(1:12), nrow = 3, ncol = 4, byrow = T)

11 16 21 26 31
⎡ ⎤

⎢ 12 17 22 27 32 ⎥
⎢ ⎥
Using the matrix, ⎢
⎢ 13 18 23 28

33 ⎥ answer the questions from 14 to 18.
⎢ ⎥
⎢ 14 19 24 29 34 ⎥
⎣ ⎦
15 20 25 30 35

14) Which of the following command used to display the full matrix a 1 point

print(a)
print(a[ ])
print(a[,])
All the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
All the above

15) The expected output when the command a [1,4] is executed is 1 point

56
26
70
69
Yes, the answer is correct.
Score: 1
Accepted Answers:
26

16) The command to exclude the elements of 3rd row and select the rest of matrix is 1 point

a[-3,]
a[3,1:5]
a[3,]
a[2,0:4]
Yes, the answer is correct.
Score: 1
Accepted Answers:
a[-3,]

17) The command to extract the diagonal elements of matrix "a" 1 point

b = diag (a)
b = diagonal(a)
b=diag(x = a,nrow = 5,ncol = 5)
All the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
b = diag (a)

18) The command to check if "a" is of object “matrix” in R 1 point

as.matrix(a)
is.matrix([a])
as.mat(a)
is.matrix(a)
Yes, the answer is correct.
Score: 1
Accepted Answers:
is.matrix(a)

19) Choose the variable name that is valid in R. 1 point

Transport1. = 10
1transport = 10
Transport% = 10

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=7&assessment=92 4/5
26/09/2019 Data Science for Engineers - - Unit 3 - Week 1

_bus.transport1 =10
Yes, the answer is correct.
Score: 1
Accepted Answers:
Transport1. = 10

20) R script files has an extension----------- 1 point

.Rp
.R
.S
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
.R

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=7&assessment=92 5/5
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 4 - Week 2

Course outline

How to access the portal?


Assignment 2A
The due date for submitting this assignment has passed. Due on 2019-08-21, 23:59 IST.
Week 0
Assignment submitted on 2019-08-16, 23:32 IST
Week 1
1) For a matrix A if the rank is r and the nullity is given by a, the number of independent attributes 0 points
Week 2
is always equal to 0

Linear Algebra for Data is equal to r - a


science (unit? cannot be determined
unit=21&lesson=22)
is equal to r + a
Solving Linear Equations
Yes, the answer is correct.
(unit? Score: 0
unit=21&lesson=23) Accepted Answers:
Solving Linear Equations
is equal to r + a
( Continued ) (unit?
2) Two matrices can be considered equivalent if: 1 point
unit=21&lesson=24)

Linear Algebra - They have the same size and rank


Distance,Hyperplanes Determinants are equal to 0
and
b is in the column space of A
Halfspaces,Eigenvalues,Eigenvectors
(unit? None of the above
unit=21&lesson=25)
Yes, the answer is correct.
Score: 1
Linear Algebra -
Distance,Hyperplanes
Accepted Answers:
and
They have the same size and rank
Halfspaces,Eigenvalues,Eigenvectors
3) The rank of the matrix A given below is: 1 point
( Continued 1) (unit?
unit=21&lesson=26)
1 0 0 0 0
⎡ ⎤
Linear Algebra -
⎢ 0 5 0 0 0⎥
Distance,Hyperplanes ⎢ ⎥
A = ⎢ 0 0 0 0

0⎥
and ⎢
⎢ ⎥
Halfspaces,Eigenvalues,Eigenvectors ⎢ 0 0 0 4 0⎥

( Continued 2 ) (unit? ⎣
0 0 0 0 2

unit=21&lesson=27)
4
Linear Algebra -
Distance,Hyperplanes 5
and 3
Halfspaces,Eigenvalues,Eigenvectors
( Continued 3 ) (unit?
1
unit=21&lesson=28) Yes, the answer is correct.
Score: 1
Week 2 Feedback Form
Accepted Answers:
(unit?
4
unit=21&lesson=29)
4) The system of equations 6x+y-2z=-8, 5x+3y-3z=4 and 12x+2y-4z=-16 1 point
FAQ (unit?
unit=21&lesson=99)
No solution
Quiz : Assignment 2A Unique solution
(assessment?name=93)
Infinite solutions

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=93 1/5
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

Quiz : Assignment 2B Two solutions


(assessment?name=94)
No, the answer is incorrect.
Week 2 assignments
Score: 0
solutions (unit? Accepted Answers:
unit=21&lesson=108) Infinite solutions

5) 7 8 9 4 1 point
Week 3 ⎡ ⎤ ⎡ ⎤

The system of equationsAX = b with A = ⎢ 10 11 12 ⎥ and B = ⎢ 3 ⎥ has


⎣ ⎦ ⎣ ⎦
Week 4 13 14 15 5

No solution
Week 5
Unique solution
Week 6 Infinite solutions
Two solutions
Week 7
Yes, the answer is correct.
Score: 1
Week 8 Accepted Answers:
No solution
DOWNLOAD VIDEOS
6) The system of equations 2x +6y -2z = -8, 12x -3y +6z = 9, 10x -5y - 15z = 5 has: 1 point

unique solution
No solution
Two solutions
Infinitely many solutions
Yes, the answer is correct.
Score: 1
Accepted Answers:
unique solution

7) In the system of equations2x − y + 3z = 1, −5x + 20y + 5z = 15, 6x − 3y + 9z = “?” , for what value of the “?” , the system of 1 point
equations have infinite solutions

1/3
3
1/2
1
Yes, the answer is correct.
Score: 1
Accepted Answers:
3

8) For a square matrix A, the product of the eigen values is equal to 1 point

|𝐀 |
mxm
0
1
Yes, the answer is correct.
Score: 1
Accepted Answers:
|𝐀 |

9) If Eigenvalue of a matrix A is λ , and A−1 exists, then Eigenvalue of A−1 is: 1 point

2
λ

1/λ

2
1/λ

No, the answer is incorrect.


Score: 0
Accepted Answers:
1/λ

10) α, β and γ that satisfy the below equation are 1 point

6 −2 −6 14
⎡ ⎤ ⎡ ⎤ ⎡ ⎤ ⎡ ⎤

α⎢ 24 ⎥ +β⎢ 4 ⎥ + γ ⎢ −8 ⎥ = ⎢ −24 ⎥
⎣ ⎦ ⎣ ⎦ ⎣ ⎦ ⎣ ⎦
−12 1 −6 20

α = −1, β = −4, γ = −2

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=93 2/5
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

α = 0, β = 0, γ = 0

α = 3, β = −1, γ = 11

α = 3, β = 1, γ = −5

Yes, the answer is correct.


Score: 1
Accepted Answers:
α = −1, β = −4, γ = −2

11) For a system of Linear equations of the form AX , a unique solution exists if:
= B 1 point

rank(A)=rank(B)
rank(A)=rank(A,B)
rank(B)=rank(A,B)
rank(A)=rank(B)=n
No, the answer is incorrect.
Score: 0
Accepted Answers:
rank(A)=rank(A,B)

12) ⎡
t 1 2

1 point
For a matrix A = ⎢ 1 3 t ⎥ the determinant of A is
⎣ ⎦
6 t 2

3
−t + 14t − 38

3
t − 14t + 38

2
t + 16t + 16

2
t − 14t + 38

Yes, the answer is correct.


Score: 1
Accepted Answers:
3
−t + 14t − 38

13) The eigen value λ a square matrix A can be calculated using: 1 point

|A| = 0

|A − λI | ≠ 0

|A − λI | = 0

|λI | = 0

Yes, the answer is correct.


Score: 1
Accepted Answers:
|A − λI | = 0

14) −4i −2i 1 point


If A = [ ] then |A| =?
3i i

-2
-4
3
5
Yes, the answer is correct.
Score: 1
Accepted Answers:
-2

15) ⎡
5 −3 7

1 point
The rank of the matrix A = ⎢ 7 −5 3⎥ is
⎣ ⎦
−5 1 3

1
2
3
0

Y h i

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=93 3/5
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

Yes, the answer is correct.


Score: 1
Accepted Answers:
3

16) If A and B are any two square matrices of SAME dimensions then, BAB−1 is, 1 point

A
B
B=n
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
A

17) ⎡
0 −4 −8

1 point
The matrix ⎢ 4 0 5 ⎥ is
⎣ ⎦
8 −5 0

Symmetric matrix
Lower triangular matrix
Skew symmetric matrix
Null matrix
Yes, the answer is correct.
Score: 1
Accepted Answers:
Skew symmetric matrix

18) For a Matrix A if |A| =0 , then the matrix 1 point

A is invertible
A is not invertible
A is non singular
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
A is not invertible

19) ⎡ 4 −2 0 ⎤
1 point
Eigenvalues of the matrix ⎢ −1 2 −1 ⎥are (Roundoff to 2 decimal places)
⎣ ⎦
0 −2 4

0.64, 7.07, -0.46


4.67, -2.96, 2.12
5.23, 4.00 ,0.76
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
5.23, 4.00 ,0.76

20) The rank of the matrix, given in Q.19 is 1 point

2
0
1
3
Yes, the answer is correct.
Score: 1
Accepted Answers:
3

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=93 4/5
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=93 5/5
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 4 - Week 2

Course outline

How to access the portal?


Assignment 2B
The due date for submitting this assignment has passed. Due on 2019-08-21, 23:59 IST.
Week 0
Assignment submitted on 2019-08-17, 20:23 IST
Week 1
1) The distance of the vector N = [4 7 1]
T
from origin is… 1 point
Week 2
− −
Linear Algebra for Data
√ 14 units
science (unit?
unit=21&lesson=22) − −
√ 66 units
Solving Linear Equations

(unit? √9 units
unit=21&lesson=23)
− −
Solving Linear Equations √ 35 units
( Continued ) (unit?
Yes, the answer is correct.
unit=21&lesson=24) Score: 1
Linear Algebra -
Accepted Answers:
−−
√ 66 units
Distance,Hyperplanes
and
2) The distance between two vectors say V1 = [11 5 2]
T
and V2 T
= [7 7 1] is 1 point
Halfspaces,Eigenvalues,Eigenvectors
(unit?
unit=21&lesson=25) –
√3 units
Linear Algebra -
Distance,Hyperplanes –
√9 units
and
Halfspaces,Eigenvalues,Eigenvectors

( Continued 1) (unit? 2√ 3 units
unit=21&lesson=26)
−−
√ 21 units
Linear Algebra -
Distance,Hyperplanes Yes, the answer is correct.
and Score: 1
Halfspaces,Eigenvalues,Eigenvectors Accepted Answers:
( Continued 2 ) (unit? −−
√ 21 units
unit=21&lesson=27)
3) The unit vector of a vector [2 T
5] is 1 point
Linear Algebra -
Distance,Hyperplanes
and –
2/√ 9
Halfspaces,Eigenvalues,Eigenvectors [ ]

( Continued 3 ) (unit? 5/√ 9

unit=21&lesson=28)
− −
Week 2 Feedback Form 2/√ 29
[ ]
− −
(unit? 5/√ 29
unit=21&lesson=29)

FAQ (unit? 29/√ 5
[ ]
unit=21&lesson=99) –
29/√ 2

Quiz : Assignment 2A
(assessment?name=93)

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=94 1/3
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

− −
Quiz : Assignment 2B 3/√ 58
[ ]
(assessment?name=94) − −
7/√ 58

Week 2 assignments Yes, the answer is correct.


solutions (unit? Score: 1
unit=21&lesson=108) Accepted Answers:
− −
2/√ 29
[ ]
Week 3 − −
5/√ 29

Week 4 4) The angle between the two vectors v1 = [ 1 5


T
3 ] , v2 = [ −4 −7 5]
T
is 1 point

Week 5 ∘
θ = 90

Week 6
−1 15
θ = cos ( )
5√13

Week 7
−1 24
θ = cos (− )
Week 8 15√14

DOWNLOAD VIDEOS θ = cos


−1
(
34
)
5√13

Yes, the answer is correct.


Score: 1
Accepted Answers:
−1 24
θ = cos (− )
15√14

5) Which of the following sets of vector are orthogonal 1 point

T T
v1 = ( 5 −2 3 ) , v2 = ( −2 4 6 )

v1 = ( 2 4 −2 ) , v2 = ( 1 4)

T T
v1 = ( 2 3) , v2 = ( −1 4 )

T T
v1 = ( 14 5 ) , v2 = ( 10 −2 )

Yes, the answer is correct.


Score: 1
Accepted Answers:
T T
v1 = ( 5 −2 3 ) , v2 = ( −2 4 6 )

6) → T

T → → 1 point
If a = [ 2 1 3 ] and b = [ 2 3 1 ] then a unit vector perpendicular to a and a is

T
−1 −1 1
[ ]
√6 √6 √6

T
1 −1 1
[ ]
√6 √6 √6

T
2 −1 −1
[ ]
√6 √6 √6

T
1 1 1
[ ]
√6 √6 √6

Yes, the answer is correct.


Score: 1
Accepted Answers:
T
2 −1 −1
[ ]
√6 √6 √6

7) ⎛
x
⎞ ⎛
1

1 point
⎜ y ⎟ ⎜5 ⎟
The point ⎜ ⎟ = ⎜ ⎟ is in -----half space of the hyper plane 3x+3y-2z+4q=15
⎜ z ⎟ ⎜4 ⎟

⎝ ⎠ ⎝ ⎠
q 2

Positive
Negative
On the hyperplane
Cannot be decided
Yes, the answer is correct.
Score: 1
Accepted Answers:
Positive

8) The value of K for which the two vectors v1 and v2 are orthogonal is v1 = (4u⃗ − K v⃗ ), v2 = (3u⃗ + 2v⃗)
  1 point

3/5

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=94 2/3
26/09/2019 Data Science for Engineers - - Unit 4 - Week 2

-5/3
-2
6
Yes, the answer is correct.
Score: 1
Accepted Answers:
6

9) If the projection of a⃗  on b⃗  and projection of b⃗ on are equal then the angle between a⃗ + b⃗ and a⃗ − b⃗ is
a⃗  1 point

Yes, the answer is correct.


Score: 1
Accepted Answers:
π

10) The distance of the vectorN = [271]


T
from origin is… 1 point

− −
√ 41 units

− −
√ 83 units

− −
√ 54 units

− −
√ 35 units
Yes, the answer is correct.
Score: 1
Accepted Answers:
−−
√ 54 units

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=21&assessment=94 3/3
26/09/2019 Data Science for Engineers - - Unit 5 - Week 3

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 5 - Week 3

Course outline

How to access the portal?


Assignment 3
The due date for submitting this assignment has passed. Due on 2019-08-21, 23:59 IST.
Week 0
Assignment submitted on 2019-08-21, 20:57 IST
Week 1
1) A single letter is selected at random from the word ‘DATASCIENCE’. The probability that it is a vowel is 1 point
Week 2
7/11
2/11
Week 3
5/11
Statistical Modelling 4/11
(unit?
unit=31&lesson=32) Yes, the answer is correct.
Score: 1
Random Variables and Accepted Answers:
Probability Mass/Density 5/11
Functions (unit?
unit=31&lesson=33) 2) A and B are two events. The probability that at least one of them occurs is given by 1 point

Sample Statistics (unit?


unit=31&lesson=34) c
P (A ∩ B ) + P (A
c
∩ B)

Hypotheses Testing
(unit? P (A) + P (B) − P (A ∩ B)

unit=31&lesson=35)

Week - 3 Feedback Form P (A) + P (B) + P (A ∩ B)

(unit?
unit=31&lesson=36) c c
P (A ) + P (B ) − 2P (A
c c
∩B )

FAQ (unit? Yes, the answer is correct.


unit=31&lesson=101) Score: 1
Accepted Answers:
Quiz : Assignment 3
P (A) + P (B) − P (A ∩ B)
(assessment?name=91)
3) A total of 40 candidates have applied for a single job at a power plant. Out of the 40 candidates, 20 are graduates, 35 are men and 25 1 point
Assignment 3 solutions
(unit?
are computer literate. What is the probability of randomly selecting a candidate who is a graduate, female and computer literate? (final value
unit=31&lesson=109) rounded to 3 decimal places)

Week 4 0.039
1.200
Week 5 0.430
0.050
Week 6
Yes, the answer is correct.
Score: 1
Week 7
Accepted Answers:
0.039
Week 8
4) Two tube lights are installed in a room. Probability of light A failing is 0.20 while the probability of light B failing is 0.15. What is the 1 point
DOWNLOAD VIDEOS probability that both the lights are working on a given day? (final value is rounded off to 2 decimal places)

0.50
0.54
0.80

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=31&assessment=91 1/5
26/09/2019 Data Science for Engineers - - Unit 5 - Week 3

0.68
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.68

5) A mathematics problem is given to three students A, B, C whose chances of solving it are 1/4, 2/3, 1/2 respectively. If all of them try 1 point
independently, the probability that the problem is solved by any one of the students is: -

0.910
0.875
1.410
0.330
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.875

X and Y are independent random variables with E(X) = 4, σ


2
X
= 4, E(Y ) = 4 and σ
2
Y
= 8 . Now based on this information answer
question 6 and 7.

6) E(5X + 2Y ) =? 1 point

25
28
20
30
Yes, the answer is correct.
Score: 1
Accepted Answers:
28

7) V ar (2X + 4Y ) is 1 point

74
380
144
160
Yes, the answer is correct.
Score: 1
Accepted Answers:
144

Download the data set “Toyota.csv (https://drive.google.com/file/d/18BznEh9bXFtn8W4za-cwfY_-J-LsOFWw/view)”. Load the data set in to
your R workspace with a variable name “x”.

Hints: Copy the dataset into your working directory to read the file seamlessly and use the function read.csv()

Answer questions 8 to 12 based on the data.

8) Average Kilometres travelled by the cars is 1 point

39941.25
26422.52
32485.23
22987.45
Yes, the answer is correct.
Score: 1
Accepted Answers:
39941.25

9) The highest quoted value of a car is: 1 point

2750
7000
22750
117404
Yes, the answer is correct.
Score: 1
Accepted Answers:
22750

10) The Median age of the cars is: 1 point

20
30

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=31&assessment=91 2/5
26/09/2019 Data Science for Engineers - - Unit 5 - Week 3

26
40
Yes, the answer is correct.
Score: 1
Accepted Answers:
26

11) Variance of Price is 1 point

5848635
4048635
1716945
1689845
Yes, the answer is correct.
Score: 1
Accepted Answers:
5848635

12) The correlation coefficient between Price and KM is 1 point

-0.588
-0.050
0.108
1.000
Yes, the answer is correct.
Score: 1
Accepted Answers:
-0.050

13) Which one of the following is best measure of central tendency for categorical data? 1 point

Mean
Median
Mode
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
Mode

14) A standard normal density function is shown below. The area of the shaded region is 1 point

0.006
0.457
0.594
0.933
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.933

15) The possible values of the correlation coefficient lies between: 1 point

0 to -1

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=31&assessment=91 3/5
26/09/2019 Data Science for Engineers - - Unit 5 - Week 3

-1 to 1
-∞ to ∞
0 to ∞
Yes, the answer is correct.
Score: 1
Accepted Answers:
-1 to 1

16) Given that the random variable X follows a chi-square distribution with 4 degrees of freedom and P(X≤x)=0.5. Then the value of X is 1 point

3.357
-3.357
-3.325
3.325
Yes, the answer is correct.
Score: 1
Accepted Answers:
3.357

17) A sample of N observations are independently drawn from a normal distribution. The sample variance follows 1 point

Normal distribution
Chi-square with N degrees of freedom
Chi-square with N-1 degrees of freedom
t-distribution with N-1 degrees of freedom
Yes, the answer is correct.
Score: 1
Accepted Answers:
Chi-square with N-1 degrees of freedom

Based on the below information answer questions from 18 and 21

The internet usage (in GB) of men and women have been measured and stored in a csv file named “Internet Consumed3.csv
(https://drive.google.com/file/d/1TMbBAEDTNEnnkLVHNZZ2h5S0kPJ2RAXu/view)”. In order to assess whether their usage are equivalent, a
hypotheses test is conducted to test whether the mean of the differences is equal to zero or not.

18) The difference in the mean usage amount between men and women is:- 1 point

0.8520
0.2536
0.1725
0.1120
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.1725

19) The value of the t-statistic for the hypotheses test is 1 point

0.456
0.404
-0.856
0.121
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.121

20) The degrees of freedom of the t-statistic is 1 point

41
18
40
d) 19
Yes, the answer is correct.
Score: 1
Accepted Answers:
40

21) The critical value of the test criterion for a level of significance of 5% is: 1 point

3.51
2.02
0.21

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=31&assessment=91 4/5
26/09/2019 Data Science for Engineers - - Unit 5 - Week 3

4.21
No, the answer is incorrect.
Score: 0
Accepted Answers:
2.02

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=31&assessment=91 5/5
26/09/2019 Data Science for Engineers - - Unit 6 - Week 4

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 6 - Week 4

Course outline

How to access the portal?


Assignment 4
The due date for submitting this assignment has passed. Due on 2019-08-28, 23:59 IST.
Week 0
Assignment submitted on 2019-08-28, 23:31 IST
Week 1
1) The quantity to be optimized( maximized or minimized) is called the 1 point
Week 2
constraint
objective function
Week 3
decision variable
Week 4 none
Yes, the answer is correct.
Optimization for Data Score: 1
Science (unit?
Accepted Answers:
unit=38&lesson=39)
objective function
Unconstrained
2) The restrictions on the possible values of the solution to the optimization problem are called: 1 point
Multivariate
Optimization (unit?
objective functions
unit=38&lesson=40)
cost functions
Unconstrained
equality/inequality constraints
Multivariate
Optimization ( Continued none
) (unit?
No, the answer is incorrect.
unit=38&lesson=41) Score: 0
Gradient ( Steepest ) Accepted Answers:
Descent ( OR ) Learning equality/inequality constraints
Rule (unit?
3) The maximization of a function f (x̄ ) is equal to the minimization of the function 1 point
unit=38&lesson=42)

Week - 4 Feedback Form


(unit? −f (x̄ )

unit=38&lesson=43)

FAQ (unit? f (x̄ )

unit=38&lesson=102)
′′
f (x̄ )
Quiz : Assignment 4
(assessment?name=96)
′′
−f (x̄ )
Assignment 4 solutions
(unit? Yes, the answer is correct.
unit=38&lesson=112) Score: 1
Accepted Answers:
Week 5 −f (x̄ )

4) When the feasibility regions defined by equality constraints and inequality constraints are compared, 1 point
Week 6
The regions defined by both are exactly the same
Week 7
The region defined by the inequality constraint is greater
The region defined by the equality constraint is greater
Week 8
none of the above
DOWNLOAD VIDEOS
Y h i

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=38&assessment=96 1/4
26/09/2019 Data Science for Engineers - - Unit 6 - Week 4

Yes, the answer is correct.


Score: 1
Accepted Answers:
The region defined by the inequality constraint is greater

5) If f (x̄ ) is QUADRATIC function of x̄ ; and g(x̄ ), h(x̄ ) are LINEAR functions of x̄ , then the type of optimization problem is 1 point

dual linear programming


linear programing
quadratic programming
none of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
quadratic programming

6) Class of optimization problems WITH NO constraints are known as 1 point

constrained optimization problems


unconstrained optimization problems
linear constrained optimization problems
none of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
unconstrained optimization problems

7) If ANY of the functions among the objective function and constraint functions is NONLINEAR, then the problem is called a 1 point

non-linear optimization problem


linear programming problem
cannot be decided
none of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
non-linear optimization problem

8) The optimum for a function f (x) at x ∗ , exists if: 1 point

If the first derivative at x ∗ is zero

If the first derivative at x ∗ is positive

If the first derivative at x ∗ is negative


None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
If the first derivative at x ∗ is zero

9) For an unconstrained optimization problem given below, 1 point

min f (x)
x

for x , to be the MINIMIZER of f (x), the second order sufficiency condition is


′′
f (x) < 0

′′
f (x) = 0

′′
f (x) = 1

′′
f (x) > 0

Yes, the answer is correct.


Score: 1
Accepted Answers:
′′
f (x) > 0

10) For an unconstrained optimization problem given below, 1 point

min f (x)
x

for x ∗ , to be the MAXIMIZER of f (x), the second order sufficiency condition is

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=38&assessment=96 2/4
26/09/2019 Data Science for Engineers - - Unit 6 - Week 4

′′
f (x) > 0

′′
f (x) < 0

′′
f (x) = 0

′′
f (x) = 1

Yes, the answer is correct.


Score: 1
Accepted Answers:
′′
f (x) < 0

11) If f (x) = 4x
5
+ 3x
4
+ 6x
3
+ 12x
2
+3 , then the first order necessary condition for either maxima or minima of f (x) is 1 point

4 3 2
16x + 9x + 18x + 24x = 0

4 3 2
20x + 12x + 18x + 24x + 3 = 0

4 3 2
20x + 12x + 18x + 24x = 0

3 2
8x − 18x − 24x = 0

Yes, the answer is correct.


Score: 1
Accepted Answers:
4 3 2
20x + 12x + 18x + 24x = 0

12) For a function f (x) = x


4
− 3x
3
+x
2
+ 23 , which of the following numbers is not a stationary point of f (x) 1 point

0
0.25
2
-2.5
Yes, the answer is correct.
Score: 1
Accepted Answers:
-2.5

13) For a function f (x) = x


4
− 3x
3
+x
2
+ 23 , stationary points which are qualified to be minimizers of f (x)are 1 point

0,2
0,-2.5
0.25,2
2,-2.5
Yes, the answer is correct.
Score: 1
Accepted Answers:
0,2

14) For a function f (x) = 3x


4
+ 4x
3
− 12x
2
+3 , stationary point which is qualified to be a maximizer of f (x) is 0 points

2
0
0.25
2.5
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.25

15) If f (x) = 12x


4
− 2x
3
+ 9x
2
+5 , then the first order necessary condition for either maxima or minima of f (x) is 1 point

2
24x + 4x − 6 = 0

3 2
48x − 6x + 18x = 0

3 2
36x − 2x − 6x = 0

2
48x − 4x − 6 = 0

Yes, the answer is correct.


Score: 1
Accepted Answers:
3 2
48x − 6x + 18x = 0

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=38&assessment=96 3/4
26/09/2019 Data Science for Engineers - - Unit 6 - Week 4

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=38&assessment=96 4/4
26/09/2019 Data Science for Engineers - - Unit 7 - Week 5

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 7 - Week 5

Course outline

How to access the portal?


Assignment 5
The due date for submitting this assignment has passed. Due on 2019-09-04, 23:59 IST.
Week 0
Assignment submitted on 2019-09-04, 23:58 IST
Week 1
1) For an unconstrained multivariate optimization problem given below 1 point
Week 2
min f (x̄ )

Week 3
for x̄ , to be the minimizer/maximizer of f (x̄ ) , the first order necessary condition is

Week 4

▽f (x̄ ) > 0
Week 5

Multivariate ∗
▽f (x̄ ) = 0
Optimization With
Equality Constraints ∗
▽f (x̄ ) < 0
(unit?
unit=45&lesson=46) none of the above

Multivariate Yes, the answer is correct.


Optimization With
Score: 1
Inequality Constraints Accepted Answers:

(unit? ▽f (x̄ ) = 0

unit=45&lesson=47)
2) For an unconstrained multivariate optimization problem given below, 1 point
Introduction to Data
Science (unit? min f (x̄ )
unit=45&lesson=48) x̄

if H (x̄ ∗ ) is the Hessian of f (x̄ ) , evaluated at x̄ ∗ , for x̄ ∗ to be a MINIMIZER of f (x̄ ) , H (x̄ ∗ ) has to be
Solving Data Analysis
Problems - A Guided positive definite
Thought Process (unit?
negative semidefinite
unit=45&lesson=49)
negative definite
Week 5 Feedback Form
indefinite
(unit?
unit=45&lesson=50) Yes, the answer is correct.
Score: 1
Dataset (unit? Accepted Answers:
unit=45&lesson=52) positive definite
FAQ (unit? 3) For an unconstrained multivariate optimization problem given below, 1 point
unit=45&lesson=103)

Quiz : Assignment 5 min f (x̄ )



(assessment?name=100)
if H (x̄ ∗ ) is the Hessian of f (x̄ ) , evaluated at x̄ ∗ , for x̄ ∗ to be a MAXIMIZER of f (x̄ ) , H (x̄ ∗ ) has to be
Assignment 5 solutions
(unit? positive definite
unit=45&lesson=113) positive semidefinite

Week 6 negative definite


indefinite
Week 7 Yes, the answer is correct.
Score: 1
A dA

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=45&assessment=100 1/4
26/09/2019 Data Science for Engineers - - Unit 7 - Week 5

Accepted Answers:
Week 8 negative definite

DOWNLOAD VIDEOS
Use the following information to answer questions 4 to 8

A function is defined as: f (x, y) = −3x


2
+ 2xy + 3y
2
+ 3x − y

4) For a function f (x, y) = −3x


2
+ 2xy + 3y
2
+ 3x − y , the stationary point (x,y) is 1 point

(Hint: Stationary point is a solution to the first order necessary conditions for maxima or minima of f(x,y))

(1/2,0)
(-1,0)
(-1/2,1)
(1,1)
Yes, the answer is correct.
Score: 1
Accepted Answers:
(1/2,0)

5) The Hessian matrix of f (x, y) is 1 point

−5 2
[ ]
2 5

1 −4
[ ]
−2 1

4 −1
[ ]
−1 2

−6 2
[ ]
2 6

Yes, the answer is correct.


Score: 1
Accepted Answers:
−6 2
[ ]
2 6

6) The Eigenvalues of Hessian matrix of f (x, y) 1 point

-1.585786, -4.414214
6.324555, -6.324555
5.414214, 5.585786
-3.828427, 1.828427
Yes, the answer is correct.
Score: 1
Accepted Answers:
6.324555, -6.324555

7) The Hessian matrix of f (x, y) is 1 point

positive definite
indefinite
negative definite
negative semidefinite
Yes, the answer is correct.
Score: 1
Accepted Answers:
indefinite

8) At the stationary point obtained in question 4, the function has 1 point

maxima
minima
saddle point
None
No, the answer is incorrect.
Score: 0
Accepted Answers:
saddle point

9) The function f (x, y) = 2x


3
+ 3x
2
− 2y
3
+ 2y
2
1 point

has a stationary point at (-1,2/3)

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=45&assessment=100 2/4
26/09/2019 Data Science for Engineers - - Unit 7 - Week 5

has a stationary point at (-1,0)


has a stationary point at (0,0)
all of the above are stationary points for the function
Yes, the answer is correct.
Score: 1
Accepted Answers:
all of the above are stationary points for the function

Consider a function f (x 1 , x 2 ) = −x 1 x
2
2
2
− x x 2 + 100x 1 x 2
1

Answer questions 10 to 14 using f (x 1 , x 2 )

10) The stationary point of f (x 1 , x 2 ) is 1 point

(-1,1)
(100/3,100/3)
(-1/3,-1/3)
(-100,-103)
Yes, the answer is correct.
Score: 1
Accepted Answers:
(100/3,100/3)

11) The Hessian matrix of f (x 1 , x 2 ) evaluated at the stationary point obtained in Q.10 is 1 point

400/3 −200/3
[ ]
−200/3 100/3

402 200
[ ]
200 100

−200/3 −100/3
[ ]
−100/3 −200/3

−400 −200
[ ]
−200 −100

No, the answer is incorrect.


Score: 0
Accepted Answers:
−200/3 −100/3
[ ]
−100/3 −200/3

12) The Eigenvalues of Hessian matrix obtained in Q.11 are 1 point

501.601 and 0.399


-33.34 and -100.00
500 and 0
501.601 and -0.399
No, the answer is incorrect.
Score: 0
Accepted Answers:
-33.34 and -100.00

13) The Hessian matrix obtained in Q.11 is a 1 point

positive definite
positive semidefinite
negative definite
negative semidefinite
No, the answer is incorrect.
Score: 0
Accepted Answers:
negative definite

14) The stationary point of f (x 1 , x 2 ) obtained in Q.10 is __________ of f (x 1 , x 2 ) 1 point

maxima
minima
cannot be decided
none
Yes, the answer is correct.
Score: 1
Accepted Answers:
maxima

4 8

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=45&assessment=100 3/4
26/09/2019 Data Science for Engineers - - Unit 7 - Week 5

15) Consider a function f (x 1 , x 2 ) = x


3
+x
3
+ 2x
2
+ 4x
2
+6 , has (x 1 , x 2 ) = (−
4
,−
8
) as one of the stationary points. At this 1 point
1 2 1 2 3 3

point, the function


has a

minima
maxima
cannot be decided
none
Yes, the answer is correct.
Score: 1
Accepted Answers:
maxima

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=45&assessment=100 4/4
26/09/2019 Data Science for Engineers - - Unit 8 - Week 6

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 8 - Week 6

Course outline

How to access the portal?


Assignment 6
The due date for submitting this assignment has passed. Due on 2019-09-11, 23:59 IST.
Week 0
Assignment submitted on 2019-09-11, 20:27 IST
Week 1
1) In a simple linear regression model, if the coefficient of determination (R2) value is zero , then which of the following statements is true:1 point
-
Week 2
Dependent variable can be predicted perfectly by the independent variable
Week 3
Dependent variable cannot be predicted by the independent variable

Week 4 Dependent variable can sometimes be predicted by the independent variable


Dependent variable is a constant
Week 5 Yes, the answer is correct.
Score: 1
Week 6 Accepted Answers:
Dependent variable cannot be predicted by the independent variable
Module : Predictive
Modelling (unit?
2) Regression is: 1 point
unit=53&lesson=54)
A method of finding errors in measurements of variables
Linear Regression (unit? The process of maximizing the performance of an algorithm
unit=53&lesson=55)
The process of explaining a dependent variable based on one or more independent variables
Model Assessment (unit?
The process of reducing errors in prediction
unit=53&lesson=56)
Yes, the answer is correct.
Diagnostics to Improve Score: 1
Linear Model Fit (unit? Accepted Answers:
unit=53&lesson=57) The process of explaining a dependent variable based on one or more independent variables
Simple Linear Regression 3) The higher the value of R2 for a model, the observations are more closely grouped around: 1 point
Model Building (unit?
unit=53&lesson=58) the origin
Simple Linear Regression the best fit line
Model Assessment (unit? average values of the predicted variable
unit=53&lesson=59)
the intercept
Simple Linear Regression
Yes, the answer is correct.
Model Assessment (
Score: 1
Continued ) (unit?
Accepted Answers:
unit=53&lesson=60)
the best fit line
Muliple Linear
4) Residual plots are used for assessing 1 point
Regression (unit?
unit=53&lesson=61)
Validity of the linear model
Week 6 Feedback Form Normality of the errors
(unit?
unit=53&lesson=62)
Homoscedastic vs heteroscedastic errors
All the above
Dataset (unit?
unit=53&lesson=63) Yes, the answer is correct.
Score: 1
FAQ (unit? Accepted Answers:
unit=53&lesson=104) All the above

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=53&assessment=111 1/4
26/09/2019 Data Science for Engineers - - Unit 8 - Week 6

Quiz : Assignment 6
(assessment?name=111) The dataset ‘income_data.csv (https://drive.google.com/open?id=1A1S8rmo2_XVPM1BQBB32OCu1MWkO_hGS)’ contains data on the Cost
Of Living (COL) and the Population Density(PD) from different states. Build a linear regression model and answer questions 5-8.
Assignment 6 solutions
(unit?
unit=53&lesson=115)

Week 7

Week 8
5) The regression model is given by (Round off to two decimal places) 1 point
DOWNLOAD VIDEOS

C OL = 202.97 + 0.03 ∗ P D

P D = 14.49 − 0.81 ∗ C OL

C OL = −110.72 − 54.25 ∗ P D

P D = 14.49 + 0.81 ∗ C OL

No, the answer is incorrect.


Score: 0
Accepted Answers:
C OL = 202.97 + 0.03 ∗ P D

6) A F test is used to compare the reduced regression model involving only the intercept β 0 and the full model involving both β 0 and β 1 . 1 point
For the same
income dataset model, the numerator and denominator degrees of freedom for the F- statistic are, respectively: -

1 and 36
1 and 37
37 and 2
197 and 1
No, the answer is incorrect.
Score: 0
Accepted Answers:
1 and 36

7) The adjusted R2 value calculated for the model built above is: (Round off to two decimal places) 1 point

0.87
0.10
0.13
0.01
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.13

8) The number of outlier(s) from the residual plot that lie out of the 2σ limits 1 point

10
1
2
None
No, the answer is incorrect.
Score: 0
Accepted Answers:
2

9) The relationship between the dependent and independent variables in a simple linear regression is described by 1 point

F-statistic
predicted value and error
standardised residuals
coefficient and intercept
Yes, the answer is correct.
Score: 1
Accepted Answers:
coefficient and intercept

10) The standard assumption of ordinary least squares regression is that: 1 point

there are no errors in measurements of independent and dependent variables


there are errors only in measurement of independent variable
there are errors only in measurement of dependent variable
there are errors both in measurements of independent and dependent variables

N h i i

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=53&assessment=111 2/4
26/09/2019 Data Science for Engineers - - Unit 8 - Week 6

No, the answer is incorrect.


Score: 0
Accepted Answers:
there are errors only in measurement of dependent variable

11) Standardised residuals have:- 1 point

binomial distribution with n degrees of freedom


t distribution with n-2 degrees of freedom
log-normal distribution with n-2 degrees of freedom
chi-square distribution with n degrees of freedom
No, the answer is incorrect.
Score: 0
Accepted Answers:
t distribution with n-2 degrees of freedom

12) Which correlation coefficient is used for ranked variables? 0 points

Pearson
Spearman
Kendall
Spearman and Kendall
No, the answer is incorrect.
Score: 0
Accepted Answers:
Spearman

13) The Pearson’s correlation coefficient between two parameters is calculated to be 0.10. What can be inferred from the correlation 1 point
coefficient regarding the
relationship between the two parameters?

There exists a weak negative relationship between two variables


There exists a strong negative relationship between two variables
There exists a weak positive relationship between two variables
Correlation coefficient cannot possess this value
Yes, the answer is correct.
Score: 1
Accepted Answers:
There exists a weak positive relationship between two variables

14) The coefficient of correlation between variables X and Y will have a negative sign when 1 point

X is increasing, and Y is increasing


There is no change in X and Y
X is decreasing, and Y is constant
X is increasing, and Y is decreasing
Yes, the answer is correct.
Score: 1
Accepted Answers:
X is increasing, and Y is decreasing

15) In a simple linear regression, the rate of change of the dependent variable is determined by which of the following constants: 1 point

coefficient
intercept
residual error
z-factor
No, the answer is incorrect.
Score: 0
Accepted Answers:
coefficient

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=53&assessment=111 3/4
26/09/2019 Data Science for Engineers - - Unit 8 - Week 6

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=53&assessment=111 4/4
26/09/2019 Data Science for Engineers - - Unit 9 - Week 7

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 9 - Week 7

Course outline

How to access the portal?


Assignment 7
The due date for submitting this assignment has passed. Due on 2019-09-18, 23:59 IST.
Week 0
Assignment submitted on 2019-09-18, 23:41 IST
Week 1
1) In Logistic Regression a linear relationship is assumed between the independent variables and the 1 point
Week 2
Sigmoid of the dependent variable
Log of the dependent variable
Week 3
Sine of the dependent variable
Week 4 None of the above
No, the answer is incorrect.
Week 5 Score: 0
Accepted Answers:
Week 6 Sigmoid of the dependent variable

2) The value of the sigmoid function is bounded between:- 1 point


Week 7

Cross Validation (unit? [−∞, ∞]


unit=65&lesson=66)

Multiple Linear [−1, +∞]


Regression Modelling
Building and Selection
[0, 1]
(unit?
unit=65&lesson=67)
[−∞, 0]
Classification (unit?
unit=65&lesson=68) Yes, the answer is correct.
Score: 1
Logisitic Regression Accepted Answers:
(unit? [0, 1]
unit=65&lesson=69)
3) Which one of the following is called as the odds ratio? 1 point
Logisitic Regression (
Continued ) (unit? The ratio of the probability of an event occurring to the probability of the event not occurring
unit=65&lesson=70)
The ratio of the probability of an event not occurring to the probability of the event occurring
Performance Measures
The probability of an event occurring
(unit?
unit=65&lesson=71) The probability of an event not occurring

Logisitic Regression
Yes, the answer is correct.
Score: 1
Implementation in R
Accepted Answers:
(unit?
The ratio of the probability of an event occurring to the probability of the event not occurring
unit=65&lesson=72)

Dataset (unit?
4) The confusion matrix for a binary classifier gives 1 point
unit=65&lesson=73)
Only True Positives and True Negatives
Week -7 Feedback Form Only False Positives and False Negatives
(unit?
unit=65&lesson=74) Only True Positives, False Positives and False Negatives
True Positives, False Positives, True Negatives and False Negatives
FAQ (unit?
unit=65&lesson=105)
Y h i

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=65&assessment=114 1/5
26/09/2019 Data Science for Engineers - - Unit 9 - Week 7

Quiz : Assignment 7
Yes, the answer is correct.
Score: 1
(assessment?name=114)
Accepted Answers:
Assignment 7 solutions True Positives, False Positives, True Negatives and False Negatives
(unit?
unit=65&lesson=117)
5) In confusion matrix, the misclassification rate is given by 1 point

Week 8
F alse N egative+F alse positive

T otal number of samples

DOWNLOAD VIDEOS
T rue N egative+F alse positive

T otal number of samples

F alse N egative+T rue positive

T otal number of samples

T rue N egative+T rue positive

T otal number of samples

Yes, the answer is correct.


Score: 1
Accepted Answers:
F alse N egative+F alse positive

T otal number of samples

6) Overall effectiveness of a classifier (Accuracy) is given by 1 point

T rue positive+F alse positive

T otal number of samples

T rue positive+T rue negative

T otal number of samples

T rue negative+F alse negative

T otal number of samples

F alse positive+F alse negative

T otal number of samples

Yes, the answer is correct.


Score: 1
Accepted Answers:
T rue positive+T rue negative

T otal number of samples

7) The value of both sensitivity and specificity lies between 1 point

-1 and 1
-1 and 0
-2 and 2
0 and 1
Yes, the answer is correct.
Score: 1
Accepted Answers:
0 and 1

Consider the “income.csv” (https://drive.google.com/open?id=1GAm08m_NbS1nVm_bPFFIbzp4XYK4ihRE) dataset. The data has


values for per capita income and different parameters for some states. The description of the variables is given below:

Build a linear regression model and answer questions 8-15.

8) The coefficient of COL from the full model is: - (rounded off to 3 decimal places) 1 point

7.162
-6.410
0.800
-10.302

Y h i

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=65&assessment=114 2/5
26/09/2019 Data Science for Engineers - - Unit 9 - Week 7

Yes, the answer is correct.


Score: 1
Accepted Answers:
7.162

9) The t value corresponding to the coefficient of URate from the full model is: - (rounded off to 3 decimal places) 1 point

3.506
1.035
0.701
2.163
Yes, the answer is correct.
Score: 1
Accepted Answers:
2.163

10) The significant variables after building the full model are: - 1 point

URate and Pop


COL, PD and Taxes
RTWL, Taxes and PD
COL
No, the answer is incorrect.
Score: 0
Accepted Answers:
URate and Pop

11) The adjusted R2 value of the full model is: - (rounded off to 3 decimal places) 1 point

0.431
0.660
0.327
0.783
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.327

12) The adjusted R2 1 point

rewards the model for adding independent variables


penalizes the model for adding independent variables that do not influence the dependent variable
cannot be less than 0
is not dependent on the number of variables used for model building
Yes, the answer is correct.
Score: 1
Accepted Answers:
penalizes the model for adding independent variables that do not influence the dependent variable

13) The standard error associated in the estimation of the coefficient of COL is:- 1 point

-0.003
4.698
0.267
9500.000
Yes, the answer is correct.
Score: 1
Accepted Answers:
4.698

14) The numerator and denominator degrees of freedom for the F-statistic computed using the intercept model and the model built using 1 point
the variables URate,
Pop, COL and PD are respectively: -

4 and 194
6 and 33
6 and 34
4 and 33
No, the answer is incorrect.
Score: 0
Accepted Answers:
4 and 33

15) The overall F statistic (rounded off to 3 decimal places) between the full model built using all six variables and the reduced model built 1 point
by dropping Taxes
and RTWL is:

0.366

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=65&assessment=114 3/5
26/09/2019 Data Science for Engineers - - Unit 9 - Week 7

0.844
0.283
0.946
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.366

Follow the instructions below and answer questions 16 to 21 :


Download the data set “companies.csv (https://drive.google.com/open?id=1KHPuaRH-SWKUOuvwJbbzLBa_yu22hSt3)”. The data
contains three financial ratios (X1, X2 and X3) of solvent and bankrupt companies. Y indicates whether the company is bankrupt or solvent
after 2 years

Load the data set to your R workspace using a suitable variable name.

16) To predict the future of a company, i.e. bankruptcy or solvency, what would the dependent and independent variables be? 1 point

Y as the predicted variable and X1,X2 and X3 as the independent variables


X1 as the predicted variable and Y,X2 and X3 as the independent variables
X2 as the predicted variable and Y,X1 and X3 as the independent variables
X3 as the predicted variable and Y,X1 and X2 as the independent variables
Yes, the answer is correct.
Score: 1
Accepted Answers:
Y as the predicted variable and X1,X2 and X3 as the independent variables

17) Number of variables in dataset companies are 1 point

2
4
5
3
Yes, the answer is correct.
Score: 1
Accepted Answers:
4

18) Which command would be used to build a logistic regression model between the independent variables and the dependent variable? 1 point

lm ( )
abline ( )
glm ( )
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
glm ( )

19) The estimate of intercept (rounded off to 3 decimal places) of the model is 1 point

0.087
5.707
-6.681
0.322
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.322

20) The standard error of the variable X3 (rounded off to 3 decimal places) of the model developed is 1 point

0.045
9.743
0.060
1.877
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.045

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=65&assessment=114 4/5
26/09/2019 Data Science for Engineers - - Unit 9 - Week 7

21) The p- value for the variable X2 (rounded off to 3 decimal places) is 1 point

0.303
0.060
0.004
-1.030
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.004

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=65&assessment=114 5/5
26/09/2019 Data Science for Engineers - - Unit 10 - Week 8

shashikirankulkarni@gmail.com 

(https://swayam.gov.in)

(https://swayam.gov.in/nc_details/NPTEL)

NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Data Science for Engineers (course)

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc19_cs60/preview) Ask a Question (forum)

Progress (student/home) Mentor (student/mentor)

Unit 10 - Week 8

Course outline

How to access the portal?


Assignment 8
The due date for submitting this assignment has passed. Due on 2019-09-25, 23:59 IST.
Week 0
Assignment submitted on 2019-09-25, 21:50 IST
Week 1
Note : Some of the answers might be subjective, choose the most reasonable and widely accepted facts as answers
Week 2 1) The number of initial clusters in the K-means algorithm, 1 point

Week 3 Is determined by the algorithm based on calculations


Is predetermined before clustering
Week 4 Is fixed for all data sets
Is dependent on the number of variables
Week 5
No, the answer is incorrect.
Score: 0
Week 6
Accepted Answers:
Is predetermined before clustering
Week 7
2) In the K-means algorithm, the clusters are calculated such that :- 1 point
Week 8
The average distance of a point to the centroid of its cluster is minimized
K - Nearest Neighbors The average distance of a point to the centroid of its cluster is maximized
(kNN) (unit?
The distance of a point to the centroid is divided into n parts
unit=76&lesson=77)
None of the above
K - Nearest Neighbors
implementation in R
Yes, the answer is correct.
Score: 1
(unit?
Accepted Answers:
unit=76&lesson=78)
The average distance of a point to the centroid of its cluster is minimized
K - means Clustering
(unit?
3) The most commonly used distance metric to calculate distance between centroid of each cluster and data points in K-means algorithm 1 point
unit=76&lesson=79) is

K - means Chebyshev distance


implementation in R
Manhattan
(unit?
unit=76&lesson=80) Euclidean distance
None of the above
Data Science for
engineers - Summary Yes, the answer is correct.
(unit? Score: 1
unit=76&lesson=81) Accepted Answers:
Euclidean distance
Week 8 data set (unit?
unit=76&lesson=82) 4) Larger K values in K-means clustering:- 1 point

Week 8 Feedback Form


decrease the number of mis classified samples and decrease overfitting risk
(unit?
unit=76&lesson=83) decrease the number of mis classified samples but increase overfitting risk
increase the number of mis classified samples but decrease overfitting risk
FAQ (unit?
unit=76&lesson=106) None of the above

Quiz : Assignment 8 No, the answer is incorrect.


Score: 0
(assessment?name=116)
Accepted Answers:

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=76&assessment=116 1/3
26/09/2019 Data Science for Engineers - - Unit 10 - Week 8

Assignment 8 solutions decrease the number of mis classified samples but increase overfitting risk
(unit?
5) K means clustering classifies variables based on :- 1 point
unit=76&lesson=118)
dependent and independent variables
DOWNLOAD VIDEOS
the eigen values
distance between the points and a cluster centre
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
distance between the points and a cluster centre

6) K means clustering is a type of: - 1 point

Non -Hierarchical clustering


Hierarchical clustering
Agglomerative clustering
Non-agglomerative Analysis
Yes, the answer is correct.
Score: 1
Accepted Answers:
Non -Hierarchical clustering

7) Which of the following statement is NOT TRUE about kNN algorithm? 1 point

It is a non-parametric algorithm
It is an instance based learning algorithm
Explicit training and testing phases are involved while implementing kNN
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
Explicit training and testing phases are involved while implementing kNN

8) Which of the following helps kNN to perform better? 1 point

De-noising the data


Scaling the data
Selecting important features from the data
All the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
All the above

9) Which of the statement is INCORRECT about kNN algorithm 1 point

kNN works for classification problems with multiple classes


Number of neighbours (k) will influence classification output
kNN works ONLY for binary classification problems
If k=1, then the algorithm is simply called the nearest neighbour algorithm.
Yes, the answer is correct.
Score: 1
Accepted Answers:
kNN works ONLY for binary classification problems

10) kNN is 1 point

a lazy learning algorithm


a model based learning algorithm
a parametric algorithm
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
a lazy learning algorithm

11) Scaling is important in distance-based algorithms because 1 point

variables with higher magnitude will influence the results more


distance calculations are affected by the magnitude of the variables
The data is large and has many features
Both A and B
No, the answer is incorrect.
Score: 0
Accepted Answers:

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=76&assessment=116 2/3
26/09/2019 Data Science for Engineers - - Unit 10 - Week 8

Both A and B

12) The number of neighbours k in kNN 1 point

Is decided prior to model building


Is based on the regression coefficients
Is available in standard tables
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
Is decided prior to model building

13) Which of the following is TRUE with respect to K means clustering? 1 point

The inter cluster distance is minimized and intra cluster distance is maximized
The inter cluster distance is maximized and intra cluster distance is minimized
Both inter cluster and intra cluster distance are minimized
Both inter cluster and intra cluster distance are maximized
Yes, the answer is correct.
Score: 1
Accepted Answers:
The inter cluster distance is maximized and intra cluster distance is minimized

14) The method that kNN adopts to label a NEW TEST POINT is 1 point

Majority voting method


Bayes theorem
Merging of similar clusters
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
Majority voting method

15) The value of cluster seeds (initial centroids) used in a K means clustering algorithm:- 1 point

affects the clustering of the variables


has no influence on the clustering of the variables
Is chosen from standard tables
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
affects the clustering of the variables

https://onlinecourses.nptel.ac.in/noc19_cs60/unit?unit=76&assessment=116 3/3

Vous aimerez peut-être aussi