Idsup Mid Sem Exam-2023
Idsup Mid Sem Exam-2023
5. (a) Write a python program to compute the mode for the 2 MID-SEMESTER EXAMINATION, April-2023
following animal dataset. Introduction to Data Science using Python (CSE 3054)
animal=[‘cat’,’tiger’,’dog’,’cat’,’lion’,’dog’
Programme: B.Tech (CSE) Semester: 6th
,’cat’,’dog’,’cat’,’cow’,’cat’,’tiger’,’lion’]
Full Marks: 30 Time: 2 Hours
Write the python script to compute the conditional Answer all questions. Each question carries equal mark.
probability for the above two cases.
1. (a) Construct a student network using python code from the 2
(c) Write a python function for normal distribution 2 following datasets (students and student_pairs).
probability density function (PDF) named normal_pdf
which takes three parameters- x, mu, and sigma. And students = [
{ "id": 0, "name": "Rahul" },
plot the graph of this function for different values of mu
{ "id": 1, "name": "Ashok" },
and sigma. { "id": 2, "name": "Sarita" },
{ "id": 3, "name": "Piyus" },
i. mu = 0, sigma = 1 { "id": 4, "name": "Puja" },
ii. mu = -1, sigma = 1 { "id": 5, "name": "Harish" },
{ "id": 6, "name": "Rohan" },
*End of Questions* { "id": 7, "name": "Sunil" },
{ "id": 8, "name": "Rajesh" },
{ "id": 9, "name": "Amlan" },
display(1,2,3, key1='soa',key2='iter') 4. (a) Compute the covariance and Correlation between the 2
number of hours watching movies per week and the
Can the positional arguments follow the keyword number of hours sleeping per week for a group of 4
arguments in the above code? students.
Page 2 of 4 page 3 of 4