Tutorial: 1 Date: 07-07-2025
1. What are the career opportunities, key job roles, top companies, and expected
salary ranges in Data Science?
2. What are the commonly used Data Science tools, their purposes, and why are
these tools important?
Tutorial: 2 Date: 14-07-2025
Module 1
1. Ten patients at a doctor’s surgery wait for the following lengths of times to see their doctor. What
is the mean, median and mode for these data?
5 min 17 min 8 min 2 min 55 min 9 min 22 min 11 min 16 min 5 min
2. The tensile strength in megapascals for 15 samples of tin were determined and found to be: 34.61,
34.57, 34.40, 34.63, 34.63, 34.51, 34.49, 34.61, 34.52, 34.55, 34.58, 34.53, 34.44, 34.48 and 34.40.
Calculate the mean and standard deviation from the mean for these 15 values, correct to 4
significant figures.
Tutorial: 3 Date: 04-08-2025
Module 2
1. We have the following data from a questionnaire regarding goodness or badness
of tissue papers and data regarding two attributes, namely, acid durability and
strength, of the tissue papers.
Now, the factory produces a new tissue paper that yield X1 = 3 & X2 = 7. Can we
guess the classification of the new tissue paper?
2. Based on a survey conducted in an institution, students are classified based on the
two attributes of academic excellence (X) and other Activities (Y). Given the
following data, identify the classification of a student with X = 5 and Y = 7 using
the k-NN algorithm (choose k as 3).
X (Academic Y (Other Activities) Z(Classification
Excellence) )
8 6 Outstanding
5 6 Good
7 3 Good
6 9 Outstanding
3. Consider the dataset given below. Using k-NN algorithm, predict the class label for the new
instance with height=172 cm and weight =57 kg.
Choose k=1 and k=3
4. Consider the dataset given below. Using k-NN algorithm, predict the class label for the new instance
with brightness=20 and saturation =35. Choose k=1 and k=3.
5. Given the following dataset. Identify the T-Shirt Size of Tom having height 161 cm and weight 61kg
using k-NN algorithm. (Choose k as 3)
6. With the given data, Use k-NN algorithm to determine the Target attribute for a new instance with
X = 5 and Y =3. (Choose k as 3)
7. Consider the dataset given below. Using k-NN algorithm, predict the class label for the new instance
with brightness=20 and saturation =35. Choose k=1 and k=3.
8. Given the following dataset. Identify the T-Shirt Size of Tom having height 161 cm and weight 61kg
using k-NN algorithm. (Choose k as 3)
9. With the given data, Use k-NN algorithm to determine the Target attribute for a new instance with
X = 5 and Y =3. (Choose k as 3)
Tutorial: 4 Date: 04-08-2025
Naïve Bayes Algorithm
1. Given the data in the following table, use naive Bayes algorithm to predict the
class if Weather = Sunny and Car = Working
Weathe
Car Class
r
1 Sunny Working Go-out
2 Rainy Broken Go-out
3 Sunny Working Go-out
4 Sunny Working Go-out
5 Sunny Working Go-out
6 Rainy Broken Stay-home
7 Rainy Broken Stay-home
8 Sunny Working Stay-home
9 Sunny Broken Stay-home
10 Rainy Broken Stay-home
Ans
test instance: Weather = Sunny & Car = Working
Class labels :Go-out, Stay-home
Features (Weather : Sunny, Rainy ; Car : Working, Broken)
2. Use Naïve bayes algorithm to determine whether a red, SUV, domestic is a
Stolen car or not using the following data
Ex Colour Type Origin Stolen?
1 red sports domestic Yes
2 red sports domestic No
3 red sports domestic Yes
4 yellow sports domestic No
5 yellow sports imported Yes
6 yellow SUV imported No
7 yellow SUV imported Yes
8 yellow SUV domestic No
9 red SUV imported No
10 red sports imported Yes
Soln:
Test instance: Colour = red, Type = SUV, Origin = domestic
Features: Colour, Type, Origin
Class: Stolen (yes, no)
3. Given a training dataset. Predict the class of a new patient with the symptoms
Fever: Yes, Cough: No, Body Ache: Yes, Fatigue: No, using Naive Bayes classifier.
4. Given the following data on a certain set of patients seen by a doctor. Can the
doctor conclude that a person having chills, fever, mild headache and
without running nose has flu? (Use Naive Bayes classification).
Chills Running nose Headache Fever Has flu
Y N mild Y N
Y Y no N Y
Y N strong Y Y
N N mild Y Y
N N no N N
N Y strong Y Y
N N strong N N
Y Y mild Y Y
Soln
Class: Has flu (Y, N)
Test instance: Chills = Y, Running nose = N, Headache = mild, Fever = Y
5. Given a training dataset. Predict the class of a new patient with the symptoms Fever: Yes, Cough:
No, Body Ache: Yes, Fatigue: No, using Naive Bayes classifier.
6. Given a training dataset. Predict the Species type of new instance with Colour=Brown, Legs=2,
Height=Tall, Smelly=No using Naive bayes classifier