0% found this document useful (0 votes)
351 views62 pages

Data Science For Engineers

DATA SCIENCE FOR ENGINEERS NPTEL

Uploaded by

gireesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
351 views62 pages

Data Science For Engineers

DATA SCIENCE FOR ENGINEERS NPTEL

Uploaded by

gireesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

Data Science for Engineers - - Unit 5 - Week 0 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?

unit=20&assessment=205

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 0: Assignment 0


outline Assignment not submitted
Note : This assignment is only for practice purpose and it will not be counted towards the
About NPTEL Final score
()

1) Which of the following statements are TRUE in accordance with De Morgan’s laws for 1 point
How does an
NPTEL online 2 given events A and B?
course work?
¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯
P (A ∩ B) = P (A) ∩ P (¯B
¯¯¯
()
)
Setup Guide ¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯
P (A ∪ B) = P (A ∩ ¯B
¯¯¯
)
()
¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯
Pre Course P (A ∩ B) = P (A ∪ ¯B
¯¯¯
)
Material ()
P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
Week 0 () Yes, the answer is correct.
Score: 1
Practice: Week Accepted Answers:
¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯
0: Assignment P (A ∪ B) = P (A ∩ ¯B ¯¯¯
)
0 ¯¯¯¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯ ¯¯¯¯
P (A ∩ B) = P (A ∪ B)
(assessment?
name=205) 2) Determine the total number of outcomes in the sample space if 2 letters are chosen 1 point
from the letters a, e, i, o, u with repetition
Week 1 ()
10
Week 2 () 32
25

1 of 5 04-09-2024, 01:53 pm
Data Science for Engineers - - Unit 5 - Week 0 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=20&assessment=205

20
Week 3 ()
Yes, the answer is correct.
Week 4 () Score: 1
Accepted Answers:
25
Week 5 ()
3) Given a matrix A and a scalar k, (kA)−1 equals 1 point
Week 6 ()

Week 7 ()
kA−1

|kA−1 |. A
Text
Transcripts ()
(A−1 )k

Download A−1 /k
Videos ()
Yes, the answer is correct.
Score: 1
Books ()
Accepted Answers:
A−1 /k
Problem
Solving 4) Given [x1 , x2 , x3 , . . . , xn ] are the possible values of a random variable X, and 1 point
Session - p1 , p2 , p3 , . . . , pn be the corresponding probabilities to each value of the random variable. The
July 2024 () mean is computed by the formula

∑ni=1 pi xi
n
n
∑ pi
i=1

n
∑ pi xi
i=1
None of these

Yes, the answer is correct.


Score: 1
Accepted Answers:
n
∑ pi xi
i=1

5) State TRUE or FALSE 1 point

Not all mutually exclusive events are exhaustive.

True
False

Yes, the answer is correct.


Score: 1
Accepted Answers:

2 of 5 04-09-2024, 01:53 pm
Data Science for Engineers - - Unit 5 - Week 0 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=20&assessment=205

True

6) A manufacturing company is set up in two different locations. If the number of 1 point


employees in one location are 663, and the average monthly salary for their employees is $13454,
and the number of employees in the other location are 504, and the average monthly salary for their
employees is $17591. Find the combined arithmetic mean of the monthly salary?

$15240.67
$15804.33
$15522.5
None of these

Yes, the answer is correct.


Score: 1
Accepted Answers:
$15240.67

7) Given below is tabular data on a test conducted recently to detect a new mutant of the 1 point
coronavirus.

Find the number of people who have not actually contracted the virus yet have been tested
positive?

284
173
138
227

Yes, the answer is correct.


Score: 1
Accepted Answers:
173

8) Given a pie chart that indicates the expenditure of a manufacturing organization 1 point
towards various activities, what is the ratio of expenditure for the R & D department to the Marketing
department?

3 of 5 04-09-2024, 01:53 pm
Data Science for Engineers - - Unit 5 - Week 0 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=20&assessment=205

1 : 1.54
1 : 0.65
1 : 0.44
None of these

Yes, the answer is correct.


Score: 1
Accepted Answers:
1 : 0.44

9) 3 natural numbers are chosen at random. What is the probability that their product 1 point
yields an odd number?

2/3
1/6
1/2
1/8

Yes, the answer is correct.


Score: 1
Accepted Answers:
1/8

10) The mean of the first n natural numbers is 1 point

n!

4 of 5 04-09-2024, 01:53 pm
Data Science for Engineers - - Unit 5 - Week 0 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=20&assessment=205

(n / 2) + 1
(n + 1) / 2
n2

Yes, the answer is correct.


Score: 1
Accepted Answers:
(n + 1) / 2

Check Answers and Submit

Your score is: 10/10

5 of 5 04-09-2024, 01:53 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=206

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 1: Assignment 1 (Non


outline
Graded)
About NPTEL Assignment not submitted
()
Note : This assignment is only for practice purpose and it will not be counted towards the
How does an Final score
NPTEL online
course work? 1) R script files has an extension----------- 1 point
()
.Rp
.R
Setup Guide
() .S
None of the above
Pre Course
Yes, the answer is correct.
Material () Score: 1
Accepted Answers:
Week 0 () .R

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

Data science n=16


for engineers x = seq(1,n,2)
Course for (i in x) {
philosophy and if (i == 5){
expectation print(i)
(unit? break
unit=21&lesson
}
=22)
}

1 of 4 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=206

Introduction to 3
R (unit? 15
unit=21&lesson
5
=23)
25
Introduction to
Yes, the answer is correct.
R (Continued)
Score: 1
(unit?
Accepted Answers:
unit=21&lesson
5
=24)
3) The output of the code given below is --------- 1 point
Variables and
datatypes in R
(unit? x =c(1:4)
unit=21&lesson y =c(6,3)
=25) x *y

Data frames Error!


(unit?
6 12 9 12
unit=21&lesson
=26) 6 6 8 8
6 6 18 12
Recasting and
joining of Yes, the answer is correct.
dataframes
Score: 1
(unit? Accepted Answers:
unit=21&lesson 6 6 18 12
=27)
4) Which one of the following function is can be used to list the installed packages in R? 1 point
Arithmetic,Logi
library( )
cal and Matrix
operations in R library[ ]
(unit? library{ }
unit=21&lesson All the above
=28)
Yes, the answer is correct.
Advanced Score: 1
programming in Accepted Answers:
R : Functions library( )
(unit?
unit=21&lesson 5) The value(s) of "y" at the end of the program given below is-- 1 point
=29)
x1=matrix(10:18,3,3)
Advanced
x2=matrix(11:19,3,3)
Programming in
m =cbind(apply(x1,1,min),apply(x2,1,max))
R : Functions
(Continued) print(m)
(unit?
unit=21&lesson y =apply(m,1,mean)
=30) print(y)

Control 11 12 13
structures
30 20 40
(unit?
unit=21&lesson 13.5 14.5 15.5

2 of 4 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=206

=31) 2 12
Data Yes, the answer is correct.
visualization in Score: 1
R Basic Accepted Answers:
graphics (unit? 13.5 14.5 15.5
unit=21&lesson
=32) Check Answers and Submit

Common
Your score is: 5/5
doubts asked
on R Language
(Week-1) (unit?
unit=21&lesson
=33)

Practice: Week
1: Assignment
1 (Non
Graded)
(assessment?
name=206)

Quiz: Week 1 :
Assignment 1
(assessment?
name=214)

Week 1
Feedback Form
: Data Science
for Engineers
(unit?
unit=21&lesson
=153)

Week 2 ()

Week 3 ()

Week 4 ()

Week 5 ()

Week 6 ()

Week 7 ()

Text
Transcripts ()

3 of 4 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=206

Download
Videos ()

Books ()

Problem
Solving
Session -
July 2024 ()

4 of 4 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=214

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

gireesh218@gmail.com 

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

Course Week 1 : Assignment 1


outline The due date for submitting this assignment has passed.
Due on 2024-08-07, 23:59 IST.
About NPTEL
()
Assignment submitted on 2024-08-07, 13:31 IST
How does an 1) Which of the following variable names are INVALID in R ? 1 point
NPTEL online
course work? 1_variable
() variable_1
_variable
Setup Guide variable@
()
Yes, the answer is correct.
Score: 1
Pre Course
Accepted Answers:
Material ()
1_variable
_variable
Week 0 ()
variable@

Week 1 () 2) The function ls() in R will 1 point

Data science set a new working directory path


for engineers list all objects in our working environment
Course display the path to our working directory
philosophy and
None of the above
expectation
(unit? Yes, the answer is correct.
unit=21&lesson Score: 1
=22) Accepted Answers:
list all objects in our working environment
Introduction to

1 of 5 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=214

R (unit?
unit=21&lesson Consider the following code snippet. Based on this, answer questions 3 and 4.
=23)

Introduction to
R (Continued)
(unit?
unit=21&lesson
=24)

Variables and
datatypes in R
(unit?
unit=21&lesson
=25) 3) Which of the following command is used to access the value “Shyam”? 1 point
Data frames
print(patient_list[3][2])
(unit?
unit=21&lesson print(patient_list[[3]][1])
=26) print(patient_list[[3]][2])
print(patient_list[[2]][2])
Recasting and
joining of Yes, the answer is correct.
dataframes Score: 1
(unit? Accepted Answers:
unit=21&lesson print(patient_list[[3]][2])
=27)
4) The output of the code given below is 1 point
Arithmetic,Logi
cal and Matrix
operations in R
(unit?
unit=21&lesson
=28)

Advanced
programming in
R : Functions
(unit?
unit=21&lesson
=29)

Advanced
Programming in
R : Functions
(Continued)
(unit?
unit=21&lesson
=30)

Control
structures
(unit?
unit=21&lesson
=31)

2 of 5 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=214

Data
visualization in
R Basic
graphics (unit?
unit=21&lesson
=32)

Common
doubts asked
on R Language
(Week-1) (unit? Code will throw an error.
unit=21&lesson
Yes, the answer is correct.
=33) Score: 1
Practice: Week Accepted Answers:
1: Assignment
1 (Non Graded)
(assessment?
name=206)
5) What is the output of following code? 1 point
Quiz: Week 1 :
Assignment 1
(assessment?
name=214)

Week 1
Feedback Form
: Data Science
for Engineers double
(unit? integer
unit=21&lesson list
=153)
None of the above

Week 2 () Yes, the answer is correct.


Score: 1
Week 3 () Accepted Answers:
double
Week 4 () 6) State whether the given statement is True or False. 1 point
The library reshape2 is based around two key functions named melt and cast.
Week 5 ()
True
Week 6 () False

Yes, the answer is correct.


Week 7 () Score: 1
Accepted Answers:
Text True
Transcripts ()
7) What is the output of following code? 1 point

Download
Videos ()

Books ()

3 of 5 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=214

Problem
Solving
Session -
July 2024 ()

6
4
2
8

Yes, the answer is correct.


Score: 1
Accepted Answers:
4

Create the data frame using the code given below and answer questions 8 and 9.

student_data = data.frame(student_id=c(1:4), student_name=c(‘Ram’,‘Harish’,‘Pradeep’,‘Rajesh’))

8) Choose the correct command to add a column named student dept to the dataframe 1 point
student data.

student_datastudent dept=c(“Commerce”, “Biology”, “English”, “Tamil”)


student_data[“student dept”]= c(“Commerce”,“Biology”, “English”,“Tamil”)
student_dept= student data[c(“Commerce”,“Biology”,“English”,“Tamil”)]
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
student_datastudent dept=c(“Commerce”, “Biology”, “English”, “Tamil”)
student_data[“student dept”]= c(“Commerce”,“Biology”, “English”,“Tamil”)

9) Choose the correct command to access the element Tamil in the dataframe 1 point
student_data.

student_data[[4]]
student_data[[4]][3]
student_data[[3]][4]
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
student_data[[3]][4]

10) The command to check if a value is of numeric data type is ________. 1 point

4 of 5 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 6 - Week 1 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=21&assessment=214

typeof()
is.numeric()
as.numeric()
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
is.numeric()

5 of 5 04-09-2024, 01:54 pm
Data Science for Engineers - - Unit 7 - Week 2 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=36&assessment=215

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

gireesh218@gmail.com 

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

Course Week 2 : Assignment 2


outline The due date for submitting this assignment has passed.
Due on 2024-08-07, 23:59 IST.
About NPTEL
()
Assignment submitted on 2024-08-07, 13:32 IST
−2 7 3
Are the vectors [ ],[ ] and [ ] linearly independent?
How does an 1) 1 point
NPTEL online 4 −2 −6
course work?
() Yes
No
Setup Guide
Yes, the answer is correct.
() Score: 1
Accepted Answers:
Pre Course No
Material ()
2) Does the set, S = {(1, 1), (1, 2)} spans R2 ? 1 point
Week 0 ()
Yes
No
Week 1 ()
Yes, the answer is correct.
Week 2 () Score: 1
Accepted Answers:
Linear Algebra Yes
for Data
3) Consider the following system of linear equations of the form Ax = b : 1 point
science (unit?
unit=36&lesson
=37)
2x − 3y + 6z = 14
x + y − 2z = −3
Solving Linear Which among the following are correct?
Equations

1 of 5 04-09-2024, 01:55 pm
Data Science for Engineers - - Unit 7 - Week 2 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=36&assessment=215

(unit?
unit=36&lesson
⎡ 1 ⎤
=38) ⎢ −4 ⎥ is a solution to Ax = b
Solving Linear
⎣ 0 ⎦
Equations (
Continued ) ⎡0⎤
⎢ 2 ⎥ is a solution to Ax = b
⎣1⎦
(unit?
unit=36&lesson
=39)

Linear Algebra ⎡ 1 ⎤
⎢ −4 ⎥ is a solution to Ax = 0
⎣ 0 ⎦
-
Distance,Hyper
planes and

⎡0⎤
Halfspaces,Eig

⎢ 2 ⎥ is a solution to Ax = 0
envalues,Eigen

⎣1⎦
vectors (unit?
unit=36&lesson
=40)
Yes, the answer is correct.
Linear Algebra Score: 1
Accepted Answers:
⎡ 1 ⎤
-

⎢ −4 ⎥ is a solution to Ax = b
Distance,Hyper

⎣ 0 ⎦
planes and
Halfspaces,Eig

⎡0⎤
envalues,Eigen

⎢ 2 ⎥ is a solution to Ax = 0
vectors (
Continued 1) ⎣1⎦
(unit?
unit=36&lesson
=41)
Consider the following systerm of linear equation:
Linear Algebra x + y + z = −2
- x + 2y − z = 1
Distance,Hyper
2x + ay + bz = 2
planes and 4) Find the conditions on a and b for which the above system has no solution. 1 point
Halfspaces,Eig
envalues,Eigen
vectors ( 2a + b − 6 = 0
Continued 2 )
(unit? a ≠ 4, 2a + b − 6 = 0
unit=36&lesson
=42) a = 4, b = −2

Linear Algebra 2a + b − 6 ≠ 0
-
Yes, the answer is correct.
Distance,Hyper
Score: 1
planes and
Accepted Answers:
Halfspaces,Eig
a ≠ 4, 2a + b − 6 = 0
envalues,Eigen
vectors ( 5) Find the conditions on a and b for which the above system has a unique solution. 1 point
Continued 3 )
(unit?
unit=36&lesson
2a + b − 6 = 0

2 of 5 04-09-2024, 01:55 pm
Data Science for Engineers - - Unit 7 - Week 2 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=36&assessment=215

=43)
a ≠ 4, 2a + b − 6 = 0
Common
doubts asked
a = 4, b = −2
on Linear
Algebra (unit?
2a + b − 6 ≠ 0
unit=36&lesson
=44) Yes, the answer is correct.
Score: 1
Quiz: Week 2 : Accepted Answers:
Assignment 2 2a + b − 6 ≠ 0
(assessment?
name=215) 6) Find the conditions on a and b for which the above system has infite number of 1 point
solutions.
Week 2
Feedback Form
: Data Science 2a + b − 6 = 0
for Engineers
(unit? a ≠ 4, 2a + b − 6 = 0
unit=36&lesson
=154)
a = 4, b = −2

Week 3 () 2a + b − 6 ≠ 0
Yes, the answer is correct.
Week 4 () Score: 1
Accepted Answers:
a = 4, b = −2
Week 5 ()

Week 6 () Based on the given information, answer questions 7 and 8.

Week 7 () In solving the system Ax = b in the variables x1, x2, x3 and x4 , Gaussian elimination on the
Augmented matrix [A ∣ b] led to the following row echelon form
Text ⎛1 0 0 3∣ 2 ⎞


0 1 1 2∣ 3 ⎟

⎜ 1/3 ⎟
Transcripts ()

⎜0 0 0 1∣ ⎟
Download ⎝0 0 0 0∣ 0 ⎠
Videos ()
7) Identify the number of free variable from the above rwo echelon matrix. 1 point
Books ()
0
Problem 1
Solving 2
Session - 3
July 2024 ()
Yes, the answer is correct.
Score: 1
Accepted Answers:
1

8) Which among the following is correct for the above system Ax = b? 1 point

It has infinite number of solutions.

3 of 5 04-09-2024, 01:55 pm
Data Science for Engineers - - Unit 7 - Week 2 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=36&assessment=215

It has a unique solution.


It has no solution.

Yes, the answer is correct.


Score: 1
Accepted Answers:
It has infinite number of solutions.

1
For what values of a are matrix A = [ ] not invertible?
9) a 1 point
−2 a+3
a=1
a = −2
a = −1
a=2

Yes, the answer is correct.


Score: 1
Accepted Answers:
a = −2
a = −1

10) Which among the following is true for the determinant of a matrix? 1 point

The determinant of a diagonal matrix is the product of its diagonal entries.


If one row of a matrix is a scalar multiple of another, the determinant is 1
If one row of a matrix is a scalar multiple of another, the determinant is 0.
The determinant of a permutation matrix can only be 1.

Yes, the answer is correct.


Score: 1
Accepted Answers:
The determinant of a diagonal matrix is the product of its diagonal entries.
If one row of a matrix is a scalar multiple of another, the determinant is 0.

11) ⎛ 5 8 16 ⎞ 1 point
Which among the following are the eigenvalues of matrix A = ⎜ 4 1 8 ⎟?.
⎝ −4 −4 −11 ⎠
1, 3, −3
1, 3, 3
−1, 3, 3
1, −3, −3

Yes, the answer is correct.


Score: 1
Accepted Answers:
1, −3, −3

12) ⎡ 1 −3 −2 4 ⎤
Find the nullity of A = ⎢ 1 −3 1 1 ⎥.
⎣0 0 1 −1 ⎦

4 of 5 04-09-2024, 01:55 pm
Data Science for Engineers - - Unit 7 - Week 2 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=36&assessment=215

Yes, the answer is correct.


Score: 1
Accepted Answers:
(Type: Numeric) 2

1 point

13) ⎡ −1 ⎤ 1 point
Let A = ⎢ 2 ⎥. Suppose the eigen values corresponding to AAT are a, b and c,
⎣ 2 ⎦
then find the value of ab + bc + ca.

9
0
81
18

Yes, the answer is correct.


Score: 1
Accepted Answers:
0

5 of 5 04-09-2024, 01:55 pm
Data Science for Engineers - - Unit 8 - Week 3 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=47&assessment=208

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 3: Assignment 3 (Non


outline
Graded)
About NPTEL Assignment not submitted
()
Note : This assignment is only for practice purpose and it will not be counted towards the
How does an Final score
NPTEL online
course work? 1) A and B are two events. The probability that at least one of them occurs is given by 1 point
()
P (A ∩ Bc ) + P (Ac ∩ B)
Setup Guide
() P (A) + P (B) − P (A ∩ B)

Pre Course P (A) + P (B) + P (A ∩ B)


Material ()
P (Ac ) + P (Bc ) − 2P (Ac ∩ Bc )
Week 0 ()
Yes, the answer is correct.
Score: 1
Week 1 () Accepted Answers:
P (A) + P (B) − P (A ∩ B)
Week 2 ()
2) Two tube lights are installed in a room. Probability of light A failing is 0.20 while the 1 point
probability of light B failing is 0.15. What is the
Week 3 ()
probability that both the lights are working on a given day? (final value is rounded off to 2
decimal places)

0.50
0.54

1 of 3 04-09-2024, 01:56 pm
Data Science for Engineers - - Unit 8 - Week 3 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=47&assessment=208

Statistical 0.80
Modelling (unit? 0.68
unit=47&lesson
=48) Yes, the answer is correct.
Score: 1
Random Accepted Answers:
Variables and 0.68
Probability
Mass/Density 3) Given that the random variable X follows a chi-square distribution with 4 degrees of 1 point
Functions freedom and P(X≤x)=0.5. Then the value of X is
(unit?
3.357
unit=47&lesson
=49) -3.357
-3.325
Sample
Statistics (unit? 3.325
unit=47&lesson Yes, the answer is correct.
=50) Score: 1
Accepted Answers:
Hypotheses
3.357
Testing (unit?
unit=47&lesson 4) The possible values of the correlation coefficient lies between: 1 point
=51)
0 to -1
FAQ (unit?
unit=47&lesson -1 to 1
=52) -∞ to ∞
0 to ∞
Practice: Week
3: Assignment Yes, the answer is correct.
3 (Non Score: 1
Graded) Accepted Answers:
(assessment? -1 to 1
name=208)
5) 50% of the employees of the ABC corporation are college graduates. Of these, 15% 1 point
Quiz: Week 3 : are in sales. Of the employees who did not graduate
Assignment 3 from college, 70% are in sales.
(assessment?
name=219)
The probability of an employee selected at random is in sales
Week 3 (final value is rounded off to 2 decimal places)
Feedback Form
: Data Science 0.50
for Engineers 0.15
(unit? 0.43
unit=47&lesson
0.70
=155)
Yes, the answer is correct.
Week 4 () Score: 1
Accepted Answers:
Week 5 () 0.43

Check Answers and Submit


Week 6 ()

Your score is: 5/5

2 of 3 04-09-2024, 01:56 pm
Data Science for Engineers - - Unit 8 - Week 3 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=47&assessment=208

Week 7 ()

Text
Transcripts ()

Download
Videos ()

Books ()

Problem
Solving
Session -
July 2024 ()

3 of 3 04-09-2024, 01:56 pm
Data Science for Engineers - - Unit 8 - Week 3 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=47&assessment=219

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

gireesh218@gmail.com 

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

Course Week 3 : Assignment 3


outline The due date for submitting this assignment has passed.
Due on 2024-08-14, 23:59 IST.
About NPTEL
()
Assignment submitted on 2024-08-07, 13:33 IST
How does an 1) Sumit wants to contact one of his friends, but he remembers only the first 9 of the 10 1 point
NPTEL online digits of the contact number. He is sure that the last digit of the contact number is an odd number.
course work? He selects an odd number randomly. If the random variable X denotes the last digit of the contact
() number, then calculate Var(X ).

Setup Guide 5
() 8
33
Pre Course None of the above
Material ()
Yes, the answer is correct.
Score: 1
Week 0 ()
Accepted Answers:
8
Week 1 ()
2) Suppose X ∼Normal (μ, 4). For n = 20 iid samples of X, the observed sample mean 1 point
Week 2 () is 5.2. What conclusion would a z -test reach if the null hypothesis assumes μ = 5 (against an
alternative hypothesis μ ≠ 5 ) at a significance level of α = 0.05 ?
Week 3 () Use Fz−1 (0.025) = −1.9599

Statistical
Modelling (unit? Accept H0
unit=47&lesson
=48) Reject H0

No, the answer is incorrect.

1 of 4 04-09-2024, 01:56 pm
Data Science for Engineers - - Unit 8 - Week 3 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=47&assessment=219

Random
Score: 0
Variables and Accepted Answers:
Probability Accept H0
Mass/Density
3) A box contains 8 items out of which 2 are defective. A sample of 5 items is to be 1 point
Functions
selected randomly (without replacement) from the box. If the random variable X represents the
(unit?
unit=47&lesson
number of defective items in a selection of 5 items, then find E(X) .(Enter the answer correct to 2
=49) decimal places)

Sample 1.25
Statistics (unit? 5
unit=47&lesson
0.4
=50)
1.3
Hypotheses
Yes, the answer is correct.
Testing (unit?
Score: 1
unit=47&lesson
Accepted Answers:
=51)
1.25
FAQ (unit?
4) Suppose X ∼Normal(μ, 9). For n = 100 iid samples of X , the observed sample 1 point
unit=47&lesson
=52) mean is 11.8 . What conclusion would a z -test reach if the null hypothesis assumes μ = 10.5
(against an alternative hypothesis μ ≠ 10.5 )?
Practice: Week
3: Assignment
3 (Non Graded) Accept H0 at a significance level of 0.10 .
(assessment?
name=208) Reject H0 at a significance level of 0.10 .

Quiz: Week 3 :
Accept H0 at a significance level of 0.05 .
Assignment 3
(assessment?
name=219) Reject H0 at a significance level of 0.05 .

Week 3 Partially Correct.


Score: 0.5
Feedback Form
: Data Science
Accepted Answers:
Reject H0 at a significance level of 0.10 .
for Engineers
(unit? Reject H0 at a significance level of 0.05 .
unit=47&lesson
5) Let X and Y be two independent random variables with Var(X ) = 9 and Var(Y ) = 3, 1 point
=155)
find Var(4X − 2Y + 6).
Week 4 ()
100
140
Week 5 ()
156

Week 6 () None of the above

Yes, the answer is correct.


Week 7 () Score: 1
Accepted Answers:
Text 156
Transcripts () 6) The correlation coefficient of two random variable X and Y is 14, their variance is 0 points
given by 3 and 5. Compute Cov(X, Y ).
Download

2 of 4 04-09-2024, 01:56 pm
Data Science for Engineers - - Unit 8 - Week 3 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=47&assessment=219

Videos () -0.854
0.561
Books ()
-0.968
None of the above
Problem
Solving No, the answer is incorrect.
Session - Score: 0
July 2024 () Accepted Answers:
-0.968

7) When will you reject the Null hypothesis? 1 point

p value greater than α

p value less than α

p value equal to α
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
p value less than α
8) A sample of N observations are independently drawn from a normal distribution. The 1 point
sample 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

9) A car manufacturer purchases car batteries from two different suppliers. Supplier X 1 point
provides 55% of the batteries and supplier Y provides the rest. 5% of all batteries from supplier X
are defective and 4% of all batteries from supplier Y are defective. You select a battery from the
bulk and you found it to be defective. What is the probability that it is from Supplier X ?

0.0455
0.455
0.604
0.018

No, the answer is incorrect.


Score: 0

3 of 4 04-09-2024, 01:56 pm
Data Science for Engineers - - Unit 8 - Week 3 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=47&assessment=219

Accepted Answers:
0.604

10) 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

4 of 4 04-09-2024, 01:56 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=209

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 4: Assignment 4 (Non


outline
Graded)
About NPTEL Assignment not submitted
()
Note : This assignment is only for practice purpose and it will not be counted towards the
How does an Final score
NPTEL online
course work? 1) Class of optimization problems WITH NO constraints are known as 1 point
()
constrained optimization problems
unconstrained optimization problems
Setup Guide
() linear constrained optimization problems
none of the above
Pre Course
Yes, the answer is correct.
Material () Score: 1
Accepted Answers:
Week 0 () unconstrained optimization problems

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


Week 1 ()

Week 2 () If the first derivative at x∗ is zero

Week 3 () If the first derivative at x∗ is positive

Week 4 () If the first derivative at x∗ is negative


None of the above
Optimization for
Data Science Yes, the answer is correct.

1 of 3 04-09-2024, 01:57 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=209

(unit? Score: 1
unit=55&lesson Accepted Answers:
=56) If the first derivative at x∗ is zero

Unconstrained 3) When the feasibility regions defined by equality constraints and inequality constraints 1 point
Multivariate are
Optimization compared,
(unit?
unit=55&lesson The regions defined by both are exactly the same
=57)
The region defined by the inequality constraint is greater
Unconstrained The region defined by the equality constraint is greater
Multivariate none of the above
Optimization (
Continued ) Yes, the answer is correct.
Score: 1
(unit?
unit=55&lesson Accepted Answers:
=58) The region defined by the inequality constraint is greater

Gradient ( 4) If f(x) = 12x4 − 2x3 + 9x2 + 5, then the first order necessary condition for either 1 point
Steepest ) maxima or minima of f(x) is
Descent ( OR )
Learning Rule
(unit?
24x2 + 4x − 6 = 0
unit=55&lesson
=59)
48x3 − 6x2 + 18x = 0

FAQ (unit? 36x3 − 2x2 − 6x = 0


unit=55&lesson
=60) 48x2 − 4x − 6 = 0
Week 4 Yes, the answer is correct.
Score: 1
Feedback Form
Accepted Answers:
: Data Science
for Engineers
48x3 − 6x2 + 18x = 0
(unit? 5) The restrictions on the possible values of the solution to the optimization problem are 1 point
unit=55&lesson called:
=156)
objective functions
Practice: Week
4: Assignment cost functions
4 (Non equality/inequality constraints
Graded) none
(assessment?
name=209) Yes, the answer is correct.
Score: 1
Quiz: Week 4 : Accepted Answers:
Assignment 4 equality/inequality constraints
(assessment?
name=220) Check Answers and Submit

Week 5 () Your score is: 5/5

Week 6 ()

2 of 3 04-09-2024, 01:57 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=209

Week 7 ()

Text
Transcripts ()

Download
Videos ()

Books ()

Problem
Solving
Session -
July 2024 ()

3 of 3 04-09-2024, 01:57 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=220

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

gireesh218@gmail.com 

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

Course Week 4 : Assignment 4


outline The due date for submitting this assignment has passed.
Due on 2024-08-21, 23:59 IST.
About NPTEL
()
Assignment submitted on 2024-08-21, 17:43 IST
How does an 1) Let f(x) = x3 + 3x2 − 24x + 7. Select the correct options from the following: 0 points
NPTEL online
course work? –
() −2 + √5 will give the maximum for f(x) .

Setup Guide −2 + √5 will give the minimum for f(x) .
() – –
The stationary points for f(x) are −2 + √5 and −2 − √5 .
Pre Course
Material () The stationary points for f(x) are −4 and 0 .

Yes, the answer is correct.


Week 0 () Score: 0
Accepted Answers:

−2 + √5 will give the minimum for f(x) .
Week 1 () – –
The stationary points for f(x) are −2 + √5 and −2 − √5 .
Week 2 ()
Consider the following optimization problem:
Week 3 () max f(x), where f(x) = x4 + 7x3 + 5x2 − 17x + 3
x∈R

Week 4 () Let x∗ be the maximizer of f(x) .

2) What is the second order sufficient condition for x∗ to be the maximizer of the function 1 point
Optimization for
f(x) ?
Data Science
(unit?

1 of 5 04-09-2024, 01:58 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=220

unit=55&lesson 4x3 + 21x2 + 10x − 17 = 0


=56)
12x2 + 42x + 10 = 0
Unconstrained
Multivariate
12x2 + 42x + 10 > 0
Optimization
(unit?
12x2 + 42x + 10 < 0
unit=55&lesson
=57) No, the answer is incorrect.
Score: 0
Unconstrained Accepted Answers:
Multivariate 12x2 + 42x + 10 < 0
Optimization (
3) Find the value of x∗ . 1 point
Continued )
(unit?
−4.48
unit=55&lesson
=58)
0.66
−1.43
Gradient (
4.45
Steepest )
Descent ( OR ) Yes, the answer is correct.
Learning Rule Score: 1
(unit? Accepted Answers:
unit=55&lesson −1.43
=59)
4) Let f(x) = 2 sin x, 0 ≤ x ≤ 2π. Select the correct options from the following: 1 point
FAQ (unit?
unit=55&lesson
π
=60) 2
is the global maximum of f(x) .

Week 4
π is the global minimum of f(x) .
Feedback Form
: Data Science 3π
for Engineers 2
is the global maximum of f(x) .
(unit?

unit=55&lesson
2
is the global minimum of f(x) .
=156)
Yes, the answer is correct.
Practice: Week Score: 1
4: Assignment Accepted Answers:
π
4 (Non Graded) 2
is the global maximum of f(x) .
(assessment? 3π
2
is the global minimum of f(x) .
name=209)

Quiz: Week 4 :
Let f(x1 , x2 ) = 2x21 + 3x1 x2 + 3x22 + x1 + 3x2 .
Assignment 4
(assessment? 5) Find the gradient for f(x) . 1 point
name=220)

4x1 + 3x2 + 1
∇f = [ ]
Week 5 ()
3x1 + 6x2 + 3
Week 6 ()
3x1 + 6x2 + 3
∇f = [ ]
Week 7 () 4x1 + 3x2 + 1

2 of 5 04-09-2024, 01:58 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=220

4x1 + 3x2
Text ∇f = [ ]
Transcripts ()
3x1 + 6x2

4x2 + 3x1 + 1
Download ∇f = [ ]
Videos () 3x2 + 6x1 + 3
Yes, the answer is correct.
Books () Score: 1
Accepted Answers:
4x1 + 3x2 + 1
Problem ∇f = [ ]
Solving 3x1 + 6x2 + 3
Session - 6) Find the stationary point for f(x1 , x2 ) . 1 point
July 2024 ()
0.6, 0.4
−0.6, −0.4
0.2, −0.6
0.2, 0.6

Yes, the answer is correct.


Score: 1
Accepted Answers:
0.2, −0.6

7) Find the Hessian matrix for f(x1 , x2 ) . 1 point

2 3
∇2 f = [ ]
3 6

3 3
∇2 f = [ ]
3 3

4 3
∇2 f = [ ]
3 6

6 3
∇2 f = [ ]
3 4
Yes, the answer is correct.
Score: 1
Accepted Answers:
4 3
∇2 f = [ ]
3 6
8) The stationary point obtained in the previous question is 1 point

maxima
minima
saddle point

Yes, the answer is correct.


Score: 1

3 of 5 04-09-2024, 01:58 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=220

Accepted Answers:
minima

9) Let f(x1 , x2 ) = 4x21 − 4x1 x2 + 2x2 . Select the correct options from the following: 1 point

(2, 4) is a stationary point of f(x) .

(0, 0) is a stationary point of f(x) .

The Hessian matrix ∇2 f is positive definite.

The Hessian matrix ∇2 f is not positive definite.

No, the answer is incorrect.


Score: 0
Accepted Answers:
The Hessian matrix ∇2 f is not positive definite.

10) In optimization problem, the function that we want to optimize is called 1 point

Decision function
Constraints function
Optimal function
Objective function

Yes, the answer is correct.


Score: 1
Accepted Answers:
Objective function

11) The optimization problem minx f(x) can also be written as maxx f(X). 1 point

True
False

Yes, the answer is correct.


Score: 1
Accepted Answers:
False

12) In the gradient descent algorithm, the step size should always be same for each 1 point
iteration.

True
False

Yes, the answer is correct.


Score: 1
Accepted Answers:
False

4 of 5 04-09-2024, 01:58 pm
Data Science for Engineers - - Unit 9 - Week 4 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=55&assessment=220

5 of 5 04-09-2024, 01:58 pm
Data Science for Engineers - - Unit 10 - Week 5 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=63&assessment=210

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 5: Assignment 5 (Non


outline
Graded)
About NPTEL Assignment not submitted
()
Note : This assignment is only for practice purpose and it will not be counted towards the
How does an Final score
NPTEL online
course work? 1) For a function f(x, y) = 2x2 − xy + y 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))
Setup Guide
(0,1)
()
(-1,0)
Pre Course (1,0)
Material () (1,1)

Yes, the answer is correct.


Week 0 () Score: 1
Accepted Answers:
Week 1 () (1,1)

2) The Hessian matrix of f(x, y) = 2x2 − xy + y 2 − 3x − y is 1 point


Week 2 ()

−4 1
[ ]
Week 3 ()
1 −2
Week 4 ()
1 −4
[ ]
Week 5 () −2 1

1 of 3 04-09-2024, 01:59 pm
Data Science for Engineers - - Unit 10 - Week 5 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=63&assessment=210

Multivariate
4 −1
Optimization
[ ]
With Equality −1 2
Constraints
Yes, the answer is correct.
(unit? Score: 1
unit=63&lesson
Accepted Answers:
=64)
4 −1
[ ]
Multivariate −1 2
Optimization
With Inequality
3) The Eigenvalues of Hessian matrix of f(x, y) = 2x2 − xy + y 2 − 3x − y is 1 point
Constraints
-1.585786, -4.414214
(unit?
unit=63&lesson 3.828427, -1.828427
=65) 4.414214, 1.585786
-3.828427, 1.828427
Introduction to
Data Science Yes, the answer is correct.
(unit? Score: 1
unit=63&lesson Accepted Answers:
=66) 4.414214, 1.585786

Solving Data 4) The Hessian matrix of f(x, y) = 2x2 − xy + y 2 − 3x − y is 1 point


Analysis
Problems - A positive definite
Guided positive semidefinite
Thought
negative definite
Process (unit?
unit=63&lesson
negative semidefinite
=67) Yes, the answer is correct.
Score: 1
Dataset (unit?
Accepted Answers:
unit=63&lesson
positive definite
=68)
5) The function f(x, y) = 2x2 − 2y 2 1 point
FAQ (unit?
unit=63&lesson
has no stationary point
=69)
has a stationary point at (1,1)
Practice: Week has a stationary point at (1,-1)
5: Assignment
has a stationary point at (0,0)
5 (Non
Graded) Yes, the answer is correct.
(assessment? Score: 1
name=210) Accepted Answers:
has a stationary point at (0,0)
Week 5
Feedback Form Check Answers and Submit
: Data Science
for Engineers Your score is: 5/5
(unit?
unit=63&lesson
=157)

Quiz: Week 5 :

2 of 3 04-09-2024, 01:59 pm
Data Science for Engineers - - Unit 10 - Week 5 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=63&assessment=210

Assignment 5
(assessment?
name=221)

Week 6 ()

Week 7 ()

Text
Transcripts ()

Download
Videos ()

Books ()

Problem
Solving
Session -
July 2024 ()

3 of 3 04-09-2024, 01:59 pm
Data Science for Engineers - - Unit 10 - Week 5 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=63&assessment=221

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

gireesh218@gmail.com 

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

Course Week 5 : Assignment 5


outline The due date for submitting this assignment has passed.
Due on 2024-08-28, 23:59 IST.
About NPTEL
()
Assignment submitted on 2024-08-27, 15:08 IST
How does an 1) The values of μ1 , μ2 and μ3 while evaluating the Karush-Kuhn-Tucker (KKT) 1 point
NPTEL online condition with all the constraints being inactive are
course work?
()
μ 1 = μ2 = μ3 = 1
Setup Guide
μ 1 = μ2 = μ3 = 0
()
μ1 = μ3 = 0, μ2 = 1
Pre Course
Material () μ1 = μ2 = 0, μ3 = 1
Yes, the answer is correct.
Week 0 () Score: 1
Accepted Answers:
Week 1 () μ 1 = μ2 = μ3 = 0
2) Gradient based algorithm methods compute 1 point
Week 2 ()
only step length at each iteration
Week 3 () both direction and step length at each iteration
only direction at each iteration
Week 4 () none of the above

Week 5 () Yes, the answer is correct.


Score: 1
Multivariate Accepted Answers:

1 of 4 04-09-2024, 01:59 pm
Data Science for Engineers - - Unit 10 - Week 5 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=63&assessment=221

Optimization both direction and step length at each iteration


With Equality
Constraints 3) The point on the plane x + y − 2z = 6 that is closest to the origin is 1 point
(unit?
(0, 0, 0)
unit=63&lesson
=64) (1, 1, 1)
(−1, 1, 2)
Multivariate
Optimization (1, 1, −2)
With Inequality Yes, the answer is correct.
Constraints Score: 1
(unit? Accepted Answers:
unit=63&lesson (1, 1, −2)
=65)
4) Find the maximum value of f(x, y) = 49 − x2 − y 2 subject to the constraints 1 point
Introduction to x + 3y = 10.
Data Science
(unit? 49
unit=63&lesson
46
=66)
59
Solving Data 39
Analysis
Problems - A Yes, the answer is correct.
Score: 1
Guided
Thought Accepted Answers:
Process (unit? 39

5) The minimum value of f(x, y) = x2 + 4y 2 − 2x + 8y subject to the constraint


unit=63&lesson
1 point
=67)
x + 2y = 7 occurs at the below point:
Dataset (unit?
unit=63&lesson (5, 5)
=68) (−5, 5)
(1, 5)
FAQ (unit?
unit=63&lesson (5, 1)
=69)
Yes, the answer is correct.
Score: 1
Practice: Week
5: Assignment Accepted Answers:
(5, 1)
5 (Non Graded)
(assessment? 6) Which of the following statements is/are NOT TRUE with respect to the multi variate 1 point
name=210)
optimization?
Week 5 I - The gradient of a function at a point is parallel to the contours
Feedback Form II - Gradient points in the direction of greatest increase of the function
: Data Science III - Negative gradients points in the direction of the greatest decrease of the function
for Engineers IV - Hessian is a non-symmetric matrix
(unit?
unit=63&lesson I
=157) II and III
I and IV
III and IV

Yes, the answer is correct.

2 of 4 04-09-2024, 01:59 pm
Data Science for Engineers - - Unit 10 - Week 5 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=63&assessment=221

Quiz: Week 5 :
Score: 1
Assignment 5 Accepted Answers:
(assessment? I and IV
name=221)
7) The solution to an unconstrained optimization problem is always the same as the 1 point
solution to the constrained one.
Week 6 ()
True
Week 7 ()
False

Text Yes, the answer is correct.


Score: 1
Transcripts ()
Accepted Answers:
False
Download
Videos () 8) A manufacturer incurs a monthly fixed cost of $7350 and a variable cost, 1 point
C(m) = 0.001m3 − 2m2 + 324m dollars. The revenue generated by selling these units is,
Books () R(m) = −6m2 + 1065m . How many units produced every month (m) will generate maximum
profit?
Problem
Solving
m = 46
Session -
July 2024 () m = 90

m = 231

m = 125
Yes, the answer is correct.
Score: 1
Accepted Answers:
m = 90
9) Consider an optimization problem minx1 ,x2 x2 − xy + y 2 subject to the constraints 1 point
2x + y ≤ 1
x + 2y ≥ 2
x ≥ −1
Find the lagrangian function for the above optimization problem.

L(x, y, µ1 , µ2 , µ3 ) = x2 − xy + y 2 + µ1 (2x + y − 1) + µ2 (2 − x − 2y) + µ3 (−x − 1)

L(x, y, µ1 , µ2 , µ3 ) = x2 − xy + y 2 + µ1 (2x + y − 1) + µ2 (x + 2y − 2) + µ3 (−x − 1)

L(x, y, µ1 , µ2 , µ3 ) = x2 − xy + y 2 + µ1 (2x + y − 1) + µ2 (x + 2y − 2) + µ3 (x + 1)

L(x, y, µ1 , µ2 , µ3 ) = x2 − xy + y 2 + µ1 (1 − 2x − y) + µ2 (2 − x − 2y) + µ3 (−x − 1)


No, the answer is incorrect.
Score: 0
Accepted Answers:
L(x, y, µ1 , µ2 , µ3 ) = x2 − xy + y 2 + µ1 (2x + y − 1) + µ2 (2 − x − 2y) + µ3 (−x − 1)

3 of 4 04-09-2024, 01:59 pm
Data Science for Engineers - - Unit 10 - Week 5 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=63&assessment=221

4 of 4 04-09-2024, 01:59 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=211

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 6: Assignment 6 (Non


outline
Graded)
About NPTEL Assignment not submitted
()
Note : This assignment is only for practice purpose and it will not be counted towards the
How does an Final score
NPTEL online
course work? 1) The higher the value of R2 for a model, the observations are more closely grouped 1 point
() around:

the origin
Setup Guide
() the best fit line
average values of the predicted variable
Pre Course the intercept
Material ()
Yes, the answer is correct.
Score: 1
Week 0 () Accepted Answers:
the best fit line
Week 1 ()
2) The standard assumption of ordinary least squares regression is that: 1 point

Week 2 () there are no errors in measurements of independent and dependent variables


there are errors only in measurement of independent variable
Week 3 ()
there are errors only in measurement of dependent variable
there are errors both in measurements of independent and dependent variables
Week 4 ()
Yes, the answer is correct.
Week 5 () Score: 1
Accepted Answers:

1 of 4 04-09-2024, 02:00 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=211

there are errors only in measurement of dependent variable


Week 6 ()
3) The relationship between the dependent and independent variables in a simple linear 1 point
Module :
regression is described by
Predictive
Modelling (unit? F-statistic
unit=72&lesson
predicted value and error
=73)
standardised residuals
Linear coefficient and intercept
Regression
(unit? Yes, the answer is correct.
unit=72&lesson Score: 1
=74) Accepted Answers:
coefficient and intercept
Model
Assessment 4) The Pearson’s correlation coefficient between two parameters is calculated to be 0.10. 1 point
(unit? What can be inferred from the correlation coefficient regarding
unit=72&lesson the relationship between the two parameters?
=75)
There exists a weak negative relationship between two variables
Diagnostics to
There exists a strong negative relationship between two variables
Improve Linear
Model Fit (unit? There exists a weak positive relationship between two variables
unit=72&lesson Correlation coefficient cannot possess this value
=76)
Yes, the answer is correct.
Simple Linear Score: 1
Regression Accepted Answers:
Model Building There exists a weak positive relationship between two variables
(unit?
5) Standardised residuals have:- 1 point
unit=72&lesson
=77) binomial distribution with n degrees of freedom
Simple Linear t distribution with n-2 degrees of freedom
Regression log-normal distribution with n-2 degrees of freedom
Model
chi-square distribution with n degrees of freedom
Assessment
(unit? Yes, the answer is correct.
unit=72&lesson Score: 1
=78) Accepted Answers:
t distribution with n-2 degrees of freedom
Simple Linear
Regression Check Answers and Submit
Model
Assessment ( Your score is: 5/5
Continued )
(unit?
unit=72&lesson
=79)

2 of 4 04-09-2024, 02:00 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=211

Muliple Linear
Regression
(unit?
unit=72&lesson
=80)

Dataset (unit?
unit=72&lesson
=81)

FAQ (unit?
unit=72&lesson
=82)

Practice: Week
6: Assignment
6 (Non
Graded)
(assessment?
name=211)

Quiz: Week 6 :
Assignment 6
(assessment?
name=222)

Week 6
Feedback Form
: Data Science
for Engineers
(unit?
unit=72&lesson
=158)

Week 7 ()

Text
Transcripts ()

Download
Videos ()

Books ()

Problem
Solving
Session -
July 2024 ()

3 of 4 04-09-2024, 02:00 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=211

4 of 4 04-09-2024, 02:00 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=222

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

gireesh218@gmail.com 

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

Course Week 6 : Assignment 6


outline The due date for submitting this assignment has passed.
Due on 2024-09-04, 23:59 IST.
About NPTEL
()
Assignment submitted on 2024-09-02, 11:24 IST
How does an For the following set of questions 1, 2, 3, 4, 5 use the dataset bonds.txt (https://drive.google.com/
NPTEL online file/d/1EiuIWRYEM7f1iG4m1EisiVJtcAxrUwzp/view?usp=sharing). This dataset contains 2
course work? variables, Coupon rate and Bid price.
()
1) What is the relationship between the variables, Coupon rate and Bid price? 1 point
Setup Guide
Coupon rate = 99.95 + 0.24 * Bid price
()
Bid price = 99.95 + 0.24 * Coupon rate

Pre Course Bid price = 74.7865 + 3.066 * Coupon rate


Material () Coupon rate = 74.7865 + 3.066 * Bid price

No, the answer is incorrect.


Week 0 () Score: 0
Accepted Answers:
Week 1 () Bid price = 74.7865 + 3.066 * Coupon rate

2) Choose the correct option that best describes the relation between the variables 1 point
Week 2 ()
Coupon rate and Bid price in the given data.

Week 3 () Strong positive correlation


Weak positive correlation
Week 4 () Strong negative correlation
Weak negative correlation
Week 5 ()
Yes, the answer is correct.
Score: 1

1 of 4 09-09-2024, 01:12 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=222

Accepted Answers:
Week 6 () Strong positive correlation

Module : 3) What is the R-Squared value of the model obtained in Q1? 1 point
Predictive
Modelling (unit? 0.2413
unit=72&lesson 0.12
=73)
0.7516
Linear 0.5
Regression
Yes, the answer is correct.
(unit?
Score: 1
unit=72&lesson
Accepted Answers:
=74)
0.7516
Model
4) What is the adjusted R-Squared value of the model obtained in Q1? 1 point
Assessment
(unit?
0.22
unit=72&lesson
0.7441
=75)
0.088
Diagnostics to
0.5
Improve Linear
Model Fit (unit? Yes, the answer is correct.
unit=72&lesson Score: 1
=76) Accepted Answers:
0.7441
Simple Linear
Regression 5) Based on the model relationship obtained from Q1, what is the residual error obtained 1 point
Model Building while calculating the bid price of a bond with coupon rate of 3?
(unit?
unit=72&lesson 10.5155
=77) -10.5155
Simple Linear 6.17
Regression 0
Model
Yes, the answer is correct.
Assessment
Score: 1
(unit?
Accepted Answers:
unit=72&lesson
10.5155
=78)
6) State whether the following statement is True or False. 1 point
Simple Linear
Regression
Covariance is a better metric to analyze the association between two numerical variables than
Model correlation.
Assessment (
True
Continued )
(unit? False
unit=72&lesson
Yes, the answer is correct.
=79) Score: 1
Accepted Answers:
False

7) If R2 is 0.6, SSR=200 and SST=500, then SSE is 1 point

500

2 of 4 09-09-2024, 01:12 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=222

Muliple Linear 200


Regression 300
(unit?
None of the above
unit=72&lesson
=80) Yes, the answer is correct.
Score: 1
Dataset (unit? Accepted Answers:
unit=72&lesson 300
=81)
8) Linear Regression is an optimization problem where we attempt to minimize 1 point
FAQ (unit?
unit=72&lesson SSR (residual sum-of-squares)
=82)
SST (total sum-of-squares)
Practice: Week SSE (sum-squared error)
6: Assignment Slope
6 (Non Graded)
(assessment? Yes, the answer is correct.
Score: 1
name=211)
Accepted Answers:
Quiz: Week 6 : SSE (sum-squared error)
Assignment 6
(assessment? 9) The model built from the data given below is Y = 0.2x + 60. Find the values for R2 1 point
name=222) and Adjusted R2 .

Week 6
Feedback Form
: Data Science
for Engineers
(unit?
unit=72&lesson
=158)
R2 is 0.022 and Adjusted R2 is −0.303
Week 7 ()
R2 is 0.022 and Adjusted R2 is −0.0303
Week 8 ()
R2 is 0.022 and Adjusted R2 is 0.303
Text None of the above
Transcripts ()
No, the answer is incorrect.
Score: 0
Download Accepted Answers:
Videos () R2 is 0.022 and Adjusted R2 is −0.303
10) Identify the parameters β0 and β1 that fits the linear model β0 + β1 x using the 1 point
Books ()
following information: total sum of squares of X , S SXX = 52.53 , S SXY = 52.01 , mean of X ,

Problem X̄ =4.46, and mean of Y , Y^ =6.32.


Solving
1.9 and 0.99
Session -
10.74 and 1.01
July 2024 ()
4.42 and 1.01
None of the above

Yes, the answer is correct.


Score: 1

3 of 4 09-09-2024, 01:12 pm
Data Science for Engineers - - Unit 11 - Week 6 https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=72&assessment=222

Accepted Answers:
1.9 and 0.99

4 of 4 09-09-2024, 01:12 pm
9/12/24, 10:21 AM Data Science for Engineers - - Unit 12 - Week 7

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 7: Assignment 7 (Non


outline
Graded)
About Assignment not submitted
NPTEL ()
Note : This assignment is only for practice purpose and it will not be counted towards the
How does an Final score
NPTEL
online 1) Which one of the following is called as the odds ratio? 1 point
course
work? () The ratio of the probability of an event occurring to the probability of the event not
occurring
Setup Guide The ratio of the probability of an event not occurring to the probability of the event
() occurring
The probability of an event occurring
Pre Course The probability of an event not occurring
Material ()
Yes, the answer is correct.
Score: 1
Week 0 ()
Accepted Answers:
The ratio of the probability of an event occurring to the probability of the event not occurring
Week 1 ()

2) In confusion matrix, the misclassification rate is given by 1 point


Week 2 ()

False Negative+False positive


Week 3 ()
Total number of samples

Week 4 () True Negative+False positive


Total number of samples

Week 5 () False Negative+True positive


Total number of samples
Week 6 ()

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=85&assessment=212 1/3
9/12/24, 10:21 AM Data Science for Engineers - - Unit 12 - Week 7

True Negative+True positive


Week 7 () Total number of samples

Yes, the answer is correct.


Cross Score: 1
Validation
Accepted Answers:
(unit? False Negative+False positive
unit=85&lesso Total number of samples
n=86)
3) The value of both sensitivity and specificity lies between 1 point
Multiple Linear
Regression -1 and 1
Modelling -1 and 0
Building and
-2 and 2
Selection
(unit? 0 and 1
unit=85&lesso
Yes, the answer is correct.
n=87) Score: 1
Classification Accepted Answers:
(unit? 0 and 1
unit=85&lesso
n=88) 4) In Logistic Regression a linear relationship is assumed between the independent 1 point
variables and the
Logisitic
Regression
Sigmoid of the dependent variable
(unit?
unit=85&lesso Log of the dependent variable
n=89) Sine of the dependent variable

Logisitic None of the above


Regression ( Yes, the answer is correct.
Continued ) Score: 1
(unit? Accepted Answers:
unit=85&lesso None of the above
n=90)

Performance 5) The confusion matrix for a binary classifier gives 1 point


Measures
(unit? Only True Positives and True Negatives
unit=85&lesso Only False Positives and False Negatives
n=91)
Only True Positives, False Positives and False Negatives
Logisitic True Positives, False Positives, True Negatives and False Negatives
Regression
Implementatio Yes, the answer is correct.
Score: 1
n in R (unit?
Accepted Answers:
unit=85&lesso
True Positives, False Positives, True Negatives and False Negatives
n=92)

Dataset (unit? Check Answers and Submit


unit=85&lesso
n=93) Your score is: 5/5

FAQ (unit?
unit=85&lesso
n=94)

Practice:
Week 7:
Assignment 7

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=85&assessment=212 2/3
9/12/24, 10:21 AM Data Science for Engineers - - Unit 12 - Week 7

(Non Graded)
(assessment?
name=212)

Quiz: Week 7 :
Assignment 7
(assessment?
name=223)

Week 7
Feedback
Form : Data
Science for
Engineers
(unit?
unit=85&lesso
n=159)

Week 8 ()

Text
Transcripts
()

Download
Videos ()

Books ()

Problem
Solving
Session -
July 2024 ()

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=85&assessment=212 3/3
9/12/24, 10:18 AM Data Science for Engineers - - Unit 12 - Week 7

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

gireesh218@gmail.com 

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

Course Week 7 : Assignment 7


outline The due date for submitting this assignment has passed.
Due on 2024-09-11, 23:59 IST.
About
NPTEL ()
Assignment submitted on 2024-09-09, 15:11 IST
How does an 1) Which among the following is not a type of cross-validation technique? 1 point
NPTEL
online LOOCV
course k-fold croos validation
work? ()
Validation set approach
Bias variance trade off
Setup Guide
() Yes, the answer is correct.
Score: 1
Pre Course Accepted Answers:
Material () Bias variance trade off

Week 0 () 2) Which among the following is a classification problem? 1 point

Predicting the average rainfall in a given month.


Week 1 ()
Predicting whether a patient is diagnosed with a disease or not.
Week 2 () Predicting the price of a house.
Predicting whether it will rain or not tomorrow.
Week 3 ()
Yes, the answer is correct.
Score: 1
Week 4 () Accepted Answers:
Predicting whether a patient is diagnosed with a disease or not.
Week 5 () Predicting whether it will rain or not tomorrow.

Week 6 ()

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=85&assessment=223 1/4
9/12/24, 10:18 AM Data Science for Engineers - - Unit 12 - Week 7

Consider the following confusion matrix for the classication of Hatchback and SUV:
Week 7 ()

Cross
Validation
(unit?
unit=85&lesso
n=86)

Multiple Linear
Regression
Modelling 3) Find the accuracy of the model. 1 point
Building and
Selection 0.95
(unit? 0.55
unit=85&lesso
0.45
n=87)
0.88
Classification
(unit? Yes, the answer is correct.
Score: 1
unit=85&lesso
n=88)
Accepted Answers:
0.95
Logisitic
Regression 4) Find the sensitivity of the model. 1 point
(unit?
unit=85&lesso 0.95
n=89)
0.55
Logisitic 1
Regression (
0.88
Continued )
(unit? Yes, the answer is correct.
unit=85&lesso Score: 1
n=90) Accepted Answers:
1
Performance
Measures
(unit? 5) Under the ‘family’ parameter of glm() function, which one of the following 1 point
unit=85&lesso distributions correspond to logistic regression for a variable with binary output?
n=91)
Binomial
Logisitic
Gaussian
Regression
Implementatio Gamma
n in R (unit? Poisson
unit=85&lesso
n=92)
Yes, the answer is correct.
Score: 1
Dataset (unit? Accepted Answers:
unit=85&lesso Binomial
n=93)

FAQ (unit? Use the following information to answer Q6, Q7, Q8, Q9, and Q10:
unit=85&lesso
n=94) Load the dataset iris.csv
Practice: (https://drive.google.com/file/d/1SqGPxYa8xCDbC5ZsLN0tCzUceoVmR_6e/view?usp=sharing)
Week 7: as a dataframe irisdata, with the first column as index headers, first row as column headers,
Assignment 7 dependent variable as factor variable, and answer the following questions.

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=85&assessment=223 2/4
9/12/24, 10:18 AM Data Science for Engineers - - Unit 12 - Week 7

(Non Graded)
(assessment? The iris dataset contains four Sepal and Petal features (Sepal Length, Sepal Width, Petal
name=212) Length, Petal Width, all in cm) of 50 equal samples of 3 different species of the iris flower
Quiz: Week 7 (Setosa, Versicolor, and Virginica).
: Assignment
6) What is the dimension of the dataframe? 1 point
7
(assessment?
(150, 5)
name=223)
(150, 4)
Week 7
(50, 5)
Feedback
Form : Data None of the above
Science for Yes, the answer is correct.
Engineers Score: 1
(unit? Accepted Answers:
unit=85&lesso (150, 5)
n=159)

7) What can you comment on the distribution of the independent variables in the 1 point
Week 8 ()
dataframe?

Text The variables Sepal Length and Sepal Width are not normally distributed
Transcripts
All the variables are normally distributed
()
The variable Petal Length alone is normally distributed
Download None of the above
Videos ()
Yes, the answer is correct.
Score: 1
Books () Accepted Answers:
All the variables are normally distributed
Problem
Solving 8) How many rows in the dataset contain missing values? 1 point
Session -
July 2024 () 10
5
25
0

Yes, the answer is correct.


Score: 1
Accepted Answers:
0

9) Which of the following code blocks can be used to summarize the data (finding the 1 point
mean of the columns PetalLength and PetalWidth), similar to the one given below.

lapply(irisdata[, 3:4], mean)


sapply(irisdata[, 3:4], 2, mean)
apply(irisdata[, 3:4], 2, mean)
apply(irisdata[, 3:4], 1, mean)

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=85&assessment=223 3/4
9/12/24, 10:18 AM Data Science for Engineers - - Unit 12 - Week 7

Yes, the answer is correct.


Score: 1
Accepted Answers:
lapply(irisdata[, 3:4], mean)
apply(irisdata[, 3:4], 2, mean)

10) What can be interpreted from the plot shown below? 1 point

Sepal widths of Versicolor flowers are lesser than 3 cm.


Sepal lengths of Setosa flowers are lesser than 6 cm.
Sepal lengths of Virginica flowers are greater than 6 cm.
Sepals of Setosa flowers are relatively more wider than Versicolor flowers.

Yes, the answer is correct.


Score: 1
Accepted Answers:
Sepal lengths of Setosa flowers are lesser than 6 cm.
Sepals of Setosa flowers are relatively more wider than Versicolor flowers.

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=85&assessment=223 4/4
9/19/24, 9:25 AM Data Science for Engineers - - Unit 13 - Week 8

Answer Submitted.
X

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

gireesh218@gmail.com 

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

Course Week 8: Assignment 8 (Non


outline
Graded)
About Assignment not submitted
NPTEL ()
Note : This assignment is only for practice purpose and it will not be counted towards the
How does an Final score
NPTEL
online 1) The most commonly used distance metric to calculate distance between centroid of 1 point
course each cluster and data points in K-means algorithm is
work? ()
Chebyshev distance
Setup Guide Manhattan
() Euclidean distance
None of the above
Pre Course
Material () Yes, the answer is correct.
Score: 1
Accepted Answers:
Week 0 ()
Euclidean distance

Week 1 ()
2) Which of the following statement is NOT TRUE about kNN algorithm? 1 point

Week 2 () It is a non-parametric algorithm


It is an instance based learning algorithm
Week 3 ()
Explicit training and testing phases are involved while implementing kNN

Week 4 () None of the above

Yes, the answer is correct.


Week 5 () Score: 1
Accepted Answers:
Week 6 () Explicit training and testing phases are involved while implementing kNN

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=97&assessment=213 1/3
9/19/24, 9:25 AM Data Science for Engineers - - Unit 13 - Week 8

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


Week 7 ()
variables with higher magnitude will influence the results more
Week 8 ()
distance calculations are affected by the magnitude of the variables
K - Nearest The data is large and has many features
Neighbors Both A and B
(kNN) (unit?
unit=97&lesso Yes, the answer is correct.
Score: 1
n=98)
Accepted Answers:
K - Nearest variables with higher magnitude will influence the results more
Neighbors
implementatio 4) Which of the following is TRUE with respect to K means clustering? 1 point
n in R (unit?
unit=97&lesso The inter cluster distance is minimized and intra cluster distance is maximized
n=99)
The inter cluster distance is maximized and intra cluster distance is minimized
K - means Both inter cluster and intra cluster distance are minimized
Clustering
Both inter cluster and intra cluster distance are maximized
(unit?
unit=97&lesso Yes, the answer is correct.
n=100) Score: 1
Accepted Answers:
K - means
The inter cluster distance is maximized and intra cluster distance is minimized
implementatio
n in R (unit?
Check Answers and Submit
unit=97&lesso
n=101)
Your score is: 4/4
FAQ (unit?
unit=97&lesso
n=102)

Data Science
for engineers -
Summary
(unit?
unit=97&lesso
n=103)

Datasets
(unit?
unit=97&lesso
n=104)

Practice:
Week 8:
Assignment 8
(Non Graded)
(assessment?
name=213)

Quiz: Week 8 :
Assignment 8
(assessment?
name=224)

Week 8
Feedback

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=97&assessment=213 2/3
9/19/24, 9:25 AM Data Science for Engineers - - Unit 13 - Week 8

Form : Data
Science for
Engineers
(unit?
unit=97&lesso
n=160)

Text
Transcripts
()

Download
Videos ()

Books ()

Problem
Solving
Session -
July 2024 ()

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=97&assessment=213 3/3
9/19/24, 9:25 AM Data Science for Engineers - - Unit 13 - Week 8

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

gireesh218@gmail.com 

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

Course Week 8 : Assignment 8


outline The due date for submitting this assignment has passed.
Due on 2024-09-18, 23:59 IST.
About
NPTEL ()
Assignment submitted on 2024-09-16, 15:47 IST
How does an Consider the dataset “USArrests.csv”
NPTEL (https://drive.google.com/file/d/1R3h4MooUZdEBbgbX5dLnftHLvlxqENNu/view?
online usp=sharing). Answer questions 1 to 4 based on the information given below:
course
work? () This data set contains statistics, in arrests per 100,000 residents for assault, murder, and rape in
each of the 50 US states in 1973. Also given is the percent of the population living in urban
Setup Guide areas.
()

Pre Course
Material ()

Week 0 ()

Week 1 ()

Week 2 ()
• Set the column “States” as index of the data frame while reading the data
• Set the random number generator to set.seed(123)
Week 3 ()
• Normalize the data using scale function and build the K-means algorithm with the
given conditions:
Week 4 () – number of clusters = 4
– nstart=20
Week 5 ()
1) According to the built model, the within cluster sum of squares for each cluster is 1 point
Week 6 () _______________ (the order of values in each option could be different):-

8.316061 11.952463 16.212213 19.922437

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=97&assessment=224 1/3
9/19/24, 9:25 AM Data Science for Engineers - - Unit 13 - Week 8

Week 7 () 7.453059 12.158682 13.212213 21.158766


8.316061 13.952463 15.212213 19.922437
Week 8 () None of the above

K - Nearest Yes, the answer is correct.


Score: 1
Neighbors
Accepted Answers:
(kNN) (unit?
8.316061 11.952463 16.212213 19.922437
unit=97&lesso
n=98) 2) According to the built model, the size of each cluster is_________________ (the 1 point
K - Nearest order of values in each option could be different):-
Neighbors
implementatio 13 13 7 14
n in R (unit? 11 18 25 24
unit=97&lesso
8 13 16 13
n=99)
None of the above
K - means
Yes, the answer is correct.
Clustering
Score: 1
(unit?
Accepted Answers:
unit=97&lesso
8 13 16 13
n=100)

K - means 3) The Between Cluster Sum-of-Squares (BCSS) value of the built K-means model is 1 point
implementatio __________(Choose the appropriate range)
n in R (unit?
unit=97&lesso 100 - 200
n=101)
200 - 300
FAQ (unit? 300 – 350
unit=97&lesso
None of the above
n=102)
Yes, the answer is correct.
Data Science Score: 1
for engineers -
Accepted Answers:
Summary
100 - 200
(unit?
unit=97&lesso
n=103) 4) The Total Sum-of-Squares value of the built k-means model is ______________ 1 point
(Choose the appropriate range)
Datasets
(unit? 100 - 200
unit=97&lesso
200 - 300
n=104)
300 – 350
Practice:
None of the above
Week 8:
Assignment 8 Yes, the answer is correct.
(Non Graded) Score: 1
(assessment? Accepted Answers:
name=213) 100 - 200

Quiz: Week 8
5) Which of the statement is INCORRECT about KNN algorithm? 1 point
: Assignment
8
KNN works ONLY for binary classification problems
(assessment?
name=224) If k=1, then the algorithm is simply called the nearest neighbour algorithm
Number of neighbours (K) will influence classification output

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=97&assessment=224 2/3
9/19/24, 9:25 AM Data Science for Engineers - - Unit 13 - Week 8

Week 8 None of the above


Feedback
Yes, the answer is correct.
Form : Data
Score: 1
Science for
Accepted Answers:
Engineers
KNN works ONLY for binary classification problems
(unit?
unit=97&lesso 6) K means clustering algorithm clusters the data points based on:- 1 point
n=160)
dependent and independent variables
Text
the eigen values
Transcripts
() distance between the points and a cluster centre
None of the above
Download Yes, the answer is correct.
Videos () Score: 1
Accepted Answers:
Books () distance between the points and a cluster centre

Problem 7) The method / metric which is NOT useful to determine the optimal number of 1 point
Solving clusters in unsupervised clustering algorithms is
Session -
July 2024 () Scatter plot
Elbow method
Dendrogram
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
Scatter plot

8) The unsupervised learning algorithm which aims to partition n observations into k 1 point
clusters in which each observation belongs to the cluster with the nearest centroid is

Hierarchical clustering
K-means clustering
KNN
None of the above

Yes, the answer is correct.


Score: 1
Accepted Answers:
K-means clustering

https://onlinecourses.nptel.ac.in/noc24_cs133/unit?unit=97&assessment=224 3/3

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy