BA TopicB LoR
BA TopicB LoR
--
Topic B
Topic: Probabilistic Prediction
(Classification – Logistic Regression
--
Rushikesh P Borse, PhD
Faculty – Analytics, Great Lakes Institute of Management, Chennai
Contents to be discussed…
• Regression
• Problems with linear regression
• Odds
• Logistic regression
• Case Study + Business Implications
• Implementation on Excel (Logit)
Where all do we need to predict a Class?
Different (Classification) Prediction Techniques
• Logistic Regression
• Artificial Neural network (ANN)
• Decision Trees
• Naïve Bayes
• Support Vector Machines (SVM)
• KNN classifier
• Random forest
• Ensemble learning techniques
• Deep Learning (CNN)
Different (Classification) Prediction Techniques
• Logistic Regression
• Artificial Neural network (ANN)
• Decision Trees
• Naïve Bayes
• Support Vector Machines (SVM)
• KNN classifier
• Random forest
• Ensemble learning techniques
• Deep Learning (CNN)
Application of Logistic Regression in…
• More applications…
For Regression
Need of logistic over linear Regression ?
But what if the data contains an outlier? Things would become shambles.
For Probabilistic prediction (classification )
• 1.
Logistic regression – The math behind it
• Z = b0+b1X1 – If one IV
• P = exp(z) / (1+exp(z))
• P = 1 / (1+exp(-z))
• P = exp(z) / (1+exp(z))
• P = 1 / (1+exp(-z))
• Log odds = z
Relationship between Probability, odds ratio
Relation ship between Probability, odds ratio and log of odds ratio.
One verses the another…
Odds and Log odds
Odds and Odds ratio – An medical example
Odds and Odds ratio – An medical example
The odds that a person not having cough/cold, also has fever =
• Limitations
• Sensitive to outliers
• Only significant features should be used to construct LOR
model, otherwise incorrect predictions will happen
Implementation