100% found this document useful (4 votes)
5K views

Assignments - NOC - Data Science For Engineers

This document provides information about an online Data Science for Engineers course offered through NPTEL, including: - The course outline and expectations for Unit 3, Week 1 - An assignment that was due on February 12th, consisting of multiple choice questions to test understanding of R concepts covered in lessons - Feedback is provided for incorrect answers selected, with the correct answers also displayed - Future weeks and units of the course are listed at the bottom

Uploaded by

Praghashraja
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (4 votes)
5K views

Assignments - NOC - Data Science For Engineers

This document provides information about an online Data Science for Engineers course offered through NPTEL, including: - The course outline and expectations for Unit 3, Week 1 - An assignment that was due on February 12th, consisting of multiple choice questions to test understanding of R concepts covered in lessons - Feedback is provided for incorrect answers selected, with the correct answers also displayed - Future weeks and units of the course are listed at the bottom

Uploaded by

Praghashraja
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 69

02/07/2020 Data Science for Engineers - - Unit 3 - Week 1

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 3 - Week 1

Course outline

How does an NPTEL


Assignment 1
online course work? The due date for submitting this assignment has passed. Due on 2020-02-12, 23:59 IST.
As per our records you have not submitted this assignment.
Week 0
1) The value of "x" after running the code given below is ----- 1 point
Week 1
x=95
Data science for if(x<90){
engineers Course x=x^3
philosophy and }else if(x>100){
expectation (unit? x= x^5
unit=1&lesson=2)
}else {
Introduction to R x= x^2}
(unit? print(x)
unit=1&lesson=3)
9025
Introduction to R
(Continued) (unit? True
unit=1&lesson=4) 9211

Variables and 6325


datatypes in R No, the answer is incorrect.
(unit? Score: 0
unit=1&lesson=5) Accepted Answers:
9025
Data frames (unit?
unit=1&lesson=6) 2) The last value of sum and month printed is ----- 1 point
Recasting and
joining of n=5
dataframes (unit? sum=0
unit=1&lesson=7) for(i in 1:11){
Arithmetic,Logical
sum=sum+(i^3)
and Matrix if (i %% 2 !=0)
operations in R next
(unit? print(c(month.abb[i+2],sum))
unit=1&lesson=8) }
Advanced
"Oct" "2025"
programming in R :
Functions (unit? "Sep" "1296"
unit=1&lesson=9) "Nov" "3025"

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=1&assessment=102 1/6
02/07/2020 Data Science for Engineers - - Unit 3 - Week 1

Advanced "Dec" "3025"


Programming in R :
Functions No, the answer is incorrect.
Score: 0
(Continued) (unit?
unit=1&lesson=11) Accepted Answers:
"Dec" "3025"
Control structures
(unit? 3) Number of times the string "Thank you" will be printed when the below code is executed is---- 1 point
unit=1&lesson=12)
n=25
Data visualization
sum=1
in R Basic graphics
(unit?
for (i in 1:n) {
unit=1&lesson=13) sum=sum*n
if(sum >50)
FAQ (unit? {
unit=1&lesson=10)
print("Welcome")
Quiz : Practice }
Assignment 1 else
(assessment? {
name=90) print("Thank you")
Quiz : Assignment
}
1 (assessment? }
name=102)
3
Week 1 Feedback
1
(unit?
unit=1&lesson=107) 4
5
Solution -
Assignment 1 No, the answer is incorrect.
(unit? Score: 0
unit=1&lesson=114) Accepted Answers:
1
Week 2
4) In the R code given below, the value of "i” at which the loop breaks is --- 1 point
Week 3
n=16
x = seq(1,n,2)
Week 4
for (i in x) {
if (i == 5){
Week 5
print(i)
break
Week 6
}
}
Week 7
3
Week 8 5
15
Text Transcripts
25
Download Videos No, the answer is incorrect.
Score: 0
Accepted Answers:
5

5) 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,2,mean)
print(y)

11 18
30 20 40

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=1&assessment=102 2/6
02/07/2020 Data Science for Engineers - - Unit 3 - Week 1

13.5 14.5 15.5


2 12
No, the answer is incorrect.
Score: 0
Accepted Answers:
11 18

6) What will be the output of the code given below 1 point

x =c(3:8)
y =c(2,4,5)
x *y

Error!
6 16 18 12
6 16 25 12 28 40
6 16 8 8
No, the answer is incorrect.
Score: 0
Accepted Answers:
6 16 25 12 28 40

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

runif(100)

Random numbers between -1 and 1


100 random real numbers
Generates 100 uniform random numbers between 0 and 1
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
Generates 100 uniform random numbers between 0 and 1

8) The data structures in R on which binary operators can be applied 1 point

Scalar
Vector
Matrices
All the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
All the above

9) Consider a list defined as below: 1 point

mylist=list("Ram","Harish","Pradeep",c("Python","Java","R"),"25","90","1

Choose the correct command to access the element "R"

mylist[[2]][2]
mylist[[4]][3]
mylist[[3]][1]
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
mylist[[4]][3]

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=1&assessment=102 3/6
02/07/2020 Data Science for Engineers - - Unit 3 - Week 1

10)Given the following line of code to generate matrix ‘y’, how would you subset the third row? 1 point

y <- matrix(nrow=3, ncol=3, 1:9)

y[3,]
y[,3]
y[3,2]
y(3,)
No, the answer is incorrect.
Score: 0
Accepted Answers:
y[3,]

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

A =matrix(c(1:12), nrow = 3, ncol = 4, 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 = 1, ncol = 9, byrow = T)
No, the answer is incorrect.
Score: 0
Accepted Answers:
A =matrix(c(1:12), nrow = 3, ncol = 4, byrow = T)

⎡ 52 42 53 21 63 ⎤
⎢ ⎥
14 26 77 32 12
⎢ ⎥
Using the matrix, 𝑎 = ⎢ 13 18 23 28 33 ⎥ answer the questions from 12 to 16.
⎢ ⎥
14 19 24 29 34
⎢ ⎥
⎣ 15 20 25 30 35 ⎦

12)What is the output for the command “a[2:3]” 1 point

26 77 32 12
14 26 77 32 12
13 18 23 28 33
52 42 63
14 13
No, the answer is incorrect.
Score: 0
Accepted Answers:
14 13

13)The expected output when the command “a[3,4]” is executed is 1 point

56
32
33
28
No, the answer is incorrect.
Score: 0
Accepted Answers:
28

14)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,]

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=1&assessment=102 4/6
02/07/2020 Data Science for Engineers - - Unit 3 - Week 1

a[2,0:4]
No, the answer is incorrect.
Score: 0
Accepted Answers:
a[-3,]

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

diag (a)
diagonal(x=a)
diag(x = a,nrow = 5,ncol = 5)
All the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
diag (a)

16)The command to check if "a" is an object of matrix in R 1 point

is.matrix(a)
as.matrix(a)
is.matrix([a])
as.mat(a)
No, the answer is incorrect.
Score: 0
Accepted Answers:
is.matrix(a)

17)User function that allows you to insert debugging code into a function to a specific place 1 point

debug()
trace()
recover()
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
trace()

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 (18 to 20) based on the data frame created above.

18)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='x2',b,a)
No, the answer is incorrect.
Score: 0
Accepted Answers:
left_join(a,b,by='x1')

19)The command to join data frame “a” to “b” by x1 is --- 0 points

right.join(b,a,by='x2')

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=1&assessment=102 5/6
02/07/2020 Data Science for Engineers - - Unit 3 - Week 1

right_join(a,b,by='x1')
right_join(by='x1',a,b)
right.join(by='x1',b,a)
No, the answer is incorrect.
Score: 0
Accepted Answers:
right_join(a,b,by='x1')

20)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")
No, the answer is incorrect.
Score: 0
Accepted Answers:
setwd("file path")

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=1&assessment=102 6/6
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 4 - Week 2

Course
outline Assignment 2 - Part 1
How does an The due date for submitting this assignment has passed. Due on 2020-02-12, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) ⎡4 5 16 7 ⎤ 1 point
⎢ ⎥
Week 0 ⎢2 −3 2 3 ⎥
The rank of the matrix 𝐴 =
⎢ ⎥
3 4 5 6
Week 1 ⎢ ⎥
⎣4 7 8 9 ⎦

Week 2
3
Linear Algebra 2
for Data science 4
(unit?
unit=14&lesson=15)
0
No, the answer is incorrect.
Solving Linear Score: 0
Equations (unit?
Accepted Answers:
unit=14&lesson=16)
4
Solving Linear
2) ⎡ 1 0 −1 2 ⎤ ⎡1 2 ⎤ 1 point
Equations ( ⎢ ⎥ ⎢ ⎥
Continued ) ⎢ 0 3 1 −1 ⎥ ⎢3 −1 ⎥
(unit? Given the matrix 𝐴 =
⎢ ⎥
,𝐵 =
⎢ ⎥
,
2 4 0 3 0 −1
unit=14&lesson=17) ⎢ ⎥ ⎢ ⎥
⎣ −3 1 2 4 ⎦ ⎣4 2 ⎦
Linear Algebra -
3 8 0 5
Distance,Hyperplanes 𝐶 =
and [1 0 −4 8]

Halfspaces,Eigenvalues,Eigenvectors
(unit? If 𝐷 = 𝐶 𝐴𝐵 exists, then the value at 𝐷22 is
unit=14&lesson=18)
-37
Linear Algebra -
Distance,Hyperplanes 107

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=106 1/6
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

and -25
Halfspaces,Eigenvalues,Eigenvectors
( Continued 1) -33
(unit? No, the answer is incorrect.
unit=14&lesson=19) Score: 0
Accepted Answers:
Linear Algebra -
-25
Distance,Hyperplanes
and 3) ⎡ −2 32 24 ⎤ 1 point
Halfspaces,Eigenvalues,Eigenvectors ⎢ ⎥
( Continued 2 ) The determinant of the matrix 𝑍 = 92 66 25 is
⎢ ⎥
(unit? ⎣ −80 40 20 ⎦
unit=14&lesson=20)
115506
Linear Algebra -
Distance,Hyperplanes 91520
and 1155
Halfspaces,Eigenvalues,Eigenvectors
( Continued 3 )
Does not exist
(unit? No, the answer is incorrect.
unit=14&lesson=21) Score: 0
Accepted Answers:
FAQ (unit?
91520
unit=14&lesson=22)
4) ⎡2 1 2⎤ 1 point
Quiz :
⎢ ⎥
Assignment 2 - The inverse of the matrix 𝑃 = 1 0 1 is
⎢ ⎥
Part 1 ⎣3 1 3⎦
(assessment?
name=106)
0
Quiz : Linear
algebra - ⎡ −0.25 −0.25 0.25 ⎤
Assignment 2 - ⎢ ⎥
Part 2 0 −3 1
⎢ ⎥
(assessment? ⎣ 0.25 1.25 −0.25 ⎦
name=109)

Week 2 ⎡2 1 2⎤
Feedback (unit? ⎢ ⎥
1 0 1
unit=14&lesson=110) ⎢ ⎥
⎣2 1 3⎦
Solution -
Assignment 2 -
Inverse does not exist
Part 1 (unit? No, the answer is incorrect.
unit=14&lesson=115) Score: 0
Accepted Answers:
Solution - Linear
Inverse does not exist
algebra -
Assignment 2 - 5) If b is a non-singular matrix of order n then the maximum possible rank of b is 1 point
Part 2 (unit?
unit=14&lesson=116) n
0
Week 3
n-1
Week 4 1
No, the answer is incorrect.
Week 5 Score: 0
Accepted Answers:
Week 6 n

6) If the number of variables in a non-homogenous system AX= B is n then the system 1 point
Week 7
possesses no solution if

Week 8 Rank(A) = Rank(A,B) = n

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=106 2/6
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

Rank(A) < Rank([A,B])


Text Transcripts
Rank(A) = Rank([A,B]) < n
Download Videos Rank(A) > Rank(A,B)
No, the answer is incorrect.
Score: 0
Accepted Answers:
Rank(A) < Rank([A,B])

7) State whether the following statements are True / False 1 point

In a matrix (A) of data (m*n) with rank r


(i) m rows usually represent number of samples
(ii) If m=n , A is not full rank ,there exist a unique solution

(i) – True (ii) – False


(i)- False (ii) – True
(i) - True (ii) – True
(i) - False (ii) – False
No, the answer is incorrect.
Score: 0
Accepted Answers:
(i) – True (ii) – False

8) ⎡2 0 0⎤ 1 point
⎢ ⎥
Given the matrix 𝐴 = 0 1 0
⎢ ⎥
⎣0 0 5⎦

Sum of the eigen values of the matrix A is

2
3+0i
1
8
No, the answer is incorrect.
Score: 0
Accepted Answers:
8

9) ⎡1 6 1⎤ 1 point
⎢ ⎥
Given the matrix 𝑍 = 1 2 3
⎢ ⎥
⎣0 0 3⎦

Smallest eigen values of the matrix Z is

-1
4
3
6
No, the answer is incorrect.
Score: 0
Accepted Answers:
-1

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

λ2

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=106 3/6
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

1/λ
1
1/λ2
No, the answer is incorrect.
Score: 0
Accepted Answers:
1/λ

11)If A and B are square matrices of size n*n then which of the following statements is true? 1 point

I. det(A B)= det(A) det (B)


II. det(k A)=kn det(A) , where k is constant
III. det(A+B)= det(A) +det(B)
IV. det(AT)=1/det(A-1)

I,II
II, III,IV
III
I,II,IV
No, the answer is incorrect.
Score: 0
Accepted Answers:
I,II,IV

12)Rank of null matrix is 1 point

0
1
Not defined

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

13)Given a square matrix of order n and λ is a scalar , then the characteristic polynomial of A is 1 point
obtained by expanding determinant

λ
|λA-In|
|A-λI|
|λA|
No, the answer is incorrect.
Score: 0
Accepted Answers:
|A-λI|

14)The system of equations 2x +3y -3z = 8, 4x -2y +6z = 9, 10x +3y - 3z = 5 has 1 point

Unique solution
No solution
Two solutions
Infinitely many solutions
No, the answer is incorrect.
Score: 0

A dA

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=106 4/6
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

Accepted Answers:
Unique solution

15) −3𝑖 −6𝑖 1 point


If 𝐴 = then |𝐴| =?
[ 3𝑖 𝑖 ]

-18
15
-15
21
No, the answer is incorrect.
Score: 0
Accepted Answers:
-15

16) ⎡ 6 ⎤ ⎡ −4 ⎤ ⎡0⎤ ⎡ −14 ⎤ 1 point


⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥
x ,y and z that satisfy the below equation are 𝑥 3 + 𝑦 8 + 𝑧 3 = 25
⎢ ⎥ ⎢ ⎥ ⎢ ⎥ ⎢ ⎥
⎣ 12 ⎦ ⎣ 1 ⎦ ⎣1⎦ ⎣ −6 ⎦

x=-1, y=-4, z= -2
x=-1, y=2, z = 4
x=-1, y=2, z = 11
x=3, y=1, z =-5
No, the answer is incorrect.
Score: 0
Accepted Answers:
x=-1, y=2, z = 4

17)The system of equations 6x+y-2z=-8, 5x+3y-3z=4 and 12x+2y-4z=-16 has 1 point

No solution
Unique solution
Infinite solutions
Two solutions
No, the answer is incorrect.
Score: 0
Accepted Answers:
Infinite solutions

18) ⎡1 5 −8 ⎤ 1 point
⎢ ⎥
The matrix 0 8 5 is
⎢ ⎥
⎣0 0 6 ⎦

Upper triangular matrix


Lower triangular matrix
Skew symmetric matrix
Null matrix
No, the answer is incorrect.
Score: 0
Accepted Answers:
Upper triangular matrix

19)For a matrix A if the rank is r and the nullity is given by a, the total number of attributes 1 point

is always equal to 0

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=106 5/6
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

is equal to r - a
cannot be determined
is equal to r + a
No, the answer is incorrect.
Score: 0
Accepted Answers:
is equal to r + a

20) ⎡ 𝑡 8 2⎤ 1 point
⎢ ⎥
For a matrix 𝐴 = 2 3 𝑡 , the determinant of A is
⎢ ⎥
⎣6 𝑡 2⎦

-t3+58t-68
t3+52t-62
t3+16t+16
t3-14t+38
No, the answer is incorrect.
Score: 0
Accepted Answers:
-t3+58t-68

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=106 6/6
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 4 - Week 2

Course
outline Linear algebra - Assignment 2 -
How does an
NPTEL online
Part 2
course work? The due date for submitting this assignment has passed. Due on 2020-02-12, 23:59 IST.
As per our records you have not submitted this assignment.
Week 0
1) The distance between two vectors say 𝑉1 = [15 16 2]
𝑇
and 𝑉2 = [18 16 1]
𝑇
is 1 point
Week 1
√3 units
Week 2 √10 units
2√3 units
Linear Algebra
for Data science √21 units
(unit? No, the answer is incorrect.
unit=14&lesson=15) Score: 0
Accepted Answers:
Solving Linear
√10 units
Equations (unit?
unit=14&lesson=16) 2) The unit vector of a vector [5 𝑇
8] is 1 point
Solving Linear
Equations (
Continued ) 5/√89

‾‾

(unit? [ 2/ 9 ]
√‾
unit=14&lesson=17)

Linear Algebra - 5/√13‾‾‾


Distance,Hyperplanes
[ 8/ 13 ‾‾ ]
and √‾

Halfspaces,Eigenvalues,Eigenvectors
(unit? 29/√5 ‾
unit=14&lesson=18)
[ 29/ 2 ]
√‾
Linear Algebra -
Distance,Hyperplanes

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=109 1/4
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

and 5/√89‾‾‾
Halfspaces,Eigenvalues,Eigenvectors
[ 8/ 89 ‾‾ ]
( Continued 1) √‾

(unit? No, the answer is incorrect.


unit=14&lesson=19) Score: 0
Accepted Answers:
Linear Algebra -
5/√89
‾‾‾
Distance,Hyperplanes
and [ 8/ 89‾‾ ]
√‾
Halfspaces,Eigenvalues,Eigenvectors
( Continued 2 )
3) Two vectors are said to be orthogonal when their dot product is 1 point
(unit?
unit=14&lesson=20)
0
1
Linear Algebra -
Distance,Hyperplanes ∞
and Not defined
Halfspaces,Eigenvalues,Eigenvectors
( Continued 3 )
No, the answer is incorrect.
Score: 0
(unit?
Accepted Answers:
unit=14&lesson=21)
0
FAQ (unit?
unit=14&lesson=22)
4) Which of the following sets of vector is/are orthogonal 1 point

Quiz : 𝐼. 𝑣1 = (5 − 2 3)
𝑇
𝑣2 = (−2 4 6)
Assignment 2 - 𝑇
𝐼𝐼. 𝑣1 = (1 − 2 4), 𝑣2 = (2 5 2)
Part 1 𝑇 𝑇
𝐼𝐼𝐼. 𝑣1 = (1 − 2 4) , 𝑣2 = (−1 4)
(assessment?
𝑇
name=106) 𝐼𝑉 . 𝑣1 = (14 5), 𝑣2 = (10 − 2)

Quiz : Linear I
algebra -
I, II
Assignment 2 -
Part 2 I, II , III
(assessment? III, IV
name=109)
No, the answer is incorrect.
Week 2 Score: 0
Feedback (unit? Accepted Answers:
unit=14&lesson=110) I, II
Solution - 5) State whether the following statements are True / False 1 point
Assignment 2 - i) All orthonormal vectors are orthogonal
Part 1 (unit?
ii) Basis vectors are set of vectors that are dependent and span the space
unit=14&lesson=115)

Solution - Linear i)- False ii) – True


algebra - i) - True ii) – True
Assignment 2 -
i) – True ii) – False
Part 2 (unit?
unit=14&lesson=116) i) - False ii) – False
No, the answer is incorrect.
Week 3 Score: 0
Accepted Answers:
Week 4 i) – True ii) – False

6) ⎛ 𝑥⎞ ⎛1⎞ 1 point
Week 5 ⎜ ⎟ ⎜ ⎟
⎜ 𝑦 ⎟ ⎜2⎟
The point ⎜ = is in ____________ half space of the hyper plane
Week 6 𝑧
⎟ ⎜
3

⎜ ⎟ ⎜ ⎟
⎝ 𝑞 ⎠ ⎝4⎠
Week 7
3𝑥 + 2𝑦 − 6𝑧 + 8𝑞 = 24

Week 8 Positive

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=109 2/4
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

Negative
Text Transcripts
On the hyperplane
Download Videos Cannot be decided
No, the answer is incorrect.
Score: 0
Accepted Answers:
Negative

7) P is an m×n matrix whose columns are linearly independent. The nullity of A is 1 point

Zero
1
Not defined
R
No, the answer is incorrect.
Score: 0
Accepted Answers:
Zero

8) A set of linear equations is represented by the matrix equation Ax=b. The necessary condition 1 point
for the existence of a
solution for the system is

b must be linearly independent of the columns A


A must be non invertible
A must be invertible
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
A must be invertible

9) State whether the following statements are True / False 1 point


i) If the eigen values becomes complex, eigen vectors become real
ii) Symmetric matrix will have real eigen values

i) - True ii) – True


i) – True ii) – False
i) - False ii) – False
i)- False ii) – True
No, the answer is incorrect.
Score: 0
Accepted Answers:
i)- False ii) – True

10)If the projection of 𝑎⃗ on 𝑏⃗ and projection of 𝑏⃗ on 𝑎⃗ are equal then the angle between 𝑎⃗ + 𝑏⃗  1 point
and 𝑎⃗ − 𝑏⃗ is

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=109 3/4
02/07/2020 Data Science for Engineers - - Unit 4 - Week 2

2𝜋

No, the answer is incorrect.


Score: 0
Accepted Answers:
𝜋

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=14&assessment=109 4/4
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 5 - Week 3

Course
outline Practice Assignment 3
How does an The due date for submitting this assignment has passed. Due on 2020-02-19, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Note : This assignment is only for practice purpose and it will not be counted towards the Final
score
Week 1 1) A and B are two events. The probability that at least one of them occurs is given by 1 point

Week 2
𝑐 𝑐
𝑃 (𝐴 ∩ 𝐵 ) + 𝑃 (𝐴 ∩ 𝐵)
Linear Algebra
for Data science
𝑃 (𝐴) + 𝑃 (𝐵) − 𝑃 (𝐴 ∩ 𝐵)
(unit?
unit=14&lesson=15)
𝑃 (𝐴) + 𝑃 (𝐵) + 𝑃 (𝐴 ∩ 𝐵)
Solving Linear
Equations (unit?
𝑐 𝑐 𝑐 𝑐
unit=14&lesson=16) 𝑃 (𝐴 ) + 𝑃 (𝐵 ) − 2𝑃 (𝐴 ∩ 𝐵 )

Solving Linear No, the answer is incorrect.


Equations ( Score: 0
Continued ) Accepted Answers:
(unit? 𝑃 (𝐴) + 𝑃 (𝐵) − 𝑃 (𝐴 ∩ 𝐵)

unit=14&lesson=17)
2) Two tube lights are installed in a room. Probability of light A failing is 0.20 while the probability 1 point
Linear Algebra - of light B failing is 0.15. What is the
Distance,Hyperplanes probability that both the lights are working on a given day? (final value is rounded off to 2 decimal
and places)
Halfspaces,Eigenvalues,Eigenvectors
(unit? 0.50
unit=14&lesson=18)
0.54
Linear Algebra - 0.80
Distance,Hyperplanes
0.68
N h i i

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=92 1/4
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

and No, the answer is incorrect.


Score: 0
Halfspaces,Eigenvalues,Eigenvectors
( Continued 1) Accepted Answers:
(unit? 0.68
unit=14&lesson=19)
3) Given that the random variable X follows a chi-square distribution with 4 degrees of freedom 1 point
Linear Algebra - and P(X≤x)=0.5. Then the value of X is
Distance,Hyperplanes
and 3.357
Halfspaces,Eigenvalues,Eigenvectors
-3.357
( Continued 2 )
(unit? -3.325
unit=14&lesson=20) 3.325
Linear Algebra - No, the answer is incorrect.
Distance,Hyperplanes Score: 0
and Accepted Answers:
3.357
Halfspaces,Eigenvalues,Eigenvectors
( Continued 3 )
(unit? 4) The possible values of the correlation coefficient lies between: 1 point
unit=14&lesson=21)
0 to -1
FAQ (unit?
-1 to 1
unit=14&lesson=22)
-∞ to ∞
Quiz :
0 to ∞
Assignment 2 -
Part 1 No, the answer is incorrect.
(assessment? Score: 0
name=106) Accepted Answers:
-1 to 1
Quiz : Linear
algebra - 5) 50% of the employees of the ABC corporation are college graduates. Of these, 15% are in 1 point
Assignment 2 - sales. Of the employees who did not graduate
Part 2 from college, 70% are in sales.
(assessment?
name=109)
The probability of an employee selected at random is in sales
Week 2 (final value is rounded off to 2 decimal places)
Feedback (unit?
unit=14&lesson=110) 0.50

Solution -
0.15
Assignment 2 - 0.43
Part 1 (unit?
0.70
unit=14&lesson=115)
No, the answer is incorrect.
Solution - Linear Score: 0
algebra - Accepted Answers:
Assignment 2 - 0.43
Part 2 (unit?
unit=14&lesson=116)

Week 3

Statistical
Modelling (unit?
unit=24&lesson=25)

Random
Variables and
Probability
Mass/Density
Functions (unit?
unit=24&lesson=26)

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=92 2/4
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

Sample
Statistics (unit?
unit=24&lesson=27)

Hypotheses
Testing (unit?
unit=24&lesson=28)

FAQ (unit?
unit=24&lesson=29)

Quiz : Practice
Assignment 3
(assessment?
name=92)

Quiz :
Assignment 3
(assessment?
name=111)

Week 3
Feedback (unit?
unit=24&lesson=112)

Solution -
Assignment 3
(unit?
unit=24&lesson=120)

Week 4

Week 5

Week 6

Week 7

Week 8

Text Transcripts

Download Videos

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=92 3/4
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=92 4/4
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 5 - Week 3

Course
outline Assignment 3
How does an The due date for submitting this assignment has passed. Due on 2020-02-19, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) A single letter is selected at random from the word ‘MACHINE LEARNING’. The probability 1 point
Week 0 that it is a consonant is

8/15
Week 1
5/15
Week 2 7/15
9/15
Week 3
No, the answer is incorrect.
Score: 0
Statistical
Accepted Answers:
Modelling (unit?
9/15
unit=24&lesson=25)
2) The probability of rolling 2 dice to get a sum of 4 or 7 is: 1 point
Random
Variables and
1/6
Probability
Mass/Density 1/4
Functions (unit? 1/12
unit=24&lesson=26)
1/8
Sample
No, the answer is incorrect.
Statistics (unit?
Score: 0
unit=24&lesson=27)
Accepted Answers:
Hypotheses 1/4
Testing (unit?
3) A car manufacturer purchases car batteries from two different suppliers. Supplier X provides 1 point
unit=24&lesson=28)
55% of the batteries and supplier Y provides the rest.
FAQ (unit? If 5% of all batteries from supplier X are defective and 4% of the batteries from supplier Y are
unit=24&lesson=29) defective. Determine the probability
that a randomly selected battery is defective

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=111 1/7
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

Quiz : Practice 0.95


Assignment 3
0.045
(assessment?
name=92) 0.5
0.85
Quiz :
Assignment 3 No, the answer is incorrect.
(assessment? Score: 0
name=111) Accepted Answers:
0.045
Week 3
Feedback (unit? 4) For normal density function, the area under the probability density curve within 3σ limit is 1 point
unit=24&lesson=112)
1
Solution -
Assignment 3 -1
(unit? 99.7
unit=24&lesson=120)
68.26
Week 4 No, the answer is incorrect.
Score: 0
Week 5 Accepted Answers:
99.7

Week 6 5) A and B are mutually exclusive events, given P(A)=0.3 and P(B)=0.4 find P(A∩B)? 1 point

Week 7 0.12
0
Week 8 0.7
1
Text Transcripts
No, the answer is incorrect.
Score: 0
Download Videos
Accepted Answers:
0

2
X and Y are independent random variables with 𝐸(𝑋) = 6, σ
𝑋
= 3 , 𝐸(𝑌 ) = 3 and σ2𝑌 = 5. Now
based on this information
answer question 6 and 7

6) 𝐸(10𝑋 + 5𝑌 ) = ? 1 point

20
30
65
75
No, the answer is incorrect.
Score: 0
Accepted Answers:
75

7) Var (3𝑋 + 5𝑌 ) is 1 point

260
152
145
100
No, the answer is incorrect.
Score: 0

A dA

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=111 2/7
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

Accepted Answers:
152

Based on the below information answer questions from 8 to 11.

Read the dataset Salaries.csv (https://drive.google.com/open?


id=1v6FbQfPCADkRIXCdZGmf5ujAxVm4aHV0). The description of the dataset is given below:
The 2008-09 nine-month academic salary for Assistant Professors, Associate Professors and
Professors in a college in the U.S, the
data were collected as part of the on-going effort of the college's administration to monitor salary
differences between male and female
faculty members.
A data frame consisting of 397 observations with 6 variables is described below.

8) Average Salary of the professors is 1 point

113706
125688
107300
245131
No, the answer is incorrect.
Score: 0
Accepted Answers:
113706

9) The highest experience of professor since Ph.D. is: 1 point

54
32
21
56
No, the answer is incorrect.
Score: 0
Accepted Answers:
56

10)The Median of years of service of professors is: 1 point

7
16
23

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=111 3/7
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

35
No, the answer is incorrect.
Score: 0
Accepted Answers:
16

11)Variance of Salary is 1 point

345658545
912562245
917425865
65872354
No, the answer is incorrect.
Score: 0
Accepted Answers:
917425865

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

Mean
Median
Mode
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
Mode

13)The sum of the deviations from the mean is always 1 point

Positive
Negative
Standard deviation
Zero
No, the answer is incorrect.
Score: 0
Accepted Answers:
Zero

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

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=111 4/7
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

0.046
0.977
0.954
0.023
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.954

15)Consider the experiment of tossing a coin three times. What is the probability of getting three 1 point
tails?

1/8
3/8
1/4
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
1/8

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

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
No, the answer is incorrect.
Score: 0
Accepted Answers:
Chi-square with N-1 degrees of freedom

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=111 5/7
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

Based on the below information answer questions from 17 to 20.

The bigcity.csv (https://drive.google.com/open?id=1N42-T1kSKtMEBWIEEoiNqTUkEsxnmmqj)


file contains a data frame having 49 rows and 2 columns. The population (in 1000's) of 49 U.S. cities
for the year
1920 and 1930 are recorded.

In order to assess whether the population of the cities changed significantly, a hypotheses test is
conducted to test whether the differences of
the mean is equal to zero or not.

17)The difference in the mean between the population 1930 and 1920 is 1 point

20.464
-23.652
24.653
10.555
No, the answer is incorrect.
Score: 0
Accepted Answers:
24.653

18)The value of the t-statistic for the hypotheses test is 0 points

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

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

56
20
35
96
No, the answer is incorrect.
Score: 0
Accepted Answers:
96

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

2.22
2.02

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=111 6/7
02/07/2020 Data Science for Engineers - - Unit 5 - Week 3

1.98
3.56
No, the answer is incorrect.
Score: 0
Accepted Answers:
1.98

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=24&assessment=111 7/7
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 6 - Week 4

Course
outline Practice Assignment 4
How does an The due date for submitting this assignment has passed. Due on 2020-02-26, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Note : This assignment is only for practice purpose and it will not be counted towards the Final
score
Week 1 1) Class of optimization problems WITH NO constraints are known as 1 point

Week 2 constrained optimization problems


unconstrained optimization problems
Week 3
linear constrained optimization problems
none of the above
Week 4
No, the answer is incorrect.
Optimization for Score: 0
Data Science Accepted Answers:
(unit? unconstrained optimization problems
unit=30&lesson=31)
2) The optimum for a function 𝑓 (𝑥) at 𝑥∗ , exists if: 1 point
Unconstrained
Multivariate
Optimization If the first derivative at 𝑥∗ is zero
(unit?
unit=30&lesson=32)
If the first derivative at 𝑥∗ is positive
Unconstrained
Multivariate
If the first derivative at 𝑥∗ is negative
Optimization (
Continued ) None of the above
(unit?
No, the answer is incorrect.
unit=30&lesson=33) Score: 0
Accepted Answers:
If the first derivative at 𝑥∗ is zero

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=93 1/3
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4

Gradient ( 3) When the feasibility regions defined by equality constraints and inequality constraints are 1 point
Steepest ) compared,
Descent ( OR )
Learning Rule The regions defined by both are exactly the same
(unit? The region defined by the inequality constraint is greater
unit=30&lesson=34)
The region defined by the equality constraint is greater
FAQ (unit? none of the above
unit=30&lesson=35)
No, the answer is incorrect.
Quiz : Practice Score: 0
Assignment 4 Accepted Answers:
(assessment? The region defined by the inequality constraint is greater
name=93)
4) If 𝑓 (𝑥) = 12𝑥
4
− 2𝑥
3
+ 9𝑥
2
+ 5, then the first order necessary condition for either 1 point
Quiz :
maxima or minima of 𝑓 (𝑥) is
Assignment 4
(assessment?
name=113) 2
24𝑥 + 4𝑥 − 6 = 0
Week 4
Feedback (unit? 3 2
48𝑥 − 6𝑥 + 18𝑥 = 0
unit=30&lesson=117)

Solution - 3 2
36𝑥 − 2𝑥 − 6𝑥 = 0
Assignment 4
(unit?
unit=30&lesson=122) 48𝑥
2
− 4𝑥 − 6 = 0

Week 5 No, the answer is incorrect.


Score: 0
Accepted Answers:
Week 6 3 2
48𝑥 − 6𝑥 + 18𝑥 = 0

Week 7 5) The restrictions on the possible values of the solution to the optimization problem are called: 1 point

Week 8 objective functions


cost functions
Text Transcripts equality/inequality constraints
none
Download Videos
No, the answer is incorrect.
Score: 0
Accepted Answers:
equality/inequality constraints

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=93 2/3
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=93 3/3
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 6 - Week 4

Course
outline Assignment 4
How does an The due date for submitting this assignment has passed. Due on 2020-02-26, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) Consider 𝑓 (𝑥) , if 𝑥 is the decision variable and 𝑓 is a function to be minimized, then the type 1 point
Week 0 of optimization problem is

Constrained optimization
Week 1
Unconstrained optimization
Week 2 Discrete optimization
None of the above
Week 3
No, the answer is incorrect.
Score: 0
Week 4 Accepted Answers:
Unconstrained optimization
Optimization for
Data Science 2) Match the following 1 point
(unit?
unit=30&lesson=31)

Unconstrained
Multivariate
Optimization
(unit?
unit=30&lesson=32)

Unconstrained
Multivariate
Optimization (
Continued )
(unit?
unit=30&lesson=33)

I - a, II - b , III - c

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=113 1/5
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4

Gradient ( I - b , II - a , III - c
Steepest )
I - a, II - c , III - b
Descent ( OR )
Learning Rule I - c, II - a , III - b
(unit? No, the answer is incorrect.
unit=30&lesson=34) Score: 0
Accepted Answers:
FAQ (unit?
I - b , II - a , III - c
unit=30&lesson=35)

Quiz : Practice
3) In univariate unconstrained optimization the decision variables can be 1 point
Assignment 4
(assessment?
Continuous
name=93) Integral

Quiz : Continuous or Integral


Assignment 4 Not defined
(assessment?
name=113)
No, the answer is incorrect.
Score: 0
Week 4 Accepted Answers:
Feedback (unit? Continuous or Integral
unit=30&lesson=117)
4) State whether the following statements are true or false with respect to Linear programming 1 point
Solution - problem
Assignment 4
(unit? I. Decision variables are continuous
unit=30&lesson=122)
II. Objective function is linear
III. Constraints are nonlinear
Week 5
I - True , II - True , III - False
Week 6
I - True , II - True , III - True

Week 7 I - False , II - False , III - False


I - False , II - True , III - True
Week 8 No, the answer is incorrect.
Score: 0
Text Transcripts Accepted Answers:
I - True , II - True , III - False
Download Videos 5) If 𝑓 (𝑥
¯ ) is QUADRATIC function of 𝑥
¯ and 𝑔(𝑥 ¯ ) are LINEAR functions of 𝑥
¯ ), ℎ(𝑥 ¯ , then the 1 point
type of optimization problem is

dual linear programming


linear programing
quadratic programming
none of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
quadratic programming

6) The maximization of a function 𝑓 (𝑥


¯ ) is equal to the minimization of the function 1 point

¯)
−𝑓 (𝑥


¯)
𝑓 (𝑥


𝑓 ¯)
(𝑥

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=113 2/5
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4


−𝑓 ¯)
(𝑥

No, the answer is incorrect.


Score: 0
Accepted Answers:
¯)
−𝑓 (𝑥

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

min 𝑓 (𝑥)
𝑥

for 𝑥∗ , to be the minimizer of 𝑓 (𝑥) , the second order necessary condition is


𝑓 (𝑥) > 0


𝑓 (𝑥) < 0


𝑓 (𝑥) > 0


𝑓 (𝑥) = 1

No, the answer is incorrect.


Score: 0
Accepted Answers:

𝑓 (𝑥) > 0

8) If 𝑓 (𝑥) = 3𝑥
4
+ 2𝑥
3
+ 3𝑥
2
+ 3, then the first order necessary condition for either maxima 1 point
or minima of 𝑓 (𝑥) is

3 2
12𝑥 + 6𝑥 + 3𝑥 = 0

3 2
12𝑥 + 6𝑥 + 6𝑥 = 0

4 3 2
3𝑥 + 2𝑥 + 3𝑥 = 0

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

No, the answer is incorrect.


Score: 0
Accepted Answers:
3 2
12𝑥 + 6𝑥 + 6𝑥 = 0

9) For a function 𝑓 (𝑥) = 𝑥


3
− 12𝑥
2
+ 48𝑥 − 64 = 0 , which of the following numbers is a 1 point
stationary point of 𝑓 (𝑥)

2
4
1
-1
No, the answer is incorrect.
Score: 0
Accepted Answers:
4

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=113 3/5
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4

10)If a function is strictly increasing what is the minima value? 1 point

0
-1
-∞
1
No, the answer is incorrect.
Score: 0
Accepted Answers:
-∞

11)If the derivative of the objective function is a polynomial of order ‘N’ and has roots which are 1 point
repeated thrice, then how many stationary
points exist for the objective function?

N-1
N-3
N-2
N
No, the answer is incorrect.
Score: 0
Accepted Answers:
N-2

12)For any two points 𝑥1 and 𝑥2 in [𝑎, 𝑏] and any λ where 0 < λ < 1 the convex function is 1 point
given by

𝑓 [λ𝑥1 + (1 − λ)𝑥2 ] ≤ λ𝑓 (𝑥1 ) + (1 − λ)𝑓 (𝑥2 )

𝑓 [λ𝑥1 + (1 − λ)𝑥2 ] ≥ λ𝑓 (𝑥1 ) + (1 − λ)𝑓 (𝑥2 )

𝑓 [λ𝑥1 + (λ)𝑥2 ] ≥ λ𝑓 (𝑥1 ) + (1 − λ)𝑓 (𝑥2 )

𝑓 [λ𝑥1 + (1 − λ)𝑥2 ] ≤ λ𝑓 (𝑥1 ) + (1 + λ)𝑓 (𝑥2 )

No, the answer is incorrect.


Score: 0
Accepted Answers:
𝑓 [λ𝑥1 + (1 − λ)𝑥2 ] ≤ λ𝑓 (𝑥1 ) + (1 − λ)𝑓 (𝑥2 )

13)Consider a univariate optimization function 𝑓 (𝑥) . If the function satisfies the first order 1 point
condition and gives an output of the minimum
value -5 and the second-order condition gives an output of the minimum value -7. In this which of
the following value would be
considered as a global minimum of 𝑓 (𝑥)

-5
-7
-12
2
No, the answer is incorrect.
Score: 0
Accepted Answers:
-7

14) 1 point

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=113 4/5
02/07/2020 Data Science for Engineers - - Unit 6 - Week 4

Which of the following statements are true in the univariate optimization?

I. The function 𝑓 has only one decision variable


II. 𝑥 is a vector variable

Only I is true
Only II is true
Both I and II is true
None of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
Only I is true

15)For a function 𝑓 (𝑥) = 𝑥


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

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

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=30&assessment=113 5/5
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 7 - Week 5

Course
outline Practice Assignment 5
How does an The due date for submitting this assignment has passed. Due on 2020-03-04, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Note : This assignment is only for practice purpose and it will not be counted towards the Final
score
Week 1 1) For a function 𝑓 (𝑥, 𝑦) 2 2
1 point
= 2𝑥 − 𝑥𝑦 + 𝑦 − 3𝑥 − 𝑦 , the stationary point (𝑥, 𝑦) is

(Hint: Stationary point is a solution to the first order necessary conditions for maxima or minima of
Week 2
𝑓 (𝑥, 𝑦))

Week 3 (0,1)
(-1,0)
Week 4
(1,0)

Week 5 (1,1)
No, the answer is incorrect.
Multivariate Score: 0
Optimization Accepted Answers:
With Equality (1,1)
Constraints
(unit? 2) The Hessian matrix of 𝑓 (𝑥, 𝑦) = 2𝑥
2 2
− 𝑥𝑦 + 𝑦 − 3𝑥 − 𝑦 is 1 point
unit=36&lesson=37)

Multivariate
−4 1
Optimization
With Inequality [ 1 −2 ]
Constraints
(unit?
1 −4
unit=36&lesson=38)
[ −2 1 ]
Introduction to
Data Science

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=94 1/3
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

(unit? 4 −1
unit=36&lesson=39)
[ −1 2 ]

Solving Data
No, the answer is incorrect.
Analysis Score: 0
Problems - A
Accepted Answers:
Guided Thought
4 −1
Process (unit?
unit=36&lesson=40) [ −1 2 ]

Dataset (unit? 3) The Eigenvalues of Hessian matrix of 𝑓 (𝑥, 𝑦) = 2𝑥


2
− 𝑥𝑦 + 𝑦
2
− 3𝑥 − 𝑦 is 1 point
unit=36&lesson=41)
-1.585786, -4.414214
FAQ (unit?
unit=36&lesson=42) 3.828427, -1.828427
4.414214, 1.585786
Quiz : Practice
Assignment 5 -3.828427, 1.828427
(assessment?
No, the answer is incorrect.
name=94) Score: 0
Quiz :
Accepted Answers:
Assignment 5
4.414214, 1.585786
(assessment?
4) The Hessian matrix of 𝑓 (𝑥, 𝑦) = 2𝑥
2 2
− 𝑥𝑦 + 𝑦 − 3𝑥 − 𝑦 is 1 point
name=118)

Week 5 positive definite


Feedback (unit? positive semidefinite
unit=36&lesson=121)
negative definite
Solution - negative semidefinite
Assignment 5
(unit? No, the answer is incorrect.
unit=36&lesson=125)
Score: 0
Accepted Answers:
Week 6 positive definite

5) The function 𝑓 (𝑥, 𝑦) = 2𝑥


2 2
− 2𝑦 1 point
Week 7
has no stationary point
Week 8 has a stationary point at (1,1)
has a stationary point at (1,-1)
Text Transcripts
has a stationary point at (0,0)
Download Videos No, the answer is incorrect.
Score: 0
Accepted Answers:
has a stationary point at (0,0)

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=94 2/3
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=94 3/3
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 7 - Week 5

Course
outline Assignment 5
How does an The due date for submitting this assignment has passed. Due on 2020-03-04, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) In an unconstrained multivariate optimization problem, if the objective function is 𝑓 (𝑥) then 1 point
Week 0 the first order derivative ∇𝑓 is called

gradient
Week 1
hessian
Week 2 polarization
all the above
Week 3
No, the answer is incorrect.
Score: 0
Week 4 Accepted Answers:
gradient
Week 5
2) For an unconstrained multivariate optimization given 𝑓 (𝑥
¯ ) , the necessary second order 1 point

Multivariate condition for 𝑥
¯ to be the minimizer of 𝑓 (𝑥
¯ ) is

Optimization
With Equality
⎯⎯⎯⎯⎯⎯⎯⎯
Constraints 2
∇ 𝑓 (𝑥 )

must be negative definite
(unit?
unit=36&lesson=37)
¯∗
∇𝑓 (𝑥 ) = 0
Multivariate
Optimization
⎯⎯⎯⎯⎯⎯
With Inequality 2
∇ 𝑓 (𝑥 )

must be positive definite
Constraints
(unit? ″ ∗
unit=36&lesson=38) 𝑓 (𝑥 ) > 0

Introduction to
No, the answer is incorrect.
Score: 0
Data Science
Accepted Answers:

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=118 1/6
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

⎯⎯⎯⎯⎯⎯
(unit? 2 ∗
∇ 𝑓 (𝑥 ) must be positive definite
unit=36&lesson=39)
3) Which of the following statements is/are not TRUE with respect to the multi variate 1 point
Solving Data
Analysis
optimization
Problems - A
Guided Thought I - The gradient of a function at a point is parallel to the contours
Process (unit? II - Gradient points in the direction of greatest increase of the function
unit=36&lesson=40) III - Negative gradients points in the direction of the greatest decrease of the function
IV - Hessian is a non-symmetric matrix
Dataset (unit?
unit=36&lesson=41)
I
FAQ (unit? II and III
unit=36&lesson=42)
I and IV
Quiz : Practice III and IV
Assignment 5
(assessment? No, the answer is incorrect.
name=94) Score: 0
Accepted Answers:
Quiz : I and IV
Assignment 5
(assessment? 4) Consider the below plot to answer the question. In this plot the decision variable (𝑥) is along 1 point
name=118) the x-axis and objective
function 𝑓 (𝑥) is on the y axis
Week 5
Feedback (unit?
unit=36&lesson=121)

Solution -
Assignment 5
(unit?
unit=36&lesson=125)

Week 6

Week 7

Week 8

Text Transcripts

Download Videos

Using this graphical representation calculate the number of roots available?

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

5) For a function 𝑓 (𝑥, 𝑦) = −2𝑥


2
+ 3𝑥𝑦 + 3𝑦
2
+ 6𝑥 − 𝑦the stationary point (𝑥, 𝑦) is 1 point
(Hint: Stationary point is a solution to the first order necessary conditions for maxima or minima of
f(x,y))

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=118 2/6
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

(13/11, -14/33)
(1,1)
(0,2)
(3/5, 2/5)
No, the answer is incorrect.
Score: 0
Accepted Answers:
(13/11, -14/33)

6) The hessian matrix of 𝑓 (𝑥, 𝑦) = −4𝑥


2
+ 3𝑥𝑦 + 4𝑦
2
+ 4𝑥 − 𝑦 1 point

−5 2

[ 2 5]

3 4

[8 1 ]

−5 2

[ 2 8]

−8 3

[ 3 8]

No, the answer is incorrect.


Score: 0
Accepted Answers:
−8 3

[ 3 8]

7) −4 2 1 point
Consider the hessian matrix 𝐻 (𝑥¯∗ ) = . Find the eigen values of 𝐻 (𝑥¯∗ )
[ 2 4]

[4.472136, -4.472136]
[5.414214 ,5.585786]
[-6.324555,6.324555]
[-1.585786, -4.414214]
No, the answer is incorrect.
Score: 0
Accepted Answers:
[4.472136, -4.472136]

8) The eigen values of the Hessian matrix is [35.60, -0.40] then the hessian matrix is 1 point

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

9) The function 𝑓 (𝑥, 𝑦) = 3𝑥


3
+ 3𝑥
2
− 3𝑦
3
+ 6𝑦
2
1 point

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=118 3/6
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

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


has a stationary point at (0,4/3)
has a stationary point at (0 ,0)
all of the above are stationary points for the function
No, the answer is incorrect.
Score: 0
Accepted Answers:
all of the above are stationary points for the function

10)State whether the following statements are true or false for the gradient based algorithms 1 point

I - Efficient for many variables


II - well suited for smooth objective and constraint functions

I - False, II - True
I - False, II - True
I - True, II - True
I - True, II - False
No, the answer is incorrect.
Score: 0
Accepted Answers:
I - True, II - True

11)Gradient based algorithm methods compute 1 point

only step length at each iteration


both direction and step length at each iteration
only direction at each iteration
none of the above
No, the answer is incorrect.
Score: 0
Accepted Answers:
both direction and step length at each iteration

12)The stationary point of 𝑓 (𝑥1 , 𝑥2 ) = 8𝑥1 + 4𝑥2 + 𝑥


2
1
+ 𝑥
2
2
is 1 point

(0,1)
(0,2)
(-4, -2)
(4,2)
No, the answer is incorrect.
Score: 0
Accepted Answers:
(-4, -2)

Answer the questions 13 to 15 using the function given below


2 2 2
𝑓(𝑥1 , 𝑥2 ) = 30(𝑥2 − 𝑥 ) + (1 − 𝑥1 )
1

13)The stationary point of 𝑓 (𝑥1 , 𝑥2 ) is 1 point

(-1,1)
(1,1)
(-1, -1)
(1, -1)

N h i i

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=118 4/6
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

No, the answer is incorrect.


Score: 0
Accepted Answers:
(1,1)

14)The Hessian matrix of 𝑓 (𝑥1 , 𝑥2 ) evaluated at the stationary point obtained in Q.13 is 1 point

400 −200

[ −200 100 ]

240 −120

[ −120 60 ]

242 −120

[ −120 60 ]

−400 −200

[ −200 −100 ]

No, the answer is incorrect.


Score: 0
Accepted Answers:
242 −120

[ −120 60 ]

15)The eigen values obtained in Hessian matrix Q.14 is ( Round off to two decimal places) 1 point

301.60 and 0.40


500 and 0
501.60 and 0.40
301.60 and -0.40
No, the answer is incorrect.
Score: 0
Accepted Answers:
301.60 and 0.40

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=118 5/6
02/07/2020 Data Science for Engineers - - Unit 7 - Week 5

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=36&assessment=118 6/6
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 8 - Week 6

Course
outline Practice Assignment 6
How does an The due date for submitting this assignment has passed. Due on 2020-03-11, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Note : This assignment is only for practice purpose and it will not be counted towards the Final
score
Week 1 1) The higher the value of R2 for a model, the observations are more closely grouped around: 1 point

Week 2 the origin


the best fit line
Week 3
average values of the predicted variable
the intercept
Week 4
No, the answer is incorrect.
Week 5 Score: 0
Accepted Answers:
the best fit line
Week 6
2) The standard assumption of ordinary least squares regression is that: 1 point
Module :
Predictive there are no errors in measurements of independent and dependent variables
Modelling (unit?
there are errors only in measurement of independent variable
unit=43&lesson=44)
there are errors only in measurement of dependent variable
Linear
Regression
there are errors both in measurements of independent and dependent variables
(unit? No, the answer is incorrect.
unit=43&lesson=45) Score: 0
Accepted Answers:
Model
there are errors only in measurement of dependent variable
Assessment
(unit? 3) The relationship between the dependent and independent variables in a simple linear 1 point
unit=43&lesson=46) regression is described by

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=95 1/3
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

Diagnostics to F-statistic
Improve Linear
predicted value and error
Model Fit (unit?
unit=43&lesson=47) standardised residuals
coefficient and intercept
Simple Linear
Regression No, the answer is incorrect.
Model Building Score: 0
(unit? Accepted Answers:
unit=43&lesson=48) coefficient and intercept

Simple Linear 4) The Pearson’s correlation coefficient between two parameters is calculated to be 0.10. What 1 point
Regression can be inferred from the correlation coefficient regarding
Model the relationship between the two parameters?
Assessment
(unit? There exists a weak negative relationship between two variables
unit=43&lesson=49)
There exists a strong negative relationship between two variables
Simple Linear There exists a weak positive relationship between two variables
Regression
Model Correlation coefficient cannot possess this value
Assessment ( No, the answer is incorrect.
Continued ) Score: 0
(unit? Accepted Answers:
unit=43&lesson=50) There exists a weak positive relationship between two variables
Muliple Linear 5) Standardised residuals have:- 1 point
Regression
(unit? binomial distribution with n degrees of freedom
unit=43&lesson=51)
t distribution with n-2 degrees of freedom
Dataset (unit? log-normal distribution with n-2 degrees of freedom
unit=43&lesson=52)
chi-square distribution with n degrees of freedom
FAQ (unit?
No, the answer is incorrect.
unit=43&lesson=53)
Score: 0
Quiz : Practice Accepted Answers:
Assignment 6 t distribution with n-2 degrees of freedom
(assessment?
name=95)

Quiz :
Assignment 6
(assessment?
name=119)

Week 6
Feedback (unit?
unit=43&lesson=123)

Solution -
Assignment 6
(unit?
unit=43&lesson=128)

Week 7

Week 8

Text Transcripts

Download Videos

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=95 2/3
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=95 3/3
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 8 - Week 6

Course
outline Assignment 6
How does an The due date for submitting this assignment has passed. Due on 2020-03-11, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?
1) The graph for the straight-line y=mx+b (m - slope, b - intercept) will have a upward slope when 1 point
Week 0 the value of

m=0
Week 1
m>0
Week 2 m<0
m≥0
Week 3
No, the answer is incorrect.
Score: 0
Week 4 Accepted Answers:
m>0
Week 5
2) In the simple linear regression equation 𝑦 = 25.9 + 42𝑥 , where the value 25.9 refers to 1 point

Week 6 intercept

Module : slope
Predictive error
Modelling (unit?
prediction
unit=43&lesson=44)
No, the answer is incorrect.
Linear Score: 0
Regression Accepted Answers:
(unit? intercept
unit=43&lesson=45)

Model
Based on the information given below answer the questions 3 and 4
Assessment
The total sales amount (y) and price for each model of toaster(x) was recorded.
(unit?
unit=43&lesson=46)

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=119 1/5
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

Diagnostics to
Improve Linear
Model Fit (unit?
unit=43&lesson=47)

Simple Linear
Regression
Model Building
(unit?
unit=43&lesson=48)

Simple Linear
Regression
Model
Assessment
(unit? 3) Given the following model equation 𝑦 = 173.48𝑥 − 3781.98 , the estimated sales amount 1 point
unit=43&lesson=49) for a 56-dollar toaster is

Simple Linear 5933


Regression
Model
7895
Assessment ( 2500
Continued )
4580
(unit?
unit=43&lesson=50) No, the answer is incorrect.
Score: 0
Muliple Linear Accepted Answers:
Regression 5933
(unit?
unit=43&lesson=51) 4) Given the following model equation 𝑦 = 173.48𝑥 − 3781.98 , the residual error when the 1 point
price of the product is 62 dollars is given by
Dataset (unit?
unit=43&lesson=52)
22.25
FAQ (unit? 26.22
unit=43&lesson=53)
25.36
Quiz : Practice 39.56
Assignment 6
(assessment? No, the answer is incorrect.
Score: 0
name=95)
Accepted Answers:
Quiz : 26.22
Assignment 6
(assessment? 5) The coefficient of determination formula is:- 1 point
name=119)
(SST / SSE) - 1
Week 6
1 – (SSE / SSR)
Feedback (unit?
unit=43&lesson=123) (SSR / SST) – 1
1 – (SSE / SST)
Solution -
Assignment 6 No, the answer is incorrect.
(unit? Score: 0
unit=43&lesson=128) Accepted Answers:
1 – (SSE / SST)
Week 7
6) Which of the following method is NOT appropriate to check the association between two 1 point
continuous variables?
Week 8
Pearson's correlation
Text Transcripts
Chi-square test

Download Videos Regression


T-test

N h i i

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=119 2/5
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

No, the answer is incorrect.


Score: 0
Accepted Answers:
Chi-square test

7) If the value of SSE is equal to zero, then 1 point

correlation is equal to 0
correlation is less than 0
coefficient of determination(R2) must be equal to 1
coefficient of determination(R2) is equal to 0
No, the answer is incorrect.
Score: 0
Accepted Answers:
coefficient of determination(R2) must be equal to 1

8) Which of the following is/ are TRUE with respect to Pearson’s correlation(𝑟 𝑥𝑦 )? 1 point

rxy takes a value between 0 to +1


A measure for the degree of linear dependence between two numerical variables
Cannot be applied to ordinal variables
rxy= 0 means there is no correlation between x and y
No, the answer is incorrect.
Score: 0
Accepted Answers:
A measure for the degree of linear dependence between two numerical variables
Cannot be applied to ordinal variables
rxy= 0 means there is no correlation between x and y

Based on the information given below answer the questions from 9 to 12

Read the given dataset Auto.csv (https://drive.google.com/open?id=1HDojjo4uJRj6YP054xVmmcbb-


TGocaWk) in R studio.

The data is about vehicle performance. The objective is to predict the miles per gallon given the weight
of the car .

9) Correlation between mpg and weight is (round off to two decimal places) 1 point

0.71
-0.88
0.69
0.92
No, the answer is incorrect.
Score: 0
Accepted Answers:
-0.88

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=119 3/5
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

10)The linear model for the given data is 1 point

y= 0.0407+7.032x
y=-0.00629+40x
y=0.020+0.45784x
y=40.56198-0.00629x
No, the answer is incorrect.
Score: 0
Accepted Answers:
y=40.56198-0.00629x

11)The second quartile residual value for the linear model built on the Auto.csv data is 1 point

-1.91568
-7.2145
-0.08124
1.73406
No, the answer is incorrect.
Score: 0
Accepted Answers:
-0.08124

12)From the regression model, the proportion of the variability explained in dependent variable by 1 point
the independent variable is

77%
12%
88%
42%
No, the answer is incorrect.
Score: 0
Accepted Answers:
77%

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=119 4/5
02/07/2020 Data Science for Engineers - - Unit 8 - Week 6

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=43&assessment=119 5/5
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 9 - Week 7

Course
outline Practice Assignment 7
How does an The due date for submitting this assignment has passed. Due on 2020-03-18, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Note : This assignment is only for practice purpose and it will not be counted towards the Final
score
Week 1 1) Which one of the following is called as the odds ratio? 1 point

Week 2 The ratio of the probability of an event occurring to the probability of the event not occurring
The ratio of the probability of an event not occurring to the probability of the event occurring
Week 3
The probability of an event occurring
The probability of an event not occurring
Week 4
No, the answer is incorrect.
Week 5 Score: 0
Accepted Answers:
The ratio of the probability of an event occurring to the probability of the event not occurring
Week 6
2) In confusion matrix, the misclassification rate is given by 1 point
Week 7

Cross Validation 𝐹 𝑎𝑙𝑠𝑒 𝑁 𝑒𝑔𝑎𝑡𝑖𝑣𝑒+𝐹 𝑎𝑙𝑠𝑒 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒

𝑇 𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑠𝑎𝑚𝑝𝑙𝑒𝑠


(unit?
unit=55&lesson=54)
𝑇 𝑟𝑢𝑒 𝑁 𝑒𝑔𝑎𝑡𝑖𝑣𝑒+𝐹 𝑎𝑙𝑠𝑒 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒

Multiple Linear 𝑇 𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑠𝑎𝑚𝑝𝑙𝑒𝑠

Regression
Modelling 𝐹 𝑎𝑙𝑠𝑒 𝑁 𝑒𝑔𝑎𝑡𝑖𝑣𝑒+𝑇 𝑟𝑢𝑒 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒

Building and 𝑇 𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑠𝑎𝑚𝑝𝑙𝑒𝑠

Selection (unit?
unit=55&lesson=56) 𝑇 𝑟𝑢𝑒 𝑁 𝑒𝑔𝑎𝑡𝑖𝑣𝑒+𝑇 𝑟𝑢𝑒 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒

𝑇 𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑠𝑎𝑚𝑝𝑙𝑒𝑠

N h i i

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=96 1/3
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

No, the answer is incorrect.


Classification
Score: 0
(unit?
Accepted Answers:
unit=55&lesson=57) 𝐹 𝑎𝑙𝑠𝑒 𝑁 𝑒𝑔𝑎𝑡𝑖𝑣𝑒+𝐹 𝑎𝑙𝑠𝑒 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒

𝑇 𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑠𝑎𝑚𝑝𝑙𝑒𝑠


Logisitic
Regression 3) The value of both sensitivity and specificity lies between 1 point
(unit?
unit=55&lesson=58) -1 and 1
Logisitic -1 and 0
Regression ( -2 and 2
Continued )
0 and 1
(unit?
unit=55&lesson=59) No, the answer is incorrect.
Score: 0
Performance
Accepted Answers:
Measures (unit?
0 and 1
unit=55&lesson=60)
4) In Logistic Regression a linear relationship is assumed between the independent variables 1 point
Logisitic
and the
Regression
Implementation
Sigmoid of the dependent variable
in R (unit?
unit=55&lesson=61) Log of the dependent variable

Dataset (unit?
Sine of the dependent variable
unit=55&lesson=62) None of the above

FAQ (unit? No, the answer is incorrect.


unit=55&lesson=63) Score: 0
Accepted Answers:
Quiz : Practice None of the above
Assignment 7
(assessment? 5) The confusion matrix for a binary classifier gives 1 point
name=96)
Only True Positives and True Negatives
Quiz :
Only False Positives and False Negatives
Assignment 7
(assessment? Only True Positives, False Positives and False Negatives
name=124) True Positives, False Positives, True Negatives and False Negatives
Week 7 No, the answer is incorrect.
Feedback (unit? Score: 0
unit=55&lesson=126) Accepted Answers:
True Positives, False Positives, True Negatives and False Negatives
Solution -
Assignment 7
(unit?
unit=55&lesson=130)

Week 8

Text Transcripts

Download Videos

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=96 2/3
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=96 3/3
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 9 - Week 7

Course
outline Assignment 7
How does an The due date for submitting this assignment has passed. Due on 2020-03-18, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Click here (https://drive.google.com/open?id=1zOrZNhZUk1W7az9KSYIw1uSiMmomZJCS) to


download the Data sets
Week 1
1) The method used to estimate the parameters of logistic regression is 1 point
Week 2
ordinary least squares
Week 3 maximum likelihood estimation
poisson distribution
Week 4
negative binomial distribution

Week 5 No, the answer is incorrect.


Score: 0
Accepted Answers:
Week 6
maximum likelihood estimation

Week 7 2) The value of the sigmoid function when x = +∞ is 1 point

Cross Validation +∞
(unit?
-∞
unit=55&lesson=54)
0
Multiple Linear
1
Regression
Modelling No, the answer is incorrect.
Building and Score: 0
Selection (unit? Accepted Answers:
unit=55&lesson=56) 1

3) Which of the following measures cannot be used to calculate specificity? 1 point

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=124 1/6
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

Classification False Positive


(unit?
False Negative
unit=55&lesson=57)
True Negative
Logisitic
None of the above
Regression
(unit? No, the answer is incorrect.
unit=55&lesson=58) Score: 0
Accepted Answers:
Logisitic False Negative
Regression (
Continued ) 4) ROC curve is a plot of 1 point
(unit?
unit=55&lesson=59) Precision vs recall

Performance Accuracy vs misclassification rate


Measures (unit? Specificity vs Sensitivity
unit=55&lesson=60)
True Positive Rate vs False Positive Rate
Logisitic No, the answer is incorrect.
Regression Score: 0
Implementation Accepted Answers:
in R (unit? True Positive Rate vs False Positive Rate
unit=55&lesson=61)

Dataset (unit?
unit=55&lesson=62)
Based on the information given below answer the questions from 5 to 7.
FAQ (unit? Read the given dataset ‘auto_mpg.csv’ in Rstudio.
unit=55&lesson=63)
The data is about vehicle performance. The objective is to predict the miles per gallon given the other
Quiz : Practice
Assignment 7 attributes.
(assessment?
name=96)

Quiz :
Assignment 7
(assessment?
name=124)

Week 7
Feedback (unit?
unit=55&lesson=126)

Solution -
Assignment 7
(unit?
unit=55&lesson=130)

Week 8

Text Transcripts Build the linear regression model ‘model_1’ using the above variables

5) The intercept of the full model is (rounded off to two decimal places) 1 point
Download Videos
1.43
0.15
7.12
4.98
No, the answer is incorrect.
Score: 0
Accepted Answers:
7.12

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=124 2/6
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

6) The coefficient of the variable model_year is (rounded off to three decimal places) 1 point

0.459
-0.041
0.005
7.123
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.459

7) Which of the following variables are significant at 1% level of significance? 1 point

weight and cylinder


weight and model_year
model_year and acceleration
model_year and horsepower
No, the answer is incorrect.
Score: 0
Accepted Answers:
weight and model_year

Based on the question 7, answer questions 8 and 9.

After identifying the significant variables from question 7, build the new model ‘model_2’ using the
same.

8) The coefficient of determination for model_2 is 1 point

0.802
0.782
0.79
0.814
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.814

9) The standard error corresponding to the coefficient of model_year for model_2 is (rounded 1 point
off to three decimal places)

0.057
0.001
0.470
4.342
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.057

Build the linear regression model ‘model_3’ using all the variables except displacement and
acceleration.
Answer questions 10 to 11 based on this model.

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=124 3/6
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

10)The adjusted R2 of model_3 is 1 point

0.801
0.791
0.813
0.816
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.813

11)The t value corresponding to the coefficient for the variable horsepower is 1 point

1.335
-1.373
-0.336
-0.002
No, the answer is incorrect.
Score: 0
Accepted Answers:
-0.336

12)Which of the following performance measures cannot be used for regression? 1 point

R-Squared
RMSE
Accuracy
Durbin-Watson
No, the answer is incorrect.
Score: 0
Accepted Answers:
Accuracy

Based on the information given below answer the questions from 14 to 20.
Given the datasets “Titanic_Train.csv” & “Titanic_Test.csv" read them as two separate data frames -
Train_Data and Test_Data.

The data provides information on the fate of passengers on the fatal maiden voyage of the ocean liner
‘Titanic’, and the description
of variables are given below. Build a logistic regression model using the “Train_Data” after identifying
the output class label. Predict the model on the “Test_Data” and answer the questions from 14 to
19.

13)The estimate value of intercept is (rounded off to two decimal places) 1 point

3.95
4.69

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=124 4/6
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

5.83
6.69
No, the answer is incorrect.
Score: 0
Accepted Answers:
4.69

14)The standard error for the coefficient of variable Pclass is (rounded off to two decimal places) 1 point

0.86
0.36
0.16
0.57
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.16

15)The accuracy score of the model is 1 point

0.74
0.86
0.69
0.79
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.79

16)Number of misclassified samples are 1 point

63
24
43
19
No, the answer is incorrect.
Score: 0
Accepted Answers:
43

17)The proportion of positive cases that were correctly identified is 1 point

0.768
0.782
0.724
0.791
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.768

18)Balanced accuracy of the model is (rounded off to three decimal places) 1 point

0.791
0.782
0.729

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=124 5/6
02/07/2020 Data Science for Engineers - - Unit 9 - Week 7

0.7241
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.782

19)Misclassification rate of the model is 1 point

0.79
0.21
1
0.78
No, the answer is incorrect.
Score: 0
Accepted Answers:
0.21

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=55&assessment=124 6/6
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 10 - Week 8

Course
outline Practice Assignment 8
How does an The due date for submitting this assignment has passed. Due on 2020-03-25, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Note : This assignment is only for practice purpose and it will not be counted towards the Final
score
Week 1 1) The most commonly used distance metric to calculate distance between centroid of each 1 point
cluster and data points in K-means algorithm is
Week 2
Chebyshev distance
Week 3 Manhattan
Euclidean distance
Week 4
None of the above

Week 5 No, the answer is incorrect.


Score: 0
Accepted Answers:
Week 6
Euclidean distance

Week 7 2) K means clustering classifies variables based on :- 1 point

Week 8 dependent and independent variables


the eigen values
K - Nearest
distance between the points and a cluster centre
Neighbors
(kNN) (unit? None of the above
unit=64&lesson=65)
No, the answer is incorrect.
Score: 0
K - Nearest
Neighbors
Accepted Answers:
implementation
dependent and independent variables
in R (unit?
3) Which of the following statement is NOT TRUE about kNN algorithm? 1 point
unit=64&lesson=66)

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=97 1/3
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

K - means It is a non-parametric algorithm


Clustering (unit? It is an instance based learning algorithm
unit=64&lesson=67)
Explicit training and testing phases are involved while implementing kNN
K - means None of the above
implementation
in R (unit? No, the answer is incorrect.
Score: 0
unit=64&lesson=68)
Accepted Answers:
FAQ (unit? Explicit training and testing phases are involved while implementing kNN
unit=64&lesson=69)
4) Scaling is important in distance-based algorithms because 1 point
Data Science for
engineers - variables with higher magnitude will influence the results more
Summary (unit?
distance calculations are affected by the magnitude of the variables
unit=64&lesson=70)
The data is large and has many features
Week 8 data set
Both A and B
(unit?
unit=64&lesson=71) No, the answer is incorrect.
Score: 0
Quiz : Practice Accepted Answers:
Assignment 8 variables with higher magnitude will influence the results more
(assessment?
name=97) 5) Which of the following is TRUE with respect to K means clustering? 1 point

Quiz : The inter cluster distance is minimized and intra cluster distance is maximized
Assignment 8
(assessment? The inter cluster distance is maximized and intra cluster distance is minimized
name=127) Both inter cluster and intra cluster distance are minimized

Week 8 Both inter cluster and intra cluster distance are maximized
Feedback (unit? No, the answer is incorrect.
unit=64&lesson=129) Score: 0
Accepted Answers:
Solution -
The inter cluster distance is maximized and intra cluster distance is minimized
Assignment 8
(unit?
unit=64&lesson=131)

Text Transcripts

Download Videos

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=97 2/3
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=97 3/3
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

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

[email protected]

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

Announcements (announcements) About the Course (https://swayam.gov.in/nd1_noc20_cs28/preview)

Ask a Question (forum) Progress (student/home) Mentor (student/mentor)

Unit 10 - Week 8

Course
outline Assignment 8
How does an The due date for submitting this assignment has passed. Due on 2020-03-25, 23:59 IST.
NPTEL online As per our records you have not submitted this assignment.
course work?

Week 0 Click here (https://drive.google.com/open?id=18GBZKzwbWTZbmb7K8a2T9dHve0ESDsvc) to


download the Data Set
Week 1
1) For k-NN, which of the following distance measure is NOT valid for continuous variables? 1 point
Week 2
Euclidean distance
Week 3 Manhattan distance
Minkowski distance
Week 4
Hamming Distance

Week 5 No, the answer is incorrect.


Score: 0
Accepted Answers:
Week 6
Hamming Distance

Week 7 2) Which of the following statement is/are NOT true about k-NN algorithm? 1 point

Week 8 k-NN is a non-parametric machine learning algorithm


It is also called instance-based learning
K - Nearest
Performance is not better when all the data have same order of magnitude
Neighbors
(kNN) (unit? k-NN is often termed as lazy learning algorithm
unit=64&lesson=65)
No, the answer is incorrect.
Score: 0
K - Nearest
Neighbors
Accepted Answers:
implementation
Performance is not better when all the data have same order of magnitude
in R (unit?
3) In K-means clustering, the clusters are compact and homogenous:- 1 point
unit=64&lesson=66)

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=127 1/5
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

K - means When the WSS is lower and the BSS is higher


Clustering (unit? When the BSS is lower and the WSS is higher
unit=64&lesson=67)
When the TSS is lower and the BSS is higher
K - means When the TSS is higher and the BSS is lower
implementation
in R (unit? No, the answer is incorrect.
Score: 0
unit=64&lesson=68)
Accepted Answers:
FAQ (unit? When the WSS is lower and the BSS is higher
unit=64&lesson=69)
4) Which of the following statement(s) is/are TRUE with respect to elbow plot? 1 point
Data Science for
engineers - Elbow plot is used to ascertain the optimal number of clusters
Summary (unit?
Elbow plot is used to explain percentage variance as a function of number of clusters
unit=64&lesson=70)
The value of K at which the percentage variance starts plateauing is called elbow
Week 8 data set
None of the above
(unit?
unit=64&lesson=71) No, the answer is incorrect.
Score: 0
Quiz : Practice Accepted Answers:
Assignment 8 Elbow plot is used to ascertain the optimal number of clusters
(assessment?
Elbow plot is used to explain percentage variance as a function of number of clusters
name=97)
The value of K at which the percentage variance starts plateauing is called elbow
Quiz :
Assignment 8
(assessment? Based on the information given below answer the questions 5 and 6.
name=127) Read the given dataset “wine.csv” in Rstudio.

Week 8
Feedback (unit?
unit=64&lesson=129)

Solution -
Assignment 8
(unit?
unit=64&lesson=131)

Text Transcripts

Download Videos

Normalize the data using scale function and build the K-means algorithm with the given conditions:
random number generator = 1234
number of clusters = 3
nstart=25

5) The within cluster sum of squares is 1 point

451.3, 284.6, 459.7


268.6, 290.0, 307.1

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=127 2/5
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

46.5, 203.3,326.3
326.4, 385.7, 558.7
No, the answer is incorrect.
Score: 0
Accepted Answers:
326.4, 385.7, 558.7

6) The size of each of the clusters is 1 point

59, 65, 48
26, 57, 37
62, 65, 51
16, 30, 49
No, the answer is incorrect.
Score: 0
Accepted Answers:
62, 65, 51

7) From the elbow plot given below, the optimal numbers of clusters are 1 point

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

8) Consider a kNN model built on a large set of data. Which of the following statements best 1 point
describe the effect of choosing a lower k
value when the data is considerably large?

I - The model built with a lower k value makes it computationally expensive


II- The model overfits

I - True , II - True
I- False , II - True

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=127 3/5
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

I -True , II - False
I- False , II – False
No, the answer is incorrect.
Score: 0
Accepted Answers:
I- False , II - True

9) The Euclidean distance between the two data points A (-3,3) and B (7,7) is _________ 1 point

√115
‾‾‾‾

√116
‾‾‾‾

√117
‾‾‾‾

√118
‾‾‾‾

No, the answer is incorrect.


Score: 0
Accepted Answers:
√116
‾‾‾‾

10)When the k Nearest Neighbours algorithm is used for prediction, the values are calculated by: 1 point

minimizing the distance between the predictions


averaging the values of the k nearest neighbours
averaging the inter-cluster distances
averaging the intra-cluster distances
No, the answer is incorrect.
Score: 0
Accepted Answers:
averaging the values of the k nearest neighbours

11)What is the advantage of using an odd value of k in binary classification problems using kNN 1 point
algorithm?

Avoid tied votes on classes


Makes decision boundary smoother
Makes boundaries between classes more distinct
Reduce the effect of noise
No, the answer is incorrect.
Score: 0
Accepted Answers:
Avoid tied votes on classes

12)kNN is used for both regression and classification problems 1 point

True
False
No, the answer is incorrect.
Score: 0
Accepted Answers:
True

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

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=127 4/5
02/07/2020 Data Science for Engineers - - Unit 10 - Week 8

variables with higher magnitude will influence the results more


calculation of distances between points are affected by the magnitude of the variables
the data is large and has many features
it helps in speeding up the calculations in an algorithm
No, the answer is incorrect.
Score: 0
Accepted Answers:
variables with higher magnitude will influence the results more
calculation of distances between points are affected by the magnitude of the variables
it helps in speeding up the calculations in an algorithm

https://onlinecourses.nptel.ac.in/noc20_cs28/unit?unit=64&assessment=127 5/5

You might also like