SlideShare a Scribd company logo
1 of 12
Logistic Regression in GIS using R environment
Omar F. Althuwaynee, PhD
Geomatics Engineering
You have to go through the following videos regarding
data preparation, software's, and more info about R:
1. Prediction (susceptibility mapping) In GIS (Part1)Using Modified Frequency Ratio
2. Using R as GIS tools: here is my own learning experience (Week 1 -Part 1)
3. Using R as GIS tools: here is my own learning experience (Week 1 -Part 2)
Course preparations
Omar F. Althuwaynee, PhD in Geomatics engineering
1. Evaluate and compare the results of applying the
multivariate logistic regression method, to
Produce susceptibility map, using GIS and R
environment.
Course objectives
Omar F. Althuwaynee, PhD in Geomatics engineering
1. Create dichotomous (0,1) training and testing data
2. Effectively set your project environment , and install
packages according to R.
3. Prepare spatial data in R environment .
4. Learn basic operations with spatial data in R.
End of these sessions, you will be able to
Omar F. Althuwaynee, PhD in Geomatics engineering
5. Develop mapping cartographical skills in R,
like,Resampling, clipping of Raster Data.
6. Run Statistical analysis, using binary Logistic
regression.
7. Run statistical tests and produce output reports.
8. Run accuracy and validation tests using AUC of ROC.
9. Producing and export resultant maps.
End of these sessions, you will be able to
Omar F. Althuwaynee, PhD in Geomatics engineering
• LR is a method for fitting a regression curve, y = f(x)
• LR is part of a larger class of algorithms known as
Generalized Linear Model (glm).
• Dependent factor y
– Binomial logistic regression, when dependent factor (y), has 2
values (value either 0, or 1). like; landslide, pollutants, (0= not
exist, 1= exist).
– Multinomial logistic regression, If dependent variable has more
than 2 values. (Like classifying fruits between; “Ripe”, “Over-
ripe” or “Under-ripe”.
• Independent factors x
– Set of predictors x (Slope, elevation, land use.).
– The predictors (x) can be continuous, categorical or a mix of
both.
Logistic regression (LR)
Omar F. Althuwaynee, PhD in Geomatics engineering
• To predict the probability, whether a landslide will
occur(y) in a particular places, or not.
Data:
• Independent factor Y (Landslide training data locations) 75
observations.
• Dependent factors X (Elevation, slope, NDVI, Curvature)
Current Application
Omar F. Althuwaynee, PhD in Geomatics engineering
Model predicts the probability of occurrence by fitting data to a logit function
g(y) = βo + β1(Elevation)+ β2(slope)+ β3(NDVI)+ β4(Curvature) (a)
Where
g(y):link function,
Now g() donate with ‘p’ initially
• probability must always be positive(never be negative), so the linear equation
will be in exponential form. For any value of slope and dependent variable.
p = exp(βo + β(Elevation)+…..) = e^(βo + β(Elevation)+…) (b)
• To make the probability less than 1, we must divide p by a number greater
than p.
p = exp(βo + β(Elevation)+…..) / exp(βo + β(Elevation)+…..) + 1 =
e^(βo + β(Elevation)+…..) / e^(βo + β(Elevation)+…..) + 1 (c)
Equations
Omar F. Althuwaynee, PhD in Geomatics engineering
Using (a), (b) and (c), we can redefine the probability as:
p = e^y/ 1 + e^y (d)
P= 1/1+e^(-y)
where
p : is the probability of success.
(d) equation is the Logit Function
A typical logistic model plot is shown below. You can see probability never
goes below 0 and above 1.
Equations
Omar F. Althuwaynee, PhD in Geomatics engineering
It is nothing but a tabular representation of Actual vs Predicted
values. This helps us to find the accuracy of the model and avoid
overfitting.
Resource:
https://www.analyticsvidhya.com/blog/2015/11/beginners-guide-on-logistic-
regression-in-r/
Omar F. Althuwaynee, PhD in Geomatics engineering
Confusion Matrix
Note:
• Analysis will depend only on the number of the observations,
more training observations will increase the model efficiency.
• LR may produce lower prediction rate, but this value will have
higher confidence level (low uncertainty compare to bivariate)
More details , I will talk about it along each video session.
Without further ado…let us begin..!
Logistic regression
Omar F. Althuwaynee, PhD in Geomatics engineering
##http://neondataskills.org/R/Raster-Data-In-R/
##http://r-sig-geo.2731867.n2.nabble.com/How-I-make-2-rasters-with-equal-
extents-td7584918.html
##https://geoscripting-wur.github.io/IntroToRaster/
##https://www.analyticsvidhya.com/blog/2015/11/beginners-guide-on-
logistic-regression-in-r/
##https://www.r-bloggers.com/how-to-perform-a-logistic-regression-in-r/
##http://www.cookbook-r.com/Statistical_analysis/Logistic_regression/
References
Omar F. Althuwaynee, PhD in Geomatics engineering

More Related Content

What's hot

Aerial photography abraham thomas
Aerial photography abraham thomasAerial photography abraham thomas
Aerial photography abraham thomasSumant Diwakar
 
Height measurement of aerial photograph
Height measurement of aerial photographHeight measurement of aerial photograph
Height measurement of aerial photographvidyasagar university
 
Lecture 1-aerial photogrammetry
Lecture 1-aerial photogrammetryLecture 1-aerial photogrammetry
Lecture 1-aerial photogrammetryVidhi Khokhani
 
Built up area demarcation using NDBI
Built up area demarcation using NDBIBuilt up area demarcation using NDBI
Built up area demarcation using NDBISiva Subramanian M
 
Scale of photograph (Aerial Photogrammetry)
Scale of photograph (Aerial Photogrammetry)Scale of photograph (Aerial Photogrammetry)
Scale of photograph (Aerial Photogrammetry)Mr Amol Ghogare
 
Drainage pattern and their significance
Drainage pattern and their significanceDrainage pattern and their significance
Drainage pattern and their significanceAvinashAvi110
 
Principle of aerial photography and types.ppt
Principle of aerial photography and types.pptPrinciple of aerial photography and types.ppt
Principle of aerial photography and types.pptsrinivas2036
 
Distortions and displacement on aerial photograph
Distortions and displacement on aerial photographDistortions and displacement on aerial photograph
Distortions and displacement on aerial photographchandan00781
 
Aerial photography.pptx
Aerial photography.pptxAerial photography.pptx
Aerial photography.pptxPramoda Raj
 
Topographic Map
Topographic MapTopographic Map
Topographic Mapmjcnavarro
 
Davis Theory -William Morris Davis- Geomophology Chapter
Davis Theory -William Morris Davis- Geomophology ChapterDavis Theory -William Morris Davis- Geomophology Chapter
Davis Theory -William Morris Davis- Geomophology ChapterKaium Chowdhury
 
Clinometer by Vinod Thombre - Patil
Clinometer by Vinod Thombre - Patil Clinometer by Vinod Thombre - Patil
Clinometer by Vinod Thombre - Patil Vinod Thombre Patil
 
Quantitative Revolution in Geography
Quantitative Revolution in Geography Quantitative Revolution in Geography
Quantitative Revolution in Geography Benjamin L Saitluanga
 
Introduction to aerial photography and photogrammetry.ppt
Introduction to aerial photography and photogrammetry.pptIntroduction to aerial photography and photogrammetry.ppt
Introduction to aerial photography and photogrammetry.pptsrinivas2036
 
Geometry and types of aerial photographs
Geometry and types of aerial photographsGeometry and types of aerial photographs
Geometry and types of aerial photographsPooja Kumari
 
Interaction of EMR with atmosphere and earth surface
Interaction of EMR with atmosphere and earth surfaceInteraction of EMR with atmosphere and earth surface
Interaction of EMR with atmosphere and earth surfaceSumant Diwakar
 

What's hot (20)

Types of stereoscope
Types of stereoscopeTypes of stereoscope
Types of stereoscope
 
Topographic Maps Notes
Topographic Maps NotesTopographic Maps Notes
Topographic Maps Notes
 
Aerial photography abraham thomas
Aerial photography abraham thomasAerial photography abraham thomas
Aerial photography abraham thomas
 
Height measurement of aerial photograph
Height measurement of aerial photographHeight measurement of aerial photograph
Height measurement of aerial photograph
 
Lecture 1-aerial photogrammetry
Lecture 1-aerial photogrammetryLecture 1-aerial photogrammetry
Lecture 1-aerial photogrammetry
 
Built up area demarcation using NDBI
Built up area demarcation using NDBIBuilt up area demarcation using NDBI
Built up area demarcation using NDBI
 
Scale of photograph (Aerial Photogrammetry)
Scale of photograph (Aerial Photogrammetry)Scale of photograph (Aerial Photogrammetry)
Scale of photograph (Aerial Photogrammetry)
 
Drainage pattern and their significance
Drainage pattern and their significanceDrainage pattern and their significance
Drainage pattern and their significance
 
Principle of aerial photography and types.ppt
Principle of aerial photography and types.pptPrinciple of aerial photography and types.ppt
Principle of aerial photography and types.ppt
 
Distortions and displacement on aerial photograph
Distortions and displacement on aerial photographDistortions and displacement on aerial photograph
Distortions and displacement on aerial photograph
 
Aerial photography.pptx
Aerial photography.pptxAerial photography.pptx
Aerial photography.pptx
 
Basic seismology
Basic seismologyBasic seismology
Basic seismology
 
Topographic Map
Topographic MapTopographic Map
Topographic Map
 
Davis Theory -William Morris Davis- Geomophology Chapter
Davis Theory -William Morris Davis- Geomophology ChapterDavis Theory -William Morris Davis- Geomophology Chapter
Davis Theory -William Morris Davis- Geomophology Chapter
 
Clinometer by Vinod Thombre - Patil
Clinometer by Vinod Thombre - Patil Clinometer by Vinod Thombre - Patil
Clinometer by Vinod Thombre - Patil
 
Quantitative Revolution in Geography
Quantitative Revolution in Geography Quantitative Revolution in Geography
Quantitative Revolution in Geography
 
Introduction to aerial photography and photogrammetry.ppt
Introduction to aerial photography and photogrammetry.pptIntroduction to aerial photography and photogrammetry.ppt
Introduction to aerial photography and photogrammetry.ppt
 
Application of surveying
Application of surveyingApplication of surveying
Application of surveying
 
Geometry and types of aerial photographs
Geometry and types of aerial photographsGeometry and types of aerial photographs
Geometry and types of aerial photographs
 
Interaction of EMR with atmosphere and earth surface
Interaction of EMR with atmosphere and earth surfaceInteraction of EMR with atmosphere and earth surface
Interaction of EMR with atmosphere and earth surface
 

Viewers also liked

How to use Frequency Ratio with ArcMap and Excel for prediction
How to use Frequency Ratio with ArcMap and Excel for predictionHow to use Frequency Ratio with ArcMap and Excel for prediction
How to use Frequency Ratio with ArcMap and Excel for predictionOmar F. Althuwaynee
 
How to use R easily as GIS tools!
How to use R easily as GIS tools!How to use R easily as GIS tools!
How to use R easily as GIS tools!Omar F. Althuwaynee
 
Missing Data and data imputation techniques
Missing Data and data imputation techniquesMissing Data and data imputation techniques
Missing Data and data imputation techniquesOmar F. Althuwaynee
 
Telenavis Hellas - General Presentation EN
Telenavis Hellas - General Presentation ENTelenavis Hellas - General Presentation EN
Telenavis Hellas - General Presentation ENTelenavis Hellas S.A.
 
Dr Richard Fry - Using R as a GIS
Dr Richard Fry - Using R as a GISDr Richard Fry - Using R as a GIS
Dr Richard Fry - Using R as a GISShaun Lewis
 
Docopt, beautiful command-line options for R, user2014
Docopt, beautiful command-line options for R,  user2014Docopt, beautiful command-line options for R,  user2014
Docopt, beautiful command-line options for R, user2014Edwin de Jonge
 
Extending and customizing ibm spss statistics with python, r, and .net (2)
Extending and customizing ibm spss statistics with python, r, and .net (2)Extending and customizing ibm spss statistics with python, r, and .net (2)
Extending and customizing ibm spss statistics with python, r, and .net (2)Armand Ruis
 
R Statistics
R StatisticsR Statistics
R Statisticsr content
 
2. proyecto de teoria
2. proyecto de teoria2. proyecto de teoria
2. proyecto de teoriadavid puma
 
July 2015: Sustainable Environment (Connect Stonnington Group)
July 2015: Sustainable Environment (Connect Stonnington Group)July 2015: Sustainable Environment (Connect Stonnington Group)
July 2015: Sustainable Environment (Connect Stonnington Group)Stonnington Connect
 
July 2015: Local Business (Connect Stonnington Group)
July 2015: Local Business (Connect Stonnington Group)July 2015: Local Business (Connect Stonnington Group)
July 2015: Local Business (Connect Stonnington Group)Stonnington Connect
 
Standard_Digital_Cadastral_Maps_2015_Adopted
Standard_Digital_Cadastral_Maps_2015_AdoptedStandard_Digital_Cadastral_Maps_2015_Adopted
Standard_Digital_Cadastral_Maps_2015_AdoptedMichael Prestridge
 

Viewers also liked (18)

How to use Frequency Ratio with ArcMap and Excel for prediction
How to use Frequency Ratio with ArcMap and Excel for predictionHow to use Frequency Ratio with ArcMap and Excel for prediction
How to use Frequency Ratio with ArcMap and Excel for prediction
 
Statistics with R
Statistics with RStatistics with R
Statistics with R
 
How to use R easily as GIS tools!
How to use R easily as GIS tools!How to use R easily as GIS tools!
How to use R easily as GIS tools!
 
Missing Data and data imputation techniques
Missing Data and data imputation techniquesMissing Data and data imputation techniques
Missing Data and data imputation techniques
 
Telenavis Hellas - General Presentation EN
Telenavis Hellas - General Presentation ENTelenavis Hellas - General Presentation EN
Telenavis Hellas - General Presentation EN
 
Dr Richard Fry - Using R as a GIS
Dr Richard Fry - Using R as a GISDr Richard Fry - Using R as a GIS
Dr Richard Fry - Using R as a GIS
 
Seefeld stats r_bio
Seefeld stats r_bioSeefeld stats r_bio
Seefeld stats r_bio
 
Docopt, beautiful command-line options for R, user2014
Docopt, beautiful command-line options for R,  user2014Docopt, beautiful command-line options for R,  user2014
Docopt, beautiful command-line options for R, user2014
 
Extending and customizing ibm spss statistics with python, r, and .net (2)
Extending and customizing ibm spss statistics with python, r, and .net (2)Extending and customizing ibm spss statistics with python, r, and .net (2)
Extending and customizing ibm spss statistics with python, r, and .net (2)
 
R Statistics
R StatisticsR Statistics
R Statistics
 
2. proyecto de teoria
2. proyecto de teoria2. proyecto de teoria
2. proyecto de teoria
 
Mohamed Saliou Camara - LinkedIn
Mohamed Saliou Camara - LinkedInMohamed Saliou Camara - LinkedIn
Mohamed Saliou Camara - LinkedIn
 
JUAL PULSA
JUAL PULSAJUAL PULSA
JUAL PULSA
 
Igcon 2011
Igcon 2011Igcon 2011
Igcon 2011
 
July 2015: Sustainable Environment (Connect Stonnington Group)
July 2015: Sustainable Environment (Connect Stonnington Group)July 2015: Sustainable Environment (Connect Stonnington Group)
July 2015: Sustainable Environment (Connect Stonnington Group)
 
July 2015: Local Business (Connect Stonnington Group)
July 2015: Local Business (Connect Stonnington Group)July 2015: Local Business (Connect Stonnington Group)
July 2015: Local Business (Connect Stonnington Group)
 
Using unique and unusual archival records and data to illustrate and annotate...
Using unique and unusual archival records and data to illustrate and annotate...Using unique and unusual archival records and data to illustrate and annotate...
Using unique and unusual archival records and data to illustrate and annotate...
 
Standard_Digital_Cadastral_Maps_2015_Adopted
Standard_Digital_Cadastral_Maps_2015_AdoptedStandard_Digital_Cadastral_Maps_2015_Adopted
Standard_Digital_Cadastral_Maps_2015_Adopted
 

Similar to How to use Logistic Regression in GIS using ArcGIS and R statistics

L1 intro2 supervised_learning
L1 intro2 supervised_learningL1 intro2 supervised_learning
L1 intro2 supervised_learningYogendra Singh
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligencekeerthikaA8
 
Artificial intelligence.pptx
Artificial intelligence.pptxArtificial intelligence.pptx
Artificial intelligence.pptxkeerthikaA8
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligencekeerthikaA8
 
Using Decision trees with GIS data for modeling and prediction
Using Decision trees with GIS data for modeling and prediction Using Decision trees with GIS data for modeling and prediction
Using Decision trees with GIS data for modeling and prediction Omar F. Althuwaynee
 
Применение машинного обучения для навигации и управления роботами
Применение машинного обучения для навигации и управления роботамиПрименение машинного обучения для навигации и управления роботами
Применение машинного обучения для навигации и управления роботамиSkolkovo Robotics Center
 
A relability assessment
A relability assessmentA relability assessment
A relability assessmentMohammed Awad
 
Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...Valentin De Bortoli
 
Logistic regression, machine learning algorithms
Logistic regression, machine learning algorithms Logistic regression, machine learning algorithms
Logistic regression, machine learning algorithms Learnbay Datascience
 
Q-Metrics in Theory and Practice
Q-Metrics in Theory and PracticeQ-Metrics in Theory and Practice
Q-Metrics in Theory and PracticeMagdi Mohamed
 
Q-Metrics in Theory And Practice
Q-Metrics in Theory And PracticeQ-Metrics in Theory And Practice
Q-Metrics in Theory And Practiceguest3550292
 
Learning Linear Classifiers
Learning Linear ClassifiersLearning Linear Classifiers
Learning Linear ClassifiersThomasNorris16
 
Physique et Chimie de la Terre Physics and Chemistry of the .docx
Physique et Chimie de la Terre  Physics and Chemistry of the .docxPhysique et Chimie de la Terre  Physics and Chemistry of the .docx
Physique et Chimie de la Terre Physics and Chemistry of the .docxLacieKlineeb
 
Statement of stochastic programming problems
Statement of stochastic programming problemsStatement of stochastic programming problems
Statement of stochastic programming problemsSSA KPI
 
rit seminars-privacy assured outsourcing of image reconstruction services in ...
rit seminars-privacy assured outsourcing of image reconstruction services in ...rit seminars-privacy assured outsourcing of image reconstruction services in ...
rit seminars-privacy assured outsourcing of image reconstruction services in ...thahirakabeer
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planningdarwinrlo
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11darwinrlo
 

Similar to How to use Logistic Regression in GIS using ArcGIS and R statistics (20)

L1 intro2 supervised_learning
L1 intro2 supervised_learningL1 intro2 supervised_learning
L1 intro2 supervised_learning
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Artificial intelligence.pptx
Artificial intelligence.pptxArtificial intelligence.pptx
Artificial intelligence.pptx
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Using Decision trees with GIS data for modeling and prediction
Using Decision trees with GIS data for modeling and prediction Using Decision trees with GIS data for modeling and prediction
Using Decision trees with GIS data for modeling and prediction
 
Применение машинного обучения для навигации и управления роботами
Применение машинного обучения для навигации и управления роботамиПрименение машинного обучения для навигации и управления роботами
Применение машинного обучения для навигации и управления роботами
 
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
Program on Quasi-Monte Carlo and High-Dimensional Sampling Methods for Applie...
 
QMC: Transition Workshop - Approximating Multivariate Functions When Function...
QMC: Transition Workshop - Approximating Multivariate Functions When Function...QMC: Transition Workshop - Approximating Multivariate Functions When Function...
QMC: Transition Workshop - Approximating Multivariate Functions When Function...
 
A relability assessment
A relability assessmentA relability assessment
A relability assessment
 
Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...Maximum likelihood estimation of regularisation parameters in inverse problem...
Maximum likelihood estimation of regularisation parameters in inverse problem...
 
Logistic regression, machine learning algorithms
Logistic regression, machine learning algorithms Logistic regression, machine learning algorithms
Logistic regression, machine learning algorithms
 
Q-Metrics in Theory and Practice
Q-Metrics in Theory and PracticeQ-Metrics in Theory and Practice
Q-Metrics in Theory and Practice
 
Q-Metrics in Theory And Practice
Q-Metrics in Theory And PracticeQ-Metrics in Theory And Practice
Q-Metrics in Theory And Practice
 
Learning Linear Classifiers
Learning Linear ClassifiersLearning Linear Classifiers
Learning Linear Classifiers
 
Physique et Chimie de la Terre Physics and Chemistry of the .docx
Physique et Chimie de la Terre  Physics and Chemistry of the .docxPhysique et Chimie de la Terre  Physics and Chemistry of the .docx
Physique et Chimie de la Terre Physics and Chemistry of the .docx
 
I stata
I stataI stata
I stata
 
Statement of stochastic programming problems
Statement of stochastic programming problemsStatement of stochastic programming problems
Statement of stochastic programming problems
 
rit seminars-privacy assured outsourcing of image reconstruction services in ...
rit seminars-privacy assured outsourcing of image reconstruction services in ...rit seminars-privacy assured outsourcing of image reconstruction services in ...
rit seminars-privacy assured outsourcing of image reconstruction services in ...
 
Cs221 logic-planning
Cs221 logic-planningCs221 logic-planning
Cs221 logic-planning
 
Cs221 lecture7-fall11
Cs221 lecture7-fall11Cs221 lecture7-fall11
Cs221 lecture7-fall11
 

Recently uploaded

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
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
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Recently uploaded (20)

Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
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
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

How to use Logistic Regression in GIS using ArcGIS and R statistics

  • 1. Logistic Regression in GIS using R environment Omar F. Althuwaynee, PhD Geomatics Engineering
  • 2. You have to go through the following videos regarding data preparation, software's, and more info about R: 1. Prediction (susceptibility mapping) In GIS (Part1)Using Modified Frequency Ratio 2. Using R as GIS tools: here is my own learning experience (Week 1 -Part 1) 3. Using R as GIS tools: here is my own learning experience (Week 1 -Part 2) Course preparations Omar F. Althuwaynee, PhD in Geomatics engineering
  • 3. 1. Evaluate and compare the results of applying the multivariate logistic regression method, to Produce susceptibility map, using GIS and R environment. Course objectives Omar F. Althuwaynee, PhD in Geomatics engineering
  • 4. 1. Create dichotomous (0,1) training and testing data 2. Effectively set your project environment , and install packages according to R. 3. Prepare spatial data in R environment . 4. Learn basic operations with spatial data in R. End of these sessions, you will be able to Omar F. Althuwaynee, PhD in Geomatics engineering
  • 5. 5. Develop mapping cartographical skills in R, like,Resampling, clipping of Raster Data. 6. Run Statistical analysis, using binary Logistic regression. 7. Run statistical tests and produce output reports. 8. Run accuracy and validation tests using AUC of ROC. 9. Producing and export resultant maps. End of these sessions, you will be able to Omar F. Althuwaynee, PhD in Geomatics engineering
  • 6. • LR is a method for fitting a regression curve, y = f(x) • LR is part of a larger class of algorithms known as Generalized Linear Model (glm). • Dependent factor y – Binomial logistic regression, when dependent factor (y), has 2 values (value either 0, or 1). like; landslide, pollutants, (0= not exist, 1= exist). – Multinomial logistic regression, If dependent variable has more than 2 values. (Like classifying fruits between; “Ripe”, “Over- ripe” or “Under-ripe”. • Independent factors x – Set of predictors x (Slope, elevation, land use.). – The predictors (x) can be continuous, categorical or a mix of both. Logistic regression (LR) Omar F. Althuwaynee, PhD in Geomatics engineering
  • 7. • To predict the probability, whether a landslide will occur(y) in a particular places, or not. Data: • Independent factor Y (Landslide training data locations) 75 observations. • Dependent factors X (Elevation, slope, NDVI, Curvature) Current Application Omar F. Althuwaynee, PhD in Geomatics engineering
  • 8. Model predicts the probability of occurrence by fitting data to a logit function g(y) = βo + β1(Elevation)+ β2(slope)+ β3(NDVI)+ β4(Curvature) (a) Where g(y):link function, Now g() donate with ‘p’ initially • probability must always be positive(never be negative), so the linear equation will be in exponential form. For any value of slope and dependent variable. p = exp(βo + β(Elevation)+…..) = e^(βo + β(Elevation)+…) (b) • To make the probability less than 1, we must divide p by a number greater than p. p = exp(βo + β(Elevation)+…..) / exp(βo + β(Elevation)+…..) + 1 = e^(βo + β(Elevation)+…..) / e^(βo + β(Elevation)+…..) + 1 (c) Equations Omar F. Althuwaynee, PhD in Geomatics engineering
  • 9. Using (a), (b) and (c), we can redefine the probability as: p = e^y/ 1 + e^y (d) P= 1/1+e^(-y) where p : is the probability of success. (d) equation is the Logit Function A typical logistic model plot is shown below. You can see probability never goes below 0 and above 1. Equations Omar F. Althuwaynee, PhD in Geomatics engineering
  • 10. It is nothing but a tabular representation of Actual vs Predicted values. This helps us to find the accuracy of the model and avoid overfitting. Resource: https://www.analyticsvidhya.com/blog/2015/11/beginners-guide-on-logistic- regression-in-r/ Omar F. Althuwaynee, PhD in Geomatics engineering Confusion Matrix
  • 11. Note: • Analysis will depend only on the number of the observations, more training observations will increase the model efficiency. • LR may produce lower prediction rate, but this value will have higher confidence level (low uncertainty compare to bivariate) More details , I will talk about it along each video session. Without further ado…let us begin..! Logistic regression Omar F. Althuwaynee, PhD in Geomatics engineering