Geographically Weighted Regression (GWR)

Similar documents
GEOGRAPHICAL STATISTICS & THE GRID

Geographically Weighted Regression LECTURE 2 : Introduction to GWR II

GeoDa-GWR Results: GeoDa-GWR Output (portion only): Program began at 4/8/2016 4:40:38 PM

Models for Count and Binary Data. Poisson and Logistic GWR Models. 24/07/2008 GWR Workshop 1

Geographically Weighted Regression and Kriging: Alternative Approaches to Interpolation A Stewart Fotheringham

Prospect. February 8, Geographically Weighted Analysis - Review and. Prospect. Chris Brunsdon. The Basics GWPCA. Conclusion

ESRI 2008 Health GIS Conference

Geographically weighted regression: a natural evolution of the expansion method for spatial data analysis

A Space-Time Model for Computer Assisted Mass Appraisal

CSISS Tools and Spatial Analysis Software

The GWmodel R package: Further Topics for Exploring Spatial Heterogeneity using Geographically Weighted Models

Regression Analysis. A statistical procedure used to find relations among a set of variables.

Geographically Weighted Regression Using a Non-Euclidean Distance Metric with a Study on London House Price Data

A GEOSTATISTICAL APPROACH TO PREDICTING A PHYSICAL VARIABLE THROUGH A CONTINUOUS SURFACE

Context-dependent spatial analysis: A role for GIS?

Using Spatial Statistics and Geostatistical Analyst as Educational Tools

The spgwr Package. January 9, 2006

1Department of Demography and Organization Studies, University of Texas at San Antonio, One UTSA Circle, San Antonio, TX

Spatial Variation in Infant Mortality with Geographically Weighted Poisson Regression (GWPR) Approach

Multiple Dependent Hypothesis Tests in Geographically Weighted Regression

Modeling Spatial Relationships Using Regression Analysis

Geographically Weighted Regression

1. calibrating the size of the kernel or search window to the amount of spatial autocorrelation found in the attributes of the data being examined;

GIS Analysis: Spatial Statistics for Public Health: Lauren M. Scott, PhD; Mark V. Janikas, PhD

Running head: GEOGRAPHICALLY WEIGHTED REGRESSION 1. Geographically Weighted Regression. Chelsey-Ann Cu GEOB 479 L2A. University of British Columbia

Statistics: A review. Why statistics?

GRAD6/8104; INES 8090 Spatial Statistic Spring 2017

Simultaneous Coefficient Penalization and Model Selection in Geographically Weighted Regression: The Geographically Weighted Lasso

Using Spatial Statistics Social Service Applications Public Safety and Public Health

Exploratory Spatial Data Analysis (ESDA)

SOME NOTES ON PARAMETRIC SIGNIFICANCE TESTS FOR GEOGRAPHICALLY WEIGHTED REGRESSION

Evaluating sustainable transportation offers through housing price: a comparative analysis of Nantes urban and periurban/rural areas (France)

Geographically Weighted Regression (GWR) Modelling with Weighted Fixed Gaussian Kernel and Queen Contiguity for Dengue Fever Case Data

WEB application for the analysis of spatio-temporal data

The Cost of Transportation : Spatial Analysis of US Fuel Prices

Geographically weighted regression approach for origin-destination flows

Modeling Spatial Variation in Stand Volume of Acacia mangium Plantations Using Geographically Weighted Regression

Simple linear regression

Nonparametric Econometrics in R

Time: the late arrival at the Geocomputation party and the need for considered approaches to spatio- temporal analyses

Multiple Predictor Variables: ANOVA

Daniel Fuller Lise Gauvin Yan Kestens

Satellite and gauge rainfall merging using geographically weighted regression

Modeling Spatial Relationships using Regression Analysis

Package NonpModelCheck

User s Guide for interflex

Geographically weighted methods for examining the spatial variation in land cover accuracy

Geospatial dynamics of Northwest. fisheries in the 1990s and 2000s: environmental and trophic impacts

Outline. ArcGIS? ArcMap? I Understanding ArcMap. ArcMap GIS & GWR GEOGRAPHICALLY WEIGHTED REGRESSION. (Brief) Overview of ArcMap

Geographically Weighted Regression as a Statistical Model

Geographical General Regression Neural Network (GGRNN) Tool For Geographically Weighted Regression Analysis

Development of Integrated Spatial Analysis System Using Open Sources. Hisaji Ono. Yuji Murayama

MODULE 12: Spatial Statistics in Epidemiology and Public Health Lecture 7: Slippery Slopes: Spatially Varying Associations

Diploma Part 2. Quantitative Methods. Examiners Suggested Answers

Spatial nonstationarity and autoregressive models

Advanced analysis and modelling tools for spatial environmental data. Case study: indoor radon data in Switzerland

Mustafa Jarrar. Machine Learning Linear Regression. Birzeit University. Mustafa Jarrar: Lecture Notes on Linear Regression Birzeit University, 2018

Creating and Managing a W Matrix

Using geographically weighted regression for analysing elevation error of detailed digital elevation models

Introduction. Introduction (Contd.) Market Equilibrium and Spatial Variability in the Value of Housing Attributes. Urban location theory.

Spatial Analysis 2. Spatial Autocorrelation

Explorative Spatial Analysis of Coastal Community Incomes in Setiu Wetlands: Geographically Weighted Regression

Assessing Local Variations of Deforestation Processes in Mexico Using Geographically Weighted Regression

Geographically Weighted Panel Regression

Spatial Regression. 6. Specification Spatial Heterogeneity. Luc Anselin.

Geographically and temporally weighted regression for modeling spatio-temporal variation in house prices

Available online at ScienceDirect. Procedia Environmental Sciences 27 (2015 ) Roger Bivand a,b,

STATISTICS 110/201 PRACTICE FINAL EXAM

Modeling Spatial Relationships Using Regression Analysis. Lauren M. Scott, PhD Lauren Rosenshein Bennett, MS

The GWmodel R package: further topics for exploring spatial heterogeneity using geographically weighted models

Homework 2. For the homework, be sure to give full explanations where required and to turn in any relevant plots.

Experiment 1: Linear Regression

Grid Enabling Geographically Weighted Regression

Introduction To Raster Based GIS Dr. Zhang GISC 1421 Fall 2016, 10/19

A geographically weighted regression

MOVING WINDOW REGRESSION (MWR) IN MASS APPRAISAL FOR PROPERTY RATING. Universiti Putra Malaysia UPM Serdang, Malaysia

Analysis of Bank Branches in the Greater Los Angeles Region

Spatial Analysis with ArcGIS Pro STUDENT EDITION

Urban GIS for Health Metrics

Hypothesis testing Goodness of fit Multicollinearity Prediction. Applied Statistics. Lecturer: Serena Arima

Handling Categorical Predictors: ANOVA

DIAGNOSTIC TOOLS AND REMEDIAL METHODS FOR COLLINEARITY IN LINEAR REGRESSION MODELS WITH SPATIALLY VARYING COEFFICIENTS DISSERTATION

BAYESIAN MODEL FOR SPATIAL DEPENDANCE AND PREDICTION OF TUBERCULOSIS

15.1 The Regression Model: Analysis of Residuals

Examining the extent to which hotspot analysis can support spatial predictions of crime

Regression tree-based diagnostics for linear multilevel models

Roger S. Bivand Edzer J. Pebesma Virgilio Gömez-Rubio. Applied Spatial Data Analysis with R. 4:1 Springer

Comparison of spatial methods for measuring road accident hotspots : a case study of London

How does Transport Infrastructure Affect Dwelling Prices in Athens?

Intensity Analysis of Spatial Point Patterns Geog 210C Introduction to Spatial Data Analysis

SIMULATION AND APPLICATION OF THE SPATIAL AUTOREGRESSIVE GEOGRAPHICALLY WEIGHTED REGRESSION MODEL (SAR-GWR)

Applied Regression Modeling: A Business Approach Chapter 3: Multiple Linear Regression Sections

Accelerated Life Test of Mechanical Components Under Corrosive Condition

LOAD FORECASTING APPLICATIONS for THE ENERGY SECTOR

Real Estate Price Prediction with Regression and Classification CS 229 Autumn 2016 Project Final Report

Spatial Analysis I. Spatial data analysis Spatial analysis and inference

This lab exercise will try to answer these questions using spatial statistics in a geographic information system (GIS) context.

Interaction effects for continuous predictors in regression modeling

A Multistage Modeling Strategy for Demand Forecasting

Modeling the Ecology of Urban Inequality in Space and Time

Transcription:

Geographically Weighted Regression (GWR) rahmaanisa@apps.ipb.ac.id

Global Vs Local Statistics Global similarities across space single-valued statistics non-mappable search for regularities aspatial Local differences across space multi-valued statistics mappable search for exceptions spatial Local statistics are spatial disaggregations of global statistics.

Introduction Regression models are typically global. In some cases it can make sense to fit more flexible local models. In a spatial context local refers to location. Rather than fitting a single regression model, it is possible to fit several models, one for each location (out of possibly very many) locations.

GEOGRAPHICALLY WEIGHTED REGRESSION (GWR) GWR builds on traditional linear regression methods by permitting the relationships between variables to vary spatially.

How it works By allowing the linear predictor to be a function of the spatial coordinates (u, v):

How it works The contribution of sample points in the local regression model are weighted according to their proximity to y i by a weight functions. A common choice is the Gaussian curve: d ij is the distance between observation point i and the realisation points j, and b is a parameter (the bandwidth) to be determined

Previous example Spatially Disaggregated

IN GWR WE CAN ALSO estimate local standard errors calculate local leverage measures perform tests to assess the significance of the spatial variation in the local parameter estimates perform tests to determine if the local model performs better than the global one

Practical Session There is standalone GWR software that can be obtained from http://ncg.nuim.ie/ncg/gwr/. There are various packages which will carry out GWR in R: GWmodel spgwr gwrr

Load the package and tha data set #install.packages("gwmodel") > library(gwmodel) > data(londonhp) > help(londonhp)

London Data Set In this practical we will be working with house price data, obtained from the Nationwide Building Society (NBS) in England - this is a sample of houses sold in 2001 with mortgages arranged by NBS in and around London. The data is in a SpatialPolygonsDataFrame frame called londonhp. > head(data.frame(londonhp))

Data Exploration Here, the y-variable will be housing cost per square meter of floor area: > londonhp$ppsqm <- londonhp$purchase / londonhp$floorsz Looking at the distribution of the price per square meter can be done using the standard hist command in R: > hist(londonhp$ppsqm,main="price per Square Meter (Pounds)", xlab="cost per Sq. Meter",ylab='Frequency')

Data Exploration From this there is a fairly clear distribution shape with a small number of very costly properties (in terms of cost per unit of floor area). Summary statistics: > mean(londonhp$ppsqm) [1] 1779.542 > sd(londonhp$ppsqm) [1] 657.2502

Data Exploration hist(londonhp$prof,main="proportion of Workforce in Professional occupations", xlab="proportion", ylab='frequency')

Relationship in the data linmod <- lm(ppsqm~prof, data=londonhp) summary(linmod) plot(ppsqm~prof,data=londonhp,xlab= 'Proportion Professional/ Managerial', ylab='cost per Square Metre') abline(linmod)

OLS - Model Diagnostics library(nortest) library(car) library(desctools) library(lmtest) ad.test(err.ols) RunsTest(err.ols)

OLS - Model Diagnostics moran.test(err.ols, ww,randomisation=t, alternative="greater") bptest(linmod)

Geographically Weighted Regression (GWR) data(londonborough) plot(londonborough) plot(londonhp, pch=16, col='firebrick',add=true) The data are rather clustered, but it may still be useful to calibrate the GWR model over a regular grid of observations.

Geographically Weighted Regression (GWR) grd <- SpatialGrid(GridTopology(c(503400,155400), c(1000,1000),c(60,48))) plot(grd) plot(londonborough,add=true, col=adjustcolor('navyblue',alpha.f=0.5))

Compute the distances between the points on the grid DM <- gw.dist(dp.locat=coordinates(londonhp), rp.locat=coordinates(grd))

Basic GWR Analysis by Grid Cell gwr.res <- gwr.basic(ppsqm~prof, data=londonhp, regression.points=grd,bw=10000, dmat=dm,kernel= gaussian )

Automatic Bandwidth Selection using bw.gwr function bw.gwr(formula, data, approach="cv",kernel="bisquare", adaptive=false, p=2, theta=0, longlat=f,dmat)

GWR without creating grid DM<-gw.dist(dp.locat=coordinates(londonhp)) bw1<-bw.gwr(purchase~floorsz, data=londonhp, kernel = "gaussian",dmat=dm) gwr.res1<-gwr.basic(purchase~floorsz, data=londonhp, bw=bw1,kernel = "gaussian", dmat=dm)

Automatic Bandwidth Selection DM<-gw.dist(dp.locat=coordinates(londonhp)) bw1<-bw.gwr(purchase~floorsz, data=londonhp, kernel = "gaussian",dmat=dm) gwr.res1<-gwr.basic(purchase~floorsz, data=londonhp, bw=bw1,kernel = "gaussian", dmat=dm)

Automatic Bandwidth Selection bw2<-bw.gwr(purchase~floorsz,approach="aic",adaptive=true, data=londonhp, kernel = "gaussian", dmat=dm) gwr.res2<-gwr.basic(purchase~floorsz, data=londonhp, bw=bw2,adaptive=true, kernel = "gaussian", dmat=dm) gwr.res2

The pseudo t-tests of basic GWR outputs gwr.t.adjust(gwr.res1)

Prediction gwr.pred<-gwr.predict(purchase~floorsz, data=londonhp, bw=2000,kernel = "gaussian") gwr.pred

References Brunsdon, C. 2015. Geographically Weighted Regression. https://rstudio-pubsstatic.s3.amazonaws.com/176883_06a3fa1fc77444be85e94dcd9 7ba9a34.html [18 Desember 2017] Anonymous. Local regression. http://rspatial.org/analysis/rst/6- local_regression.html#local-regression [18 Desember 2017]