SlideShare a Scribd company logo
Supervised Machine
Learning
By Rahul Pal
Lead Data Scientist
Agenda
 Introduction to Machine Learning
 Introduction to Supervised Learning
 Classification vs Regression
 Introduction to Linear Regression
 Learning of Linear Regression
 Introduction to Logistic Regression
 Learning to Logistic Regression
 Case Studies
`
Introduction to
Machine Learning
Machine learning is the subfield of
computer science that gives
computer the ability to learn
without being programmed
Practical Examples
Types of ML
techniques
1. Supervised Learning
2. Unsupervised Learning
3. Reinforcement Learning
Supervised Learning
There are two categories for supervised learning
techniques
 Regression
 Classification
Regression
 Linear Regression
 Multi-Linear Regression
 Polynomial Regression
 Decision Tree Regression
 Random Forest Regression
Linear Regression
What is Linear Regression? How does it work?
 Regression is a parametric technique
used to predict continuous
(dependent) variable given a set of
independent variables.
 Equation:
Y = βo + β1X + ∈
where, Y - Dependent variable, X -
Independent variable, βo – Intercept, β1
– Slope, ∈ - Error
What are the
assumptions made
in Linear regression?
1. There exists a linear and additive relationship
between dependent (DV) and independent
variables (IV)
2. There must be no correlation among independent
variables (no multicollinearity
3. The error terms must possess constant variance (no
heteroskedasticity)
4. No autocorrelation
5. The dependent variable and the error terms
must possess a normal distribution.
How to check for those Assumptions?
Normal Q-Q plot
(to check Normal
distribution of errors)
Residual vs. Fitted Values
Plot
(for heteroskedasticity)
Other tests:
1. Durbin Watson Statistic (DW) - Autocorrelation
2. Variance Inflation Factor (VIF) – Multicollinearity
3. Breusch-Pagan/Cook Weisberg Test – Heteroskedasticity
Evaluation Metrics for Linear Regression
 R square (Coefficient of Determination)
 It ranges from 0 to 1
 Greater the value better the prediction
 Adjusted R²
 Same as R squared but it doesn’t get affected upon
addition of new insignificant variables
 Error Metrics:
 MSE: suppose the actual y is 10 and predictive y is
30, the resultant MSE would be (30-10)² = 400.
 MAE: the resultant MAE would be (30-10) = 20
 RMSE: Squared root(MSE) so RMSE = √(30-10)² = 20
Regression
Case Study
You own an ice cream business and you would like to create a
model that could predict the daily revenue in dollars based on
the outside air temperature (°C).
You decided that a Linear Regression model might be a good
candidate to solve this problem.
Data set:
Independent variable X: Outside Air Temperature
Dependent variable Y: Overall daily revenue generated in dollars
Logistic Regression
What is Logistic Regression? How does it work?
 Logistic regression is a statistical technique used
to predict probability of binary response based
on one or more independent variables.
 It is used to predict an outcome which has two
values such as 0 or 1, pass or fail, yes or no etc.
 Equation:
Sigmoid Function & Prediction
Evaluation Metrics for Logistic Regression
 Confusion Matrix (in fig): It can also be used to
derive
 Accuracy : (TP+TN) / (TP+TN+TF+FP)
 Precision : (TP) / (TP+FP)
 Recall : (TP) / (TP+FN)
 F-1 Score : 2*(Precision*Recall) / (Precision+Recall)
 Other metrics:
 Receiver Operator Characteristic (ROC)
 Akaike Information Criteria (AIC)
Classification
Case Study
You own a advertisement agency. You have customer data who
watches your ads and clicks on it or not. On the basis of this data
you want to try enhancing your customer targeting.
You wanted to categorize your customers into those who will
click on ad vs those who won’t. So we will build a logistic model
to achieve this goal and maximize our click conversion rate.
Data set:
Independent variable X: Customer Related Data
Dependent variable Y: Clicked on Ad
“
”
Thank You.
Feel free to contact for any queries
Rahul Pal
the.rahul.pal@gmail.com

More Related Content

What's hot

What Is Random Forest Classification And How Can It Help Your Business?
What Is Random Forest Classification And How Can It Help Your Business?What Is Random Forest Classification And How Can It Help Your Business?
What Is Random Forest Classification And How Can It Help Your Business?
Smarten Augmented Analytics
 
What is Hierarchical Clustering and How Can an Organization Use it to Analyze...
What is Hierarchical Clustering and How Can an Organization Use it to Analyze...What is Hierarchical Clustering and How Can an Organization Use it to Analyze...
What is Hierarchical Clustering and How Can an Organization Use it to Analyze...
Smarten Augmented Analytics
 
Prediction of house price using multiple regression
Prediction of house price using multiple regressionPrediction of house price using multiple regression
Prediction of house price using multiple regression
vinovk
 
Employee mode of commuting
Employee mode of commutingEmployee mode of commuting
Employee mode of commuting
Saleesh Satheeshchandran
 
Credit risk - loan default model
Credit risk - loan default modelCredit risk - loan default model
Credit risk - loan default model
Saleesh Satheeshchandran
 
Factors affecting customer satisfaction
Factors affecting customer satisfactionFactors affecting customer satisfaction
Factors affecting customer satisfaction
Saleesh Satheeshchandran
 
Mb0048 operations research
Mb0048   operations researchMb0048   operations research
Mb0048 operations research
smumbahelp
 
Predictive analytics
Predictive analyticsPredictive analytics
Predictive analytics
Kunal Kumar
 
Chapter 19 decision-making under risk
Chapter 19   decision-making under riskChapter 19   decision-making under risk
Chapter 19 decision-making under risk
Bich Lien Pham
 
What is Descriptive Statistics and How Do You Choose the Right One for Enterp...
What is Descriptive Statistics and How Do You Choose the Right One for Enterp...What is Descriptive Statistics and How Do You Choose the Right One for Enterp...
What is Descriptive Statistics and How Do You Choose the Right One for Enterp...
Smarten Augmented Analytics
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 01
2013901097
 
SEE Sensitivity Analysis
SEE Sensitivity AnalysisSEE Sensitivity Analysis
SEE Sensitivity Analysis
umair khan
 
What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...
What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...
What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...
Smarten Augmented Analytics
 
ForecastIT 6. Multi-Variable Linear Regression
ForecastIT 6. Multi-Variable Linear RegressionForecastIT 6. Multi-Variable Linear Regression
ForecastIT 6. Multi-Variable Linear Regression
DeepThought, Inc.
 
ForecastIT 2. Linear Regression & Model Statistics
ForecastIT 2. Linear Regression & Model StatisticsForecastIT 2. Linear Regression & Model Statistics
ForecastIT 2. Linear Regression & Model Statistics
DeepThought, Inc.
 
ForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential SmoothingForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential Smoothing
DeepThought, Inc.
 
Math 533 course project salescall inc
Math 533 course project salescall incMath 533 course project salescall inc
Math 533 course project salescall inc
Patrickrasacs
 
HRUG - Linear regression with R
HRUG - Linear regression with RHRUG - Linear regression with R
HRUG - Linear regression with R
egoodwintx
 
Customer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R OpenCustomer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R Open
Poo Kuan Hoong
 
Car insurance - data visualization
Car insurance - data visualizationCar insurance - data visualization
Car insurance - data visualization
Saleesh Satheeshchandran
 

What's hot (20)

What Is Random Forest Classification And How Can It Help Your Business?
What Is Random Forest Classification And How Can It Help Your Business?What Is Random Forest Classification And How Can It Help Your Business?
What Is Random Forest Classification And How Can It Help Your Business?
 
What is Hierarchical Clustering and How Can an Organization Use it to Analyze...
What is Hierarchical Clustering and How Can an Organization Use it to Analyze...What is Hierarchical Clustering and How Can an Organization Use it to Analyze...
What is Hierarchical Clustering and How Can an Organization Use it to Analyze...
 
Prediction of house price using multiple regression
Prediction of house price using multiple regressionPrediction of house price using multiple regression
Prediction of house price using multiple regression
 
Employee mode of commuting
Employee mode of commutingEmployee mode of commuting
Employee mode of commuting
 
Credit risk - loan default model
Credit risk - loan default modelCredit risk - loan default model
Credit risk - loan default model
 
Factors affecting customer satisfaction
Factors affecting customer satisfactionFactors affecting customer satisfaction
Factors affecting customer satisfaction
 
Mb0048 operations research
Mb0048   operations researchMb0048   operations research
Mb0048 operations research
 
Predictive analytics
Predictive analyticsPredictive analytics
Predictive analytics
 
Chapter 19 decision-making under risk
Chapter 19   decision-making under riskChapter 19   decision-making under risk
Chapter 19 decision-making under risk
 
What is Descriptive Statistics and How Do You Choose the Right One for Enterp...
What is Descriptive Statistics and How Do You Choose the Right One for Enterp...What is Descriptive Statistics and How Do You Choose the Right One for Enterp...
What is Descriptive Statistics and How Do You Choose the Right One for Enterp...
 
Operation research - Chapter 01
Operation research - Chapter 01Operation research - Chapter 01
Operation research - Chapter 01
 
SEE Sensitivity Analysis
SEE Sensitivity AnalysisSEE Sensitivity Analysis
SEE Sensitivity Analysis
 
What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...
What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...
What is the Holt-Winters Forecasting Algorithm and How Can it be Used for Ent...
 
ForecastIT 6. Multi-Variable Linear Regression
ForecastIT 6. Multi-Variable Linear RegressionForecastIT 6. Multi-Variable Linear Regression
ForecastIT 6. Multi-Variable Linear Regression
 
ForecastIT 2. Linear Regression & Model Statistics
ForecastIT 2. Linear Regression & Model StatisticsForecastIT 2. Linear Regression & Model Statistics
ForecastIT 2. Linear Regression & Model Statistics
 
ForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential SmoothingForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential Smoothing
 
Math 533 course project salescall inc
Math 533 course project salescall incMath 533 course project salescall inc
Math 533 course project salescall inc
 
HRUG - Linear regression with R
HRUG - Linear regression with RHRUG - Linear regression with R
HRUG - Linear regression with R
 
Customer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R OpenCustomer Churn Analytics using Microsoft R Open
Customer Churn Analytics using Microsoft R Open
 
Car insurance - data visualization
Car insurance - data visualizationCar insurance - data visualization
Car insurance - data visualization
 

Similar to Supervised learning - Linear and Logistic Regression( AI, ML)

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
Sridhar Ratakonda
 
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning,  Chapter 2- Supervised LearningCourse Title: Introduction to Machine Learning,  Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Shumet Tadesse
 
Supervised Learning.pdf
Supervised Learning.pdfSupervised Learning.pdf
Supervised Learning.pdf
gadissaassefa
 
Demand estimation and forecasting
Demand estimation and forecastingDemand estimation and forecasting
Demand estimation and forecasting
shivraj negi
 
Marketing Engineering Notes
Marketing Engineering NotesMarketing Engineering Notes
Marketing Engineering Notes
Felipe Affonso
 
Machine learning in credit risk modeling : a James white paper
Machine learning in credit risk modeling : a James white paperMachine learning in credit risk modeling : a James white paper
Machine learning in credit risk modeling : a James white paper
James by CrowdProcess
 
CHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptxCHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptx
UmaDeviAnanth
 
ForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docxForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docx
budbarber38650
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
Rupak Roy
 
Sarcia idoese08
Sarcia idoese08Sarcia idoese08
Sarcia idoese08
asarcia
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spss
Dr Nisha Arora
 
Market Research using SPSS _ Edu4Sure Sept 2023.ppt
Market Research using SPSS _ Edu4Sure Sept 2023.pptMarket Research using SPSS _ Edu4Sure Sept 2023.ppt
Market Research using SPSS _ Edu4Sure Sept 2023.ppt
Edu4Sure
 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptx
VickyKumar131533
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
TanyaWadhwani4
 
Techniques in marketing research
Techniques in marketing researchTechniques in marketing research
Techniques in marketing research
Sunny Bose
 
Introduction to Econometrics for under gruadute class.pptx
Introduction to Econometrics for under gruadute class.pptxIntroduction to Econometrics for under gruadute class.pptx
Introduction to Econometrics for under gruadute class.pptx
tadegebreyesus
 
Predicting Employee Attrition
Predicting Employee AttritionPredicting Employee Attrition
Predicting Employee Attrition
Shruti Mohan
 
Machine learning Mind Map
Machine learning Mind MapMachine learning Mind Map
Machine learning Mind Map
Ashish Patel
 
Logistic Regression power point presentation.pptx
Logistic Regression power point presentation.pptxLogistic Regression power point presentation.pptx
Logistic Regression power point presentation.pptx
harshasawa2003
 
Summer 07-mfin7011-tang1922
Summer 07-mfin7011-tang1922Summer 07-mfin7011-tang1922
Summer 07-mfin7011-tang1922
stone55
 

Similar to Supervised learning - Linear and Logistic Regression( AI, ML) (20)

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
 
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning,  Chapter 2- Supervised LearningCourse Title: Introduction to Machine Learning,  Chapter 2- Supervised Learning
Course Title: Introduction to Machine Learning, Chapter 2- Supervised Learning
 
Supervised Learning.pdf
Supervised Learning.pdfSupervised Learning.pdf
Supervised Learning.pdf
 
Demand estimation and forecasting
Demand estimation and forecastingDemand estimation and forecasting
Demand estimation and forecasting
 
Marketing Engineering Notes
Marketing Engineering NotesMarketing Engineering Notes
Marketing Engineering Notes
 
Machine learning in credit risk modeling : a James white paper
Machine learning in credit risk modeling : a James white paperMachine learning in credit risk modeling : a James white paper
Machine learning in credit risk modeling : a James white paper
 
CHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptxCHAPTER 11 LOGISTIC REGRESSION.pptx
CHAPTER 11 LOGISTIC REGRESSION.pptx
 
ForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docxForecastingBUS255 GoalsBy the end of this chapter, y.docx
ForecastingBUS255 GoalsBy the end of this chapter, y.docx
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Sarcia idoese08
Sarcia idoese08Sarcia idoese08
Sarcia idoese08
 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spss
 
Market Research using SPSS _ Edu4Sure Sept 2023.ppt
Market Research using SPSS _ Edu4Sure Sept 2023.pptMarket Research using SPSS _ Edu4Sure Sept 2023.ppt
Market Research using SPSS _ Edu4Sure Sept 2023.ppt
 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptx
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Techniques in marketing research
Techniques in marketing researchTechniques in marketing research
Techniques in marketing research
 
Introduction to Econometrics for under gruadute class.pptx
Introduction to Econometrics for under gruadute class.pptxIntroduction to Econometrics for under gruadute class.pptx
Introduction to Econometrics for under gruadute class.pptx
 
Predicting Employee Attrition
Predicting Employee AttritionPredicting Employee Attrition
Predicting Employee Attrition
 
Machine learning Mind Map
Machine learning Mind MapMachine learning Mind Map
Machine learning Mind Map
 
Logistic Regression power point presentation.pptx
Logistic Regression power point presentation.pptxLogistic Regression power point presentation.pptx
Logistic Regression power point presentation.pptx
 
Summer 07-mfin7011-tang1922
Summer 07-mfin7011-tang1922Summer 07-mfin7011-tang1922
Summer 07-mfin7011-tang1922
 

Recently uploaded

06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus
Timothy Spann
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
Vineet
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
z6osjkqvd
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
GeorgiiSteshenko
 
Data Scientist Machine Learning Profiles .pdf
Data Scientist Machine Learning  Profiles .pdfData Scientist Machine Learning  Profiles .pdf
Data Scientist Machine Learning Profiles .pdf
Vineet
 
Q4FY24 Investor-Presentation.pdf bank slide
Q4FY24 Investor-Presentation.pdf bank slideQ4FY24 Investor-Presentation.pdf bank slide
Q4FY24 Investor-Presentation.pdf bank slide
mukulupadhayay1
 
Namma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdf
Namma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdfNamma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdf
Namma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdf
22ad0301
 
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
actyx
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
NABLAS株式会社
 
Econ3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdfEcon3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdf
blueshagoo1
 
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service LucknowCall Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
hiju9823
 
Build applications with generative AI on Google Cloud
Build applications with generative AI on Google CloudBuild applications with generative AI on Google Cloud
Build applications with generative AI on Google Cloud
Márton Kodok
 
一比一原版(uob毕业证书)伯明翰大学毕业证如何办理
一比一原版(uob毕业证书)伯明翰大学毕业证如何办理一比一原版(uob毕业证书)伯明翰大学毕业证如何办理
一比一原版(uob毕业证书)伯明翰大学毕业证如何办理
9gr6pty
 
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdfreading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
perranet1
 
一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理
zsafxbf
 
一比一原版南昆士兰大学毕业证如何办理
一比一原版南昆士兰大学毕业证如何办理一比一原版南昆士兰大学毕业证如何办理
一比一原版南昆士兰大学毕业证如何办理
ugydym
 
How To Control IO Usage using Resource Manager
How To Control IO Usage using Resource ManagerHow To Control IO Usage using Resource Manager
How To Control IO Usage using Resource Manager
Alireza Kamrani
 
Bangalore ℂall Girl 000000 Bangalore Escorts Service
Bangalore ℂall Girl 000000 Bangalore Escorts ServiceBangalore ℂall Girl 000000 Bangalore Escorts Service
Bangalore ℂall Girl 000000 Bangalore Escorts Service
nhero3888
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
hyfjgavov
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
osoyvvf
 

Recently uploaded (20)

06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus06-18-2024-Princeton Meetup-Introduction to Milvus
06-18-2024-Princeton Meetup-Introduction to Milvus
 
Sample Devops SRE Product Companies .pdf
Sample Devops SRE  Product Companies .pdfSample Devops SRE  Product Companies .pdf
Sample Devops SRE Product Companies .pdf
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
 
Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)Telemetry Solution for Gaming (AWS Summit'24)
Telemetry Solution for Gaming (AWS Summit'24)
 
Data Scientist Machine Learning Profiles .pdf
Data Scientist Machine Learning  Profiles .pdfData Scientist Machine Learning  Profiles .pdf
Data Scientist Machine Learning Profiles .pdf
 
Q4FY24 Investor-Presentation.pdf bank slide
Q4FY24 Investor-Presentation.pdf bank slideQ4FY24 Investor-Presentation.pdf bank slide
Q4FY24 Investor-Presentation.pdf bank slide
 
Namma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdf
Namma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdfNamma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdf
Namma-Kalvi-11th-Physics-Study-Material-Unit-1-EM-221086.pdf
 
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
一比一原版斯威本理工大学毕业证(swinburne毕业证)如何办理
 
社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .社内勉強会資料_Hallucination of LLMs               .
社内勉強会資料_Hallucination of LLMs               .
 
Econ3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdfEcon3060_Screen Time and Success_ final_GroupProject.pdf
Econ3060_Screen Time and Success_ final_GroupProject.pdf
 
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service LucknowCall Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
Call Girls Lucknow 0000000000 Independent Call Girl Service Lucknow
 
Build applications with generative AI on Google Cloud
Build applications with generative AI on Google CloudBuild applications with generative AI on Google Cloud
Build applications with generative AI on Google Cloud
 
一比一原版(uob毕业证书)伯明翰大学毕业证如何办理
一比一原版(uob毕业证书)伯明翰大学毕业证如何办理一比一原版(uob毕业证书)伯明翰大学毕业证如何办理
一比一原版(uob毕业证书)伯明翰大学毕业证如何办理
 
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdfreading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
reading_sample_sap_press_operational_data_provisioning_with_sap_bw4hana (1).pdf
 
一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理一比一原版莱斯大学毕业证(rice毕业证)如何办理
一比一原版莱斯大学毕业证(rice毕业证)如何办理
 
一比一原版南昆士兰大学毕业证如何办理
一比一原版南昆士兰大学毕业证如何办理一比一原版南昆士兰大学毕业证如何办理
一比一原版南昆士兰大学毕业证如何办理
 
How To Control IO Usage using Resource Manager
How To Control IO Usage using Resource ManagerHow To Control IO Usage using Resource Manager
How To Control IO Usage using Resource Manager
 
Bangalore ℂall Girl 000000 Bangalore Escorts Service
Bangalore ℂall Girl 000000 Bangalore Escorts ServiceBangalore ℂall Girl 000000 Bangalore Escorts Service
Bangalore ℂall Girl 000000 Bangalore Escorts Service
 
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
一比一原版兰加拉学院毕业证(Langara毕业证书)学历如何办理
 
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
一比一原版(uom毕业证书)曼彻斯特大学毕业证如何办理
 

Supervised learning - Linear and Logistic Regression( AI, ML)

  • 1. Supervised Machine Learning By Rahul Pal Lead Data Scientist
  • 2. Agenda  Introduction to Machine Learning  Introduction to Supervised Learning  Classification vs Regression  Introduction to Linear Regression  Learning of Linear Regression  Introduction to Logistic Regression  Learning to Logistic Regression  Case Studies
  • 3. ` Introduction to Machine Learning Machine learning is the subfield of computer science that gives computer the ability to learn without being programmed
  • 5. Types of ML techniques 1. Supervised Learning 2. Unsupervised Learning 3. Reinforcement Learning
  • 6. Supervised Learning There are two categories for supervised learning techniques  Regression  Classification
  • 7.
  • 8.
  • 9. Regression  Linear Regression  Multi-Linear Regression  Polynomial Regression  Decision Tree Regression  Random Forest Regression
  • 11. What is Linear Regression? How does it work?  Regression is a parametric technique used to predict continuous (dependent) variable given a set of independent variables.  Equation: Y = βo + β1X + ∈ where, Y - Dependent variable, X - Independent variable, βo – Intercept, β1 – Slope, ∈ - Error
  • 12. What are the assumptions made in Linear regression? 1. There exists a linear and additive relationship between dependent (DV) and independent variables (IV) 2. There must be no correlation among independent variables (no multicollinearity 3. The error terms must possess constant variance (no heteroskedasticity) 4. No autocorrelation 5. The dependent variable and the error terms must possess a normal distribution.
  • 13. How to check for those Assumptions? Normal Q-Q plot (to check Normal distribution of errors) Residual vs. Fitted Values Plot (for heteroskedasticity)
  • 14. Other tests: 1. Durbin Watson Statistic (DW) - Autocorrelation 2. Variance Inflation Factor (VIF) – Multicollinearity 3. Breusch-Pagan/Cook Weisberg Test – Heteroskedasticity
  • 15. Evaluation Metrics for Linear Regression  R square (Coefficient of Determination)  It ranges from 0 to 1  Greater the value better the prediction  Adjusted R²  Same as R squared but it doesn’t get affected upon addition of new insignificant variables  Error Metrics:  MSE: suppose the actual y is 10 and predictive y is 30, the resultant MSE would be (30-10)² = 400.  MAE: the resultant MAE would be (30-10) = 20  RMSE: Squared root(MSE) so RMSE = √(30-10)² = 20
  • 16. Regression Case Study You own an ice cream business and you would like to create a model that could predict the daily revenue in dollars based on the outside air temperature (°C). You decided that a Linear Regression model might be a good candidate to solve this problem. Data set: Independent variable X: Outside Air Temperature Dependent variable Y: Overall daily revenue generated in dollars
  • 18. What is Logistic Regression? How does it work?  Logistic regression is a statistical technique used to predict probability of binary response based on one or more independent variables.  It is used to predict an outcome which has two values such as 0 or 1, pass or fail, yes or no etc.  Equation:
  • 19. Sigmoid Function & Prediction
  • 20. Evaluation Metrics for Logistic Regression  Confusion Matrix (in fig): It can also be used to derive  Accuracy : (TP+TN) / (TP+TN+TF+FP)  Precision : (TP) / (TP+FP)  Recall : (TP) / (TP+FN)  F-1 Score : 2*(Precision*Recall) / (Precision+Recall)  Other metrics:  Receiver Operator Characteristic (ROC)  Akaike Information Criteria (AIC)
  • 21. Classification Case Study You own a advertisement agency. You have customer data who watches your ads and clicks on it or not. On the basis of this data you want to try enhancing your customer targeting. You wanted to categorize your customers into those who will click on ad vs those who won’t. So we will build a logistic model to achieve this goal and maximize our click conversion rate. Data set: Independent variable X: Customer Related Data Dependent variable Y: Clicked on Ad
  • 22. “ ” Thank You. Feel free to contact for any queries Rahul Pal the.rahul.pal@gmail.com