Assignment -1
AIML
Question 1: Differentiate between supervised, unsupervised, and reinforcement learning. Provide one
real-world example for each type of learning.
Question 2: Explain the concept of semi-supervised learning. In which scenarios would semi-supervised
learning be preferred over other learning me
Question 3: Given a set of training examples for a binary classification problem, apply the Find-S
algorithm to find the most specific hypothesis.
Question 4: A company wants to predict whether an employee will leave the organization (attrition)
based on their number of years at the company and their monthly salary. The outcome is binary (0 = No
Attrition, 1 = Attrition).
The company has the following data for 10 employees:
Employee Years at Company Monthly Salary (in $) Attrition (0/1)
1 2 5000 0
2 4 6000 0
3 6 7000 1
4 8 8000 0
5 10 9000 1
6 1 5500 0
7 3 5800 0
8 5 7500 1
9 7 8200 1
10 9 8700 1
The goal is to build a logistic regression model to predict the probability of attrition.
Question 5: A real estate company wants to predict the selling price of houses based on various
features. The company has gathered data on 10 houses, which includes their selling price, size (in
square feet), number of bedrooms, and the age of the house (in years). The goal is to build a multiple
linear regression model to predict the selling price based on these features.
The data is as follows:
House Size (sq ft) Number of Bedrooms Age (years) Selling Price (in $1000s)
1 2100 3 10 400
2 2500 4 5 450
3 1800 3 15 350
4 2300 4 8 420
5 3000 5 4 550
6 1500 2 20 300
7 2750 4 6 500
8 2000 3 12 380
9 1600 2 18 320
10 2550 4 7 480
Question 6: You are tasked with building a perceptron model to classify whether a student will pass or
fail an exam based on their study hours and attendance percentage. The output is binary: 1 (Pass) and
0 (Fail). The dataset contains the following information for 10 students:
Student Study Hours Attendance (%) Pass/Fail (0/1)
1 2 70 0
2 3 80 0
3 4 85 0
4 5 72 0
5 6 90 1
6 8 88 1
7 7 95 1
8 9 80 1
9 4 60 0
10 10 85 1