SlideShare a Scribd company logo
1 of 23
Course Title: Fundamentals of
Data Analytics
Course Code: MFDA21205
Instructor: Ms. Sudeshna Sani, Asst. Professor, School of Business.
Session-17-18
Machine Learning Models for Data Analytics
•Classification: Decision Tree
•Regression: Linear regression
Machine Learning
Machine learning is a subfield of artificial intelligence (AI) that
focuses on developing algorithms and models that enable
computers to learn and make decisions or predictions without
being explicitly programmed. In other words, machine learning
allows systems to automatically learn and improve from
experience without human intervention.
This is achieved through the use of various techniques and algorithms
that enable machines to learn patterns, relationships, and rules from
data.
Difference
Supervised Learning
Supervised Learning Algorithms
• Linear Regression
• Logistic Regression
• Decision Trees
• Random Forests
• Support Vector Machines (SVM)
• Naive Bayes
• K-Nearest Neighbors (KNN)
• Neural Networks
• Gradient Boosting Algorithms
Unsupervised Learning
Types of Unsupervised Learning
• Clustering Algorithms
• K-Means Clustering
• Hierarchical Clustering
• DBSCAN (Density-Based Spatial Clustering of Applications with Noise)
• Dimensionality Reduction Algorithms
• Principal Component Analysis (PCA)
• t-SNE (t-Distributed Stochastic Neighbor Embedding)
• Association Rule Mining
Reinforcement Learning
Workflow of ML-Study
Classification: Decision Tree
Regression: Linear regression
Linear Regression is a machine learning
algorithm based on supervised regression
algorithm. Regression models a target
prediction value based on independent
variables. It is mostly used for finding out
the relationship between variables and
forecasting.
Linear regression is used to estimate the
dependent variable in case of a change in
independent variables. For example,
predict the price of houses.
The weight of the person is linearly
related to their height. So, this shows a
linear relationship between the height and
weight of the person. According to this, as
we increase the height, the weight of the
person will also increase.
Session-19-Performance Evaluation of Models
• Confusion Matrix
• Accuracy
• Precision
• Recall
• F1-Score
• Residual Errors
Confusion Matrix
A confusion matrix is a tabular
summary of the number of correct
and incorrect predictions made by
a classifier. It is used to measure the
performance of a classification
model.
Let’s take an example:
We have a total of 20 cats and dogs and our model predicts
whether it is a cat or not.
Actual values = [‘dog’, ‘cat’, ‘dog’, ‘cat’, ‘dog’, ‘
dog’, ‘cat’, ‘dog’, ‘cat’, ‘dog’,
‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’,
‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’]
Predicted values = [‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’,
‘dog’, ‘cat’, ‘cat’, ‘cat’, ‘cat’,
‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’,
‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’]
Sl. No Actual value(P) Predicted value(N) Match TP/TN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
‘dog’,
‘cat’,
‘dog’,
‘cat’,
‘dog’,
‘dog’,
‘cat’,
‘dog’,
‘cat’,
‘dog’,
‘dog’,
‘dog’,
‘dog’,
‘cat’,
‘dog’,
‘dog’,
‘cat’,
‘dog’,
‘dog’,
‘cat’
‘dog’,
‘dog’,
‘dog’,
‘cat’,
‘dog’,
‘dog’,
‘cat’,
‘cat’,
‘cat’,
‘cat’,
‘dog’,
‘dog’,
‘dog’,
‘cat’,
‘dog’,
‘dog’,
‘cat’,
‘dog’,
‘dog’,
‘cat’
Yes
No
Yes
Yes
Yes
Yes
Yes
No
Yes
No
Yes
Yes
Yes
No
Yes
Yes
Yes
Yes
Yes
Yes
TP
FP
True Positive (TP) = 6
True Negative (TN) = 11
False Positive (Type 1 Error) (FP) = 2
False Negative (Type 2 Error) (FN) = 1
Precision:
“Precision is a useful
metric in cases
where False Positive is a
higher concern than False
Negatives”.
In Spam Detection : Need
to focus on precision
Recall:
It is a measure of actual
observations which are
predicted correctly, i.e. how many
observations of positive class are
actually predicted as positive. It is also
known as Sensitivity. Recall is a
valid choice of evaluation metric when
we want to capture as many
positives as possible.
F-measure / F1-Score
The F1 score is a number between 0 and 1 and is
the harmonic mean of precision and recall. We use
harmonic mean because it is not sensitive to extremely large
values, unlike simple averages.
F1 score sort of maintains a balance between the precision
and recall for your classifier. If your precision is low, the F1
is low and if the recall is low again your F1 score is low.
Residuals
• A residual is a measure of how far away a point is vertically
from the regression line. Simply, it is the error between a
predicted value and the observed actual value.
Session – 20 –
Project/Case Study for Data Analytics
• Mini-Project /Case Study
Thank you

More Related Content

Similar to FBA-PPTs-sssion-17-20 .pptx

MACHINE LEARNING AND ITS APPLICATIONS (2).pptx
MACHINE LEARNING AND ITS APPLICATIONS (2).pptxMACHINE LEARNING AND ITS APPLICATIONS (2).pptx
MACHINE LEARNING AND ITS APPLICATIONS (2).pptx
ssuser442651
 
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
Ashish Gupta
 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...
Ashish Gupta
 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...
Ashish Gupta
 

Similar to FBA-PPTs-sssion-17-20 .pptx (20)

MACHINE LEARNING AND ITS APPLICATIONS (2).pptx
MACHINE LEARNING AND ITS APPLICATIONS (2).pptxMACHINE LEARNING AND ITS APPLICATIONS (2).pptx
MACHINE LEARNING AND ITS APPLICATIONS (2).pptx
 
AIML_UNIT 2 _PPT_HAND NOTES_MPS.pdf
AIML_UNIT 2 _PPT_HAND NOTES_MPS.pdfAIML_UNIT 2 _PPT_HAND NOTES_MPS.pdf
AIML_UNIT 2 _PPT_HAND NOTES_MPS.pdf
 
HRUG - Linear regression with R
HRUG - Linear regression with RHRUG - Linear regression with R
HRUG - Linear regression with R
 
A high level overview of all that is Analytics
A high level overview of all that is AnalyticsA high level overview of all that is Analytics
A high level overview of all that is Analytics
 
machine learning
machine learningmachine learning
machine learning
 
Module 3: Linear Regression
Module 3:  Linear RegressionModule 3:  Linear Regression
Module 3: Linear Regression
 
ML-Unit-4.pdf
ML-Unit-4.pdfML-Unit-4.pdf
ML-Unit-4.pdf
 
Applied machine learning: Insurance
Applied machine learning: InsuranceApplied machine learning: Insurance
Applied machine learning: Insurance
 
Predict Backorder on a supply chain data for an Organization
Predict Backorder on a supply chain data for an OrganizationPredict Backorder on a supply chain data for an Organization
Predict Backorder on a supply chain data for an Organization
 
Top 100+ Google Data Science Interview Questions.pdf
Top 100+ Google Data Science Interview Questions.pdfTop 100+ Google Data Science Interview Questions.pdf
Top 100+ Google Data Science Interview Questions.pdf
 
Predicting House Prices: A Machine Learning Approach
Predicting House Prices: A Machine Learning ApproachPredicting House Prices: A Machine Learning Approach
Predicting House Prices: A Machine Learning Approach
 
Top Machine Learning Algorithms Used By AI Professionals ARTiBA.pdf
Top Machine Learning Algorithms Used By AI Professionals ARTiBA.pdfTop Machine Learning Algorithms Used By AI Professionals ARTiBA.pdf
Top Machine Learning Algorithms Used By AI Professionals ARTiBA.pdf
 
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
ML) is a subdomain of artificial intelligence (AI) that focuses on developing...
 
Machine learning Mind Map
Machine learning Mind MapMachine learning Mind Map
Machine learning Mind Map
 
Machine Learning.pdf
Machine Learning.pdfMachine Learning.pdf
Machine Learning.pdf
 
Machine learning algorithms and business use cases
Machine learning algorithms and business use casesMachine learning algorithms and business use cases
Machine learning algorithms and business use cases
 
The 10 Algorithms Machine Learning Engineers Need to Know.pptx
The 10 Algorithms Machine Learning Engineers Need to Know.pptxThe 10 Algorithms Machine Learning Engineers Need to Know.pptx
The 10 Algorithms Machine Learning Engineers Need to Know.pptx
 
PREDICT 422 - Module 1.pptx
PREDICT 422 - Module 1.pptxPREDICT 422 - Module 1.pptx
PREDICT 422 - Module 1.pptx
 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...
 
network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...network layer service models forwarding versus routing how a router works rou...
network layer service models forwarding versus routing how a router works rou...
 

More from Rishabh332761

CMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKK
CMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKKCMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKK
CMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKK
Rishabh332761
 
Standard Costing_ Incorporating Standards into Accounting Records.pptx
Standard Costing_ Incorporating Standards into Accounting Records.pptxStandard Costing_ Incorporating Standards into Accounting Records.pptx
Standard Costing_ Incorporating Standards into Accounting Records.pptx
Rishabh332761
 
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptxCRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
Rishabh332761
 
guuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvv
guuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvvguuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvv
guuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvv
Rishabh332761
 
Group 3 (6).pptx hhfgggggggggggggggggggggggggggggggggg
Group 3 (6).pptx hhfggggggggggggggggggggggggggggggggggGroup 3 (6).pptx hhfgggggggggggggggggggggggggggggggggg
Group 3 (6).pptx hhfgggggggggggggggggggggggggggggggggg
Rishabh332761
 
group 5 coffee case study.pptx
group 5 coffee case study.pptxgroup 5 coffee case study.pptx
group 5 coffee case study.pptx
Rishabh332761
 
MergeResult_2023_12_16_02_53_34.pptx
MergeResult_2023_12_16_02_53_34.pptxMergeResult_2023_12_16_02_53_34.pptx
MergeResult_2023_12_16_02_53_34.pptx
Rishabh332761
 
Measures of Central Tendencies.pptx
Measures of Central Tendencies.pptxMeasures of Central Tendencies.pptx
Measures of Central Tendencies.pptx
Rishabh332761
 
CORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptx
CORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptxCORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptx
CORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptx
Rishabh332761
 
zerowaste rough ppt.pptx
zerowaste rough ppt.pptxzerowaste rough ppt.pptx
zerowaste rough ppt.pptx
Rishabh332761
 
pdf 6th goal- RISHABH (4).pdf
pdf 6th goal- RISHABH (4).pdfpdf 6th goal- RISHABH (4).pdf
pdf 6th goal- RISHABH (4).pdf
Rishabh332761
 

More from Rishabh332761 (18)

CMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKK
CMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKKCMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKK
CMA - Unit 1.pptxKKKKKKKKKKKKKKKKKKKKKKK
 
Standard Costing_ Incorporating Standards into Accounting Records.pptx
Standard Costing_ Incorporating Standards into Accounting Records.pptxStandard Costing_ Incorporating Standards into Accounting Records.pptx
Standard Costing_ Incorporating Standards into Accounting Records.pptx
 
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptxCRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
CRISIS COMMUNICATION presentation=-Rishabh(11195)-group ppt (4).pptx
 
guuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvv
guuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvvguuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvv
guuhbbvcvccccvvvvvvvvvvvvvvvvvvvvvvvvvvvv
 
Group 3 (6).pptx hhfgggggggggggggggggggggggggggggggggg
Group 3 (6).pptx hhfggggggggggggggggggggggggggggggggggGroup 3 (6).pptx hhfgggggggggggggggggggggggggggggggggg
Group 3 (6).pptx hhfgggggggggggggggggggggggggggggggggg
 
group 5 coffee case study.pptx
group 5 coffee case study.pptxgroup 5 coffee case study.pptx
group 5 coffee case study.pptx
 
MergeResult_2023_12_16_02_53_34.pptx
MergeResult_2023_12_16_02_53_34.pptxMergeResult_2023_12_16_02_53_34.pptx
MergeResult_2023_12_16_02_53_34.pptx
 
Measures of Central Tendencies.pptx
Measures of Central Tendencies.pptxMeasures of Central Tendencies.pptx
Measures of Central Tendencies.pptx
 
Session 7 Crafting Brand Positioning.pptx
Session 7 Crafting Brand Positioning.pptxSession 7 Crafting Brand Positioning.pptx
Session 7 Crafting Brand Positioning.pptx
 
Introduction to Statistics PPT (1).pptx
Introduction to Statistics PPT (1).pptxIntroduction to Statistics PPT (1).pptx
Introduction to Statistics PPT (1).pptx
 
Measures of Central Tendencies (2).pptx
Measures of Central Tendencies (2).pptxMeasures of Central Tendencies (2).pptx
Measures of Central Tendencies (2).pptx
 
Ratio Analysis (1).pptx
Ratio Analysis (1).pptxRatio Analysis (1).pptx
Ratio Analysis (1).pptx
 
CORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptx
CORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptxCORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptx
CORPORATE SOCIAL RESPONSIBILITY PUMA PPT NEW.pptx
 
zerowaste rough ppt.pptx
zerowaste rough ppt.pptxzerowaste rough ppt.pptx
zerowaste rough ppt.pptx
 
ZERO WASTE TRY 2PPT.pptx
ZERO WASTE TRY 2PPT.pptxZERO WASTE TRY 2PPT.pptx
ZERO WASTE TRY 2PPT.pptx
 
Session 1 (1).pptx
Session 1 (1).pptxSession 1 (1).pptx
Session 1 (1).pptx
 
pdf 6th goal- RISHABH (4).pdf
pdf 6th goal- RISHABH (4).pdfpdf 6th goal- RISHABH (4).pdf
pdf 6th goal- RISHABH (4).pdf
 
AIR ASIA -GROUP 3.pptx
AIR ASIA -GROUP 3.pptxAIR ASIA -GROUP 3.pptx
AIR ASIA -GROUP 3.pptx
 

Recently uploaded

➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men 🔝manali🔝 Escorts S...
➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men  🔝manali🔝   Escorts S...➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men  🔝manali🔝   Escorts S...
➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men 🔝manali🔝 Escorts S...
nirzagarg
 
VIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 
The Most Attractive Pune Call Girls Tingre Nagar 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Tingre Nagar 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Tingre Nagar 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Tingre Nagar 8250192130 Will You Miss Thi...
 
Top Rated Pune Call Girls JM road ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated  Pune Call Girls JM road ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...Top Rated  Pune Call Girls JM road ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
Top Rated Pune Call Girls JM road ⟟ 6297143586 ⟟ Call Me For Genuine Sex Ser...
 
Karve Nagar ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
Karve Nagar ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...Karve Nagar ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready ...
Karve Nagar ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready ...
 
Budhwar Peth { Russian Call Girls Pune (Adult Only) 8005736733 Escort Servic...
Budhwar Peth { Russian Call Girls Pune  (Adult Only) 8005736733 Escort Servic...Budhwar Peth { Russian Call Girls Pune  (Adult Only) 8005736733 Escort Servic...
Budhwar Peth { Russian Call Girls Pune (Adult Only) 8005736733 Escort Servic...
 
➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men 🔝manali🔝 Escorts S...
➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men  🔝manali🔝   Escorts S...➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men  🔝manali🔝   Escorts S...
➥🔝 7737669865 🔝▻ manali Call-girls in Women Seeking Men 🔝manali🔝 Escorts S...
 
Book Sex Workers Available Pune Call Girls Lavasa 6297143586 Call Hot Indian...
Book Sex Workers Available Pune Call Girls Lavasa  6297143586 Call Hot Indian...Book Sex Workers Available Pune Call Girls Lavasa  6297143586 Call Hot Indian...
Book Sex Workers Available Pune Call Girls Lavasa 6297143586 Call Hot Indian...
 
VVIP Pune Call Girls Chakan WhatSapp Number 8005736733 With Elite Staff And R...
VVIP Pune Call Girls Chakan WhatSapp Number 8005736733 With Elite Staff And R...VVIP Pune Call Girls Chakan WhatSapp Number 8005736733 With Elite Staff And R...
VVIP Pune Call Girls Chakan WhatSapp Number 8005736733 With Elite Staff And R...
 
Call Girls Uruli Kanchan Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Uruli Kanchan Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Uruli Kanchan Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Uruli Kanchan Call Me 7737669865 Budget Friendly No Advance Booking
 
Book Paid Chakan Call Girls Pune 8250192130Low Budget Full Independent High P...
Book Paid Chakan Call Girls Pune 8250192130Low Budget Full Independent High P...Book Paid Chakan Call Girls Pune 8250192130Low Budget Full Independent High P...
Book Paid Chakan Call Girls Pune 8250192130Low Budget Full Independent High P...
 
The Most Attractive Pune Call Girls Sanghavi 8250192130 Will You Miss This Ch...
The Most Attractive Pune Call Girls Sanghavi 8250192130 Will You Miss This Ch...The Most Attractive Pune Call Girls Sanghavi 8250192130 Will You Miss This Ch...
The Most Attractive Pune Call Girls Sanghavi 8250192130 Will You Miss This Ch...
 
VIP Model Call Girls Handewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Handewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Handewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Handewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
VIP Model Call Girls Sangvi ( Pune ) Call ON 8005736733 Starting From 5K to 2...
VIP Model Call Girls Sangvi ( Pune ) Call ON 8005736733 Starting From 5K to 2...VIP Model Call Girls Sangvi ( Pune ) Call ON 8005736733 Starting From 5K to 2...
VIP Model Call Girls Sangvi ( Pune ) Call ON 8005736733 Starting From 5K to 2...
 
WhatsApp Chat: 📞 8617697112 Call Girl Reasi is experienced
WhatsApp Chat: 📞 8617697112 Call Girl Reasi is experiencedWhatsApp Chat: 📞 8617697112 Call Girl Reasi is experienced
WhatsApp Chat: 📞 8617697112 Call Girl Reasi is experienced
 
Get Premium Alandi Road Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...
Get Premium Alandi Road Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...Get Premium Alandi Road Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...
Get Premium Alandi Road Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...
 
VIP Model Call Girls Swargate ( Pune ) Call ON 8005736733 Starting From 5K to...
VIP Model Call Girls Swargate ( Pune ) Call ON 8005736733 Starting From 5K to...VIP Model Call Girls Swargate ( Pune ) Call ON 8005736733 Starting From 5K to...
VIP Model Call Girls Swargate ( Pune ) Call ON 8005736733 Starting From 5K to...
 
contact "+971)558539980" to buy abortion pills in Dubai, Abu Dhabi
contact "+971)558539980" to buy abortion pills in Dubai, Abu Dhabicontact "+971)558539980" to buy abortion pills in Dubai, Abu Dhabi
contact "+971)558539980" to buy abortion pills in Dubai, Abu Dhabi
 
Get Premium Austin Town Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...
Get Premium Austin Town Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...Get Premium Austin Town Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...
Get Premium Austin Town Call Girls (8005736733) 24x7 Rate 15999 with A/c Room...
 
VIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Vapi 7001035870 Whatsapp Number, 24/07 Booking
 
Baner Pashan Link Road [ Escorts in Pune ₹7.5k Pick Up & Drop With Cash Payme...
Baner Pashan Link Road [ Escorts in Pune ₹7.5k Pick Up & Drop With Cash Payme...Baner Pashan Link Road [ Escorts in Pune ₹7.5k Pick Up & Drop With Cash Payme...
Baner Pashan Link Road [ Escorts in Pune ₹7.5k Pick Up & Drop With Cash Payme...
 

FBA-PPTs-sssion-17-20 .pptx

  • 1. Course Title: Fundamentals of Data Analytics Course Code: MFDA21205 Instructor: Ms. Sudeshna Sani, Asst. Professor, School of Business.
  • 2. Session-17-18 Machine Learning Models for Data Analytics •Classification: Decision Tree •Regression: Linear regression
  • 3. Machine Learning Machine learning is a subfield of artificial intelligence (AI) that focuses on developing algorithms and models that enable computers to learn and make decisions or predictions without being explicitly programmed. In other words, machine learning allows systems to automatically learn and improve from experience without human intervention. This is achieved through the use of various techniques and algorithms that enable machines to learn patterns, relationships, and rules from data.
  • 6. Supervised Learning Algorithms • Linear Regression • Logistic Regression • Decision Trees • Random Forests • Support Vector Machines (SVM) • Naive Bayes • K-Nearest Neighbors (KNN) • Neural Networks • Gradient Boosting Algorithms
  • 8. Types of Unsupervised Learning • Clustering Algorithms • K-Means Clustering • Hierarchical Clustering • DBSCAN (Density-Based Spatial Clustering of Applications with Noise) • Dimensionality Reduction Algorithms • Principal Component Analysis (PCA) • t-SNE (t-Distributed Stochastic Neighbor Embedding) • Association Rule Mining
  • 10.
  • 13. Regression: Linear regression Linear Regression is a machine learning algorithm based on supervised regression algorithm. Regression models a target prediction value based on independent variables. It is mostly used for finding out the relationship between variables and forecasting. Linear regression is used to estimate the dependent variable in case of a change in independent variables. For example, predict the price of houses. The weight of the person is linearly related to their height. So, this shows a linear relationship between the height and weight of the person. According to this, as we increase the height, the weight of the person will also increase.
  • 14. Session-19-Performance Evaluation of Models • Confusion Matrix • Accuracy • Precision • Recall • F1-Score • Residual Errors
  • 15. Confusion Matrix A confusion matrix is a tabular summary of the number of correct and incorrect predictions made by a classifier. It is used to measure the performance of a classification model.
  • 16. Let’s take an example: We have a total of 20 cats and dogs and our model predicts whether it is a cat or not. Actual values = [‘dog’, ‘cat’, ‘dog’, ‘cat’, ‘dog’, ‘ dog’, ‘cat’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’] Predicted values = [‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’, ‘cat’, ‘cat’, ‘cat’, ‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’]
  • 17. Sl. No Actual value(P) Predicted value(N) Match TP/TN 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ‘dog’, ‘cat’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’ ‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’, ‘cat’, ‘cat’, ‘cat’, ‘dog’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’, ‘dog’, ‘dog’, ‘cat’ Yes No Yes Yes Yes Yes Yes No Yes No Yes Yes Yes No Yes Yes Yes Yes Yes Yes TP FP True Positive (TP) = 6 True Negative (TN) = 11 False Positive (Type 1 Error) (FP) = 2 False Negative (Type 2 Error) (FN) = 1
  • 18. Precision: “Precision is a useful metric in cases where False Positive is a higher concern than False Negatives”. In Spam Detection : Need to focus on precision
  • 19. Recall: It is a measure of actual observations which are predicted correctly, i.e. how many observations of positive class are actually predicted as positive. It is also known as Sensitivity. Recall is a valid choice of evaluation metric when we want to capture as many positives as possible.
  • 20. F-measure / F1-Score The F1 score is a number between 0 and 1 and is the harmonic mean of precision and recall. We use harmonic mean because it is not sensitive to extremely large values, unlike simple averages. F1 score sort of maintains a balance between the precision and recall for your classifier. If your precision is low, the F1 is low and if the recall is low again your F1 score is low.
  • 21. Residuals • A residual is a measure of how far away a point is vertically from the regression line. Simply, it is the error between a predicted value and the observed actual value.
  • 22. Session – 20 – Project/Case Study for Data Analytics • Mini-Project /Case Study