0% found this document useful (0 votes)
10 views27 pages

Part B Unit 2 Running Notes and Textbook Questions

The document discusses advanced concepts of the AI project cycle, focusing on Machine Learning (ML) and Deep Learning (DL) as key AI technologies. It explains various types of AI models, including supervised and unsupervised learning, along with their applications, advantages, and disadvantages. Real-world examples illustrate how these models function, such as recommendation systems, spam detection, and object recognition.

Uploaded by

shafee250684
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)
10 views27 pages

Part B Unit 2 Running Notes and Textbook Questions

The document discusses advanced concepts of the AI project cycle, focusing on Machine Learning (ML) and Deep Learning (DL) as key AI technologies. It explains various types of AI models, including supervised and unsupervised learning, along with their applications, advantages, and disadvantages. Real-world examples illustrate how these models function, such as recommendation systems, spam detection, and object recognition.

Uploaded by

shafee250684
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/ 27

Grade: X Subject: Artificial Intelligence (417)

Part B Unit 2 – Advanced concepts of AI project cycle

Revisiting AI, ML, DL

AI technologies: This encompasses the tools, techniques, and methods used to create and apply
artificial intelligence. Classified into two categories;

1. Machine learning:
Machine Learning, or ML, enables machines to improve at tasks with experience. The
machine learns from its mistakes and takes them into consideration in the next execution. It
improvises itself using its own experiences.
Examples: Recommendation engines, speech recognition,and predicting grades.
This is just a broad representation of how a machine learning model works. Input (past or
historical data) is given to the ML model and the model generates output by learning from the
input data.
Here is an example which shows labelled images (every image is tagged either as apple or
strawberry) are given as input to the ML model. ML model learns from the input data to
classify between apples and strawberries and predicts the correct output as shown.

Real world examples of ML:


a. Recommendation Systems: these systems analyse user’s data such as preferences,
behaviour or past interactions to suggest personalized options. Netflix, Flipkart, Spotify.
b. Spam email filtering: identifies and filter out spam emails by analysing the patterns in
sender’s email address and content.
c. image recognition: when you upload a picture an automatic tag recognition system used
by application suggests people to tag. It uses face recognition algorithm for the same.
d. Speech recognition: these speech recognition devices use machine learning to understand
spoken language and convert speech to text and respond accordingly.
e. Anomaly detection: in medical diagnostics, anomaly
detection helps in identifying unusual patient readings,
such as b.p, abnormal heart rates. By analysing
patient’s data, algorithms such as isolation forest
can detect irregular patterns.
e. fraud and Risk detection: in banking uses machine learning to analyze customer data and
minimize financial losses.
f. Object classification: ML learns to identify and name objects in images and videos.
Example, if you show it pictures of animals like cats and dogs, it learns what each looks like.
Later, when you give it a new picture , it can tell whether it’s a cat or a dog.

2. Deep Learning (DL):


Is a subset of Machine Learning that uses neural networks inspired by the human brain. It processes
large, complex data to find patterns and make predictions.

Input is given to an ANN, and after processing, the output is generated by the DL block. Here
is an example which shows pixels of a bird image given as input to the DL Model and the model
is able to analyze and correctly predict that it is a bird using a deep learning algorithm (ANN).
Real life examples of Deep Learning:

a. Object identification: D.L is used in identifying and


classifying objects, animals or scenes in images.
Ex: Google photos are automatically categorizes images.

b. Digit recognition: models are trained to


identify hand written digits. Model learns
from a large dataset of images.

c. Object detection and Tracking: is used in tracking and detecting pedestrians or vehicles in real
time. Its application can be seen in autonomous vehicles for navigating streets and security systems for
monitoring intruders.
d. Gen AI: is used in generating realistic content that includes images, text and videos. Ex: Deep fake
videos and images.
Terminologies used with Data:
Data: Data is information in any form or raw facts that a machine uses to leran patterns and
predictions.
For e.g. A table with information about fruits is data
Each row will contain information about different fruits
Each fruit is described by certain features
Features: Columns of the tables are called features
In the fruit dataset example, features may be name,
color, size, etc.
Some features are special, they are called labels

Labels: the process of assigning a meaningful name


to a category of data.
It depends on the context of the problem
we are trying to solve
For e.g. if we are trying to predict what fruit it is
based on the color of the fruit, then color is the feature,
and fruit name is the label.
Data can be of two types – Labeled and Unlabeled.
Labeled Data:
Data to which some tag/label is attached.
For e.g. Name, type, number, etc.
Unlabeled Data:
The raw form of data
Data to which no tag is attached.

Training data: A training data is a dataset that is used to train an AI algorithm.

Just like how a teacher teaches a topic to the class through a lot of examples and illustrations.

Similarly, a set of labeled data is used to train the AI model.


Testing data: The testing data is used with an AI algorithm to correlate the input data with the
processed output.

Just like how a teacher takes a class test related to a topic to evaluate the understanding level of
students.

Test is performed without labeled data and then verify results with labels.
Modelling: AI Modelling refers to developing algorithms, also called models which can be
trained to get intelligent outputs. That is, writing codes to make a machine artificially
intelligent.

Types of AI Models
Generally, AI models can be classified as follows:

Supervised Learning

Unsupervised
Machine Learning
Learning

Reinforcement

Learning Based Learning

AI Models
Artificial Neural

Rule Based Networks


Deep Learning

Convolution Neural

Networks

1. Rule based Model: The rule Based Approach is one of the earliest and simplest methods of
implementing AI. It relies on predefined rules and facts created by developers to enable
machines to perform specific tasks and generate desired outputs.

Scenario: A clothing website has a Chabot to answer questions about order tracking.
1. Data: The Chabot doesn't require a massive dataset for training. It relies on a
predefined set of questions and corresponding answers.
2. Rules: The Chabot uses a decision tree approach with clearly defined rules to
understand user queries and provide responses. Here's a simplified example:
o Rule 1: If the user's message contains keywords like "track order," "shipment
status," or "delivery," proceed to order tracking options.
o Rule 2: Under order tracking options:
If the user asks for their order number, prompt them to enter it.
If the user enters a valid order number, retrieve the tracking information
from the database and display it.
If the user enters an invalid order number, provide an error message and ask
them to re-enter it.
o Rule 3: If the user's message doesn't match any defined rules, offer a
message like "Sorry, I can't help you with that. Perhaps you can try
searching our FAQs or contact customer support."
3. Interaction: When a user chats with the bot, their message is analyzed based
on the defined rules. The Chabot responds with a pre-written answer or prompts the
user for additional information depending on the scenario.
A drawback of this approach is that the learning is static. The machine once trained
cannot adapt to new data or rules. If the machine is tested on a dataset that differs from
the rules and data provided during the training stage, it will fail to produce accurate
results and will not learn or adjust for the new conditions.

Learning Based Approach:


This approach refers to the model where the relationships or patterns in the data are
not defined by the developer.
Random data fed into machine and the machine analyses data to identify patterns and
make predictions.

For example, suppose you have a dataset of 1000 images of random stray dogs of your area. Now
you do not have any clue as to what trend is being followed in this dataset as you don’t know their
breed, or colour or any other feature. Thus, you would put this into a learning approach-based AI
machine and the machine would come up with various patterns it has observed in the features of
these 1000 images. It might cluster the data on the basis of colour, size, fur style, etc. It might also
come up with some very unusual clustering algorithm which you might not have even thought of!

The Learning Based approach is further classified into 3 sections:


Supervised Model:
is a machine learning approach where the
machines with the help of an algorithm learns
on labelled dataset and is later tested with some
un labelled data whose answers are pre known
to evaluate its accuracy on training data.

Example 1: A Supervised learning , how a teacher helps


students learn. The teacher provides clear examples and
guidance to teach concepts. Later the teacher tests the
students’ understanding with new questions.
Example 2:
Let’s consider the example of currency coins.
Problem Statement: Build a model to predict the coin based on its weight.
Assume that we have different currency coins (dataset) having different weights.
1 Euro weighs 5 grams
1 Dirham weighs 7grams
1 Dollar weighs 3grams
1 Rupee weighs 4 grams and so on
Feature – Weights
Label – Currency
So, if a model is trained in tagging the features i.e., the weights of the coin with the
targets i.e., currency, the trained model can be further be used to identify a coin based
on its weight (since it has already learnt).

Example 3:
In the example shown in the image, the model has
learned from labeled input data and produces output
to classify them as dogs and cats.
Therefore, you can see that the model learns from the
training data and then applies the same knowledge to test data.
Types of supervised learning:
There are 2 types of supervised learning model. They are Classification and regression.

a. Classification: It refers to a type of Supervised Learning

technique, which can classify the category of new unlabelled test

inputs on the basis of training data.

It uses non-continuous ie., discrete data.


For example, in the grading system, students are classified

on the basis of the grades they obtain with respect to their marks in the examination. This
model works on a discrete dataset which means the data need not be continuous.

Examples of the Classification Model

In this case, the model would be trained on historical weather data that includes
temperature information labeled as "hot" or "cold". The model would learn the
patterns that differentiate hot and cold weather based on
factors like:

 Loca on (average temperatures


vary geographically)
 Season (summer vs. winter)
 High and low temperatures
 Humidity

When presented with weather data for tomorrow, the


trained classification model would analyze these
factors and predict the most likely category - "hot" or "cold" weather tomorrow.

Classifying emails as spam or not: The model is shown tons of emails, both real
ones (like from friends or colleagues) and spam. The model learns what makes an
email look like spam. Once trained, the model sees a new email. It analyzes the clues

in the email and decides: is this spam or not? It assigns a category - "spam" or "not
spam" - just like sorting your mail.
In modern-day Email, classifiers identify if the email is spam and have evolved into
other categories such as social, advertisement, notifications, etc. Similar models are
increasingly being used in messaging applications.
b. Regression : It refers to a type of Supervised Learning
technique, which is based on a mathematical approach used to
predict the outcome. Regression models use continuous data.
For example, if you wish to predict your next salary, then you
would put in the data of your previous salary, any increments, etc.,
and would train the model.
Examples of the Regression Model

Predicting temperature

Temperature is a continuous variable, meaning it can take


on any value within a range. Regression models are well-suited
for predicting continuous outputs.

Predicting the price of the house

Predicting the price of the house based on some parameters:


1. [Features/Independent Variables]
1. No of bedrooms
2. Carpet Size
3. Garage Area
2. [Label/Dependent Variable]
1. Price [Label/Dependent Variable]
 In the House Price Predic on Problem, we are trying to predict the price (dependent variable)
based on certain parameters like the number of bedrooms, carpet size, and garage area
(independent variables).

Used Car Price Prediction

This model predicts the selling price of the car with the help of a few parameters like
 fuel type,
 years of service,
 the number of previous owners,
 kilometers driven,
 transmission type (manual/automatic)

This type of model will be of type regression since it will predict an


approximate price (continuous value) of the car based on the training
dataset.
Advantages of Supervised Learning:
1. It is less complex.
2. It is a highly accurate and trustworthy method.
3. It is very useful in cases when a user has an exact idea about the class of
projects.
4. It works even better and optimally when the user has some prior experience
with similar cases.
Disadvantages of Supervised Learning:
1. Computation time is very high.
2. Since, it works on labelled data, the data must be pre processed to be in a
certain form.
3. The trainng data must be based on real good working examples.
4. Supervised learning system requires continuous updating with all the new
learning and findings.
Some real world applications of Supervised Learning:
Biometric identification: biological information of humans such as fingerprints,
earlobe,iris texture and so on can be stored electronically in terms of some patterns.
Speech recognition: Machines and devices of today can be taught supervised way to
recognise how you speak. Using this, the machine is able to recognise your voice though
tonal quality.
Spam Detection: Algorithms can be trained to identify the emails with specific keywords
to be termed as spam.

Unsupervised Learning Model:


Unsupervised learning model works on un-labelled dataset. The data which is fed into the
machine is random and machine analyses the data and identifies patterns, structures or
relationships on its own without any guidance. the goal is to organize data based on similarities or
differences.
For example, you have many fruits, but you did not tell the computer which is an apple or a
banana. The computer looks at the size, colour or shape and groups similar fruits.
Unsupervised learning models can be further divided into two categories:
Clustering and Association.
a. Clustering: It is an unsupervised learning technique used
to group similar data points into clusters. The input data is
un-labelled data. It works on discrete dataset.

For example, In this example, we have input data with no class labels (unlabeled data), and this
input data comprises of birds and animals. Note that, even though there were no class labels, the
unsupervised learning model was able to divide this data into two clusters based on clustering.
The two clusters have been formed based on the similarity of characteristics. The first cluster
comprises all the animals, and the second cluster comprises all the birds.

Examples of clustering:

Jim enjoys listening to music. Jim likes to listen to music having slow tempo and soft
intensity whereas he dislikes songs having fast tempo and high intensity.

 We have grouped all the songs having slow tempo and so intensity into 1 cluster that he likes

 While, songs with a fast tempo and high intensity into another cluster

 Now if he listens to a new song X with a slow tempo and so intensity. Could you predict
will he like the song X or not?

This is how clustering techniques work. The clustering model will be able to identify
clusters based on some similarities or patterns which are not defined in the input. For
example, tempo and intensity are the only features known, but clusters based on likes
and dislikes have been grouped together and given as output. Similar techniques are
used in OTT platforms like Netflix/Spotify for recommendations.

Differences between Clustering and Classification

Association
Association Rule is an unsupervised learning method that is used to find interesting relationships
between variables from the database.
For example,

Based on the purchase pattern of customers A and B, can you predict any Customer
X who buys bread will most probably buy?

Based on the purchase pattern of other customers, we can predict that there is high
probability that any customer x who buys bread will most probably buy butter.
Therefore, such meaningful associations can be useful to recommend items to
customers. This is called Association Rule.
Advantages of Unsupervised Learning:
1. It is very useful in finding all kinds of unknown patterns and features in data.
2. As it works with unlabelled data, it makes it very useful in many real world situations
where labelling of data is not feasible.
3. Training data containing unlabelled data is easier to get than labelled data.
Disadvantages of Unsupervised data:
1. It is not easy to get the accuracy of the results as the input dataset is unlabelled.
2. The user needs to spend time interpreting and labelling the classes generated by the
system after training.
3. The clusters generated may not fit in with the new discoveries over time if new unknown
features are unearthed.
Some real life examples of Unsupervised learning:
Finding customer segments: Clustering algorithms have found great applications in finding
customer segments in marketing data. Examples like gender,location,age,education, and so on.
Reducing the complexity of a problem.
Document clustering.
Finding fraudulent transactions.

Reinforcement Learning Model:

refers to an AI learning approach that trains algorithms using a system of reward and penalty.The
learning system learns in an interactive environment where the system iteratively selects and
performs actions and receives rewards by performing correctly and penalties for performing
incorrectly.

For example,
 Reinforcement learning is a type of learning in which a machine learns to perform a task
through a repeated trial-and-error
method.
 Let’s say you provide an image of an apple to the
machine and ask the machine to predict it-
 The machine first predicts it as ‘cherry’ and you give
nega ve feedback that it’s incorrect.
 Now, the machine learns that it’s not a cherry.
 Then again, you ask the machine to predict the fruit
by giving an image of an apple as input;
 Now, it knows it is not a cherry.

 It predicts it as an apple and you give posi ve feedback


that it’s correct.
 So, now the machine learns that this is an apple.

Some real life examples of reinforcement learning:


Video Game AI: Reinforcement learning allows agents to learn optimal strategies by exploring the
game environment, receiving rewards for achieving objectives, and penalties for failing, improving
their performance over time.

Car parking: helps the car learn how to park properly by

trying different ways, getting rewards when it parks correctly,

and getting penalties if it makes a mistake like hitting something.

Humanoid Walking: as the robots learns to walk by receiving


rewards for stable movements and penalties for falls, adjusting its
actions to maximise balance and efficiency over time.

Summary of Machine Learning Models

Family of
ML Models

Supervised Unsupervised Reinforcement


Learning Learning Learning

Determine Learn by
Discover New
relationships Rewarding
Patterns
through training Actions
Mind Map for Machine Learning Models:

Deep Learning:

Deep Learning enables software to train itself to perform tasks with vast amounts of data. In deep
learning, the machine is trained with huge amounts of data which helps it to train itself around the
data. Such machines are intelligent enough to develop algorithms for themselves. There are two
types of Deep Learning models: Artificial Neural Networks (ANN) and Convolution Neural
Network (CNN).

Artificial Neural Networks:


Artificial Neural networks are modelled on the human brain and nervous system. They are able to
automatically extract features without input from the programmer. It includes machine learning
as part of AI. ANN in its training phase is capable of learning by recognizing patterns in data
which is later used to generate the desired output.

Convolutional Neural Network (CNN) – it primarily used for image related tasks. It extracts
spatial features from data. It is used in image classification, medical imaging, facial recognition,
autonomous vehicles.
Neural Networks:
Neural networks are loosely modelled after
how neurons in the human brain behave. The
key advantage of neural networks is that they
are able to extract data features automatically
without needing the input of the programmer.
A neural network is essentially a system of
organizing machine learning algorithms to
perform certain tasks.
It is a fast and efficient way to solve problems for which the dataset is very large, such as in images.
This is a representation of how neural networks work:
It has 3 layers.
Input Layer: This is the starting point. Data is given here like images, numbers etc.,.
Hidden layer: The real work happens here. These layers process the data and try to understand
patterns using special rules called weights and biases.
The machine adjusts these weights until it gets better at giving correct answers.
Output layer: this layer gives the final result or answer.
How does AI make a decision?
Imagine you want to go outside- but you are not sure if you should carry an umbrella or wear a jacket.

You will think like this:


1. Do I have a jacket?
2. Do I have an umbrella?
3. What is the weather like today?
4. What is the weather forecast for tomorrow?
These 4 things are your inputs. Each input has some importance( weight)
Weather is important than jacket. Jacket is more important than umbrella etc.,
The Ai does the same thing. It takes the inputs.
A Perceptron is the simplest models in AI that makes decisions.
A perceptron works in 4 simple steps:
Take inputs: like
1. Do I have a jacket?
2. Do I have an umbrella?
3. What is the weather like today?
4. What is the weather forecast for tomorrow?
Going back to the earlier example, we have four inputs. So, let’s draw the perceptron with four inputs
(from X1 to X4). Next, we have their weights (from W1 to W3). Then, we also have the bias B, with
weight WB.
Finally, we sum them all up, compare with threshold, and we will get our output.

Now we will fill in the four inputs with the factors that we have listed out.
•Do I have a jacket?
•Do I have umbrella?
•Is it sunny now?
•What is the weather forecast for later?
Now we will fill in the importance. But the importance is not very useful in mathematical
calculations.
Next, let us assign some numbers to them. At the same time, we will also assign a number for the
bias weight (WB).
How do we know what should be the actual values for the weights? We will not know what are the
actual weights. However, we can make some assumptions.

The values for the weights can come from experience. He may have an experience being sunny now
would most likely mean a bright day ahead, hence the high importance there. It can also come from
personal preference. A person may judge a particular factor more heavily as compared to another
person. For example, she may be more concerned with the weather forecast, hence the higher
importance there.

The values for WB are also based on personal preference. If a person is more cautious, he may set
the value for WB to be higher, hence his decision would gear towards staying indoors unless he is
sure that it would not rain. On another hand, a person who is more daring will have a lower WB,
hence he is more likely to go out regardless of the current situation. In this example, we choose 4 as
we want to be more cautious.

Therefore, there is no right or wrong answers in coming up with the values for the weights. However,
the effects of the values will determine the outcome that the person is going to take, whether to go
out or not. That is the reason why everyone comes up with a different decision, even though the
situation is the same for everyone.
For this example, let’s say: I have a jacket, I don’t have an umbrella, it is sunny now, and the weather
forecast is going to rain. We can convert the yes and no to numbers 1 and
0. For bias, we will always take 1.

From this calculation, the output is 0.5. Since this is higher than the threshold (which is zero),
the result is I will go out to the park.
Now let us change for another example.
let’s say: I don’t have a jacket, I have an umbrella, it is not sunny now, and the weather forecast is
ok. We will convert the yes and no to numbers 1 and 0. And similarly, for bias, we will take1.
Inputs weights Total Compare Decision

Simple steps for AI to make decisions:


Take inputs in the form of numbers.
Each input is multiplied by its assigned weights.
A bias value (WB) is added to the total.
All the multiplied values are summed up along with the bias.
The total is passed through an activation function.
If the result crosses the threshold, the output is 1 otherwise it is 0.
Output is given as the final decision.

Unit 2 Notes completed


Grade: X Subject: Artificial Intelligence (417)
Part B Unit 2- Advanced Concepts of Modelling in AI

Text book Question and Answers (Unsolved)

1. Why is the rule based approach considered static?

A. The main drawback of this approach is that the machine’s learning is static. Once trained,
the machine does not adapt to changes made in the original training dataset. If the machine is
tested on a dataset that differs from the rules and data provided during the training stage, it
will fail to produce accurate results and will not learn or adjust to the new conditions it
encounters.

2. What is a major advantage of the learning based approach over the rule based
approach?

A. The major advantage of the learning-based approach over the rule-based approach is its
adaptability—it can dynamically learn from data, recognize patterns, and improve over time
without manual updates, making it more flexible and scalable.

3. What is the primary difference between Clustering and Classification?

A. Classification: It’s a supervised learning technique that assigns data points to predefined
categories or labels. Labelled data is fed to the model. For example, classifying emails as
“Spam” or “Not Spam.”

Clustering: It is an unsupervised learning technique used to group similar data points into
clusters. The input data is unlabelled data. For example, grouping customers based on
shopping behaviour to target personalised marketing.
4. Explain the term Convolutional Neural Networks?

A. The Convolutional Neural Network is part of the Neural Networks that is primarily used
for image related tasks. It extracts spatial features from data. It is used in Image
classification (e.g., object detection), Medical imaging (e.g., tumor detection), Facial
recognition, Autonomous vehicles, etc.
5. What do you mean by a Testing Dataset?
A. The testing data set is a collection of data provided to a machine learning model to
evaluate how well it has learned to make predictions.
6. Name any four real world applications of Neural Networks.
A. Real-world applications of Neural Networks are fraud detection, recommendation
system, facial recognition, chatbots and virtual assistant, etc.

Long Answer type questions


1. Explain the three basic layers of ANN.
A. ANN is made up of three basic layers – Input, Hidden and Output. The input layer
accepts the inputs, the hidden layer processes the inputs, and the output layer produces the
result where each layer tries to learn from the computed weights. It is the foundation of AI
and is used to solve complex problems that are difficult for humans. It consists of hardware
or software that operates just like neurons of the human brain. Commercial application of
ANN is in solving complex signal processing, predictions or pattern recognition problems.
2. Explain any four applications of machine learning in our daily lives.
A. • Recommendation Systems: These are a classic example of Machine Learning in real
world. These systems analyse user’s data, such as preferences, behaviour, or past
interactions, to suggest personalised options. The platforms, like Netflix, Flipkart, Spotify,
etc. use such kind of recommendation systems to help their customers to find the related
products.
Spam Email Filtering: Machine learning algorithms learn to identify and filter out spam emails
by analysing the patterns in sender’s email address and content.
Image Recognition: When you upload a picture, an automatic tag recognition system used
by applications like Facebook, suggests people to tag. It uses a face recognition algorithm
for the same.

Speech Recognition: We all love to speak out our messages to Siri, Google assistant,
Amazon Alexa etc. These speech recognition devices use machine learning to understand
spoken language and convert speech to text and respond accordingly.
3. Differentiate between supervised and unsupervised learning models.
A.

Aspect Supervised Learning Unsupervised Learning

Uses labelled datasets with input-


Uses unlabelled datasets
Data output pairs (e.g., images labelled as
without predefined categories.
“cat” or “dog”).

To predict the output for new, unseen


To explore data and find hidden
Goal data based on the labels provided
patterns or groupings.
during training.

Clustering, Dimensionality
Common Techniques Classification, Regression
Reduction

- Predicting house prices based on - Grouping customers into


features like area and location. segments based on their
Examples - Classifying emails as “spam” or “not purchase behaviour.
spam”. - Detecting anomalies in
network traffic.

Groups data into clusters or finds


Predicts specific labels or values
Output patterns, without specific labels.
for new data.

4. Explain the term association rule with the help of an example.


A. Association is an unsupervised learning method that is used to find interesting
relationships or patterns among variables in a dataset. It is widely employed to identify
relationships between items, sets frequently purchased items together in large databases,
helping to analyse how items or events are related to each other.
Consider an example of the items purchased by customers: Consider a supermarket
example wherein
• Customer A buys bread, butter, and milk
• Customer B buys rice, bread, and butter
Based on the purchase pattern of customers A and B, can you predict any Customer X who
buys bread will most probably buy?
In this case, we might discover an association rule such as: “If customer A buys ‘Milk’,
they are likely to buy ‘Cereal’ or ‘Bread’.” Therefore, such meaningful associations can be
useful to recommend items to customers. This is called Association rule.
5. What is regression? Give an example.
A. Regression algorithms predict a continuous value based on the input variables. It is an
example of a rule-based AI model. In regression, the algorithm generates a mapping
function from the data, as shown by the solid line in the given graph. The green dots shown
in the graph are the data values and the solid line here represents the mapping done for
them. With the help of this mapping function, we can predict the future data.
For example, if we want to predict the temperature of a day in a year, we can use past year’s
temperature for that day as training data and can predict it for the coming year. Regression
is a mathematical approach to find a relationship between two or more variables. It works
with continuous data. This can be used for weather forecasting, time series modelling, etc.
In order to get the best fit results, the distance between the line and data points should be
minimum.

Unit 1 textbook questions and answers completed

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