SlideShare a Scribd company logo
1 of 52
Machine
Learning Basics
An Introduction
Surviving the Titanic
Suppose, you have to build a model
to predict how many people survived
the Titanic shipwreck
Surviving the Titanic
Suppose, you have to build a model
to predict how many people survived
the Titanic shipwreck
Surviving the Titanic
β€’ ID
β€’ Survived
β€’ Class
β€’ Name
β€’ Sex
β€’ Age
β€’ Siblings
β€’ Parents/children abroad
β€’ Ticket
β€’ Fare
β€’ Cabin
β€’ Place of Embarkment
Teaching the model with the
passenger dataset
Dropping the non-essential
components of the dataset
Determining the survival of
passengers and evaluating the
model
Agenda
What is Supervised Learning?
What is Classification? What are some of its solutions?
What is Logistic Regression?
Comparing Linear and Logistic Regression
Logistic Regression applications
Use Case – Predicting the number in an image
What is Supervised Learning?
What is Supervised Learning?
That’s an
apple!
apple
Teacher teaches child Child recognizes an apple when she sees it again
A model is able to make predictions based on past data
Where does Logistic Regression fit it?
Machine Learning
Supervised Learning Unsupervised Learning
AssociationClusteringClassification Regression
The systems predicts future outcomes based on training from past input
Solutions to Classification
A few Classification Solutions
A B
We take decisions using a tree structure. Each
branch node represents a choice, and leaf node
represents a decision
Decision Trees
A few Classification Solutions
A B
Decision Trees
We take decisions using a tree structure. Each
branch node represents a choice, and leaf node
represents a decision
It helps determine what the given object is, based on
its similarity to the objects it is compared toK=3
K=7
K-Nearest Neighbor
It helps determine what the given object is, based on
its similarity to the objects it is compared toK=3
K=7
K-Nearest Neighbor
Decision Trees
A few Classification Solutions
A B
We determine the probability of an event occurring
with the help of a tree structure
A dataset with one or more independent variables is
used to determine binary output of the dependent
variable
Logistic Regression
What is Logistic Regression?
What is Logistic Regression?
Imagine it’s been a few years since
you serviced your car.
One day you wonder…
What is Logistic Regression?
It is a classification algorithm, used to predict binary outcomes for a given set of independent
variables. The dependent variable’s outcome is discrete.
Regression model created based on other
users’ experience
0.60
0.20
0.40
0.80
1.00
1 2 3 4 5 6
Years since service
Probabilityofbreakdown
How long until the
car breaks down?
You provide years since
last service
What is Logistic Regression?
Probability>0.50
Value rounded off to
1 : The car will
breakdown
Probability<0.50
Value rounded off to 0:
The car will not
breakdown
Here, the threshold
value 0.50 indicates
that the car is more
likely to breakdown
after 3.5 years of
usage
Model makes predictions
0.60
0.20
0.40
0.80
1.00
1 2 3 4 5 6
Years since last service
Probabilityofbreakdown
0.50
0.29
0.90
Threshold Value
What is Linear Regression?
Linear Regression
It is a statistical method that helps find the relationship between an independent and dependent variable,
both of which are continuous
He performed
well in the last
quarter. How
much raise
should he get?
Linear Regression
41 2 3 5
5
10
15
20
25
Employee rating
Salaryhike
Collection of ratings and corresponding
hikes Linear Regression is performed on data
The management provides the
corresponding salary hike
Employee rating
Linear and Logistic Regression
Here’s the graph of how linear
regression would be, for a given
scenario
x
y
Linear and Logistic Regression
What if you wanted to know whether the
employee would get a promotion or not
based on their rating
41 2 3 5
0 =No
1=Yes
Employee rating
Probabilityofgettinga
promotion
Linear and Logistic Regression
This graph would not be able to
make such a prediction. So we clip
the line at 0 and 1.
41 2 3 5
Employee rating
0 =No
1=Yes
Probabilityofgettinga
promotion
Linear and Logistic Regression
So, how did this… …become this?
41 2 3 5
Employee rating
41 2 3 5
Employee rating
0 =No
1=Yes
Probabilityofgettinga
promotion
0 =No
1=Yes
Probabilityofgettinga
promotion
The Math behind Logistic Regression
To understand Logistic Regression, let’s talk
about the odds of success
Odds (πœƒ) =
Probability of an
event happening
Probability of an
event not
happening
or πœƒ =
𝑝
1 βˆ’ 𝑝
The values of odds range from 0 to ∞
The values of probability change from 0 to 1
The Math behind Logistic Regression
Type equation here.
Take the equation of the straight line
𝛽0
x
y
Here, 𝛽0 is the y-intercept
𝛽1 is the slope of the line
x is the value of the x co-ordinate
y is the value of the prediction
The equation would be: 𝑦 = 𝛽0 + 𝛽1 π‘₯
The Math behind Logistic Regression
Type equation here.
Now, we predict the odds of success
e𝑙𝑛
𝑝 π‘₯
1 βˆ’ 𝑝 π‘₯
= e 𝛽0+𝛽1 π‘₯
log
𝑝 π‘₯
1βˆ’π‘ƒ π‘₯
= 𝛽0 + 𝛽1 π‘₯
Exponentiating both sides:
𝑝 π‘₯
1 βˆ’ 𝑝 π‘₯
= e 𝛽0+𝛽1 π‘₯
Let Y = e 𝛽0+𝛽1 π‘₯
Then
𝑝 π‘₯
1βˆ’π‘ π‘₯
= Y
𝑝 π‘₯ = π‘Œ 1 βˆ’ 𝑝 π‘₯
𝑝 π‘₯ = π‘Œ βˆ’ π‘Œ 𝑝 π‘₯
𝑝 π‘₯ + π‘Œ 𝑝 π‘₯ = π‘Œ
𝑝 π‘₯ 1 + π‘Œ = π‘Œ
𝑝 π‘₯ =
π‘Œ
1 + π‘Œ
𝑝 π‘₯ =
e 𝛽0+𝛽1 π‘₯
1 + e 𝛽0+𝛽1 π‘₯
The equation of a sigmoid function:
𝑝 π‘₯ =
e 𝛽0+𝛽1 π‘₯
1 + e 𝛽0+𝛽1 π‘₯
𝑝 π‘₯ =
1
1 + eβˆ’(𝛽0+𝛽1 π‘₯)
The Math behind Logistic Regression
Type equation here.
Now, we predict the odds of success
e𝑙𝑛
𝑝 π‘₯
1 βˆ’ 𝑝 π‘₯
= e 𝛽0+𝛽1 π‘₯
log
𝑝 π‘₯
1βˆ’π‘ƒ π‘₯
= 𝛽0 + 𝛽1 π‘₯
Exponentiating both sides:
𝑝 π‘₯
1 βˆ’ 𝑝 π‘₯
= e 𝛽0+𝛽1 π‘₯
Let Y = e 𝛽0+𝛽1 π‘₯
Then
𝑝 π‘₯
1βˆ’π‘ π‘₯
= Y
𝑝 π‘₯ = π‘Œ 1 βˆ’ 𝑝 π‘₯
𝑝 π‘₯ = π‘Œ βˆ’ π‘Œ 𝑝 π‘₯
𝑝 π‘₯ + π‘Œ 𝑝 π‘₯ = π‘Œ
𝑝 π‘₯ 1 + π‘Œ = π‘Œ
𝑝 π‘₯ =
π‘Œ
1 + π‘Œ
𝑝 π‘₯ =
e 𝛽0+𝛽1 π‘₯
1 + e 𝛽0+𝛽1 π‘₯
The equation of a sigmoid function:
𝑝 π‘₯ =
e 𝛽0+𝛽1 π‘₯
1 + e 𝛽0+𝛽1 π‘₯
𝑝 π‘₯ =
1
1 + eβˆ’(𝛽0+𝛽1 π‘₯)
41 2 3 5
0
0.25
0.50
0.75
1
Employee rating
Probabilityofgettinga
promotion
A sigmoid curve is obtained!
Comparing Linear and Logistic
Regression
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Regression
Problems
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Classification
Problems
β€’ Used to solve Regression
Problems
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Classification
Problems
β€’ Used to solve Regression
Problems
β€’ The response variables are
continuous in nature
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Classification
Problems
β€’ The response variable is
categorical in nature
β€’ Used to solve Regression
Problems
β€’ The response variables are
continuous in nature
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Classification
Problems
β€’ The response variable is
categorical in nature
β€’ Used to solve Regression
Problems
β€’ The response variables are
continuous in nature
β€’ It helps estimate the dependent
variable when there is a change
in the independent variable.
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Classification
Problems
β€’ The response variable is
categorical in nature
β€’ It helps calculate the possibility
of a particular event taking
place.
β€’ Used to solve Regression
Problems
β€’ The response variables are
continuous in nature
β€’ It helps estimate the dependent
variable when there is a change
in the independent variable.
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Classification
Problems
β€’ The response variable is
categorical in nature
β€’ It helps calculate the possibility
of a particular event taking
place.
β€’ Used to solve Regression
Problems
β€’ The response variables are
continuous in nature
β€’ It helps estimate the dependent
variable when there is a change
in the independent variable.
β€’ Is a straight line.
How is Linear and Logistic Regression different?
Linear Regression Logistic Regression
β€’ Used to solve Classification
Problems
β€’ The response variable is
categorical in nature
β€’ It helps calculate the possibility
of a particular event taking
place.
β€’ An S-curve. (S = Sigmoid)
β€’ Used to solve Regression
Problems
β€’ The response variables are
continuous in nature
β€’ It helps estimate the dependent
variable when there is a change
in the independent variable.
β€’ Is a straight line.
Logistic Regression Applications
Weather Prediction
Helps determine the kind of weather that
can be expected
Identifies the different components
that are present in the image, and
helps categorize them
Logistic Regression Applications
Humans Animals Vehicles
Image Categorization
Determines the possibility of patient
survival, taking age, ISS and RTS into
consideration
Logistic Regression Applications
Healthcare (TRISS)
Patient survival %
Revised
Trauma Score
Injury Severity
Score
Age
Use Case – Predicting numbers in
images
Use Case – Predicting numbers
Can you guess
what number I am? Are you a 3? 4?
I don’t know!
8x8 image
Use Case – Predicting numbers
Dividing the data set
Training
set
Test set
The model being trained
Model identifies number in
images
Test set applied
A number 4
A number 1
Use Case – Implementation
Importing libraries and their associated methods
Determining the total number of images and labels
Use Case – Implementation
Displaying some of the images and labels
Use Case – Implementation
Dividing dataset into Training and Test set
Use Case – Implementation
Import the Logistic Regression model
Making an instance of the model and training it
Predicting the output of the first element of the test set
Predicting the output of the first 10 elements of the test set
Use Case – Implementation
Predicting for the entire dataset
Determining the accuracy of the model
Representing the confusion matrix in a heat map
Use Case – Implementation
Accurately predicting the image to
contain a zero
Inaccurately predicting the image to
contain a seven
Use Case – Implementation
Presenting predictions and actual output
Use Case – Predicting numbers
Dividing the data set
Training
set
Test
set
The model being trained Model identifies number in
images
Test set applied
A number 4
A number 2
Here’s What You’ve Learnt so Far
So what’s
your next step?

More Related Content

What's hot

Feature selection
Feature selectionFeature selection
Feature selectionDong Guo
Β 
Logistic regression : Use Case | Background | Advantages | Disadvantages
Logistic regression : Use Case | Background | Advantages | DisadvantagesLogistic regression : Use Case | Background | Advantages | Disadvantages
Logistic regression : Use Case | Background | Advantages | DisadvantagesRajat Sharma
Β 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERKnoldus Inc.
Β 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine LearningKuppusamy P
Β 
Machine Learning With Logistic Regression
Machine Learning  With Logistic RegressionMachine Learning  With Logistic Regression
Machine Learning With Logistic RegressionKnoldus Inc.
Β 
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Simplilearn
Β 
ML - Multiple Linear Regression
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear RegressionAndrew Ferlitsch
Β 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionMartinHogg9
Β 
What is Machine Learning | Introduction to Machine Learning | Machine Learnin...
What is Machine Learning | Introduction to Machine Learning | Machine Learnin...What is Machine Learning | Introduction to Machine Learning | Machine Learnin...
What is Machine Learning | Introduction to Machine Learning | Machine Learnin...Simplilearn
Β 
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Simplilearn
Β 
Machine learning with scikitlearn
Machine learning with scikitlearnMachine learning with scikitlearn
Machine learning with scikitlearnPratap Dangeti
Β 
Optimization/Gradient Descent
Optimization/Gradient DescentOptimization/Gradient Descent
Optimization/Gradient Descentkandelin
Β 
ML - Simple Linear Regression
ML - Simple Linear RegressionML - Simple Linear Regression
ML - Simple Linear RegressionAndrew Ferlitsch
Β 
Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLLinear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLKumud Arora
Β 
Naive Bayes Classifier
Naive Bayes ClassifierNaive Bayes Classifier
Naive Bayes ClassifierYiqun Hu
Β 
Naive bayes
Naive bayesNaive bayes
Naive bayesumeskath
Β 
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Edureka!
Β 
Linear regression with gradient descent
Linear regression with gradient descentLinear regression with gradient descent
Linear regression with gradient descentSuraj Parmar
Β 
Naive Bayes
Naive BayesNaive Bayes
Naive BayesCloudxLab
Β 

What's hot (20)

Feature selection
Feature selectionFeature selection
Feature selection
Β 
Logistic regression : Use Case | Background | Advantages | Disadvantages
Logistic regression : Use Case | Background | Advantages | DisadvantagesLogistic regression : Use Case | Background | Advantages | Disadvantages
Logistic regression : Use Case | Background | Advantages | Disadvantages
Β 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIER
Β 
Logistic regression in Machine Learning
Logistic regression in Machine LearningLogistic regression in Machine Learning
Logistic regression in Machine Learning
Β 
Machine Learning With Logistic Regression
Machine Learning  With Logistic RegressionMachine Learning  With Logistic Regression
Machine Learning With Logistic Regression
Β 
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Machine Learning Tutorial Part - 2 | Machine Learning Tutorial For Beginners ...
Β 
ML - Multiple Linear Regression
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear Regression
Β 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
Β 
What is Machine Learning | Introduction to Machine Learning | Machine Learnin...
What is Machine Learning | Introduction to Machine Learning | Machine Learnin...What is Machine Learning | Introduction to Machine Learning | Machine Learnin...
What is Machine Learning | Introduction to Machine Learning | Machine Learnin...
Β 
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Supervised and Unsupervised Learning In Machine Learning | Machine Learning T...
Β 
Machine learning with scikitlearn
Machine learning with scikitlearnMachine learning with scikitlearn
Machine learning with scikitlearn
Β 
Optimization/Gradient Descent
Optimization/Gradient DescentOptimization/Gradient Descent
Optimization/Gradient Descent
Β 
ML - Simple Linear Regression
ML - Simple Linear RegressionML - Simple Linear Regression
ML - Simple Linear Regression
Β 
Linear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in MLLinear Regression and Logistic Regression in ML
Linear Regression and Logistic Regression in ML
Β 
Naive Bayes Classifier
Naive Bayes ClassifierNaive Bayes Classifier
Naive Bayes Classifier
Β 
Naive bayes
Naive bayesNaive bayes
Naive bayes
Β 
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Β 
Linear regression with gradient descent
Linear regression with gradient descentLinear regression with gradient descent
Linear regression with gradient descent
Β 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
Β 
Supervised Machine Learning
Supervised Machine LearningSupervised Machine Learning
Supervised Machine Learning
Β 

Similar to Logistic Regression | Logistic Regression In Python | Machine Learning Algorithms | Simplilearn

Lecture 3.1_ Logistic Regression.pptx
Lecture 3.1_ Logistic Regression.pptxLecture 3.1_ Logistic Regression.pptx
Lecture 3.1_ Logistic Regression.pptxajondaree
Β 
Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...Adrian Olszewski
Β 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spssDr Nisha Arora
Β 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptxVickyKumar131533
Β 
Machine Learning Interview Question and Answer
Machine Learning Interview Question and AnswerMachine Learning Interview Question and Answer
Machine Learning Interview Question and AnswerLearnbay Datascience
Β 
Regression Analysis - Thiyagu
Regression Analysis - ThiyaguRegression Analysis - Thiyagu
Regression Analysis - ThiyaguThiyagu K
Β 
Mini datathon
Mini datathonMini datathon
Mini datathonKunal Jain
Β 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Maninda Edirisooriya
Β 
Module 3: Linear Regression
Module 3:  Linear RegressionModule 3:  Linear Regression
Module 3: Linear RegressionSara Hooker
Β 
Supervised Learning.pdf
Supervised Learning.pdfSupervised Learning.pdf
Supervised Learning.pdfgadissaassefa
Β 
2- Introduction to Modeling.pdf
2- Introduction to Modeling.pdf2- Introduction to Modeling.pdf
2- Introduction to Modeling.pdfMUHAMMADSAEED509568
Β 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysisFarzad Javidanrad
Β 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic AlgorithmSHIMI S L
Β 
Business Quantitative - Lecture 2
Business Quantitative - Lecture 2Business Quantitative - Lecture 2
Business Quantitative - Lecture 2saark
Β 
Transformers.pdf
Transformers.pdfTransformers.pdf
Transformers.pdfAli Zoljodi
Β 

Similar to Logistic Regression | Logistic Regression In Python | Machine Learning Algorithms | Simplilearn (20)

Lecture 3.1_ Logistic Regression.pptx
Lecture 3.1_ Logistic Regression.pptxLecture 3.1_ Logistic Regression.pptx
Lecture 3.1_ Logistic Regression.pptx
Β 
Logistical Regression.pptx
Logistical Regression.pptxLogistical Regression.pptx
Logistical Regression.pptx
Β 
Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...
Β 
3ml.pdf
3ml.pdf3ml.pdf
3ml.pdf
Β 
7. logistics regression using spss
7. logistics regression using spss7. logistics regression using spss
7. logistics regression using spss
Β 
Machine_Learning.pptx
Machine_Learning.pptxMachine_Learning.pptx
Machine_Learning.pptx
Β 
Machine Learning Interview Question and Answer
Machine Learning Interview Question and AnswerMachine Learning Interview Question and Answer
Machine Learning Interview Question and Answer
Β 
Machine Learning (Classification Models)
Machine Learning (Classification Models)Machine Learning (Classification Models)
Machine Learning (Classification Models)
Β 
Regression Analysis - Thiyagu
Regression Analysis - ThiyaguRegression Analysis - Thiyagu
Regression Analysis - Thiyagu
Β 
Mini datathon
Mini datathonMini datathon
Mini datathon
Β 
Lecture 4
Lecture 4Lecture 4
Lecture 4
Β 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Β 
Module 3: Linear Regression
Module 3:  Linear RegressionModule 3:  Linear Regression
Module 3: Linear Regression
Β 
Supervised Learning.pdf
Supervised Learning.pdfSupervised Learning.pdf
Supervised Learning.pdf
Β 
Corrleation and regression
Corrleation and regressionCorrleation and regression
Corrleation and regression
Β 
2- Introduction to Modeling.pdf
2- Introduction to Modeling.pdf2- Introduction to Modeling.pdf
2- Introduction to Modeling.pdf
Β 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
Β 
Genetic Algorithm
Genetic AlgorithmGenetic Algorithm
Genetic Algorithm
Β 
Business Quantitative - Lecture 2
Business Quantitative - Lecture 2Business Quantitative - Lecture 2
Business Quantitative - Lecture 2
Β 
Transformers.pdf
Transformers.pdfTransformers.pdf
Transformers.pdf
Β 

More from Simplilearn

ChatGPT in Cybersecurity
ChatGPT in CybersecurityChatGPT in Cybersecurity
ChatGPT in CybersecuritySimplilearn
Β 
Whatis SQL Injection.pptx
Whatis SQL Injection.pptxWhatis SQL Injection.pptx
Whatis SQL Injection.pptxSimplilearn
Β 
Top 5 High Paying Cloud Computing Jobs in 2023
 Top 5 High Paying Cloud Computing Jobs in 2023  Top 5 High Paying Cloud Computing Jobs in 2023
Top 5 High Paying Cloud Computing Jobs in 2023 Simplilearn
Β 
Types Of Cloud Jobs In 2024
Types Of Cloud Jobs In 2024Types Of Cloud Jobs In 2024
Types Of Cloud Jobs In 2024Simplilearn
Β 
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...Simplilearn
Β 
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...Simplilearn
Β 
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...Simplilearn
Β 
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...Simplilearn
Β 
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...Simplilearn
Β 
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...Simplilearn
Β 
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...Simplilearn
Β 
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...Simplilearn
Β 
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...Simplilearn
Β 
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...Simplilearn
Β 
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...Simplilearn
Β 
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...Simplilearn
Β 
WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...
WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...
WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...Simplilearn
Β 
Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...
Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...
Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...Simplilearn
Β 
How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...
How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...
How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...Simplilearn
Β 
How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...
How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...
How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...Simplilearn
Β 

More from Simplilearn (20)

ChatGPT in Cybersecurity
ChatGPT in CybersecurityChatGPT in Cybersecurity
ChatGPT in Cybersecurity
Β 
Whatis SQL Injection.pptx
Whatis SQL Injection.pptxWhatis SQL Injection.pptx
Whatis SQL Injection.pptx
Β 
Top 5 High Paying Cloud Computing Jobs in 2023
 Top 5 High Paying Cloud Computing Jobs in 2023  Top 5 High Paying Cloud Computing Jobs in 2023
Top 5 High Paying Cloud Computing Jobs in 2023
Β 
Types Of Cloud Jobs In 2024
Types Of Cloud Jobs In 2024Types Of Cloud Jobs In 2024
Types Of Cloud Jobs In 2024
Β 
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
Top 12 AI Technologies To Learn 2024 | Top AI Technologies in 2024 | AI Trend...
Β 
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
What is LSTM ?| Long Short Term Memory Explained with Example | Deep Learning...
Β 
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Top 10 Chat GPT Use Cases | ChatGPT Applications | ChatGPT Tutorial For Begin...
Β 
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
React JS Vs Next JS - What's The Difference | Next JS Tutorial For Beginners ...
Β 
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Backpropagation in Neural Networks | Back Propagation Algorithm with Examples...
Β 
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
How to Become a Business Analyst ?| Roadmap to Become Business Analyst | Simp...
Β 
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Career Opportunities In Artificial Intelligence 2023 | AI Job Opportunities |...
Β 
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Programming for Beginners | How to Start Coding in 2023? | Introduction to Pr...
Β 
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Best IDE for Programming in 2023 | Top 8 Programming IDE You Should Know | Si...
Β 
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
React 18 Overview | React 18 New Features and Changes | React 18 Tutorial 202...
Β 
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
What Is Next JS ? | Introduction to Next JS | Basics of Next JS | Next JS Tut...
Β 
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
How To Become an SEO Expert In 2023 | SEO Expert Tutorial | SEO For Beginners...
Β 
WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...
WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...
WordPress Tutorial for Beginners 2023 | What Is WordPress and How Does It Wor...
Β 
Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...
Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...
Blogging For Beginners 2023 | How To Create A Blog | Blogging Tutorial | Simp...
Β 
How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...
How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...
How To Start A Blog In 2023 | Pros And Cons Of Blogging | Blogging Tutorial |...
Β 
How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...
How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...
How to Increase Website Traffic ? | 10 Ways To Increase Website Traffic in 20...
Β 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
Β 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
Β 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ9953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
Β 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
Β 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
Β 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
Β 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
Β 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
Β 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
Β 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
Β 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
Β 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
Β 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
Β 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
Β 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
Β 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
Β 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
Β 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
Β 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
Β 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
Β 
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈcall girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
call girls in Kamla Market (DELHI) πŸ” >ΰΌ’9953330565πŸ” genuine Escort Service πŸ”βœ”οΈβœ”οΈ
Β 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Β 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
Β 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
Β 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
Β 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Β 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Β 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
Β 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
Β 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Β 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
Β 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
Β 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
Β 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Β 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
Β 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
Β 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
Β 

Logistic Regression | Logistic Regression In Python | Machine Learning Algorithms | Simplilearn

  • 2. Surviving the Titanic Suppose, you have to build a model to predict how many people survived the Titanic shipwreck
  • 3. Surviving the Titanic Suppose, you have to build a model to predict how many people survived the Titanic shipwreck
  • 4. Surviving the Titanic β€’ ID β€’ Survived β€’ Class β€’ Name β€’ Sex β€’ Age β€’ Siblings β€’ Parents/children abroad β€’ Ticket β€’ Fare β€’ Cabin β€’ Place of Embarkment Teaching the model with the passenger dataset Dropping the non-essential components of the dataset Determining the survival of passengers and evaluating the model
  • 5. Agenda What is Supervised Learning? What is Classification? What are some of its solutions? What is Logistic Regression? Comparing Linear and Logistic Regression Logistic Regression applications Use Case – Predicting the number in an image
  • 6. What is Supervised Learning?
  • 7. What is Supervised Learning? That’s an apple! apple Teacher teaches child Child recognizes an apple when she sees it again A model is able to make predictions based on past data
  • 8. Where does Logistic Regression fit it? Machine Learning Supervised Learning Unsupervised Learning AssociationClusteringClassification Regression The systems predicts future outcomes based on training from past input
  • 10. A few Classification Solutions A B We take decisions using a tree structure. Each branch node represents a choice, and leaf node represents a decision Decision Trees
  • 11. A few Classification Solutions A B Decision Trees We take decisions using a tree structure. Each branch node represents a choice, and leaf node represents a decision It helps determine what the given object is, based on its similarity to the objects it is compared toK=3 K=7 K-Nearest Neighbor
  • 12. It helps determine what the given object is, based on its similarity to the objects it is compared toK=3 K=7 K-Nearest Neighbor Decision Trees A few Classification Solutions A B We determine the probability of an event occurring with the help of a tree structure A dataset with one or more independent variables is used to determine binary output of the dependent variable Logistic Regression
  • 13. What is Logistic Regression?
  • 14. What is Logistic Regression? Imagine it’s been a few years since you serviced your car. One day you wonder…
  • 15. What is Logistic Regression? It is a classification algorithm, used to predict binary outcomes for a given set of independent variables. The dependent variable’s outcome is discrete. Regression model created based on other users’ experience 0.60 0.20 0.40 0.80 1.00 1 2 3 4 5 6 Years since service Probabilityofbreakdown How long until the car breaks down? You provide years since last service
  • 16. What is Logistic Regression? Probability>0.50 Value rounded off to 1 : The car will breakdown Probability<0.50 Value rounded off to 0: The car will not breakdown Here, the threshold value 0.50 indicates that the car is more likely to breakdown after 3.5 years of usage Model makes predictions 0.60 0.20 0.40 0.80 1.00 1 2 3 4 5 6 Years since last service Probabilityofbreakdown 0.50 0.29 0.90 Threshold Value
  • 17. What is Linear Regression?
  • 18. Linear Regression It is a statistical method that helps find the relationship between an independent and dependent variable, both of which are continuous He performed well in the last quarter. How much raise should he get?
  • 19. Linear Regression 41 2 3 5 5 10 15 20 25 Employee rating Salaryhike Collection of ratings and corresponding hikes Linear Regression is performed on data The management provides the corresponding salary hike Employee rating
  • 20. Linear and Logistic Regression Here’s the graph of how linear regression would be, for a given scenario x y
  • 21. Linear and Logistic Regression What if you wanted to know whether the employee would get a promotion or not based on their rating 41 2 3 5 0 =No 1=Yes Employee rating Probabilityofgettinga promotion
  • 22. Linear and Logistic Regression This graph would not be able to make such a prediction. So we clip the line at 0 and 1. 41 2 3 5 Employee rating 0 =No 1=Yes Probabilityofgettinga promotion
  • 23. Linear and Logistic Regression So, how did this… …become this? 41 2 3 5 Employee rating 41 2 3 5 Employee rating 0 =No 1=Yes Probabilityofgettinga promotion 0 =No 1=Yes Probabilityofgettinga promotion
  • 24. The Math behind Logistic Regression To understand Logistic Regression, let’s talk about the odds of success Odds (πœƒ) = Probability of an event happening Probability of an event not happening or πœƒ = 𝑝 1 βˆ’ 𝑝 The values of odds range from 0 to ∞ The values of probability change from 0 to 1
  • 25. The Math behind Logistic Regression Type equation here. Take the equation of the straight line 𝛽0 x y Here, 𝛽0 is the y-intercept 𝛽1 is the slope of the line x is the value of the x co-ordinate y is the value of the prediction The equation would be: 𝑦 = 𝛽0 + 𝛽1 π‘₯
  • 26. The Math behind Logistic Regression Type equation here. Now, we predict the odds of success e𝑙𝑛 𝑝 π‘₯ 1 βˆ’ 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ log 𝑝 π‘₯ 1βˆ’π‘ƒ π‘₯ = 𝛽0 + 𝛽1 π‘₯ Exponentiating both sides: 𝑝 π‘₯ 1 βˆ’ 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ Let Y = e 𝛽0+𝛽1 π‘₯ Then 𝑝 π‘₯ 1βˆ’π‘ π‘₯ = Y 𝑝 π‘₯ = π‘Œ 1 βˆ’ 𝑝 π‘₯ 𝑝 π‘₯ = π‘Œ βˆ’ π‘Œ 𝑝 π‘₯ 𝑝 π‘₯ + π‘Œ 𝑝 π‘₯ = π‘Œ 𝑝 π‘₯ 1 + π‘Œ = π‘Œ 𝑝 π‘₯ = π‘Œ 1 + π‘Œ 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ 1 + e 𝛽0+𝛽1 π‘₯ The equation of a sigmoid function: 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ 1 + e 𝛽0+𝛽1 π‘₯ 𝑝 π‘₯ = 1 1 + eβˆ’(𝛽0+𝛽1 π‘₯)
  • 27. The Math behind Logistic Regression Type equation here. Now, we predict the odds of success e𝑙𝑛 𝑝 π‘₯ 1 βˆ’ 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ log 𝑝 π‘₯ 1βˆ’π‘ƒ π‘₯ = 𝛽0 + 𝛽1 π‘₯ Exponentiating both sides: 𝑝 π‘₯ 1 βˆ’ 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ Let Y = e 𝛽0+𝛽1 π‘₯ Then 𝑝 π‘₯ 1βˆ’π‘ π‘₯ = Y 𝑝 π‘₯ = π‘Œ 1 βˆ’ 𝑝 π‘₯ 𝑝 π‘₯ = π‘Œ βˆ’ π‘Œ 𝑝 π‘₯ 𝑝 π‘₯ + π‘Œ 𝑝 π‘₯ = π‘Œ 𝑝 π‘₯ 1 + π‘Œ = π‘Œ 𝑝 π‘₯ = π‘Œ 1 + π‘Œ 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ 1 + e 𝛽0+𝛽1 π‘₯ The equation of a sigmoid function: 𝑝 π‘₯ = e 𝛽0+𝛽1 π‘₯ 1 + e 𝛽0+𝛽1 π‘₯ 𝑝 π‘₯ = 1 1 + eβˆ’(𝛽0+𝛽1 π‘₯) 41 2 3 5 0 0.25 0.50 0.75 1 Employee rating Probabilityofgettinga promotion A sigmoid curve is obtained!
  • 28. Comparing Linear and Logistic Regression
  • 29. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Regression Problems
  • 30. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Classification Problems β€’ Used to solve Regression Problems
  • 31. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Classification Problems β€’ Used to solve Regression Problems β€’ The response variables are continuous in nature
  • 32. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Classification Problems β€’ The response variable is categorical in nature β€’ Used to solve Regression Problems β€’ The response variables are continuous in nature
  • 33. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Classification Problems β€’ The response variable is categorical in nature β€’ Used to solve Regression Problems β€’ The response variables are continuous in nature β€’ It helps estimate the dependent variable when there is a change in the independent variable.
  • 34. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Classification Problems β€’ The response variable is categorical in nature β€’ It helps calculate the possibility of a particular event taking place. β€’ Used to solve Regression Problems β€’ The response variables are continuous in nature β€’ It helps estimate the dependent variable when there is a change in the independent variable.
  • 35. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Classification Problems β€’ The response variable is categorical in nature β€’ It helps calculate the possibility of a particular event taking place. β€’ Used to solve Regression Problems β€’ The response variables are continuous in nature β€’ It helps estimate the dependent variable when there is a change in the independent variable. β€’ Is a straight line.
  • 36. How is Linear and Logistic Regression different? Linear Regression Logistic Regression β€’ Used to solve Classification Problems β€’ The response variable is categorical in nature β€’ It helps calculate the possibility of a particular event taking place. β€’ An S-curve. (S = Sigmoid) β€’ Used to solve Regression Problems β€’ The response variables are continuous in nature β€’ It helps estimate the dependent variable when there is a change in the independent variable. β€’ Is a straight line.
  • 37. Logistic Regression Applications Weather Prediction Helps determine the kind of weather that can be expected
  • 38. Identifies the different components that are present in the image, and helps categorize them Logistic Regression Applications Humans Animals Vehicles Image Categorization
  • 39. Determines the possibility of patient survival, taking age, ISS and RTS into consideration Logistic Regression Applications Healthcare (TRISS) Patient survival % Revised Trauma Score Injury Severity Score Age
  • 40. Use Case – Predicting numbers in images
  • 41. Use Case – Predicting numbers Can you guess what number I am? Are you a 3? 4? I don’t know! 8x8 image
  • 42. Use Case – Predicting numbers Dividing the data set Training set Test set The model being trained Model identifies number in images Test set applied A number 4 A number 1
  • 43. Use Case – Implementation Importing libraries and their associated methods Determining the total number of images and labels
  • 44. Use Case – Implementation Displaying some of the images and labels
  • 45. Use Case – Implementation Dividing dataset into Training and Test set
  • 46. Use Case – Implementation Import the Logistic Regression model Making an instance of the model and training it Predicting the output of the first element of the test set Predicting the output of the first 10 elements of the test set
  • 47. Use Case – Implementation Predicting for the entire dataset Determining the accuracy of the model Representing the confusion matrix in a heat map
  • 48. Use Case – Implementation Accurately predicting the image to contain a zero Inaccurately predicting the image to contain a seven
  • 49. Use Case – Implementation Presenting predictions and actual output
  • 50. Use Case – Predicting numbers Dividing the data set Training set Test set The model being trained Model identifies number in images Test set applied A number 4 A number 2

Editor's Notes

  1. Style - 01
  2. Style - 01