7/23/2021 Python for Data Science - - Unit 2 - Week 0
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
prasenjitdhar.cse@gmail.com
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL) » Python for Data Science (course)
Course outline
Assignment 0
How does an NPTEL Assignment not submitted Due date: 2021-07-26, 23:59 IST.
online course work? Note : This assignment is only for practice purpose and it will not be counted towards the Final score
Week 0
Python Setup Guide
Types of questions:
(unit?
unit=16&lesson=17)
MCQs - Multiple Choice Questions (a question has only one correct answer)
Quiz : Assignment 0
(assessment? MSQs –
name=87) Multiple Select Questions (a question can have two, three or four correct options)
In this case, equal weightage must be given to all options
Week 1
True/False - The learner has to choose either TRUE or FALSE from a given statement.
https://onlinecourses.nptel.ac.in/noc21_cs78/unit?unit=16&assessment=87 1/6
7/23/2021 Python for Data Science - - Unit 2 - Week 0
1) Which of the following statements are TRUE in accordance with De Morgan’s laws for 2 given events A and B? 1 point
¯¯¯¯¯¯¯¯¯¯¯¯
¯ ¯¯
¯¯ ¯¯
¯¯
P (A ∪ B) = P (A ∩ B)
¯¯¯¯¯¯¯¯¯¯¯¯
¯ ¯¯
¯¯ ¯¯
¯¯
P (A ∩ B) = P (A) ∩ P (B)
¯¯¯¯¯¯¯¯¯¯¯¯
¯ ¯¯
¯¯ ¯¯
¯¯
P (A ∩ B) = P (A ∪ B)
P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
Yes, the answer is correct.
Score: 1
Accepted Answers:
¯¯¯¯¯¯¯¯¯¯¯¯
¯ ¯¯
¯¯ ¯¯
¯¯
P (A ∪ B) = P (A ∩ B)
¯¯¯¯¯¯¯¯¯¯¯¯
¯ ¯¯
¯¯ ¯¯
¯¯
P (A ∩ B) = P (A ∪ B)
2) A deck of 52 cards has 2 cards missing. 3 cards are drawn at random and are found to be hearts. What is the probability 1 point
that all the missing cards are hearts? (approx.)
0.0081
0.0572
0.0004
0.0382
Yes, the answer is correct.
Score: 1
Accepted Answers:
0.0382
3) Determine the total number of outcomes in the sample space if 2 letters are chosen from the letters a, e, i, o, u with 1 point
repetition
25
10
20
https://onlinecourses.nptel.ac.in/noc21_cs78/unit?unit=16&assessment=87 2/6
7/23/2021 Python for Data Science - - Unit 2 - Week 0
32
Yes, the answer is correct.
Score: 1
Accepted Answers:
25
4) For 2 independent events A and B, P(A | B) equals 1 point
P(B)
0
P(A)
P(A) / P(B)
Yes, the answer is correct.
Score: 1
Accepted Answers:
P(A)
5) Given a matrix A and a scalar k, (kA)−1 equals 1 point
−1
k. A
−1
A /k
−1 k
(A )
−1
|kA |. A
Yes, the answer is correct.
Score: 1
Accepted Answers:
−1
A /k
6) For normally distributed data, which of the following options are TRUE? 1 point
The values of mean and median are equal
68.2% of the population (data) falls within 1 standard deviation from the mean
https://onlinecourses.nptel.ac.in/noc21_cs78/unit?unit=16&assessment=87 3/6
7/23/2021 Python for Data Science - - Unit 2 - Week 0
90% of the population (data) falls within 3 standard deviations from the mean
None of the above
Partially Correct.
Score: 0.5
Accepted Answers:
The values of mean and median are equal
68.2% of the population (data) falls within 1 standard deviation from the mean
7) 3 natural numbers are chosen at random. What is the probability that their product always yields an odd number? 1 point
2/3
1/8
1/6
1/2
No, the answer is incorrect.
Score: 0
Accepted Answers:
1/8
8) The mean of the first n natural numbers is 1 point
n!
(n / 2) + 1
(n + 1) / 2
n2
Yes, the answer is correct.
Score: 1
Accepted Answers:
(n + 1) / 2
9) Given [x 1 , x 2 , x 3 , . . . , x n ] are the possible values of a random variable X , and p 1 , p 2 , p 3 , . . . , p n be the 1 point
corresponding probabilities of obtaining each value x 1 , x 2 , x 3 , . . . , x n of the random variable. The mean is computed by the
formula
https://onlinecourses.nptel.ac.in/noc21_cs78/unit?unit=16&assessment=87 4/6
7/23/2021 Python for Data Science - - Unit 2 - Week 0
∑ pixi
i=1
∑ pi
i=1
∑ pixi
i=1
∑ xi
i=1
None of the above
Yes, the answer is correct.
Score: 1
Accepted Answers:
n
∑ pixi
i=1
10) State TRUE or FALSE. 1 point
Not all mutually exclusive events are exhaustive.
TRUE
FALSE
Yes, the answer is correct.
Score: 1
Accepted Answers:
TRUE
You may submit any number of times before the due date. The final submission will be considered for grading.
Check Answers
Your score is: 8.5/10
https://onlinecourses.nptel.ac.in/noc21_cs78/unit?unit=16&assessment=87 5/6
7/23/2021 Python for Data Science - - Unit 2 - Week 0
Submit Answers
https://onlinecourses.nptel.ac.in/noc21_cs78/unit?unit=16&assessment=87 6/6